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
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
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
How to read the contents of a compressed file in Linux
The zcat command can be used to read the contents of a compressed text file without the need to uncompress it mannually first.
zcat myCompressedFile.gz
Adding to right click menu “Open in Terminal” in Fedora Core 15
Open a new Terminal Window
Type the following command to install nautilus-open-terminal
yum install nautilus-open-terminal
Log out and login again and when you right click on the Desktop or in your Home folder you will see that Open in Terminal will appear on the right click menu
How to install LibreOffice in Fedora Core 15
Open a new Terminal Window and type in the following command
sudo yum groupinstall "Office/Productivity"
How to setup LAMP (Linux, Apache, mySql, PHP) and phpMyAdmin in Fedora Core 15
NOTE: This is a basic guide to setup LAMP on Localhost We will start off by installing mySql Server first sudo yum install mysql-server Now we will need to start the mySql Server sudo service mysqld start We set a password for mySql sudo mysqladmin -u root password ENTER_YOUR_PASSWORD_HERE The next step will be to install phpMyAdmin, when we install phpMyAdmin, the yum...
How to install Flash Player in Fedora Core 15 32bit so that the Flash Plugin will work in your Browser
Switch to root
su
Add the neccesary software sources to the yum repository
rpm -ivh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
Update all yum packages
yum update
Install the Flash Plugin
yum install flash-plugin
Restart Firefox or your default browser and the Flash Player should now work on Fedora Core 15 32bit
How to create an ISO image from a data CD/DVD in Linux
Open a new Terminal Window
Type in the following command
dd if=/dev/sr0 of=myISO.iso
Explanation
dd = covert and copy a file
if = read from FILE instrad of stdin
/dev/sr0 = This is your cd-rom device, please remember to replace this with your device
of = write to FILE instead of stdout
myISO.iso = The location and filename where you want the ISO file saved
How to unzip a ZIP file in Linux on the Command Line to a folder
unzip zipFile.zip -d directory
unzip – list, test and extract compressed files in a ZIP archive
-d = An optional directory to which to extract files.
directory = The directory where to extract the files to
zipFile.zip = Your ZIP file
How to list all USB devices in Linux
Open a new Terminal Window
Type in the lsusb command
lsusb
lsusb is a utility for displaying information about all USB buses in the system and all devices connected to them.
How to install wkhtmktopdf on a Linux 32bit Operating System
Open a new Terminal Window
Download the wkhtmltopdf library
Extract the library
tar xvjf libwkhtmltox-0.11.0_rc1-i386.tar.bz2
Move the library to the /usr/local/bin/wkhtmltopdf directory
mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf
Make the /usr/local/bin/wkhtmltopdf executable
chmod +x /usr/local/bin/wkhtmltopdf
Try it
wkhtmltopdf /home/roland/Desktop/google.pdf
How to change the Timezone in CentOS 6
The timezone that’s active on your system is stored in the file /etc/localtime First make a backup of the existing localtime file mv /etc/localtime /etc/locatime.backup Now we create a link so that the timezone auto updates when updates come through ln -s /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime In the above change Africa/Johannesburg to the appropriate timezone you need to...
How to change the welcome message after SSH login
Login as root via SSH
Add a message to /etc/motd using vim eg.
vim /etc/motd
Add your message to this file eg.
###Please think before you type###
Logout
Login via SSH and then after successful login the message will appear
How to install gtk-recordmydesktop on Fedora Core 15
Open a new Terminal Window
Type in the following command to install
sudo yum install gtk-recordmydesktop
This will install gtk-recordmydesktop
gtk-recordmydesktop can be located under Applications->Sound & Video->gtk-recordMyDesktop
PHP Fatal error: Call to undefined function mb_detect_encoding()
How to fix this error PHP Fatal error: Call to undefined function mb_detect_encoding() when trying to use the mb_detect_encoding PHP function This means that the php-mbstring extention needs to be installed To install this on a Centos server run the following command from the command line yum install php-mbstring and then restart the Apache web server by using this command as root...
How to add a printer using the command line in Linux
Open a new command line window and type in the following command as root
sudo system-config-printer
Now a window should Pop-Up where you are able to add a new Printer
How to set Firefox as your default browser in Fedora Core 15
How to set Firefox as your default browser in Fedora Core 15? Or any other Browser.
Go to System Settings
Click on System Info
Select Default Applications
And next to Web select the Browser that you wish to make your Default Web Browser
How to extract a tar.gz file in Linux
Execute the following command
tar -zxvf archive.tar.gz
This command will extract the contents of the archive.tar.gz file in the current directory
The options -zxvf mean the following
-z = filter the archive through gzip
-x = extract files from an archive
-v = verbose
-f = use archive file or device ARCHIVE