Skip to content


How to install ubuntu lucid to hard drive Part 2

Post installation

After a successful installation and boot to the newly installed Ubuntu Lucid with out problem, now it’s time for the post-installation. You might consider to create a user if you want, login as root with your previous password:

To add a user and set a password for that user.

# adduser

Step 1. You will need to edit your hosts file

# vi /etc/hosts

127.0.0.0.1                localhost.localdomain  localhost

127.0.0.0.1                yourhostname

192.168.1.100           yourhostname.dotcom yourhostname

Change the 192.168.1.100 to fit your need.

Step 2. Re-create and reconfigure your file system table, this is quite tricky, I got three partition for on my hard drive for this installation method.

Name                Flags             Part Type        FS Type                    [Label]                 Size (MB)

——————————————————————————————————————————–

sda1                Boot               Primary         Linux ext3                                           5239.51

sda5                                   Logical         Linux ext3                                           4491.01

sda6                                   Logical         Linux swap / Solaris                                  509.97

so just create new file system for the partition to used as a cache directory for Squid Proxy purpose.

# mkfs.ext3 /dev/sda5

# mkdir -p /var/spool/squid (note: you will need this)

# mount /dev/sda5 /var/spool/squid

Now edit your /etc/fstab file

# vi /etc/fstab

You will see the fstab file content is nothing except “UNCONFIGURED FSTAB FOR BASE SYSTEM”,  find your UUID using blkid commmand

# blkid

/dev/sda1: UUID=”09dd88d5-251b-4c88-9643-3c2658fe3b50″ TYPE=”ext3″

/dev/sda5: UUID=”76835f78-cfee-4d52-a664-92bdf3d8a633″ TYPE=”ext3″

/dev/sda6: UUID=”b0f80d32-87d6-46f4-97b9-9aedd93334b6″ TYPE=”swap”

now enter those UUID without “quote” sign.

# vi /etc/fstab

#

proc            /proc           proc    defaults        0       0

UUID=09dd88d5-251b-4c88-9643-3c2658fe3b50      /       ext3    relatime,errors=remount-ro 0       1

UUID=76835f78-cfee-4d52-a664-92bdf3d8a633      /var/spool/squid        ext3  nodev,nosuid 0        2

UUID=b0f80d32-87d6-46f4-97b9-9aedd93334b6      none    swap    sw              0       0

Esc then :wq! press Enter

now type the command below to see the changes

# sudo mount -a

# sudo mount

/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)

proc on /proc type proc (rw)

none on /sys type sysfs (rw,noexec,nosuid,nodev)

none on /sys/fs/fuse/connections type fusectl (rw)

none on /sys/kernel/debug type debugfs (rw)

none on /sys/kernel/security type securityfs (rw)

udev on /dev type tmpfs (rw,mode=0755)

none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)

none on /dev/shm type tmpfs (rw,nosuid,nodev)

none on /var/run type tmpfs (rw,nosuid,mode=0755)

none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)

none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)

/dev/sda5 on /var

now edit your /etc/fstab file

After that reboot your system and pray hard

Then we will continue to setup our firewall and proxy server

Posted in Cyber Cafe, Linux, Networking, Open Source, Operating System, Tutorial, Ubuntu.

Tagged with , , , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.



Free counter and web stats