Archive for the Linux Category

Error: Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux

Posted on June 16, 2009 with No Comments

When i run

yum update

I got following error

root@server70 [~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: fr2.rpmfind.net
 * base: mirrors.service.softlayer.com
 * updates: mirrors.service.softlayer.com
 * addons: mirrors.service.softlayer.com
 * extras: mirrors.service.softlayer.com
rpmforge                                                                                               | 1.1 kB     00:00
base                                                                                                   | 1.1 kB     00:00
updates                                                                                                |  951 B     00:00
addons                                                                                                 |  951 B     00:00
extras                                                                                                 | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package syslinux.x86_64 0:3.82-1.el5.rf set to be updated
--> Processing Dependency: perl(Crypt::PasswdMD5) for package: syslinux
--> Finished Dependency Resolution
syslinux-3.82-1.el5.rf.x86_64 from rpmforge has depsolving problems
  --> Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux-3.82-1.el5.rf.x86_64 (rpmforge)
Error: Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux-3.82-1.el5.rf.x86_64 (rpmforge)
root@server70 [~]#

syslinux is not useful on servers, so this can be fixed by editing /etc/yum.conf

vi /etc/yum.conf

In the line exclude =, at the end add syslinux*

In this cause, installation is from “rpmforge” repo, it is not used, so i removed rpmforge repository

root@server70 [~]# cd /etc/yum.repos.d
root@server70 [/etc/yum.repos.d]# ls -l
total 60
drwxr-xr-x  2 root root  4096 Jan 22 04:53 ./
drwxr-xr-x 98 root root 12288 Jun 16 10:36 ../
-rw-r--r--  1 root root  1946 Dec  3  2007 CentOS-Base.repo
-rw-r--r--  1 root root  2049 Nov 22  2007 CentOS-Base.repo.original
-rw-r--r--  1 root root  2323 Mar 16 20:27 CentOS-Base.repo.rpmnew
-rw-r--r--  1 root root   626 Mar 16 20:27 CentOS-Media.repo
-rw-r--r--  1 root root   954 Apr 25  2008 epel.repo_old
-rw-r--r--  1 root root  1054 Apr 25  2008 epel-testing.repo_old
-rw-r--r--  1 root root   684 Mar  8  2007 mirrors-rpmforge
-rw-r--r--  1 root root   428 Mar  8  2007 rpmforge.repo
root@server70 [/etc/yum.repos.d]# mv rpmforge.repo rpmforge.repo_old
root@server70 [/etc/yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.service.softlayer.com
 * updates: mirrors.service.softlayer.com
 * addons: mirrors.service.softlayer.com
 * extras: mirrors.service.softlayer.com
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update
root@server70 [/etc/yum.repos.d]#

Tags:

Category: Linux

Installing Monit On Linux CentOS Server

Posted on June 12, 2009 with No Comments

monit is an open source software that monitor services on your server. It can restart if any of the service go down.

Download latest version of file from

http://mmonit.com/monit/download/

cd /usr/local/src
wget http://mmonit.com/monit/dist/monit-5.0.3.tar.gz
tar -zxvf monit-5.0.3.tar.gz
cd monit-5.0.3
./configure
make
make install

Copy control file to /etc

cp monitrc /etc/

Edit /etc/monitrc

vi /etc/monitrc

At the end of the file add or uncomment

include /etc/monit.d/*

Now to monitor Apache, create a file /etc/monit.d/apache

vi /etc/monit.d/apache

Add following content

check process httpd with pidfile /var/run/httpd.pid
group apache
start program = "/etc/init.d/httpd start"
stop program = "/etc/init.d/httpd stop"
if failed host 127.0.0.1 port 80 protocol http
   and request "/phpinfo.php"
   then restart
if 5 restarts within 5 cycles then timeout

You can change

and request "/phpinfo.php"

To any file on your web server. I do have a phpinfo file on my server, so i used it.

Some says phpinfo.php is a security risk, to me it is only a security risk if you run vlunerable application on your web server. If you use update software on your server, some one seeing your phpinfo is not a security issue.

To run monit, edit /etc/rc.local

vi /etc/rc.local

Add

/usr/local/bin/monit -d 60 -v -c /etc/monitrc  -p /var/run/monit.pid -l /var/log/monit.log

Fedora 11 Released

Posted on June 11, 2009 with No Comments

Open Source community based Fedora Linux have released latest version of operating system.

Some of the new features in Fedora 11 are

  1. Faster boot time
  2. Gnome 2.26.1
  3. 2.6.29-4 Kernel
  4. ext4 as the default file system
  5. KDE 4.2.2

For more info, go to

http://fedoraproject.org/

Tags: ,

Category: Linux

Reset Flash Media Server password

Posted on June 7, 2009 with No Comments

To reset flash media server password, got to folder

cd /opt/macromedia/fms/conf

Edit fms.ini

vi fms.ini

To change user name, password or port, modify following settings

SERVER.ADMIN_USERNAME = admin
SERVER.ADMIN_PASSWORD = superserver
SERVER.ADMINSERVER_HOSTPORT = :1111

In this cause, user name is “admin” and password is “superserver”

Copying files with rsync

Posted on June 5, 2009 with No Comments

rsync is very good command to copy files between two linux servers.

To move a folder from server1 to server2, login to server1 with ssh

Rrun

rsync -a -v --progress --timeout=0 -e "ssh -p 22" /path/to/source/folder/ user@server2-ip:/path/to/destination/folder/

Here ssh -p 22 is the default SSH port, if you use non standard ssh port, replace 22 with your ssh port number.

For example, if you want to copy (sync) folder /home/hoston/public_html/ on server 1 to server2, run

rsync -a -v --progress --timeout=0 -e "ssh -p 22" /home/hoston/public_html/ user@server2-ip:/home/hoston/public_html/

You need to run the command on the server where your files are in (source server).

rsync is not just copy, it do sync two folders, can be used for backup, so only changed files need to be transferred to remote server when you run rsync.

rsync can also used to mirror your web site to another web sever for load balancing.

You don’t have permission to access / on this server

Posted on June 4, 2009 with No Comments

On a new apache installation, when i g to the site i got following error

Forbidden

You don’t have permission to access / on this server.
Apache/2.2.11 (Fedora) Server at 192.168.206.128 Port 80

I set permission for DocumentRoot to 755 and change ownership to user apache, but that won’t fix the error.

I checked SELinux status

[root@linux ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 23
Policy from config file:        targeted
[root@linux ~]#

Was fixed by disabling SELinux

vi /etc/selinux/config

Find

SELINUX=enforcing

Replace with

SELINUX=disabled

After reboot site started working.

Tags: ,

Category: Linux

Connecting from windows to linux desktop

Posted on May 17, 2009 with No Comments

To connect to Linux desktop from windows, use any VNC Player.

http://webhostingneeds.com/Connecting_to_linux_desktop_from_windows

Linux netbooks expected to reach 50% market share

Posted on May 15, 2009 with No Comments

Linpus Technologies Inc, a Linux operating system (OS) developer, expects Linux-based netbooks to reach 50 percent market share by next year, on a par with Microsoft Inc’s Windows platform, company general manager Stephen Lim said yesterday.

“More and more chip suppliers such as Texas Instruments Inc and Qualcomm Inc are jumping on the bandwagon to adopt Linux,” Lim told a technology seminar hosted by the Industrial Development Bureau yesterday.

“We are also seeing more and more PCs bundled with Linux from Acer Inc, Asustek Computer Inc, Dell Inc and other computer brands,” he added.

As the Linux provider in Asia, the software company is targeting netbooks and affordable all-in-one (AIO) desktops to battle its Windows rival.

Linpus plans to introduce user-friendly interfaces that enable applications and technologies to be developed on its open platform while delivering commercial-level qualified Linux distribution and semi-annual upgrade services, Lim said.

The advantages of using a Linux system include advanced power management, optimized boot and shutdown times, as well as more WiFi and 3G support such as software development kits (SDK) from telecommunication providers, Lim said.

Last year, Windows XP and Vista together took up a 75 percent of the global market share in netbook OS, data from the Market Intelligence and Consulting Institute showed.

“The Windows platform isn’t necessarily better, but consumers have a certain familiarity with this OS, hence XP was able to grow so fast on netbooks last year,” Victor Horng, general manager of OSS Integral Institute Co told.

Linpus also sees netbooks becoming the mainstream soon as they encroach on regular notebook sales, with sales estimated to grow 102 percent this year. Sales of regular notebooks is projected to grow 11.3 percent, while sales of desktop computers are expected to drop 0.9 percent, MIC data showed.

Global PC shipments this year are estimated to approach 300 million units, it added.

Earlier this month, Intel Corp and Novell Inc’s collaboration to aggressively push Moblin, a Linux platform, in netbooks demonstrated Intel’s resolve to build a powerful Linux-based ecosystem

This post is made with Fedora 10 and Firefox 3.

Tags: ,

Category: Linux

Video Editors for linux

Posted on May 13, 2009 with No Comments

Here are some of free open source video editors fro Linux

http://www.openmovieeditor.org
http://www.kdenlive.org
http://www.pitivi.org
http://avidemux.berlios.de

Improve Linux boot speed

Posted on May 11, 2009 with No Comments

Time to boot linux depends on what services you start on booting and configuration of the PC. Better CPU and Memory always improve boot speed.

By default linux have many services that can turn off. For example, desktop computer won’t need mysql or apache started. auditd – shutdown it as it is not used by most, there are many similar unused services running on your desktop.

chkconfig --list

will show list of all services and its status on init levels.

Bootchart is a software that shows time taken in boot process

http://www.bootchart.org/

Tags:

Category: Linux