Thursday, March 15, 2007

wine in Ubuntu


Running windows applications in Linux has become very much easy. Last time I tried it was not that easy and screen size of graphics application was not good... but that was more than 5 years ago. It is now just as simple as 2 steps:

1] sudo aptitude install wine
2] wine [name of application]

I tried about 3 applications and did not encountered any complications. A sample screenshot of Diablo II (one of the 3 applications I tested) in my Ubuntu Box is shown on the left.

Mirror copy of ftp site hourly

Creating a mirror copy of an internal website:

1] sudo aptitude install vsftpd
2] cd /etc/cron.daily
3] Create file named mirror with content
#Mirrors the 172.16.14.143 ftp server
cd /home/ftp
/usr/bin/wget -nH --mirror ftp://172.16.14.143 -o /root/mirror.log
4] chmod +x mirror

Thursday, March 08, 2007

Resizing Xserver screen to a larger size in Ubuntu

1] Edit /etc/X11/xorg.conf

2] Look for the line

SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection

3] Add the "1024x768" phrase. Example

SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection


Thats my quick fix. :) Sorry never tried dpkg-reconfigure. :)

Tuesday, March 06, 2007

Extracting the first 512 Bytes of the boot sector

dd if=[source] bs=512 count=1 of=[destination]

Example, I extracted the boot sector of Windows 2000. It was mounted on /dev/hda1 and save the boot sector on file named w2k.bs.

dd if=/dev/hda1 bs=512 count=1 of=w2k.bs

Sunday, March 04, 2007

Ubuntu 6.10 Server Minimal Installation

Install without LAMP or DNS server.

1] Install the xserver
sudo aptitude install xserver-xorg

3] install the fonts and xterminal
sudo apt-get install xfonts-* xterm

4] Edit /etc/apt/sources.list to use internet or local apt-proxy server enabling the universe repository for icewm commenting out the CDROM part.

5] install the icewm (the minimal windows manager), firefox browser and openoffice.org 2.0
sudo aptitude install icewm firefox openoffice.org2