Monthly Archives: May 2011

Ubuntu and Linux 3D

Seems like I lost these wallpapers, so I made them again :)

 

 

 

 

 

 

 

 

 

 

 

Moved to Virtual Machine

EEEpc is having some trouble with its fan so I have moved whole website to a Virtual Box Virtual Machine, Its nice :)

Now kiriyard.com is running on Virtual Dedicated Server rather than Dedicated Server !

Make SMB Drive accessible in terminal

I was thinking about backing up server regularly, but I wanted to backup it on remote server, so I thought how about accessing SMB drive (My Windows PC) through command line? I thought it would be easy to mount it with “smbfs”, but I was wrong. Because I was not able to transfer/create any file/folder, In short no write permission.

But I found the solution of it by Googling :)

Here are the steps to be done.

1. Know the local address of you computer of which HDD you want to mount, In my case it is 192.168.1.11

2. Make directory of any name (drive in my case).

sudo mkdir  /media/drive

3. First check if you can mount it or not.

 sudo mount -t smbfs //192.168.1.11/drive /media/drive

4. If its mountable then unmount it and  following is the step to make it Write enable.

 sudo mount -t smbfs //192.168.1.11/drive /media/drive -o uid=username,rw,owmask=0775

Here username is your username in ubuntu system (mostly admin not root).

6. Whats next? I made a shell script for that.

echo "It will mount smb location to /media/drive"
echo "Enter Option"
echo "1 to mount"
echo "2 to unmount"
echo "Enter Option"
read a
echo "Default Address 192.168.1.11"
if test $a -eq 1
then
cd /
sudo mount -t smbfs //192.168.1.11/drive /media/drive -o uid=username,rw,ownmask=0777
elif test $a -eq 2
then
sudo umount /drive
fi

I kept 777 permission, no reason for that !

7. Now if you want to backup your website regularly (only website path, not database), you can add following command in cron.

cp -rf /var/www /media/drive/backup_folder

In case you want to backup your SQL database regularly, I found a nice post.

http://www.noupe.com/how-tos/10-ways-to-automatically-manually-backup-mysql-database.html

Eeepc server

I have hosted this website kiriyard.com on my own Asus EEEpc 1005HA ! Some information about the server is listed below.

Server Configuration:

  • Model :Asus EEEpc 1005HA
  • Processor: Intel Atom N280 1.66 GHz
  • Ram : 2GB
  • HDD: 160GB
  • Internet Connection Speed : Upto 80 KBps (Yes slow one, yet fastest for home plan in India)

Software:

  • Ubuntu 10.10 Maverick Meerkat 32-bit
  • Apache 2
  • PHP 5.3
  • MySQL
  • Bind9
  • vsFTPd
  • openSSH
  • No mail servers, MX set to Google Apps
  • Tomcat
  • phpMyAdmin
  • ehcp (No need for single domain ).
  • TTYtter, it updates server “uptime” to twitter every 1 Hour on @kiriyard.

Things to be added in future:

  • irc server
  • openVPN
  • webDav
  • just that for now

If you have any questions related my server or configuring it, feel free to contact me on i@kiriyard.com



This post will be visible on Server page.

Looking at sky

I captured this photo while I was standing at railway crossing. It was nice look.

20110504-100753.jpg