Linux

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

How to setup LAMP (Linux, Apache, mySql, PHP) and phpMyAdmin in Fedora Core 15

H

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 create an ISO image from a data CD/DVD in Linux

H

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 install wkhtmktopdf on a Linux 32bit Operating System

H

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

H

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...

PHP Fatal error: Call to undefined function mb_detect_encoding()

P

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 extract a tar.gz file in Linux

H

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

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