Linux

How to install Google Earth in Ubuntu

H

Open a new Terminal Window 
Type in the following command and hit Enter to download the installation file (Binary File).

wget

Run the command below to make the bin file executable

chmod +x GoogleEarthLinux.bin

Now we need to execute the bin file to install Google Earth.

./GoogleEarthLinux.bin

How to reset a forgotten Ubuntu password

H

Boot up your System When the Grub screen appears choose “Ubuntu x.xx, kernal x.x.x-xx-generic (recovery mode)”. The x’s are in the place of the version numbers On the next screen select “Drop to root shell prompt” Once in the root shell prompt use the passwd command to reset your password password USERNAME Replace USERNAME with the username who’s password you...

How to search for files on the command line in Linux

H

By using the find command we can search for files and directories using the command line. The find command uses a raw search to find files and directories. The usage is find [PATH] [OPTIONS][SEARCH CRITERIA] Example: find /home/ -name test The example above finds all files/directories within the home directory that contain the word test Below are different common options that can be used together...

Ubuntu Panel is missing on Ubuntu 10.10

U

Open the command line, to do this right click on the Desktop and select Create Launcher… In the Command text field type in gnome-terminal and in the Nametext field Terminal click OK A new shortcut called Terminal will appear, double click on it to Open a new Terminal window Type the following command killall gnome-panel Create another Launcher as in step one type in the command text...

How to get information about your laptop battery using the Command Line within Linux

H

Open a new command line window and type in the following command cat /proc/acpi/battery/BAT0/info   This will display all information about your battery present:                 yes design capacity:         7200 mAh last full capacity:      2732 mAh battery technology:      rechargeable design voltage:          11100 mV design capacity warning: 135 mAh design capacity low:     94 mAh cycle...

How to find files in a directory that where modified in the last 14 days using Linux

H

Type in the following command

find /var/www/ -mtime -14

this will find all files that where modified within the last 14 days within the /var/www/ directory. We use the -mtime test to get all the modified files.
 
To only find .txt files that were modified within the last 14 days within the /var/www/directory we would use this command

find /var/www/ -mtime -14 | grep '\.txt'

Screensaver Freezes in Ubuntu 11.04

S

I’ve recently updated from Ubuntu 10.10 to 11.04 and found that whenever my screensaver activates the whole computer Freezes, I managed to solved the problem as discribed below.   Open a new Terminal Window and uninstall Gnome Screensaver by using the command below sudo apt-get remove gnome-screensaver   Then we need to kill the Gnome Screensaver process, once again in the command...

How to resize a Batch of Images in Linux all at once

H

NOTE: Tried and tested in Ubuntu 11.04 Natty Narwhal   To resize a batch of images we need to use a command line tool mogrify this tool forms part of the ImageMagick Libraries To use the mogrify command line tool we will need to install ImageMagick sudo apt-get install imagemagick After the install locate the folder via the command line where the images are that need to be resized cd...

How to change your MAC Address in Linux

H

NOTE: In this example we will change the MAC address for the eth0 interface

Open your Command Line Interface
Now we are going to shutdown the eth0 Interface using the command below

ifconfig eth0 down

Now we change the Hardware Address for the eth0 interface

ifconfig eth0 hw ether 00:1d:72:dd:00:6f

Now we activate the eth0 interface again

ifconfig eth0 up

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me