Total Pageviews

Monday, October 18, 2010

error mounting in fstab boot error ubuntu

If unable to boot because of wrong entry in fstab for mounting any filesystem in Ubuntu Linux (may work for other *nix flavors too, not sure), eg: usb mounting, press "s" while booting (after screen struck up), which allows booting by escaping the mounting.

Tuesday, October 12, 2010

mounting freeNAS NFS on ubuntu

http://hardforum.com/showthread.php?t=1262438

apt-get install nfs-common on client system

mount -t nfs <192.168..>:/mnt/folder /mnt/folder

automatic mount on boot:
open /etc/fstab and entry:
<ip>:/mnt/<folder> <localfolder> nfs defaults 0 0

NOTE: in NFS server edit /etc/exports as below
/mnt/<folder name> -alldirs -mapall=root -network 192.168.5.0 -mask 255.255.255.0





make sure the authorised network is  same as ur network range; eg: 192.168.5.0

mouonting ssh file system:
http://www.ubuntugeek.com/mount-a-remote-folder-using-ssh-on-ubuntu.html

http://www.neowin.net/forum/topic/574196-setup-a-simple-nas-device/


https://help.ubuntu.com/community/SettingUpNFSHowTo

Friday, October 8, 2010

pure-ftpd mysql on ubuntu

NOTE: make sure PHP5, Mysql server are installed and also php5-mysql.


1. apt-get install pure-ftpd-mysql

2. Install User Manager: This is Optional

reference: Instructions in this link is simple and works perfectly.
http://www.howtoforge.com/virtual-hosting-with-pureftpd-mysql-on-ubuntu-8.10

e. Linux Commands reference: http://www.pixelbeat.org/cmdline.html
http://www.howtoforge.com/virtual-hosting-with-pureftpd-and-mysql-ubuntu-7.10

After installation:
1. Make sure to backup the existing mysql.conf to mysql_orig.conf.
2. pureftpd-mysql.conf -content to be copied to a file mysql.conf in /etc/pure-ftpd/db. 
3. restart the pure-ftpd : /etc/init.d/pure-ftpd-mysql restart
4. check ftp port (21) is open on the server 
It is OK to have FTP server on one box, My SQL on another box. In this scenario, the mysql.conf file need to be updated with IP address of the MYSQL server.

to restrict user in the home directory:
echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone



Monday, October 4, 2010

SMTP EMail for PHP On Ubuntu

installing pear package for php: apt-get install php-pear

Installing PEAR Mail for PHP On Ubuntu


sudo apt-get install php-pear

sudo pear install mail

sudo pear install Net_SMTP

sudo pear install Auth_SASL

sudo pear install mail_mime
start/stop/restart apache web server:
/etc/init.d/apache2 restart
/etc/init.d/apache2 start
/etc/init.d/apache2 stop