There is a better way installing ‘open-vm-tools’: 1. Adding ‘contrib’ and ‘non-free’ to ‘/etc/apt/sources.list’deb http://ftp.gb.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.gb.debian.org/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free
# apt-get update # apt-get install module-assistant open-vm-source open-vm-tools # module-assistant prepare # module-assistant build open-vm-source # module-assistant install open-vm-source # reboot
This is the blog about linux server and business English experience of my life.
Sunday, March 6, 2011
Installing VMware tools on lenny
Install WordPress on Debian Lenny
First, update your DNS and point blog.example.com to the server.# aptitude install mysql-server php5 wordpress
# chown :www-data /etc/wordpress/* # mkdir /usr/share/wordpress/wp-content/uploads # chown www-data:www-data /usr/share/wordpress/wp-content/uploads # chown -R www-data:www-data /usr/share/wordpress/wp-content/themes
Create /etc/apache2/sites-available/blog fileServerName blog.example.com DocumentRoot /var/www/blog.example.com/ AllowOverride All Order Deny,Allow Allow from all
Run the following commands:# a2ensite blog # /etc/init.d/apache2 reload # ln -s /usr/share/wordpress /var/www/blog.example.com # cd /usr/share/doc/wordpress/examples # sh setup-mysql -n blog blog.example.com
Now, access http://blog.example.com/ to continue the configuration of wordpress.
Thursday, January 20, 2011
Shell script for Monitering Mailman process
#----------------------------
# Monitering of mailman process
#----------------------------
unsent=`ls -l /var/spool/mailman/in/ | grep -v grep | grep -c ".pck"`
isAlive=`ps ax | grep -v grep | grep -c "mailmanctl"`
_host=`hostname`
_to=bogati@test.com
if [ $unsent -ne 0 ]; then
/etc/init.d/mailman restart > /dev/null 2>&1
/usr/sbin/sendmail -t <To: $_to
Subject: Mailman has been restarted.
Mailman has been restarted on $_host
EOF
elif [ $isAlive -eq 0 ]; then
/etc/init.d/mailman start > /dev/null 2>&1
/usr/sbin/sendmail -t <To: $_to
Subject: Mailman has been started.
Mailman has been started on $_host
EOF
fi
Wednesday, December 8, 2010
Add multiple email addresses to plesk server
■Create a list like below.# vi list 01@example.com,test123 02@example.com,test123 03@example.com,test123 04@example.com,test123 05@example.com,test123 06@example.com,test123 07@example.com,test123 08@example.com,test123 09@example.com,test123 10@example.com,test123
■Create mail add script in the server.# vi mailadd.sh #!/bin/bash for x in `cat list`; do MAIL=`echo $x | cut -d , -f 1` PASS=`echo $x | cut -d , -f 2` /usr/local/psa/bin/mail -c $MAIL -passwd $PASS -mailbox true done
■Check the list of email id and password.# vi mailchk.sh #!/bin/bash for x in `cat list`; do MAIL=`echo $x | cut -d , -f 1` PASS=`echo $x | cut -d , -f 2` expect -c " set timeout 60 spawn telnet 0 110 expect \"+OK\" ; send \"USER $MAIL\r\" expect \"+OK\" ; send \"PASS $PASS\r\" expect \"+OK\" ; send \"QUIT\r\" expect \"+OK\" ; send \"QUIT\r\" " done
If everything is ok run mailadd.sh . This is the very simple way to add more email id and password at once in Plesk server.
Saturday, November 13, 2010
Install fonts in CentOS
Nepali fonts# yum install scim-tables.i386 # rpm -ivh http://mirror.centos.org/centos/5/os/i386/CentOS/m17n-db-nepali-1.3.3-48.el5.noarch.rpm # rpm -ivh http://mirror.centos.org/centos/5/os/i386/CentOS/scim-tables-nepali-0.5.6-7.i386.rpm
Japanese fonts# yum install "@Japanese Support"
Hindi fonts# yum install "@Hindi Support"
Chinese fonts# yum install "@Chinese Support"
Subscribe to:
Posts (Atom)