Monthly Archives: May 2013

Useful Ubuntu Terminal commands!

Movement In The directory
* cd – Change Directory
* pwd – Print Working Directory

Managing Files and Text
* cp – Copy
* ls – List
* mkdir – Make Directory
* mv – Move
* rm – Remove
* grep – Search for Text Strings
* head – Display Start of File
* less – Display Part of File
* more – Display Part of File
* tail – View the End of a File
* file – type checking of one or more files
* ps – the ultimate system monitor for command line – also good for scripts
* pidof – get pid in an useful format
* cat – print out a file in the command line
* crontab – time-driven events
* man – open the manual of programms – the most important command
* sleep – wait x seconds until continue with the next command

Managing System and Program Information
* cal – Calendar
* date – Date

* fsck – File System Check

Managing Network Connections
* chkconfig – Check Activated Services
* ping – Test Network Connections
* ftp – file Transfer Protocol
* host – Check IP of Domain
* ifconfig – Configure Network Devices
* netstat – Display Routing Table
* route – Set Routes
* telnet – Connect to telnet
* traceroute – Display Route

Manage Drives and Formats
* mount – Mount a Drive
* umount – Unmount Drive
* fdisk – Format Disk
* dd – Dupliate Disk
* df – Disk Free Space

Managing Rights to Files and Directories
* chmod – Change Mode
* su – Switch User

Managing Users and Groups
* passwd – Create Password
* groupadd – Add a Group
* groupmod – Modify a Group
* chgrp – Change Group
* groupdel – Delete Group

Managing Shutdown & Restart
* shutdown -h – If you want to shutdown now the cmd “shutdown now” or specify the exact time such as 10:30 or min (ex.5, 10, etc…).
* restart -h – If you want to restart now the cmd “restart now” or specify the exact time such as 10:30 or min (ex.5, 10, etc…).

* gksudo nautilus – This command will open nautilus with root privilege. It’s just like sudo, but in GUI mode.

* sudo command – Executing Commands with Elevated Privileges

Most of the following commands will need to be prefaced with the sudo command. This elevates privileges to the root-user administrative level temporarily, which is necessary when working with directories or files not owned by your user account. When using sudo you will be prompted for your password. Only users with sudo (administrative) privileges will be able to use this command. also take a look in coreutils

* apt-get – used to install, remove, upgrade and more.

Leave a comment

Posted by on May 26, 2013 in Ubuntu


Tags: , , ,

How to slove issues with worng artwork or missing artwork on your iPhone, iPad & iPod Touch?

Issues with wrong artwork or missing artwork on your iPhone, iPad & iPod Touch? Deleted all your music and re-added only to see the problem get worse? Factory reset only to discover issue is still there? DON’T RESET!

Using this method you will have to manipulate some system files on the iPhone and also delete all your music from it.

I believe the issue lies within iTunes tagging/referencing of artwork in your iTunes library. You will need to MANUALLY assign artwork from now on instead of allowing iTunes to automatically lookup artwork (actually embedding the image to each mp3 file). This is key to solving this issue and preventing future occurrences. iTunes will lookup and download appropriate artwork; however, it will not physically add the artwork to your mp3 file. This is a set up for disaster when one mp3 cross reference leads to another mp3′s artwork due to differences in library databases…


1. Plug in your iPhone and delete all music & videos off your iPhone. Turn off auto sync music in iTunes (make sure to select “Manually manage music and videos”). Disconnect iPhone from iTunes.

2. From within iTunes, CLEAR ALL iTunes assigned artwork from all non-iTunes purchased music. The easiest way to do this is to highlight all song in your library and right click and select “Clear Downloaded Artwork” (after this I would double check all the albums assigned by iTunes have been cleared).

3. Close or Quit iTunes.

4. Now we need to make sure iTunes will never be able to reference artwork from its personal database. On your computer, delete download & iTunes purchases folders from following path: /user/music/itunes/album artwork/

5. Download, install or run from the following any one of the software iTools, iExplorer or Diskaid.

6. Plug in iPhone. Make sure you’ve quit the Music App from multitasking. Open iTools and then open “Raw File System/iTunes_Control

7. Just in case, highlight every folder in this window (Artwork, Device, Music, etc) and select “Copy To Mac” or “Copy To PC” in order to create a backup in case something goes worng.

8. Navigate to “iTunes_Control/Artwork” folder and delete “ArtworkDB” file.

9. Navigate back to “iTunes_Control” and now access “Music” and delete everything in this folder.

10. Now navigate to the “iTunes_Control/iTunes” folder–delete all the contents of “Artwork” (different folder from step 8).

11. Navigate to the “iTunes_Control/iTunes” folder and delete every file starting with “Medialibrary.***

12. Exit out of everything, unplug your iPhone. Restart your iPhone by holding the power/hold and home button until you see the Apple logo.

13. Open iTunes and plug in your freshly restarted iPhone. At this point you should have no music & videos on your iPhone. Since you’ve cleared all your downloaded album artwork, you’ll need to manually add artwork to your music (make sure the images are embedded into the file). Now manually add music to your iPhone. Launch your Music App. If the album art is correct you can manage your music however you want.

Thanks! This should have solved the issue of corrupted album artwork! For future reference, DO NOT let iTunes lookup artwork for you–always manually add artwork yourself!

1 Comment

Posted by on May 22, 2013 in iPad, iPhone, Mac, Windows


Tags: , , , ,

How to Fix “iTunes cannot read the contents of the iPhone, iPad or iPod Touch”?

When running iTunes and you receive the popup message:

