Secara default jika kita mount partition Mac yang menggunakan filesystem HFS+, ia hanya akan beri permission "read only"
Perbincangan secara mendalam tentang hal ini boleh dibaca di sini
Friday, August 24, 2012
Thursday, August 23, 2012
VNC dari Mint(Ubuntu) ke Ubuntu
mac
dalam bilik, laptop dalam study room. sebab nak akses current desktop..
thinking of guna VNC. so install tightvnc. sebab malas nak config, each
session created by VNC server occupy port 5901...5902.. which is not
default.
akses pulak guna xtightvncviewer.. akses default port 5900. otherwise kena specify host:. solution. guna x11vnc
utk create vnc session, akses guna xtightvncviewer.
mmg awesome x11vnc ni.. very lightweight.
akses pulak guna xtightvncviewer.. akses default port 5900. otherwise kena specify host:
mmg awesome x11vnc ni.. very lightweight.
Wednesday, June 20, 2012
Wednesday, May 23, 2012
Recovering formatted device with photorec
I recently got problem with my microSD card which I used in my SGS II phone - it tells that my card is not formatted, which is odd. I then use my another device to read, and try to reformat but seems the same message appeared.
Later, I tried to read it from my Linux Mint, it does not detected at all. By using looking at /dev/ seems there's device there.. so I opt to use mkfs to format the card, it worked.
However, that card contained many pictures of my lovely daughter and my wife.
My friend, later suggested to use "photorec", which is conveniently could be installed with [check first]:
It's in testdisk package
To install:
sudo apt-get install testdisk
Try to play around with the flag, you recovered file could be located as you wish:
It's brilliant. Most of my files are recovered, although it seems scattered hence you need to find your important files by yourselves.
Later, I tried to read it from my Linux Mint, it does not detected at all. By using looking at /dev/ seems there's device there.. so I opt to use mkfs to format the card, it worked.
However, that card contained many pictures of my lovely daughter and my wife.
My friend, later suggested to use "photorec", which is conveniently could be installed with [check first]:
$apt-cache search photorec
testdisk - Partition scanner and disk recovery tool
testdisk - Partition scanner and disk recovery tool
It's in testdisk package
To install:
sudo apt-get install testdisk
Try to play around with the flag, you recovered file could be located as you wish:
It's brilliant. Most of my files are recovered, although it seems scattered hence you need to find your important files by yourselves.
Wednesday, May 16, 2012
The lazy way to download PDF from a website
I usually stumbled to a website where it has many PDF (slides, research papers) and I don't want to bother to download them one by one.
So I simply use lynx with -dump option and grep:
For example:
So in order to download them from the "list", I use curl (or you can use wget too)
for i in `cat list`;do echo $i;curl -C - $i -O;done
Done, easy eh?
So I simply use lynx with -dump option and grep:
For example:
lynx -dump http://www.utdallas.edu/~zhiqiang.lin/spring2012.html|grep -o "http://*.*.pdf" > list
So in order to download them from the "list", I use curl (or you can use wget too)
for i in `cat list`;do echo $i;curl -C - $i -O;done
Done, easy eh?
Tuesday, May 15, 2012
Compiling Linux Kernel for Ubuntu
Sometimes I felt like I wanted to have a feeling of the new kernel, well my opinion is that Ubuntu and its derivatives aren't designed for such customizations, unless you're a developer.
The notes on kernel compilation is here . Basically for Ubuntu the way is slightly different and seems much easier since you don't have to edit the Grub configurations manually after you created the *.deb file for linux images and headers. Everything will be taken care for you.
My system is now, running Linux Mint 12 [derived from Ubuntu 11.10]
The notes on kernel compilation is here . Basically for Ubuntu the way is slightly different and seems much easier since you don't have to edit the Grub configurations manually after you created the *.deb file for linux images and headers. Everything will be taken care for you.
My system is now, running Linux Mint 12 [derived from Ubuntu 11.10]
vostro-mint source # uname -a
Linux vostro-mint 3.4.0-1-i5 #3 SMP Tue May 15 00:23:33 MYT 2012 x86_64 x86_64 x86_64 GNU/Linux
vostro-mint source # cat /etc/issue
Linux Mint 12 Lisa \n \l
vostro-mint source # cat /proc/version
Linux version 3.4.0-1-i5 (root@vostro-mint) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #3 SMP Tue May 15 00:23:33 MYT 2012
Thursday, May 10, 2012
Terminal record with ttyrec
Do you know that you can record your terminal session with ttyrec?
On Ubuntu/Mint this software can simply being installed by issuing
sudo apt-get install ttyrec -y
The syntax is basically
ttyrec [filename]
And your session will be recorded until you issue "exit" command
To replay the session simply use
ttyplay [filename]
Enjoy!
Subscribe to:
Posts (Atom)
