I have Rhythombox on all my work and personal work machines(laptops) and I keep my music in
~/Music folder. 25GB of music from here and there, last 10+ years of music. Lots of them rated. And when I have to change laptops I lose all my playlists. Not anymore. Rhythombox saves all its data in
~/.local/share/rhythmbox and I copied
rhythmdb.xml to new machine. One would say, why not copy home directory. Well, why would I copy home directory when most of my items are either on Google Drive or browsers have already synced them. I just copy Music and Rhythombox data files and am good to go. Yey!!!
I was moving around 200+GB data from one WD external drive to another. Although the drives were connected to USB3 port the process was taking time. And I felt asleep and shutdown the system. Next day I connect hard drive and I see
Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).
“Wut!” The complete text said.
Failed to mount ‘/dev/sdc1?: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it’s a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/media_eahaabcc1). Please see the ‘dmraid’ documentationfor more details.
OK. But my Windows XP Centrino laptop will take ages to boot
k and I do have “ntfs-3g” installed. May be it can fix this problem. And I could see these
ntfs-3g ntfs-3g.secaudit ntfscat ntfscluster ntfsdecrypt ntfsfix ntfsls ntfsmove ntfswipe
ntfs-3g.probe ntfs-3g.usermap ntfsck ntfscmp ntfsdump_logfile ntfsinfo ntfsmftalloc ntfstruncate
And we have
sudo ntfsfix /dev/sdc1
Look for the success message and done!
I upgraded my Debian Squeeze installation to Debian Wheezy. I did a fresh install and had almost everything up and running within hour. But Gnome3 is a pain to a new user. I had to spend hours to understand it and then I realised I can use Gnome Fallback Mode to minimise the “cultural shock”. But the keyboard shortcuts I was used to were not present in this mode. Luckily this was easy to fix.
To fix keyboard shortcuts, go to Applications (Press Alt +F1) > System Tools > Preferences > System Settings and choose Keyboard and go to Shortcuts tab. You can locate all the keyboard shortcuts here. I needed 3 basic shortcuts.
- Launch Terminal: This is not present in the given shortcuts. I can press “Alt + F2” which launches run command pop up and enter “gnome-terminal” command to run Gnome Terminal. But that’s too much of work compared to a shortcut. I needed to create a custom shortcut.
- In Shortcuts tab click Custom Shortcuts.
- Press the + button.
- Enter a user friendly name, say “Terminal”, for name and enter “gnome-terminal” as Command.
- Click Apply. This will add a row to the custom shortcuts list.
- This newly created entry will show “Disabled”. Click “Disabled” and it will change to “New Accelerometer”
- Press the key combination you want as shortcut, in my case its “Alt + Ctl + t”
- If you by any chance press a key combination that is already in use, you will be warned.
- Go To Home Dir: I didn’t bother to locate this shortcut and followed the steps mentioned above to create my own combination of “super or Windows key + e”, which is same as a MS Windows shortcut for launching file manager, to launch “nautilus”. You can pass arguments to this command to go to some different folder.
- Minimise all windows or Show Desktop: Go to “Navigation” and in shortcuts list locate “Hide all normal windows”. This will be most likely disabled. Set up the new keyboard shortcut for it.
Now I need to set up virtual hosts and MySQL. 🙂
By running this command…
egrep --include=*.php -lRZ "^$" ./ | xargs -0 -l sed -i -e '/^$/d'
Just two parts to it, search for all *.php files and use sed to replace new lines with nothing.
When one of my friend introduced me to Ubuntu Linux I was impressed by its user friendliness. Till that day I had used Red Hat Linux, Fedora and Knoppix. They were not cut out for an average PC user. In my opinion a geek using Linux doesn’t make Linux popular. Its an average PC user who will make it popular. The guy who introduced me to Linux was not a software guy in fact he is a doctor, oncologist to be precise. Ubuntu replaced Red Hat as my preferred Linux distro. Then came Compiz and shiny effects on Ubuntu made me a die hard fan. Till then I didn’t know Ubuntu was based on Debian. Then for more than 2 years, I didnt boot into Windows, when I needed Windows I ran it in a VM environment in Ubuntu. But Ubuntu was for an average user and this year I decided to switch to Debian. It turns out that I made a correct decision. According to TuxRadar, Debian is the the best Linux distro of 2011! If that wasn’t all, Debian was favoured by Linux.com as their choice of production server.