"iTunes cannot read the contents of the iPhone. Go to the summary tab in iPhone preferences and click restore to restore this iPhone to factory settings”.


  • It could be one of two (or both) files are corrupt on your iPhone (or other iDevice), they are iTunesDB and iTunesCDB.
  • There is an fast fix for this, even if your iDevice is non jailbroken.
  • You want to disconnect your iDevice from your computer and close iTunes to ensure you DO NOT RESTORE.
  • Download iFunBox or iTools a Free Tool for accessing the iDevice file system. It has both a OSX version and Windows version for download.
  • After you download the version of iFunBox or iTools for your OS, you will need to install it and run it.
  • After installing and running iFunBox or iTools, connect your iDevice to your computer.
  • You will see a message in the Upper Right of iFunBox “connecting to iDevice“, after iFunbox has connected to your iDevice, click on the tab “iFunbox Classic“.
  • On the left panel, expand “Raw File System” (click on the +), then expand “iTunes_Control“, then click on “iTunes“.
  • In the right panel you will see a number of files, right-click on the file “iTunesCDB” and select rename, please add X after the iTunesCDB in the file name, this will allow you keep the file in case you need it again (you should never need it, but better to be careful than sorry.)
  • After you have renamed the file, click on your iDevice name on the upper right of iFunBox and select “Device Safe Removal“, this will ensure the file name change will be written back to your iDevice.
  • After you see your iDevice is closed (“No device connected” will be displayed in the upper right), you should now close iFunBox

Now run Apple iTunes, it will see your iDevice and you will be able to Sync again.


Posted by on May 20, 2013 in iPad, iPhone, Mac, Windows


Tags: , , , ,

How to Unpack Files From the i386 Folder on an XP Installation CD?

If you have ever added or removed Windows features in Add/Remove Programs or installed new hardware, your Windows XP computer may have prompted you for the Windows XP installation disc and the contents of the i386 folder. Unpacking the complete i386 folder to your hard disk can eliminate the need to insert the Windows XP installation disc when prompted. It is also required if you have an older version of the Windows XP installation disc and wish to “slipstream” it with newer Service Packs, such as Service Pack 2 or 3.


1. Copy Entire Folder:

  • Insert your Windows XP installation disc.
  • Click on “Start,” then “Run.” Type “command” and press “Enter.”
  • Type “mkdir c:\i386” and press the “Enter” key. (You can save the contents to another hard disk. Change the directory letter from “c:” to the correct hard disk letter if you save to another drive.)
  • Type “cd c:\i386” and press “Enter.”
  • Type “xcopy d:\i386 /s/h” and press the “Enter” key. Change the optical drive letter from “d:” to your computer’s optical drive letter if it is not the D: drive.

2. Unpack Specific Files:

  • Insert your Windows XP installation disc.
  • Click on “Start,” then “Run.” Type “command” and press “Enter.”
  • Type “mkdir c:\bckup” and press “Enter.” (You can create a folder with any name except for one that shares a Windows folder name.)
  • Type “expand d:\i386\filename.ext c:\bckup” (replacing “filename.ext” with the specific file name and extension of the file) and press the “Enter” key. Change the directory where you wish to extract the file if you are replacing a system file.

Repeat for each file you wish to extract.

Leave a comment

Posted by on May 20, 2013 in Windows



How to change bluetooth device name in Ubuntu?

How to change bluetooth device name after changed system name?

Bluetooth device name is stored in /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config

Delete it.

Restart bluetooth service using below terminal command:

sudo /etc/init.d/bluetooth restart

Bluetooth device name is rewritten in config according to the system name.


Posted by on May 16, 2013 in Ubuntu



How to change System name in Ubuntu?

You have to change the computers hostname & hosts files.

  • Open a terminal window using following shortcut keys “ctrl+alt+t
  • Edit the hostname file and replace the name
  • gksudo gedit /etc/hostname
  • When prompted, enter the administrator password and click the OK button.
  • The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
  • Click Save.
  • also change the name in hosts
  • gksudo gedit /etc/hosts
  • Leave the other stuff there untouched.

Close all open windows and restart your system.

Leave a comment

Posted by on May 16, 2013 in Ubuntu



How do I disable the guest session in Ubuntu 11.10 or higher?

Method 1:-

Open terminal using shortcut Key “ctrl+alt+t”. Type this in the terminal.

gksudo gedit /etc/lightdm/lightdm.conf

You will see the following:


Add allow-guest=false to the end so your final result should look like:


Save the document and quit the text editor.

Back in the Terminal, restart the display manager. (This will end the graphical login session, immediately quitting all programs running in it, so make sure your work–like any open documents–is saved first!

sudo restart lightdm

With the graphical login session ended, you’re returned to the login screen, where you’ll notice that guest account is disabled.

That’s it the guest account is no longer usable.

Simplest method.

Just run this (once) at terminal:

sudo /usr/lib/lightdm/lightdm-set-defaults -l false

You will no longer have ‘Guest’ as login option, on your next login.

  • This simply appends allow-guest=false to /etc/lightdm/lightdm.conf.
  • Confirm works on Ubuntu 12.04; should work for 11.10 and upwards (since those versions use LightDM as well).

To undo (restore Guest option):

sudo /usr/lib/lightdm/lightdm-set-defaults -l true

Method 2:-

Ubuntu Tweak is an application to config Ubuntu easier for everyone. It provides many useful desktop and system options that the default desktop environment doesn’t provide with its help, you will enjoy with the experience of Ubuntu!

Install ubuntu-tweak, get to the tweak tab, turn off the guest button and reboot. That’s it!

Home Page

Download Link

Leave a comment

Posted by on May 15, 2013 in Ubuntu



%d bloggers like this: