Archive for July 18th, 2007

18
Jul
07

Hello script

1. Hello script: create hello.sh for your first script
#!/bin/bash
# Hello world script

echo “Enter your name > “
read username
echo “Hello $username”

2. You can run script by command: sh hello.sh
Or chmod +x hello.sh and type ./hello.sh

18
Jul
07

Ubuntu cdrom

1. Mount and unmount cdrom
Mount: sudo mount /media/cdrom0 -o unhide
Forcefully Unmount: sudo umount /media/cdrom0 -f

3. Create ISO file: mkisofs -r -o file.iso  /location_of_folder
Generate MD5 checksum file: md5sum file.iso > file.iso.md5
Check MD5 checksum of file: md5sum -c file.iso.md5

4. Mount and unmount iso file:
Mount :
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop

Umount:  umount /media/iso

18
Jul
07

Ubuntu ssh server

sudo apt-get install openssh-server

18
Jul
07

Ubuntu read and write NTFS partition

1. Install package:
sudo apt-get install ntfs-config

2. Run: Applications -> System Tools -> NTFS Configuration Tool

18
Jul
07

Update driver for Intel Graphic Controller

1. Install driver :
sudo apt-get install xserver-xorg-video-intel

2. Edit configuration file /etc/X11/xorg.conf
change : Driver “i810″ -> Driver “intel”

3. That all. If you want to have wonderful desktop, please test this:
sudo apt-get install beryl beryl-manager

18
Jul
07

Ubuntu Delete file in .Trash

When you delete one file, it’ll locate in ~/.Trash directory.
After a long time, please delete these file: rm -rf ~/.Trash