Linux administration notes & code snippets
How to customize your Fedora packages
Friday, 02 September 2011 19:20
Last time, we talked about custom kernels in Debian-based systems. This time we go to "the other side" and will also talk about customizations, namely how to customize packages on Fedora systems. For this you are not required to have any prior experience on the matter in order to build packages, but a will to learn and read manual pages or other resources is always welcome.
Our article will focus on Apache as packaged by Fedora, and what we will do is modify some of its build options in order to better fit our needs. After all, Linux and Open Source are all about customization, so why not get exactly what we want? With that being said, let's start with our tutorial.
Add a comment
Does Linux Certification cut the mustard?
Wednesday, 10 August 2011 19:49
For those pursuing a Linux career, is Linux certification a must have or an indication that you lack the real world experience that employers demand?Â
In the ever fast-paced and dynamic context of information technology, IT professionals need to be on their toes, constantly staying abreast of changes in the technology platforms on which they work. Operating systems are refined and improved in newer versions of technology, mandating systems administrators to constantly be on a learning curve to keep up with the changes.
What is DHCP and how to configure DHCP server in Linux
Thursday, 04 August 2011 20:02
Anyone with a basic knowledge of computer networking knows that in order for two hosts communicate on the same network using TCP/IP model, both hosts need to have an unique IP address. There are two ways on how a network host can obtain an IP address.Â
One way is to manually configure network interface and assign an IP address by hand. This is called static configuration which means that host's IP address will never change until changed manually again by user or system administrator. If company's network includes more than 1000 hosts this job of setting up each individual host with static IP address will become tiresome and more importantly inefficient.
Add a comment
Read more: What is DHCP and how to configure DHCP server in Linux
Linux job portal launched: LinuxCareer.com
Last Updated on Thursday, 11 August 2011 22:09
Tuesday, 17 May 2011 21:03
As a demand for Linux-related jobs has jumped unexpectedly high in the last couple of years, LinuxCareer.com as a new Linux related job portal attempts to compensate for this sudden surge in demand for Linux skilled professionals and will surely accommodate both employers and job seekers.  LinuxCareer.com is not affiliated with any local or international company, nor is it a recruitment or employment agency and it is specialising only in Linux based careers and closely related Information Technology fields.
LinuxCareer.com offers tools such as application tracking, Â job alerts, login and syncing resumes with facebook.com and linkedin.com accounts as well as screening questionnaires for employers and resume uploads for job seekers.
Job seekers world wide can stay informed about new job listings using RSS feed or Twitter and search linuxcareer.com portal using their mobile by navigating to linuxcareer.com’s mobile version m.linuxcareer.com .
Add a comment
Remove and add www from url using apache .htaccess file
Last Updated on Friday, 13 May 2011 16:15
Friday, 13 May 2011 15:02
Having www in URL of your webpages is not a necessary. It is matter of choice. Most of the internet users are still typing www in from of every domain they enter into they web browser. By use of apache's .htaccess file yuo can force your URL to contain www or you can remove www completely. Here is a way how to add www to your URL. Edit your .htaccess file:
Add www to URL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^linuxconfig.org$
RewriteRule (.*) http://www.linuxconfig.org$1 [R=301]
Remove www from URL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.linuxconfig.org$ [NC]
RewriteRule ^(.*)$ http://linuxconfig.org/$1 [R=301,L]
In both cases replace domain name with your website's domain name.
Â
Add a comment
Read more: Remove and add www from url using apache .htaccess file
Date manipulation with yest
Last Updated on Wednesday, 30 March 2011 07:08
Friday, 25 March 2011 20:21
yest is a great tool which allows user to do some complex date manipulations by employing ab easy to understand syntax. It is not a competitor to a date command, rather it is a handy tool which has some features you may not find in date command. Name of the yest command is derived from its default no argument output which is yesterday’s date.
Add a comment
Bash script display usage and check user
Last Updated on Friday, 25 March 2011 11:54
Friday, 25 March 2011 11:28
Sometimes it is needed to check what user is executing the bash script and whether the user supplied all required arguments:
#!/bin/bash
display_usage() {
echo "This script must be run with super-user privileges."
echo -e "\nUsage:\n$0 [arguments] \n"
}Â
# if less than two arguments supplied, display usage
if [ $# -le 1 ]
then
display_usage
exit 1
fi
# check whether user had supplied -h or --help . If yes display usage
if [[ ( $# == "--help") || $# == "-h" ]]
then
display_usage
exit 0
fi
# display usage if the script is not run as root user
if [[ $USER != "root" ]]; then
echo "This script must be run as root!"
exit 1
fi
echo "All good !!!"
OUTPUT:
$ ./script.sh 1
This script must be run with super-user privileges.
Usage: ./script.sh [arguments]
$ su
Password:
# ./script.sh 1 2
All good !!!
Add a comment
Automatic HTML form submission using WWW::Mechanize
Last Updated on Wednesday, 23 March 2011 14:14
Wednesday, 23 March 2011 13:40
Here is a short tip on how to automatically submit a HTML form using a Linux command line and perl script. For this example we would need a WWW::Mechanize perl module and some basic PHP website. Let's start with simple PHP website. The website will consist of two files:
form.php:
<form action="submit.php" method="post">
First Name: <input name="fname" type="text" />
Last Name: <input name="lname" type="text" />
<input type="submit" />
</form>
Add a comment
Read more: Automatic HTML form submission using WWW::Mechanize
Debian apt-get wheezy sources.list
Last Updated on Saturday, 19 March 2011 11:21
Friday, 18 March 2011 22:50
Debian is the best Linux Operating System ever build, and I personally thank to all involved in its development !!!
Lubos
Security Updates
# /etc/apt/sources.list :
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
Australia Mirror
# /etc/apt/sources.list :
deb http://ftp.au.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.au.debian.org/debian/ wheezy main contrib non-free
Add a comment
More Articles...
-
Debian apt-get squeeze sources.list
-
Backup permissions in linux
-
Configure Apache VirtualHost on Fedora
-
Bash - Redirect both standard output and standard error to same file
-
Resetting Vodafone USB mobile broadband device with usb_modeswitch
-
Extract user list from your Linux system
-
Limit user environment with ulimit Linux command
-
Check domain name availability with bash and whois
-
Server hardening by eliminating setuid and setgid binaries
-
unrar - rar extract on fedora linux
-
This kernel requires the following features not present: pae
-
Random Word Generator
-
Basic Linux Kernel module administration commands
-
Android Eclipse Keyboard Shortcuts
-
Install Java SE Runtime Environment on Fedora Linux
-
Permanently add a directory to shell PATH
-
Setup Wireless interface with WPA and WPA2 on Ubuntu
-
Remove an apostrophe from a filename
-
Joining MP3 music files to a single track
-
Booting a MS Windows OS using GRUB
-
Virtualbox installation on Fedora Linux
-
Enable Amarok MP3 support on Fedora Linux
-
Erasing a CD-RW with a cdrecord command
-
ffmpeg audio format conversions
-
Thecus N2100 with Debian enable boot completion beep
-
Fan control and hard drive temperature on Thecus N2100 with Debian Lenny
-
Hotfile direct download with wget
-
Thecus N2100 entering a Redboot boot loader command interface
-
Fetch stock quotes with perl Finance Quote module
-
Installation of MKVToolNix Matroska tools on Ubuntu Linux
-
Linux KDE4 user auto login command line version
-
Remove or substitute space within a file name
-
Rename all file names from uppercase to lowercase characters
-
Unable to ssh into VirtualBox guest machine
-
Sikuli installation on Ubuntu Lucid Lynx Linux
-
Share folders VirtualBox quick linux setup
-
No suitable vboxnetflt module for running kernel found failed!
-
Install VirtualBox Guest Additions on Linux guest
-
List all directories and sort by size
-
Reset a Joomla admin password from a Linux terminal
-
Turn off beep / bell on linux terminal
-
Set and retrieve a cookie using Perl and CGI
-
Perl - CGI - form submit example
-
Web Development with Perl - CGI - Hello World Example
-
Perl script to retrieve an external IP address
-
ssh_exchange_identification: Connection closed by remote host
-
Unix / Linux epoch time conversions examples
-
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
Ubuntu and Debian google-talkplug installation howto
-
WWW Mechanize - 401 Authorization Required
-
Extract email address from a text file
-
Regular expression to validate credit card number
-
Regular Expression to validate US postal codes
-
vfat file system - unable to create uppercase directory name
-
How To secure ssh
-
Falling back to the standard locale - Solution
-
Linux path environment variable
-
Perl hash
-
Convert Matroska mkv video to PS3 m2ts container file format
-
Download, install, update, erase rpm packages using yum
-
Time countdown bash script example
-
Send an email using Telnet
-
Mount remote ftp directory host locally into linux filesystem
-
Set and Get environmental shell variable using c++
-
Clone / Burn Encrypted DVD using Linux
-
How to get wdiddle3 to set iddle timer for WD EARS drive
-
linux nVidia MCP55 forcedeth module is not working
-
Time your off-peak download with at Linux command
-
Bash script to test hard drive transfer speed
-
How to crash your Linux system with fork bomb
-
Change mac address with macchanger Linux command
-
Example of simple bash script ftp client
-
Set boot password with GRUB boot Linux loader
-
How to check a current runlevel of your Linux system
-
Executing commands remotely with ssh and output redirection
-
Example of binary search algorithm in C++
-
Linux mediatomb installation and setup for PS3
-
Ubuntu / Debian jdownloader linux installation howto
-
/etc/network/interfaces to connect Ubuntu to a wireless network
-
main decoder error: no suitable decoder module for fourcc `XVID'
-
Enable multiple clone displays to VGA interface projector or TV
-
Remove or ignore all comment lines from Linux config files
-
Add character to the beginning of each line using sed
-
Setting the timezone under Linux
-
Setting the hardware clock under Linux
-
Linux Poker Online client
-
C++ code on how to read characters from a file
-
Download YouTube videos using Linux command clive
-
Linux commands to Backup and Restore MySQL database
-
add user Linux command
-
Linux Add User To Group
-
GNU R - package not found - how to install
-
Replace all TAB characters with spaces
-
Change the priorities of linux processes with nice and renice
-
Starting a process remotely with nohup command
-
Identify if CPU is using 32-bit or 64-bit instruction set
-
IBM ThinkPad x60s laptop battery life time test
-
Linux Backup Restore Destroy and Install MBR - Master Boot Record
-
FATAL ERROR: Bad primary partition 0: Partition ends in the final partial cylinder
-
Using command line wodim tool to burn iso image
Page 1 of 16
How to customize your Fedora packages
Friday, 02 September 2011 19:20
Last time, we talked about custom kernels in Debian-based systems. This time we go to "the other side" and will also talk about customizations, namely how to customize packages on Fedora systems. For this you are not required to have any prior experience on the matter in order to build packages, but a will to learn and read manual pages or other resources is always welcome.
Our article will focus on Apache as packaged by Fedora, and what we will do is modify some of its build options in order to better fit our needs. After all, Linux and Open Source are all about customization, so why not get exactly what we want? With that being said, let's start with our tutorial.
Add a comment
Does Linux Certification cut the mustard?
Wednesday, 10 August 2011 19:49
For those pursuing a Linux career, is Linux certification a must have or an indication that you lack the real world experience that employers demand?Â
In the ever fast-paced and dynamic context of information technology, IT professionals need to be on their toes, constantly staying abreast of changes in the technology platforms on which they work. Operating systems are refined and improved in newer versions of technology, mandating systems administrators to constantly be on a learning curve to keep up with the changes.
What is DHCP and how to configure DHCP server in Linux
Thursday, 04 August 2011 20:02
Anyone with a basic knowledge of computer networking knows that in order for two hosts communicate on the same network using TCP/IP model, both hosts need to have an unique IP address. There are two ways on how a network host can obtain an IP address.Â
One way is to manually configure network interface and assign an IP address by hand. This is called static configuration which means that host's IP address will never change until changed manually again by user or system administrator. If company's network includes more than 1000 hosts this job of setting up each individual host with static IP address will become tiresome and more importantly inefficient.
Add a comment
Read more: What is DHCP and how to configure DHCP server in Linux
Linux job portal launched: LinuxCareer.com
Last Updated on Thursday, 11 August 2011 22:09 Tuesday, 17 May 2011 21:03
As a demand for Linux-related jobs has jumped unexpectedly high in the last couple of years, LinuxCareer.com as a new Linux related job portal attempts to compensate for this sudden surge in demand for Linux skilled professionals and will surely accommodate both employers and job seekers.  LinuxCareer.com is not affiliated with any local or international company, nor is it a recruitment or employment agency and it is specialising only in Linux based careers and closely related Information Technology fields.
LinuxCareer.com offers tools such as application tracking, Â job alerts, login and syncing resumes with facebook.com and linkedin.com accounts as well as screening questionnaires for employers and resume uploads for job seekers.
Job seekers world wide can stay informed about new job listings using RSS feed or Twitter and search linuxcareer.com portal using their mobile by navigating to linuxcareer.com’s mobile version m.linuxcareer.com .
Add a commentRemove and add www from url using apache .htaccess file
Last Updated on Friday, 13 May 2011 16:15 Friday, 13 May 2011 15:02
Having www in URL of your webpages is not a necessary. It is matter of choice. Most of the internet users are still typing www in from of every domain they enter into they web browser. By use of apache's .htaccess file yuo can force your URL to contain www or you can remove www completely. Here is a way how to add www to your URL. Edit your .htaccess file:
Add www to URL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^linuxconfig.org$
RewriteRule (.*) http://www.linuxconfig.org$1 [R=301]
Remove www from URL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.linuxconfig.org$ [NC]
RewriteRule ^(.*)$ http://linuxconfig.org/$1 [R=301,L]
In both cases replace domain name with your website's domain name.
Â
Add a commentRead more: Remove and add www from url using apache .htaccess file
Date manipulation with yest
Last Updated on Wednesday, 30 March 2011 07:08 Friday, 25 March 2011 20:21
yest is a great tool which allows user to do some complex date manipulations by employing ab easy to understand syntax. It is not a competitor to a date command, rather it is a handy tool which has some features you may not find in date command. Name of the yest command is derived from its default no argument output which is yesterday’s date.
Add a commentBash script display usage and check user
Last Updated on Friday, 25 March 2011 11:54 Friday, 25 March 2011 11:28
Sometimes it is needed to check what user is executing the bash script and whether the user supplied all required arguments:
#!/bin/bash display_usage() { echo "This script must be run with super-user privileges." echo -e "\nUsage:\n$0 [arguments] \n" }Â
# if less than two arguments supplied, display usage if [ $# -le 1 ] then display_usage exit 1 fi # check whether user had supplied -h or --help . If yes display usage if [[ ( $# == "--help") || $# == "-h" ]] then display_usage exit 0 fi # display usage if the script is not run as root user if [[ $USER != "root" ]]; then echo "This script must be run as root!" exit 1 fi echo "All good !!!"
OUTPUT:
$ ./script.sh 1 This script must be run with super-user privileges. Usage: ./script.sh [arguments] $ su Password: # ./script.sh 1 2 All good !!!Add a comment
Automatic HTML form submission using WWW::Mechanize
Last Updated on Wednesday, 23 March 2011 14:14 Wednesday, 23 March 2011 13:40
Here is a short tip on how to automatically submit a HTML form using a Linux command line and perl script. For this example we would need a WWW::Mechanize perl module and some basic PHP website. Let's start with simple PHP website. The website will consist of two files:
form.php:
<form action="submit.php" method="post"> First Name: <input name="fname" type="text" /> Last Name: <input name="lname" type="text" /> <input type="submit" /> </form>Add a comment
Read more: Automatic HTML form submission using WWW::Mechanize
Debian apt-get wheezy sources.list
Last Updated on Saturday, 19 March 2011 11:21 Friday, 18 March 2011 22:50
Debian is the best Linux Operating System ever build, and I personally thank to all involved in its development !!!
Lubos
Security Updates
# /etc/apt/sources.list :
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
Australia Mirror
# /etc/apt/sources.list :
deb http://ftp.au.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.au.debian.org/debian/ wheezy main contrib non-free
More Articles...
- Debian apt-get squeeze sources.list
- Backup permissions in linux
- Configure Apache VirtualHost on Fedora
- Bash - Redirect both standard output and standard error to same file
- Resetting Vodafone USB mobile broadband device with usb_modeswitch
- Extract user list from your Linux system
- Limit user environment with ulimit Linux command
- Check domain name availability with bash and whois
- Server hardening by eliminating setuid and setgid binaries
- unrar - rar extract on fedora linux
- This kernel requires the following features not present: pae
- Random Word Generator
- Basic Linux Kernel module administration commands
- Android Eclipse Keyboard Shortcuts
- Install Java SE Runtime Environment on Fedora Linux
- Permanently add a directory to shell PATH
- Setup Wireless interface with WPA and WPA2 on Ubuntu
- Remove an apostrophe from a filename
- Joining MP3 music files to a single track
- Booting a MS Windows OS using GRUB
- Virtualbox installation on Fedora Linux
- Enable Amarok MP3 support on Fedora Linux
- Erasing a CD-RW with a cdrecord command
- ffmpeg audio format conversions
- Thecus N2100 with Debian enable boot completion beep
- Fan control and hard drive temperature on Thecus N2100 with Debian Lenny
- Hotfile direct download with wget
- Thecus N2100 entering a Redboot boot loader command interface
- Fetch stock quotes with perl Finance Quote module
- Installation of MKVToolNix Matroska tools on Ubuntu Linux
- Linux KDE4 user auto login command line version
- Remove or substitute space within a file name
- Rename all file names from uppercase to lowercase characters
- Unable to ssh into VirtualBox guest machine
- Sikuli installation on Ubuntu Lucid Lynx Linux
- Share folders VirtualBox quick linux setup
- No suitable vboxnetflt module for running kernel found failed!
- Install VirtualBox Guest Additions on Linux guest
- List all directories and sort by size
- Reset a Joomla admin password from a Linux terminal
- Turn off beep / bell on linux terminal
- Set and retrieve a cookie using Perl and CGI
- Perl - CGI - form submit example
- Web Development with Perl - CGI - Hello World Example
- Perl script to retrieve an external IP address
- ssh_exchange_identification: Connection closed by remote host
- Unix / Linux epoch time conversions examples
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- Ubuntu and Debian google-talkplug installation howto
- WWW Mechanize - 401 Authorization Required
- Extract email address from a text file
- Regular expression to validate credit card number
- Regular Expression to validate US postal codes
- vfat file system - unable to create uppercase directory name
- How To secure ssh
- Falling back to the standard locale - Solution
- Linux path environment variable
- Perl hash
- Convert Matroska mkv video to PS3 m2ts container file format
- Download, install, update, erase rpm packages using yum
- Time countdown bash script example
- Send an email using Telnet
- Mount remote ftp directory host locally into linux filesystem
- Set and Get environmental shell variable using c++
- Clone / Burn Encrypted DVD using Linux
- How to get wdiddle3 to set iddle timer for WD EARS drive
- linux nVidia MCP55 forcedeth module is not working
- Time your off-peak download with at Linux command
- Bash script to test hard drive transfer speed
- How to crash your Linux system with fork bomb
- Change mac address with macchanger Linux command
- Example of simple bash script ftp client
- Set boot password with GRUB boot Linux loader
- How to check a current runlevel of your Linux system
- Executing commands remotely with ssh and output redirection
- Example of binary search algorithm in C++
- Linux mediatomb installation and setup for PS3
- Ubuntu / Debian jdownloader linux installation howto
- /etc/network/interfaces to connect Ubuntu to a wireless network
- main decoder error: no suitable decoder module for fourcc `XVID'
- Enable multiple clone displays to VGA interface projector or TV
- Remove or ignore all comment lines from Linux config files
- Add character to the beginning of each line using sed
- Setting the timezone under Linux
- Setting the hardware clock under Linux
- Linux Poker Online client
- C++ code on how to read characters from a file
- Download YouTube videos using Linux command clive
- Linux commands to Backup and Restore MySQL database
- add user Linux command
- Linux Add User To Group
- GNU R - package not found - how to install
- Replace all TAB characters with spaces
- Change the priorities of linux processes with nice and renice
- Starting a process remotely with nohup command
- Identify if CPU is using 32-bit or 64-bit instruction set
- IBM ThinkPad x60s laptop battery life time test
- Linux Backup Restore Destroy and Install MBR - Master Boot Record
- FATAL ERROR: Bad primary partition 0: Partition ends in the final partial cylinder
- Using command line wodim tool to burn iso image
Page 1 of 16













