command LINUX 2

Berikut akan dijelaskan beberapa perintah dasar yang mungkin kelak akan sering digunakan terutama oleh para pemula. Perhatian: pengetahuan akan perintah-perintah yang lain akan segera bertambah seiring dengan kemajuan Anda menguasai sistem operasi Linux ini.
Penjelasan masing-masing perintah akan dipersingkat saja dan untuk mengetahui lebih detail lagi fungsi-fungsi suatu perintah, Anda dapat melihat manualnya, misalnya dengan mengetikkan perintah man:
man adalah perintah untuk menampilkan manual dari suatu perintah. Cara untuk menggunakannya adalah dengan mengetikkan man diikuti dengan perintah yang ingin kita ketahui manual pemakaiannya.
Contoh:
$ man ls
Perintah di atas digunakan untuk menampilkan bagaimana cara penggunaan perintah ls secara lengkap.
Perintah-Perintah Dasar Linux
Sebagai panduan Anda, berikut adalah daftar perintah secara alfabet. Sebenarnya, Anda dapat saja menekan tab dua kali untuk melihat semua kemungkinan perintah yang dapat digunakan. Misalnya Anda ingin mengetahui perintah apa saja yang dimulai dengan huruf a, maka Anda cukup mengetikkan a lalu tekan tab dua kali!
Daftar Perintah Menurut Alfabet
& adduser alias bg cat cd chgrp chmod chown cp fg find grep gzip halt hostname kill less login logout ls man mesg mkdir more mount mv passwd pwd rm rmdir shutdown su tail talk tar umount unalias unzip wall who xhost + xset zip
&
Perintah & digunakan untuk menjalan perintah di belakang (background) Contoh:
wget http://id.wikibooks.org &
Perintah & dipakai dibelakang perintah lain untuk menjalankannya di background. Apa itu jalan di background? Jalan dibackground maksudnya adalah kita membiarkan sistem untuk menjalankan perintah sendiri tanpa partisipasi kita, dan membebaskan shell/command prompt agar bisa dipergunakan menjalankan perintah yang lain.
Lihat juga:
Silahkan lihat juga perintah bg dan fg.
adduser
Perintah adduser digunakan untuk menambahkan user.
Biasanya hanya dilakukan oleh root untuk menambahkan user atau account yg baru. Setelah perintah ini bisa dilanjutkan dengan perintah passwd, yaitu perintah untuk membuat password bagi user tersebut. Contoh:
# adduser udin
# passwd udin
Perhatikan bahwa semua perintah yang membutuhkan akses root, di sini saya tulis dengan dengan menggunakan tanda #, untuk memudahkan Anda membedakannya dengan perintah yang tidak perlu akses root.
Jika Anda menjalankan perintah adduser, Anda akan diminta memasukkan password untuk user yang Anda buat. Isikan password untuk user baru tersebut dua kali dengan kata yang sama.
alias
Digunakan untuk memberi nama lain dari sebuah perintah. Misalnya bila Anda ingin perintah ls dapat juga dijalankandengan mengetikkan perintah dir, maka buatlah aliasnya sbb:
$ alias dir=ls
Kalau Anda suka dengan tampilan berwarna-warni, cobalah bereksperimen dengan perintah berikut:
$ alias dir=ls -ar –color:always
Untuk melihat perintah-perintah apa saja yang mempunyai nama lain saat itu, cukup ketikkan alias saja (tanpa argumen). Lihat juga perintah unalias.
bg
Untuk memaksa sebuah proses yang dihentikan sementara(suspend) agar berjalan di background. Misalnya Anda sedang menjalankan sebuah perintah di foreground (tanpa diakhiri perintah & dan suatu saat Anda membutuhkan shell tersebut maka Anda dapat memberhentikan sementara perintah tersebut dengan Ctrl-Z kemudian ketikan perintah bg untuk menjalakannya di background. Dengan cara ini Anda telah membebaskan shell tapi tetap mempertahankan perintah lama berjalan di background.
Lihat juga perintah fg.
cat
Menampilkan isi dari sebuah file di layar. Contoh:
$ cat /nama/suatu/file
cd
Change Directory atau untuk berpindah direktori dan saya kira Anda tidak akan menemui kesulitan menggunakan perintah ini karena cara penggunaanya mirip dengan perintah cd di DOS.
chgrp
Perintah ini digunakan untuk merubah kepemilikan kelompok file atau direktori. Misalnya untuk memberi ijin pada kelompok atau grup agar dapat mengakses suatu file. Sintaks penulisannya adalah sbb:
# chgrp
chmod
Digunakan untuk menambah dan mengurangi ijin pemakai untuk mengakses file atau direktori. Anda dapat menggunakan sistem numeric coding atau sistem letter coding. Ada tiga jenis permission/perijinan yang dapat dirubah yaitu:
1. r untuk read,
2. w untuk write, dan
3. x untuk execute.
Dengan menggunakan letter coding, Anda dapat merubah permission diatas untuk masing-masing u (user), g (group), o (other) dan a (all) dengan hanya memberi tanda plus (+) untuk menambah ijin dan tanda minus (-) untuk mencabut ijin.
Misalnya untuk memberikan ijin baca dan eksekusi file coba1 kepada owner dan group, perintahnya adalah:
$ chmod ug+rx coba1
Untuk mencabut ijin-ijin tersebut:
$ chmod ug-rx coba1
Dengan menggunakan sitem numeric coding, permission untuk user, group dan other ditentukan dengan menggunakan kombinasi angka-angka, 4, 2 dan 1 dimana 4 (read), 2 (write) dan 1 (execute).
Misalnya untuk memberikan ijin baca(4), tulis(2) dan eksekusi(1) file coba2 kepada owner, perintahnya adalah:
$ chmod 700 coba2
Contoh lain, untuk memberi ijin baca(4) dan tulis(2) file coba3 kepada user, baca(4) saja kepada group dan other, perintahnya adalah:
$ chmod 644 coba3
Perhatian: Jika Anda hosting di server berbasis Linux, perintah ini sangat penting sekali bagi keamanan data Anda. Saya sarankan semua direktori yang tidak perlu Anda tulis di chmod 100 (jika Apache jalan sebagai current user (Anda)) atau di chmod 501 jika Apache jalan sebagai www-data atau nobody (user lain).
chown
Merubah user ID (owner) sebuah file atau direktori
$ chown
cp
Untuk menyalin file atau copy. Misalnya untuk menyalin file1 menjadi file2:
$ cp
fg
Mengembalikan suatu proses yang dihentikan sementar(suspend) agar berjalan kembali di foreground. Lihat juga perintah bg diatas.
find
Untuk menemukan dimana letak sebuah file. Perintah ini akan mencari file sesuai dengan kriteria yang Anda tentukan. Sintaksnya adalah perintah itu sendiri diikuti dengan nama direktori awal pencarian, kemudian nama file (bisa menggunakan wildcard, metacharacters) dan terakhir menentukan bagaimana hasil pencarian itu akan ditampilkan. Misalnya akan dicari semua file yang berakhiran .doc di current direktori serta tampilkan hasilnya di layar:
$ find . -name *.doc -print
Contoh hasil:
. /public/docs/account.doc
. /public/docs/balance.doc
. /public/docs/statistik/prospek.doc
./public/docs/statistik/presconf.doc
grep
Global regular expresion parse atau grep adalah perintah untuk mencari file-file yang mengandung teks dengan kriteria yang telah Anda tentukan.
Format perintah:
$ grep
Misalnya akan dicari file-file yang mengandung teks marginal di current direktori:
$ grep marginal
diferent.doc: Catatan: perkataan marginal luas dipergunakan di dalam ilmu ekonomi prob.rtf: oleh fungsi hasil marginal dan fungsi biaya marginal jika fungsi prob.rtf: jika biaya marginal dan hasil marginal diketahui maka biaya total
gzip
ini adalah software kompresi zip versi GNU, fungsinya untuk mengkompresi sebuah file. Sintaksnya sangat sederhana:
$ gzip
Walaupun demikian Anda bisa memberikan parameter tertentu bila memerlukan kompresi file yang lebih baik, silakan melihat manual page-nya. Lihat juga file tar, unzip dan zip.
halt
Perintah ini hanya bisa dijalankan oleh super useratau Anda harus login sebagai root. Perintah ini untuk memberitahu kernel supaya mematikan sistem atau shutdown.
hostname
Untuk menampilkan host atau domain name sistem dan bisa pula digunakan untuk mengesset nama host sistem.
Contoh pemakaian:
[user@localhost mydirectoryname] $ hostname
localhost.localdomain
kill
Perintah ini akan mengirimkan sinyal ke sebuah proses yang kita tentukan. Tujuannya adalah menghentikan proses. Format penulisan:
$ kill
PID adalah nomor proses yang akan di hentikan. Tidak tahu PID proses mana yang mau dibunuh? Cobalah bereksperimen dengan perintah:
ps aux | grep
less
Fungsinya seperti perintah more.
login
Untuk masuk ke sistem dengan memasukkan login ID atau dapat juga digunakan untuk berpindah dari user satu ke user lainnya.
logout
Untuk keluar dari sistem.
ls
Menampilkan isi dari sebuah direktori seperti perintah dir di DOS. Anda dapat menggunakan beberapa option yang disediakan untuk mengatur tampilannya di layar. Bila Anda menjalankan perintah ini tanpa option maka akan ditampilkan seluruh file nonhidden(file tanpa awalan tanda titik) secara alfabet dan secara melebar mengisi kolom layar. Option -la artinya menampilkan seluruh file/all termasuk file hidden(file dengan awalan tanda titik) dengan format panjang.
man
Untuk menampilkan manual page atau teks yang menjelaskan secara detail bagaimana cara penggunaan sebuah perintah. Perintah ini berguna sekali bila sewaktu-waktu Anda lupa atau tidak mengetahui fungsi dan cara menggunakan sebuah perintah.
$ man
mesg
Perintah ini digunakan oleh user untuk memberikan ijin user lain menampilkan pesan dilayar terminal. Misalnya mesg Anda dalam posisi y maka user lain bisa menampilkan pesan di layar Anda dengan write atau talk.
$ mesg y atau mesg n
Gunakan mesg n bila Anda tidak ingin diganggu dengan tampilan pesan-pesan dari user lain.
mkdir
Membuat direktori baru, sama dengan perintah md di DOS. a
more
Mempaging halaman, seperti halnya less
mount
Perintah ini akan me-mount filesystem ke suatu direktori atau mount-point yang telah ditentukan. Hanya superuser yang bisa menjalankan perintah ini. Untuk melihat filesystem apa saja beserta mount-pointnya saat itu, ketikkan perintah mount. Perintah ini dapat Anda pelajari di bab mengenai filesystem. Lihat juga perintah umount.
$ mount
/dev/hda3 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda1 on /dos type vfat (rw)
/dev/hda4 on /usr type ext2 (rw)
none on /dev/pts type devpts (rw,mode=0622)
mv
Untuk memindahkan file dari satu lokasi ke lokasi yang lain. Bila argumen yang kedua berupa sebuah direktori maka mv akan memindahkan file ke direktori tersebut. Bila kedua argumen berupa file maka nama file pertama akan menimpa file kedua. Akan terjadi kesalahan bila Anda memasukkan lebih dari dua argumen kecuali argumen terakhir berupa sebuah direktori.
passwd
Digunakan untuk mengganti password. Anda akan selalu diminta mengisikan password lama dan selanjutnya akan diminta mengisikan password baru sebanyak dua kali. Password sedikitnya terdiri dari enam karakter dan sedikitnya mengandung sebuah karakter.
pwd
Print working directory, atau untuk menampilkan nama direktori dimana Anda saat itu sedang berada.
rm
Untuk menghapus file dan secara default rm tidak menghapus direktori. Gunakan secara hati-hati perintah ini terutama dengan option -r yang secara rekursif dapat mengapus seluruh file.
Sekali lagi: Hati-hati dengan perintah ini!
rmdir
Untuk menghapus direktori kosong.
shutdown
Perintah ini untuk mematikan sistem, seperti perintah halt. Pada beberapa sistem anda bisa menghentikan komputer dengan perintah shutdown -h now dan merestart sistem dengan perintah shutdown -r now atau dengan kombinasi tombol Ctr-Alt-Del.
su
Untuk login sementara sebagai user lain. Bila user ID tidak disertakan maka komputer menganggap Anda ingin login sementara sebagai super user atau root. Bila Anda bukan root dan user lain itu memiliki password maka Anda harus memasukkan passwordnya dengan benar. Tapi bila Anda adalah root maka Anda dapat login sebagai user lain tanpa perlu mengetahui password user tersebut.
tail
Menampilkan 10 baris terakhir dari suatu file. Default baris yang ditampilkan adalah 10 tapi Anda bisa menentukan sendiri berapa baris yang ingin ditampilkan:
$ tail
talk
Untuk mengadakan percakapan melalui terminal. Input dari terminal Anda akan disalin di terminal user lain, begitu sebaliknya.
tar
Menyimpan dan mengekstrak file dari media seperti tape drive atau hard disk. File arsip tersebut sering disebut sebagai file tar. Sintaknya sebagai berikut:
$ tar
Contoh:
$ tar -czvf namaFile.tar.gz /nama/direktori/*
Perintah di atas digunakan untuk memasukkan semua isi direktori, lalu dikompres dengan format tar lalu di zip dengan gzip, sehingga menghasilkan sebuah file bernama namaFile.tar.gz
$ tar -xzvf namaFile.tar.gz
Perintah di atas untuk mengekstrak file namaFile.tar.gz
umount
Adalah kebalikan dari perintah mount, yaitu untuk meng-unmount filesystem dari mount-pointnya. Setelah perintah ini dijalankan direktori yang menjadi mount-point tidak lagi bisa digunakan.
# umount
unalias
Kebalikan dari perintah alias, perintah ini akan membatalkan sebuah alias. Jadi untuk membatalkan alias dir seperti telah dicontohkan diatas, gunakan perintah:
$ unalias dir
unzip
Digunakan untuk mengekstrak atau menguraikan file yang dikompres dengan zip. Sintaknya sederhana dan akan mengekstrak file yang anda tentukan:
$ unzip
Lihat juga perintah-perintah gzip dan unzip.
wall
Mengirimkan pesan dan menampilkannya di terminal tiap user yang sedang login. Perintah ini berguna bagi superuser atau root untuk memberikan peringatan ke seluruh user, misalnya pemberitahuan bahwa server sesaat lagi akan dimatikan.
# wall Dear, everyone….. segera simpan pekerjaan kalian, server akan saya matikan 10 menit lagi.
who
Untuk menampilkan siapa saja yang sedang login. Perintah ini akan menampilkan informasi mengenai login name, jenis terminal, waktu login dan remote hostname untuk setiap user yang saat itu sedang login. Misalnya:
$ who
root ttyp0 May 22 11:44
flory ttyp2 May 22 11:59
pooh ttyp3 May 22 12:08
xhost +
Perintah ini digunakan untuk memberi akses atau menghapus akses(xhost -) host atau user ke sebuah server X.
xset
Perintah ini untuk mengeset beberapa option di X Window seperti bunyi bel, kecepatan mouse, font, parameter screen saver dan sebagainya. Misalnya bunyi bel dan kecepatan mouse dapat Anda set menggunakan perintah ini:
$ xset b
$ xset m
zip
Perintah ini akan membuat dan menambahkan file ke dalam file arsip zip. Lihat juga perintah gzip dan unzip.

command LINUX

Sedikit pengetahuan dasar tentang perintah pada consol atau terminal di Linux, Mudah2an pada artikel ini memberikan sedikit manfaat dan wawasan baik untuk Rakha sendiri mupun untuk kita semua, amiin....
ya udah kita mulai aja ya..

Perintah # ls
Ingat perintah DIR di DOS?? Perintah ini sama dengan DIR, gunanya untuk menampilkan 'list' file di dalam directory. Perintah "ls" juga dilengkapi dengan flag tambahan yang bisa di lihat dengan mengetik :
#ls --help [menampilkan bantuan]
#man ls [man bisa juga diartikan manual, jadi manual ls]

Beberapa perintah ls yang umum adalah :
#ls -l [menampilkan informasi tambahan (l = long) ]
#ls -a [menampilkan hidden file (a = attribute) ]
#ls -la [andapun bisa menjawabnya sendiri bukan..??] :D

Perintah #Cat
cat atau concatenate dipakai untuk menampilkan dan menulis/membuat file, kira-kira sama dengan perintah TYPE di DOS.
Untuk menampilkan isi file ketik : "cat " Untuk membuat file ketik : "cat > " ketik isi file dan utk menyimpan, tekan CTRL+C atau CTRL+D kalau namafile sudah ada file tersebut akan ditimpa, jika kita ingin data ditambahkan kefile yang sudah ada ganti > dengan >>------> more
Menampilkan isi dari file, perlayar, tekan q untuk quit
#more jilid1.txt

Perintah #grep
Menampilkan semua baris yang mengandung pola yang diinginkan
#grep document jilid1.txt
akan menampilkan semua baris teks yang mengandung kecoak di file jilid1.txt

Perintah #man
UNIX help/manual, ketik : man untuk eksekusi.
#man pwd

Perintah #echo
echo dipakai utk menampilkan apa yang kita ketik di layar, seperti :
echo "saya belajar linux"
saya belajar linux

atau untuk membuat file, seperti :
#echo "biff n" > .profile

yang akan membuat file .profile di directory aktif yg berisi teks "biff n" atau menambah file isi file dgn mengganti > dengan >> = cp

copy, dipakai untuk mengcopy file.
#cp jilid1.txt jilid1.txt.backup
#cp jilid1.txt ~server/backup/jilid1.txt.backup

Perintah #mv
move, mengganti nama file atau directory
#mv jilid1.txt jilid1a.txt
#mv backup bak

Perintah #rm
remove, hapus file
#rm jilid1.txt ; hapus file jilid1.txt
#rm * ; hapus semua file di directory aktif (hati-hati!)

Perintah #cd
change directory, dipakai untuk pindah directory, sama dengan perintah CD di DOS
#cd /root
perhatikan bahwa di Linux yang digunakan adalah / (slash) bukan (backslash)

Perintah #mkdir
make directory, membuat directory/folder
#mkdir backup

Perintah #rmdir
remove directory, hapus directory, file-file dalam directory harus dihapus dulu sebelum menghapus directory.
#rmdir backup

Perintah #who
who digunakan untuk menampilkan user yang login ke system, hasilnya kira-kira sebagai berikut :
#who
root tty1 Dec 20 17:47
server tty2 Dec 20 17:48
server tty3 Dec 20 17:48
server ttyp0 Dec 20 18:43 (localhost)

pada baris pertama menunjukkan nama user yang login,
pada baris kedua menunjukkan terminal line yang digunakan,
pada baris ketiga menunjukkan waktu login
pada baris keempat menunjukkan domain atau IP asal mereka koneksi, jika kosong berarti mereka main langsung dari console.

Perintah #whoami
Bila anda lupa login sebagai siapa perintahnya : Siapakah Aku?
# whoami

Perintah #pwd
Tampilkan directory aktif, pwd = print working directory, perintah yang dipakai kalo saat jalan2, sudah gak tau mo pulang lewat mana
#pwd
/home/client

Perintah #ps
Menampilkan proses yang aktif
#ps
PID TTY STAT TIME COMMAND
87 2 S 0:00 -bash
88 3 S 0:00 -bash
1440 2 S 0:00 pico jilid2.txt
1443 3 R 0:00 ps

Perintah #ping
Mengecek host apakah 'up' utk istilah teknisnya silakan 'man ping'
#ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.1 ms

--- localhost ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
serverservices:~$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.1 ms

--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
serverservices:~$
Perhatikan bahwa localhost dan 127.0.0.1 adalah sama
127.0.0.1 adalah local loopback yang disediakan untuk testing.

Perintah #finger
Mencari informasi user
#finger
Login Name Tty Idle Login Time Office Office Phone
clientbug clientBug 2 Dec 22 01:10
clientbug clientBug 3 Dec 22 01:10
root 1 1:37 Dec 22 01:10

Perintah #telnet
Melakukan komunikasi dengan host lain melalui telnet protocol
#telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Welcome to Linux 2.0.34.
serverservices login: server
Password: r4h45a
Linux 2.0.34.
Last login: Tue Dec 22 01:13:52 on tty4.
No mail.

#telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 serverservices.com ESMTP Sendmail 8.9.0/8.9.0; Tue, 22 Dec 1998
03:52:51 +0800
helo darling
250 serverservices.com Hello client@localhost [127.0.0.1], pleased to
meet you
mail from: guest©serverservices.com
250 guest©serverservices.com... Sender ok
rcpt to: untukmu©seorang.jauh.disana
250 untukmu©seorang.jauh.disana... Recipient ok (will queue)
data
354 Enter mail, end with "." on a line by itself
Kukirim lagu dan salam rinduku
.
250 EAA01615 Message accepted for delivery
quit

Perintah #ftp
Menggunakan file transfer program
#ftp localhost
Connected to localhost.
220 serverservices.com FTP server (Version wu-2.4.2-academ[BETA-15](1) Wed
May 20 13:45:04 CDT 1998) ready.
Name (localhost:client): ftp
331 Guest login ok, send your complete e-mail address as password.
Password: server©k-elektronik.org
230-Welcome, archive user!
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>ftp juga bisa dilakukan dengan melakukan telnet ke port 21
#telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 serverservices.com FTP server (Version wu-2.4.2-academ[BETA-15](1) Wed
May 20 13:45:04 CDT 1998) ready.

Perintah #talk
Berbicara dengan user lain, misalnya client request talk ke root sbb:
#talk root atau
#talk root©server.com



[Waiting for your party to respond]
[Ringing your party again]
Di terminal root akan muncul pesan :

Message from Talk_Daemon@server at 10:00 ...
talk: connection requested by server@localhost.
talk: respond with: talk client@localhost

root harus mengetik talk server@localhost jika ingin menjawab request
talk client@localhost
[Connection established]
Tekan Ctrl+C untuk terminate connection.

Printah code
mkdir /mnt/Document_Sharing
mkdir /mnt/Download_Sharing
mkdir /mnt/my_music
chmod 777 /mnt/
mcedit /etc/fstab
//1.0.0.10/Document_Sharing /mnt/Document_Sharing smbfs username=server,password=server,uid=1000,gid=1000 0 0
//1.0.0.10/Download_Sharing /mnt/Download_Sharing smbfs username=server,password=server,uid=1000,gid=1000 0 0
//1.0.0.10/my_music /mnt/my_music smbfs username=server,password=server,uid=1000,gid=1000 0 0
echo "mount -a" /etc/rc.d/rc.local
mount -a
echo "client0....... ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
chmod 7755 /sbin/shutdown
chmod 7755 /sbin/reboot

Segitu dulu aja y..
Kalo ada kesalahan & kekurangan, mohon maafin Rakha, Soalnya rakha juga masi dalam tahap belajar.

struktur directory LINUX

Struktur Directory Linux

Pada struktur hirarki direktory linux, semua sistem file (file-file) berada pada satu root direktory ("/"). Dengan kata lain, direktori root berada pada puncak hirarki pada sistem operasi linux/unix. Lain halnya dengan sistem operasi windows yang memiliki beberapa diraktori dengan hirarki paling tinggi sesuai dengan partisi yang ada. Secara kasat mata, perbedaan tersebut dapat di gambarkan pada contoh di bawah ini :
Windows mempunyai format directory seperti ini:
C:\Document\Music\Kucing_Garong.mp3 (menggunakan slash terbalik "\" atau backslash)
Linux menggunakan format directory seperti ini:
/Document/Music/Kucing_Garong.mp3 (menggunakan slash "/")
Note!!
Di Linux, penggunaan huruf besar dan huruf kecil adalah hal yang berbeda(case sensitive), sedangkan di windows sama (not case sensitive).
/Document/Music/Kucing_Garong.mp3 tidak sama dengan /document/Music/Kucing_Garong.mp3
Penjelasan Singkat mengenai struktur directory linux.
"/" Root
Ini adalah root directory dari semua struktur directory yang ada.
/boot
/boot directory menampung semua file yang diperlukan untuk Boot termasuk Grub atau Lilo, kernel, initrd, system.map dan config config files lainnya.
/sys
Pada directory ini terdapat Kernel, Firmware dan semua file yang berhubungan dengan system.
/sbin
Berisikan System Binary dan System Admin yang berperan penting terhadap jalannya sistem operasi. Pengaturan pada file ini dapat mempengaruhi performace dari OS.
/bin
Mengandung program-program yang paling sering dieksekusi seperti cat, ls, cp etc. Beberapa program lain yang terdapat pada subdirektori ini adalah:
Program Shell
*bash
*sh
Program Manipulasi File
*tar
*echo
*vi
*grep
Program untuk mengurus proses
*kill
*ps
/lib
Mengandung file file library untuk semua binary yang di simpan pada /sbin dan /bin
/dev
Secara default folder dev (device) berisikan sistem file dan driver driver yang diperlukan untuk menjalankan harware. Device pada UNIX termasuk Block Device ataupun Character Device. Contoh dari Character Device adalah keyword, mouse dan serial port. Block Device termasuk floppy drive, CD-ROM, dan hard disk. Secara umum, file file yang terdapat pada subdirectori ini adalah:
*psaux (mengubungkan PS/2 mouse)
*modem (menghubungkan hardware modem)
*ttyS0 (serial port pertama)
*tty0 (virtual console pertama)
/etc
Berisikan file System Configuration seperti /etc/hosts, /etc/resolv.conf, nsswitch.conf, dan konfigurasi dasar atupun jaringan yang lainnya. Beberapa file dan direktori yang juga sering ditemukan adalah
* /etc/X11/ (direktori konfigurasi untuk X Window}
* profile (file konvigurasi environment)
/home
Merupakan directory home untuk semua user. Pada directory ini biasanya para user menyimpan personal filesnya dan juga personal setting seperti .profile.
/media
Merupakan directory untuk menampung data mount untuk media seperti CD-ROM, USB, Floppies etc.
/mnt
Merupakan tempat untuk mount file sistem sementara.
/opt
Biasa digunakan pada unix dan sun solaris untuk menampun paket software yang telah di install. Folder ini sendiri jarang digunakan pada keluarga linux.
/usr
Merupakan folder ang menampung data user.
/usr/sbin
Mengandung file, binary dari network dan system yang tidak terlalu penting
/usr/bin
Pada folder ini, semua perintah perintah yang tidak critical di simpan untuk user. Misalnya: /usr/bin/php untuk compile file php.
/usr/share
Menampung data yang di share
/usr/local
Mengandung data user dan sistem binary dan library library lain yang tidak terlalu critical.
/var
Directory var merupakan directory yang paling sering digunakan sebagai tempat mount sebagai filesistem yang terpisah dimana semua konten variable seperti logs, spool file untuk printer, crontab, mail, dan running process, serta lock files etc.
/tmp
Merupakan directory untuk menampung semua temporary file yang ada di bersihkan pada saat reboot system.
/var/temp
Sama halnya dengan /tmp, bedanya file di directory ini tidak di hapus /flush pada saat sistem melakukan reboot.

Gambar Struktur Directory Linux



Note:
Ini adalah gambaran secara umum struktur directory dari linux. Pada keluarga atau distro linux seperti Ubuntu, OpenSUSE, Mandriva etc, mempunyai struktur yang agak berbeda. Tapi sebagai referensi, struktur ini merupakan gambaran paling umum.


instalasi vektor linux™

Vector Linux 5

Information Center


Installation Guide

CONTENTS


1. System requirements
2. Preparing Harddisk Partitions
2.1 Tools for Windows/DOS
2.2 Tools for Linux
2.3 Vector Linux Included Tools
3. Obtaining Installation Media
3.1 Tools for Windows
3.2 Tools for Linux
4. Starting the Installation
4.1 Supported controllers
4.2 Direct ISO Install on a Windows Host
4.3 Direct ISO Install on a Linux Host
4.4 Bootable CDROM Install
4.5 Floppy and CDROM Install
5. Installation process step by step
6. Post-install configuration
6.1 Set up Lilo
6.2 Configure the System
7. Using the system for the first time
7.1 Login to VectorLinux
7.2 System administration
7.3 Create passwords and users
7.4 Reboot and Shutdown
8. Enjoy the fruits of your labor
9. Troubleshooting
10. Credits



Getting Started

Welcome to Vector Linux. A distro with two mottos:

  • When choices matter: this distro has a clear purpose, thus, contains the best, well integrated software for that task.
  • At the speed of light: only the unbloated software makes you feel sharp, and more productive.
To achieve that, Vector Linux releases several flavours called the Standard, SOHO, and Deluxe editions. Each flavour has a set of software, thus different flavours have their own hardware requirements to run smoothly. So make sure you have read the requirements for the flavour you are about to install before proceeding. The good news is, except for the software set and the requirements, the installation procedure for all flavours is basically the same.

Top


1. System Requirements

The accurate requirements can be found in the introductory documentation published with each flavoure. The following table list the reasonable requirements.

Item Standard SOHO Deluxe
Dynamite
Processor Pentium Pentium III Pentium III
Pentium
Memory 64 MB 196 MB 196 MB
64 MB
Hardisk (root) 1000-1500 MB 2000-3000 MB 2000-3000 MB
800-1000 MB
Hardisk (swap) 128 MB 512 MB 512 MB
128 MB
Hardisk (home) as needed as needed as needed
as needed
Video 800x600 pixels, 16 bits color 1024x768 pixels, 24 bits color 1024x768 pixels, 24 bits color
800x600 pixels, 16 bits color

Of course, you also need compatible keyboard, mouse, and CDROM. Other hardware components optional, such as network card, modem, sound card, cdwriter, DVD, printer, etc. Linux also supports modern USB devices including pen drives, digital cameras, and scanners.

Top

2. Preparing Harddisk Partitions

As you can see in the requirements, Vector Linux recomends three harddisk partitions with various size.

  • Root partition: this is the main partition to install the Linux and all software programs.
  • Swap partition: add this if you want virtual memory. It expand the capacity of actual memory (RAM), so you can run more programs at the same time.
  • Home partition: for keeping your data.
You may prepare these partitions prior the installation by using any partitioning programs (will be described later). It would be an easy process, but the difficult part is planning the partition layout of your harddisk, especially if you want to install this Linux alongside other operating systems (Windows, other Linuxes, etc).

When you buy a new computer, usually it has preinstalled Windows OS that occupies the entire harddisk (drive C:\). However, you may find out that most of the harddisk is unused (free) and going to be wasted. Fortunatelly, a big harddisk (say 40 GB) can be divided into smaller partitions (ten partitions of 4 GB each, for example). Each partition can be used for different purpose, thus you may install many operating systems on one harddisk, and boot one of them for an occasion (multibooting).

If you make more partitions, Windows OS automatically presents them as drive C:, D:. E:, etc. Linux uses different convention. Firstly, a computer may have many harddisks. Linux maps each of them as a device. For example:

  • /dev/hda : First Master IDE drive.
  • /dev/hdb : First Slave IDE drive.
  • /dev/hdc : Second Master IDE drive.
  • /dev/hdd : Second Slave IDE drive.
  • /dev/sda : First SCSI device.
  • /dev/sdb : Second SCSI device.
If you have only one IDE harddisk, it is almost certainly the /dev/hda. The second harddisk could be /dev/hdb or /dev/hdc, depends on where it is installed.

Next, each harddisk can be divided into four PRIMARY partitions. For the first harddisk (/dev/hda), they are mapped as /dev/hda1 .. /dev/hda4 respectivelly. But hey, wait, we want more than four partitions!

Unfortunatelly, four is a legacy limit you can do nothing about. The work around is, one of the primary partition (/dev/hda2 .. /dev/hda4) can be used as an EXTENDED partition. Inside the extended partition, you may create more LOGICAL partitions. The logical partitions are named /dev/hda5, /dev/hda6 and so on.

With that (hard on my logic) theory, let's get back to business. We need three partititions to install Vector Linux. So, if you use this harddisk entirelly for Vector Linux, a possible partitions layout is:

  • /dev/hda1 (primary): swap (128 MB)
  • /dev/hda2 (primary): root (1000 - 3000 MB)
  • /dev/hda3 (primary): home (500 MB and more)

If you want to install VL alongside Windows-OS, things became complicated because now we need more than four partitions. Here is the recomended partition layout:

  • /dev/hda1 (primary): Windows C:
    Windows (9x/NT/2000/XP,...) should be installed on the first primary partition.

  • /dev/hda2 (primary): Extended
    This partition is used to hold the logical partitions.

    • /dev/hda5 (logical) : Windows D:
      Use drive D: to store files you would like to share between Windows and Linux. You should format this partition as FAT32. Do not use NTFS.

    • /dev/hda6 (logical): swap
      then put Linux swap partition next.

    • /dev/hda7 (logical): / (root)
      Install VL here

    • /dev/hda7 (logical): /home
      This is for storing your data.

All right, that's the plan. Now we can start to actually create the partitions. In this case, we need two harddisk utilities for resizing and partitioning. Assume that the initial harddisk has one drive C: with Windows on it, and we want to multiboot it with Linux. The general steps are as follow:
  • It is always recommended that before any re-partitioning, you run a scandisk and defragmentation on the drive. Of course, you should also make a backup of your important files.
  • Use the resizing utility to shrink the drive C: (/dev/hda1), so you will have enough free space.
  • Use Windows compatible partitioning program to create /dev/hda2 and /dev/hda5.
  • Use any partitioning program to create /dev/hda6 through /dev/hda7.

You have several choices to accomplish that.

2.1 Tools for Windows/DOS

Partition Magic is a popular commercial product for non-destructively resizing, partitioning and formatting the partitions. The GUI interface makes it easy to use. Very recomended.

The free alternative is using Fips (resizing) and fdisk (partitioning). Fips is a free DOS program for non-destructive splitting of harddisk partitions. Using fips is beyond the scope of this document. However, the fips package comes with it's own extensive documentation (http://www.igd.fhg.de/~aschaefe/fips/), so please take the time to read it before attempting to resize or partition your drive with this method. Fips is provided on VL install CDROM. Meanwhile, fdisk is a standard tool on any DOS/Windows.


2.2 Tools for Linux

We recomend to use SystemRescueCd (http://www.sysresccd.org/). This is a live Linux system on a bootable cdrom that aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. For our purpose, it includes these needed programs:


2.3 Vector Linux Included Tools

The VL installation CDROM includes a resizing utility (GNU Parted) and partitioning utilities (fdisk and cfdisk). The install program provides friendly menu for them. So don't worry. If you have not prepared the partitions ahead of time using one of the tools mentioned above, you may use the provided tools during the install.

Top


3. Obtaining Installation Media

Each flavour of Vector Linux is distributed as an ISO file. The obtain it for installation, the steps are:

  • Download the the ISO image file (.iso) and the corresponding md5 checksum file (.md5).
  • You should check the image file before burning it to a CD, to make sure it has not been corrupted during download. For that, you need to do an "md5sum check", that means comparing the "fingerprint" of your image file (.iso) against the fingerprint stored in the checksum file (.md5).
  • Burn the image into a bootable CDROM using a cdwriter. Note that VL allows you to install the ISO file directly (see Install Methods after this), so this is an optional step.
If you don't have a good internet connection, or a cdwriter, you may order a well prepared CDROM from our store (http://www.vectorlinux.com).

3.1 Tools for Windows

You may download the ISO image and MD5 checksum using any web browser, FTP client, or download manager. However, some web browsers (Internet Explorer, for instance) have a tendency to rename .md5 files as .htm or .txt. You can just rename it back to .md5.

For integrity checking, download and unzip the GUI tool md5summer (http://www.md5summer.org/). Make sure you are using version 1.2.0.5 or above. The first time you run it, it asks permission to associate the extension .md5 with itself. If you agree, you just need to double-click on a .md5 file to check the integrity of the original file (as long as they are both in the same folder). Otherwise, you have to manually browse to the .md5 file within the md5summer interface, then click on the "Verify sums" button and select the .md5 file. If you get an OK for the VL .iso image file, you can proceed to burn it as a cdrom image.

There is another tool you could use (this one is command line driven):

  • Download the following file:
    http://theopencd.sunsite.dk/md5sum.exe
    or get it from here:
    http://www.etree.org/md5com.html

  • Put it into your system folder (c:\windows\command for Win95/98/ME or c:\winnt\system32 for NT/2K/XP). Alternatively, you can just put it in the same folder as the .iso and .md5 files. If you do that, though, it will not be available system-wide.

  • Open a DOS box by clicking the "Start" button, then "Run", there type "command" if you are using Windows 9x/ME or "cmd" if you are using Windows NT/2K/XP, and click "OK". You are now at what is called a "prompt". It's good to get used to it.

  • Go to the folder where the .iso and the .md5 files are located, for example:
    cd \download

  • Type the following command and then press enter:
    md5sum -c vl-5.0.iso.md5

    If the image is allright, you should get a "file is OK" message.

After that, you may want to burn the ISO image into a CDROM. For this, use the program that is provide by your cdwriter (e.g: Adaptech CD Writer, or Nero Burner).

3.2 Tools for Linux

Most Linux systems already have the tools. Here is how to do that on Linux console/terminal in three steps:

  • Downloading the ISO image and MD5
    nohup wget ftp://anymirror/path-to/veclinux-5.0/iso/vl-5.0.iso
    nohup wget ftp://anymirror/path-to/veclinux-5.0/iso/vl-5.0.iso.md5

  • Checking the integrity
    md5sum -c vl-5.0.iso.md5

  • Burning the ISO into a CDROM
    cdrecord -v fs=6m speed=4 dev=2,0 vl-5.0.iso.md5

Of course you can always use the GUI alternative like d4x, k3b, or xcdroast.

Top


4. Starting the Installation

To start the installation, there are two concerns. The first is about your harddisk controller. Today, there are three common controllers called IDE, SCSI and SATA. You must boot the installation using the kernel that support that controller. The second concern is which install method to use. Depends on the capability of the target computer, Vector Linux can be installed via one of these method:

  • Direct ISO File from a Windows host.
  • Direct ISO File from a Linux host.
  • Bootable CDROM.
  • Floppy disk and CDROM.

4.1 Supported controllers

VectorLinux supports and can be installed on systems using IDE/ATA hard disc controllers, which at the moment of this writing is the most popular ones in standard desktop systems. Other wellknown standard is SCSI controllers, but due to its high pricing, only common on high-end server systems. Meanwhile, the emerging standard is SATA (Serial ATA) controllers, which are being quickly incorporated by motherboards manufacturers.

If you are having difficulties using your SATA disks, make sure you have set the BIOS correctly. In a nutshell, set the BIOS to "Enhanced mode SATA only". This is counterintuitive, but it means use enhanced mode only on the SATA, not just use the SATA and turn off the PATA. If you set it to enhanced mode SATA+PATA, the kernel will lock as it tries to use an IDE driver for the SATA controller. Symptoms are the kernel hanging after detecting hda - hdd.

Please know the type of your harddisk controller, because it determines the kernel needed for installation. The default kernel supports IDE controller. Otherwise, you need to specify scsi or sata kernel during the install.

4.2 Direct ISO on a Windows Host

This is a new method that will save you a CDROM burning. Assume that you already have Windows running on the computer, and the partitions have been prepared as suggested before. Download the following files from Vector Linux FTP site (e.g: ftp://anymirror/pub/vectorlinux/veclinux-5.0)

  • The ISO file from one of iso directory (iso/, iso-soho/, or iso-dynamite/). Put it on top level directory (C:\ or D:\). Don't forget to check its integrity as explained before.
  • The next files should be placed into C:\loadlin
    • loadlin.exe
      Get it from “install/loadlin/” directory whithin the FTP site.
    • initrd.img
      Find it as “isolinux/initrd.img” whithin the FTP site
    • The kernel file that matches your system (ide, scsi, sata, adaptec)
      You may select one of them from “isolinux/kernel/” directory whithin FTP site.

Then proceed with the installation:

  • Shutdown Windows to DOS mode.
  • Type “cd C:\loadlin” (without quotes)
  • Type “loadlin ide root=/dev/ram rw initrd=initrd.img” (without quotes).

You should replace the “ide” with the name of the kernel that you downloaded earlier. The standard installation process will be started.

4.3 Direct ISO on a Linux Host

If you have another Linux running on the computer, this method will be easy. You need to download the following files into a directory (e.g: /home/download):

  • The ISO image file (vl, vlsoho or vldynamite).
  • vlinstall-iso
    Find it as “install/vinstall/vinstall-iso” whithin the FTP site
Now go to the text console (press Alt-F1) and login as root. Proceed as follow:
  • Switch to run level 2 (or 3 in Slackware/Redhat, etc)
    init 2
  • Go to the directory where you downloaded the files, i.e.: /home/download
    cd /home/download
  • Now, install using the ISO file
    ./vinstall-iso vl-5.0.iso

4.4 Bootable CDROM

Use this method if you already have the VL install CDROM, and your computer is capable to boot it.

First, you may need to change the boot order. Changing the boot order allows your system to boot from different devices like your hard drive, floppy drive, CD-Rom, etc.
When you select an installation method, you might have to set up your system to boot accordingly, to do this this, when your computer starts up, go to the BIOS options setup screen (1). There should be an option for boot order (general options are C drive, A drive, CD, etc). Choose which should boot first, save out of the screens and restart the computer. You can change the boot order back when you are done installing VL.

Note:
(1)
Not all systems use the Delete key to enter the BIOS. Some systems use one of the F# keys. Some use a combination of keystrokes. You should see which key during boot screen shortly after turning on your machine. Otherwise, check the manual for your hardware.

After the boot order is properly set, place the VL installation media in the drive and reboot the system. The boot process will give you a prompt. This is the chance for you to select the correct kernel that support your controller. If you have no SCSI nor SATA controller, simply press [enter] to use the default kernel (ide). Otherwise, type the kernel you want, e.g:

boot: scsi [enter]

That's it. The install procedure will be started.

4.5 Floppy Install

This method allows you to install Vector Linux using the VL CDROM (any flavour) and two floppy disks. You may have to use this method if:

  • The target computer cannot boot from the CD. If this is not correct, use the CDROM method instead.
  • The target computer is not running an operating system (Windows/Linux) yet. If it is, you may use the Direct ISO method instead.
Assume that you already have the the CDROM. You may use it to create the floppies on another Windows or a Linux host. Preparation on a Window HOST is as follow:
  • Insert the CDROM, assume on drive D:
  • Launch a dos prompt
  • Insert blank floppy #1, enter this command:
    cd D:\install\rawrite
    rawrite
    Enter source file name: D:\install\floppy\bare.i
    Enter destination drive: A
    The bare.i is an kernel image file that supports IDE controller. If you have SCSI controller, use the scsi.s instead.
  • Take out floppy #1, Insert floopy #2, enter this command:
    rawrite
    Enter source file name: D:\install\floppy\rootdisk.img
    Enter destination drive: A
On a Linux host, the preparation is as follow:
  • Launch a terminal
  • Insert the CDROM and mount it.
    mount /dev/cdrom /mnt/cdrom
  • Insert blank floppy #1, write the kernel image into it using this command:
    cat /mnt/cdrom/install/floppy/bare.i > /dev/fd0
  • Take out floppy #1, Insert floopy #2, enter this command:
    cat /mnt/cdrom/install/floppy/rootdisk.img > /dev/fd0
Bring the CDROM and the two floppies to the target computer.
  • Set the computer to boot from floppy
  • Insert the CDROM
  • Insert the floppy #1
  • Boot the computer
  • On the boot: prompt, press [enter]
  • After asked, replace floppy #1 with floppy #2
  • VL install screen will appear

Top


5. The Installation Process Step by Step

When you launch the installation process, after some initial start up messages, you'll be taken directly to the install screens.
Note that the images presented in this guide can refer to a VL version that is not the one you are installing, but the differences should be minimal, such as the name of the version and the amount of available applications.

  1. Start up – On the first screen you have four options:
    • Select the keymap to be used during the installation. You should select this menu for the first time if your keyboard in a non-US layout.
    • Start the installation. The main course.
    • Repair lilo (Linux Loader). This is a handy utility in case you have an installed Vector Linux, but somehow you cannot boot it because of corrupted LILO.
    • Exit. This will bring you to the Linux prompt. It might be required if something is going wrong with the installation and you are a kind of expert that able to fix it manually.



  2. Once you start the installation, the routine will look for the installation media in the following places:
    • Any harddisk partition that contains installation files (the same as VL CDROM)
    • Any harddisk partition that contains the ISO file in the top directory
    • CDROM drive
    If a media is found, it ask you to confirm. Select Yes to proceed, No to search another media.




  3. The next screen shows you the harddisk requirements of the soon to be installed flavour. If you've already set up your partitions, let's start the installatio directly. Otherwise you may modify the harddisk partition using the builtin tools. RESIZE menu is a simple front end for GNUParted. Meanwhile the FDISK menu will launch a menu driven partitioning program called cfdisk. Warning, do not proceed to the INSTALL menu if you don't have the required partitions.


  4. You are now presented with a list of the next steps the routine will perform, it goes through each of these steps in order.


  5. In the check-files screen, you may choose which files are to be verified for any damage or corruption. If you are confident enough about them you could skip the verification, but if the files are somehow damaged the installation will probably fail later.
  6. Now the routine will present you with any swap partition detected (it should have been prepared previously either in step 3 or before, using third party tools). Choose the one to use and select OK..
  7. The next step is to choose your root partition. This is the one where you want to install VectorLinux. You will have the chance to select a different partition for your /home directory later.
  8. Then select the filesystem you prefer for the root partition: reiserfs, ext3 or ext2.
    ext2 is the older Linux filesystem, reiserfs and ext3 are both newer and more robust journaling filesystems.
  9. Next, you can choose to use a different partition for your /home directory or use the same one that is used as root. The "/home" is where files that belong to users are to be stored, and "root" is where the Operative System´s files will be stored.

  10. The next dialog allows you to choose what bulk files to install. The bulk files are a compressed file of preinstalled, well-integrated packages. Among them, the veclinux.bz2 is the one that contains the basic support that will be required by other more specific applications. By installing these bulk files you lay the ground to add future applications with minimal fuzz.


  11. After that, you can choose individual applications to be installed according to your needs. Once you selected your applications, hit Enter to proceed.


  12. You are now ready to install VectorLinux to you system. You can review the choices you have made and go back and do some modifications, or you can select OK to continue installing VectorLinux.
    Once you hit OK, and the installation proceeds, it will format the partitions you selected for root and /home, and any information in them will be erased, so please verify everything before continuing.

The installation will take a little while, so you may sit down and relax or go and get some drink. The time the installation takes will vary depending on your system´s speed. After a while, the screen could go blank to enter in power saving mode. In that case, press [SHIFT] on the keyboard to get it back up. If you hit [enter] or [space] you could be inadvertently accepting a choice the routine might have reached.

After the installation is done, you will be required to do some basic configuration, as explained in Section 6.

Top


6. Post-Install Configuration

Once VL has been installed, a configuration screen is presented. This allows you to configure sound and video, set up your network connection if you have one, etc. This screen can also be accessed later using "Vasm" as root.

However, it is recommended that you DO NOT skip this configuration step at installation time.

6.1 Set Up LILO

You will be prompted to set-up “LILO”, the Linux Loader that boots the system.

Choose where to install lilo:

- the root partition (if you installed VL to /dev/hda2, this would install lilo to /dev/hda2)
- the MBR (master boot record) for the disk
- a floppy drive

If you have another boot manager that can point to your Linux partition, then you can install to the root partition where you installed VL. If you want Lilo to take over the boot process
entirely, install to the MBR of the disk. If you're not sure and you don't want to cause any problems, install to a floppy. Just make sure your computer's BIOS is set to boot from the floppy drive first. This is probably the safest (but slowest) method if you're worried about altering your existing configuration.

Choose to enable framebuffer or not. This option affects how the boot process looks, and the onscreen indications will let you know what option is best for you.

Add any additional parameter you need to boot you system. If your system didn´t require any special parameter to perform the installation, then leave this field empty.

If you have them, Lilo will detect the partitions and Operative Systems in you hard disk and allow you to select which ones you want to be present in you boot menu.

After you've installed VL, you can change the lilo configuration by using "vasm" as root, which will bring up the configuration screen again, or, also as root, you can edit the
/etc/lilo.conf file by hand. After editing the file, be sure to issue the following command as root: /sbin/lilo. This will commit the changes to the lilo bootloader.


6.2 Configure the System

Once Lilo is installed, the next steps are to configure this new system. On some circumstate (e.g: when you are installing with ISO-File on a Linux Host), it is not safe to perform the configuration. In this case, you may reboot the system. The configuration will be continued later.

The first screen shows the configuration steps, and allows you to choose which ones are to be performed. The wise decision is to select them all, unless you have experienced some problem with the suspicious step before. Thus you are walked through a series of screens to configure the keyboard, auto setup the basic hardware, select network settings, set the video, sound, and time zone. The configuration will try to detect most of the settings. So this would be easy.

On the last step, the configuration ask you to change the root (superuser) password and add the first ordinary user. Please don't skip this step for your own security. On any Operative System, working daily as root is not advisable, so you should set up a normal user and use that for normal tasks and resort to root only for administering the system.

When this is done, you simply press “OK” to restart the system and boot into VectorLinux for the first time.

Top


7. Using the system for the first time

7.1 Login to VectorLinux

When you boot into VectorLinux, you will get six text consoles, and if you enabled it, one GUI desktop. You may switch between them by pressing [Alt]-[F1] through [Alt]-[F7] on the keyboard. You will be asked for a username and password. If you did not change the root´s password during installation you should use root as username and leave the password empty. Otherwise, use the name and password of the account you created earlier.

If your system has not running a GUI system yet, but you want it, you may login into a console as ordinary user, then type:
 user:$ startx
Alternatively, you can launch the GUI login mode by switching runlevel into 4 or 5. Please login as root on the console, then type:
 root:# init 4


7.2 System Administration

If you want to further configure your system, you can launch VASM (Vector Administration and System Menu) as root:

   root:# vasm

This will bring you a menu that enable you to set many basic configuration from administering the user to setting up the file system. The common menu are the ones you have been performed during the installation. Some others are able to configure more advance settings, you might be interested in:

  • USER: add more users, also delete some.
  • X-WINDOW: change various GUI settings, including to switch window manager and GUI login manager.
  • SERVICE: set background services such as samba, printing, web server, and more.
  • NETWORK: you may add more network card, set modem and wireless, also enable simple firewall and internet sharing.
  • HARDWARE: most of this have been performed during install. You may redo it again if you add a new hardware.
  • FILESYSTEM: allows you to add more partitions.
By the way, you can run VASM on console (text mode) as well as on the GUI. If you launch VASM as an ordinary users, it presents only a limited menu, but allows you to switch into superuser mode.

7.3 Reboot and Shutdown

There are many ways to reboot the system, including

- From a console (not GUI) press Ctrl-Alt-Del
- From a console or GUI terminal, type "reboot"
- From a GUI windows manager, choose "reboot" menu.

Meanwhile, to turn off the system, you may:

- Type "halt" or "poweroff" from a console.
- Select "shutdown" menu from a windows manager if available.

Top


8. Enjoy the fruits of your labor

Please join our message forum as you can get great information and help there to enhance your VectorLinux experience (http://www.vectorlinux.com/forum/).

Top


9. Troubleshooting


Error type 1:

installation gives you a message saying that it can't find the vector bz2 kernel and / or saying that /dev/xxxx is not a valid block device.

This error usually appears when you have more than one optical drive (CD / CD-RW / DVD) and you are trying to install Vector from the second unit. Move the installation CD to the first drive.

Error type 2:

Installation halts or does not start properly after a seemingly correct installation or you get messages about CRC errors during install

That kind of issue often suggests file corruption during download or a faulty burning process.

The first thing to do, if you haven't already done so, is to check the .iso file for corruption; please refer to section 3 of this manual. If the .iso file passed the mdsum integrity check , then you could try burning the file at a slower speed or use a different brand of media.

Remember to burn as a cd image, not as a conventional file!

Error type 3:

You get one of these two messages:

Kernel Panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing.

or

Error! There was a problem!
Code: 39 36 75 03 5b 5e c3 5b 89 f0 31 c9 ba 03 00 00 00 5e e9 cb
Installation not complete
Please press enter to activate this console

Those errors are usually related to old hardware, and It could mean that you need to pass some commands to the boot process.

Some commands you may try are:

linux mem=16M (replace 16 with the correct amount of memory in your PC)
linux ide=nodma (disable udma access, for old hard drives)

These commands disable power management, Notebooks often require them:

linux noacpi
linux noapm
linux pci=noacpi
linux acpi=off
linux apm=off

Error type 4:

Your SCSI or SATA hard drive is not available to install VL on it.

The required driver for you SCSI card is not being loaded, and therefore your disks are not seen by the install routine.

Error type 5:

Installing from CD-ROM fails with this error: "mount: /dev/scd7 is not a valid block device"

Your CD-ROM or CD-RW requires scsi emulation. When the installation greets you with the first prompt (where it says "boot:" at the bottom left) you should type :

ide hdx=ide-scsi

(where x is your cd-rom unit).

If that doesn't work restart and try writing

scsi hdx=ide-scsi

(where x is your cd-rom unit).

Note: The Linux Kernel 2.6.x treats CD-Rx drives in a different way than previous kernels, so this problem shouldn´t arise, it is still mentioned here for the record.

 
FaceBlog © Copyright 2009 vector linux™ | Blogger XML Coded And Designed by Edo Pranata