Linux

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

How to resume CUPS printer in Linux via the Command Line

H

Find the printer to resume lpstat -p After entering the command above you should see a similar message as below printer HP_LaserJet_P2015 disabled since Wed 25 Sep 2013 09:35:59 AM SAST -         /usr/lib/cups/backend/hp failed printer HP_LaserJet_P2015_Series is idle.  enabled since Wed 05 Dec 2012 08:16:07 PM SAST Enable the printer, replace printer name with your printer cupsenable...

Downloading Files and Directories recursively using Linux Centos 6.3

D

Install ncftp using yum sudo yum install ncftp Execute the following command, just replace details with the relevant ones ncftpget –R –v –u ftpusername ftpserver /copying/to/directory /copying/from/directory -R = Recursive mode; copy whole directory trees -v = Use progress meters -u = FTP username -ftpusername = Replace with your FTP username -ftpserver = Add your server in here ...

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