EZ Linux Admin random header image

Entries Tagged as 'Linux Tricks'

Apache httpd failed ( apache error checking command )

September 8th, 2009 by EZ linux · No Comments

If apache ( httpd ) fails and says something like: httpd has failed, please contact the sysadmin. Or just that is can’t work, the first step is to run the Linux command: service httpd configtest This should show any errors. If you still get a error then you need to monitor the error_log file while [...]

Click to continue →

Tags: Linux Commands · Linux Software / Scripts · Linux Tricks

Install ffmpeg and ffmpeg-php

August 17th, 2009 by EZ linux · 2 Comments

There is a great auto installer available thanks to Script Mantra, but first you need to install Dialog: yum -y install dialog Then your ready to download and install the ffmpeg installer: cd /usr/src wget http://scriptmantra.info/scripts/AAST_ffmpeg_installer_5.0.6b chmod +x AAST_ffmpeg_installer_5.0.6b ./AAST_ffmpeg_installer_5.0.6b What the script delivers: *libogg *libvorbis *libvorbisenc *libvorbisfile *libamrnb *libamrwb *libgsm *libtheora *Lame *libschroedinger *twolame [...]

Click to continue →

Tags: Linux Commands · Linux Software / Scripts · Linux Tricks

Adding a Symlink

August 16th, 2009 by EZ linux · No Comments

ln -s linktext linkname linktext is the location of the actual file. linkname is the redirect path ln -s /backup/logs /var/logs ln -s /home/cpanel /var/cpanel

Click to continue →

Tags: Linux Commands · Linux Tricks

Check disk space in Linux

August 15th, 2009 by EZ linux · No Comments

There are plenty of tools with which you can check your disk space. However, Linux already has a built in function to show you just what you need to know. Open a terminal window or push (ctrl+alt+F1 to go to console) and type: # df You will see something like this(your output may be different, [...]

Click to continue →

Tags: Linux Tricks

Server image magick test script

June 27th, 2009 by EZ linux · No Comments

For a working sample click here: Server Image Magick Test Script You can download the script here: Server Image Magick Test Script DWHS Inc. Server Test Script Server Test Server Information: Operating System: Linux Web Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Perl Information: Version: 5.8.8 Location: /usr/bin/perl Perl Modules: Image::Info Perl Module: [...]

Click to continue →

Tags: Linux Software / Scripts · Linux Tricks

Change default Linux text editor from VI to Pico

June 18th, 2009 by EZ linux · No Comments

If only for the session just run this: export EDITOR=/usr/bin/pico If you want to change it so every time it will use Pico do this: Open the server command line Run: export EDITOR=/usr/bin/pico pico ~/.bashrc Add this line at the bottom of the file: export EDITOR=/usr/bin/pico Save the file and your done. This changes the [...]

Click to continue →

Tags: Cheat Sheets · Linux Software / Scripts · Linux Tricks

Find a hostname from an ip

June 8th, 2009 by EZ linux · No Comments

Here is a great quick Telnet exim windows command run ping trick. Get the IP or Domains you want to get the hostname for. Then click run on your windows desktop and put in this code: telnet dwhs.net 25 Replace dwhs.net with the IP or Domain name. It will then give you the hostname for [...]

Click to continue →

Tags: Linux Tricks

10 ways to backup mysql

March 22nd, 2009 by EZ linux · No Comments

1. Automatically backup mysql database to Amazon S3 MySQL Backup Solution Many of users use Amazon S3 to backup their mysql databases. Here is an automated script which does this task of taking the backup of a mysql database and then moving it to the Amazon S3. 2. How to Backup MySQL Database automatically (for [...]

Click to continue →

Tags: Linux Tricks

installing pico over centos

November 13th, 2008 by EZ linux · No Comments

cd /usr/bin ln -s nano pico export EDITOR=pico

Click to continue →

Tags: Linux Software / Scripts · Linux Tricks

Tweaking a redhat kernal

August 21st, 2008 by EZ linux · No Comments

Find the RHEL 5.2 kernel source For re-building RHEL 5.2, you’ll want kernel-2.6.18-92.el5.src.rpm. It is on the source CD that comes with your CD set. You will not find it on your standard CDs. To determine whether you have installed the source RPM, look under /usr/src/redhat/SPECS. If there is nothing there, then you probably have [...]

Click to continue →

Tags: Linux Operating Systems · Linux Tricks