-
How to Install Kernel on Fedora 7
Posted on February 16th, 2009 No commentsFind out which kernel is installed on the server with the following command.
yum list kernel
Or you can find using ‘uname -ar’ commandYou may get something like this at the end:
kernel.i686 2.6.18-1.2798.fc6 installed
Save a copy of your grub.conf. You may need it.
cp /boot/grub/grub.conf grub.conf_backup
Now install the i686 kernel ( depending on your artictecture)
yum install kernel.i686
Reboot and you are done, The latest kernel is installed.
-
How do I install and use fonts in Linux?
Posted on August 6th, 2008 No commentsInstalling fonts in Ubuntu
Once you have your handy collection of True Type fonts, you are going to want to create a directory to hold them. Installing the fonts system-wide will give all users access to them. First, create a font directory in /usr/share/fonts/truetype. Call this directory newfonts. Issue the command sudo mkdir /usr/share/fonts/truetype/newfonts. You will have to enter your sudo password to complete this task.
Once this directory is created, place all your *ttf or *TTF files in the newfonts directory. With the fonts in place you will then need to issue the command fc-cache -f -v to make the system aware of the new fonts. Once this is done, the system knows about the new fonts and all the system users will have access to them.
If you want to make these fonts available only to specific users, then you will follow the same directions except you will add the fonts only to the users’ ~/.fonts directory. If the ~/.fonts directory doesn’t exist, create it with mkdir ~/.fonts (while logged into the specific users’ accounts). Now move (or copy) all of the *ttf and/or *TTF files into the new directory and run fc-cache -f -v to make the users’ accounts aware of the fonts.
If you have a single-user machine, go with the latter version……
-
Install and Configure lighttpd
Posted on August 1st, 2008 2 commentsLighttpd is a lightweight HTTP server. It functions much the same way Apache does, but uses up far less system resources, and in most configurations, is faster. Lighttpd is used by several popular Web 2.0 sites such as YouTube, Wikipedia, and Meebo.
Read the rest of this entry » -
Update packages on Fedora
Posted on July 29th, 2008 No commentsFirst of all you have to login as root, so open a terminal and excute the following command,
su -
Then you will have set up the proxy server if you have one, just open the /etc/bashrc configuration file with your favorite editor,
gedit /etc/bashrc
Add the following line to the end of the file,
export http_proxy=http://proxy_address:port
For sure you have to substitute your proxy IP and port instead of proxy_address and port respectively.
Now you have close the terminal window and open it again, you have to login as root one more time,
su -
To get the list of updates available,
yum check-updates
To update a certain package,
yum update package_name
To update all packages,
yum update
-
upgrading from RH/Fedora to CentOS 4.0 with yum
Posted on July 20th, 2008 No commentsupgrading from RH/Fedora to CentOS 4.0 with yum
Substitute your choice of mirror sites
(install GPG key)
rpm –import http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/RPM-GPG-KEY-CentOS-4(need these 3 files)
wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/centos-release-4-0.1.i386.rpm
wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/centos-yumconf-4-2.noarch.rpm
wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/yum-2.2.0-1.centos4.2.noarch.rpm(install)
rpm -Uvh –force centos-release-4-0.1.i386.rpm centos-yumconf-4-2.noarch.rpm yum-2.2.0-1.centos4.2.noarch.rpm(upgrade)
yum upgrade
After the list of packages is displayed, choose ‘y’ to download and install.
If a new kernel was downloaded, then you might need to modify the grub.conf to set the ‘default’ entry to the new kernel. Kernel entries in the grub.conf are numbered starting with 0, not 1.
Reboot. That’s it! You’re done! If running into problems contact our support department.
-
Installing SIM – system Integrity Monitor
Posted on January 2nd, 2008 No commentsSIM is a system and services monitor for ‘SysVinit’ systems. It is designed to be intuitive and modular in nature, and to provide a clean and informative status system……
It does this by consistently verifying that services are online, load averages are in check, and log files are at reasonable sizes. Many other SIM modules sport different and in-depth features to bring a well rounded tool to your disposal to stop otherwise common issues daunting internet hosts.
This is simple method for installing SIM on Linux server.
Login to your server via SSH as root
First step is to wget file
#wget http://www.r-fx.org/downloads/sim-current.tar.gz
Untar file by using floowing command
#tar -xzvf sim-current.tar.gzType: cd sim-2.5-3
./setup -iWhere is SIM installed ?This will give you path of SIM
[/usr/local/sim]:
{enter}Where should the sim.log file be created ?
[/usr/local/sim/sim.log]:
{enter}Max size of sim.log before rotated ? Kb
[128]:1024
{enter}[root]:youremail@email.com
{enter}Disable alert emails after how many events, to avoid email flood ?
(Note: events stats are cleared daily)
[10]:3
{enter}The below are configuration options for Service modules:
press return to continue…
{enter}Auto-restart services found to be offline ? (true=enable, false=disable)
[true]:
{enter}Enforce laxed service checking ? (true=enable, false=disable)
[true]:
{enter}Disable auto-restart after how many downed service events ?
(Note: events stats are cleared daily)
[10]:
{enter}Enable FTP service monitoring ? (true=enable, false=disable)
[false]:
{enter}Enable HTTP service monitoring ? (true=enable, false=disable)
[false]:True
{enter}Enable DNS service monitoring ? (true=enable, false=disable)
[false]:True
{enter}Enable SSH service monitoring ? (true=enable, false=disable)
[false]:True
{enter}Enable MYSQL service monitoring ? (true=enable, false=disable)
[false]:True
{enter}Enable SMTP service monitoring ? (true=enable, false=disable)
[false]:True
{enter}TCP/IP port that SMTP operates on ?
[25]:
{enter}Enable XINET service monitoring ? (true=enable, false=disable)
[false]:True
{enter}TCP/IP port that any XINET service operates on (e.g: pop3, 110) ?
[110]:
{enter}Enable ENSIM service monitoring ? (true=enable, false=disable)
[false]:
{enter}Enable PGSQL service monitoring ? (true=enable, false=disable)
[false]:
{enter}Please shut down HTTP , semaphore array’s may remain allocated and cause the service to fall into a loop of restarting cycle. Using this feature clears semaphore arrays on HTTP restart. Enable semaphore cleanup ?
[false]:
{enter}This is an implemented feature in the http module, its purpose is to determine if/when the apache server locks up or otherwise stops httpd to responding. Enable URL aware monitoring ?
:True
{enter}URL path to a local file ? (exclude HTTP://)
Note: This URL should be valid and reside on the local server, otherwise HTTP will loop restarting
[127.0.0.1/index.html]: http://ServerIP/ or Type: site.com/index.html that resides on your local server
{enter}HTTP log files can grow large and cause the service to crash (segfault), this feature will keep the main HTTP logs incheck. Enable HTTP log monitor ?
[false]:
{enter}MySQL uses a /tmp symlink of its mysql.sock socket file. This feature verifies that the symlink exists from the main mysql.sock file, and if not it is recreated. Enable MySQL Socket correction ?
[false]:
{enter}Enable NETWORK monitoring ? (true=enable, false=disable)
[false]:True
{enter}interface to monitor ?
[eth0]:
{enter}Enable LOAD monitor ? (true=enable, false=disable)
[false]:True
{enter}Load level before status condition ‘warning’ ?
[25]:
{enter}Load level before status condition ‘critical’ ?
[45]:
{enter}Enable a global (wall) message at status condition ‘warning’ & ‘critical’ ?
[false]:
{enter}Renice services at status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}Stop nonessential services at status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}Reboot system on status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}Now SIM has been configured you can add a cron.
./setup -c
If it says “Removed SIM cronjob.” then you must type it again.
./setup -cSIM has been installed now
Quote:In order for SIM to work properly, it must be executed regularly, and the best method for this is by using a cronjob.
By default, a SIM cronjob is automatically added during setup and set to run every 5 minutes. To add it or remove it later, you can execute this:
/usr/local/sim/sim -j
or
/usr/local/sbin/sim -j
Enjoy,
Stevenhttp://24×7servermanagement.com
sales@24×7servermanagement.com
-
Using YUM
Posted on January 1st, 2008 No commentsYum is a tool for automating package maintenance for a network or Workstations/Servers running any operating system that use the Red Hat Package Management (RPM) …..
- To search for a application
Yum will search all your enabled repos and tell you where you can obtain the package from
yum search application_name
- Yum can list all available packages from your enabled repos and tell you where you can obtain the package from:
yum list available
- To find out more info about some package
yum info application_name
- Installing applications
Inastalling is as easy as
yum install application_name
- Listing rpms
yum can list installed rpms for you from the repos you have enabled
yum list extras
- Removing rpms
Yum can remove a application and the dependencies, it installed with that application. it will not remove dependencies if another application installed needs them.
yum remove application_name
- Updating the system
Yum can update the system for you with out user interact if you want it to.
yum update
- Not sure if you have upates?
yum check-update
- Local install
downloaded a rpm and cannot install it with rpm because of dependencies?
yum localinstall /path/to/the/rpm
Enjoy,
Stevenhttp://24×7servermanagement.com
sales@24×7servermanagement.com



Recent Comments