Wednesday, November 26, 2008

Useful Gentoo commands

Ada beberapa tambahan command yang berguna untuk gentoo linux installation

1. possible USE variables:

 # nano -w /usr/portage/profiles/use.desc

2. walkthrough untuk instalasi linux bisa dilihat di http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1

3. instalasi cups : merupakan printer manager untuk linux

 # emerge cups
# rc-update add cups default

4. pointing kernel → buat yang belum tau.. karena saya juga baru tau :p

 # cd /usr/src
# ln -sfn [linux kernel] linux

5. merubah jam dan tanggal system:

 # date MMDDhhmmYYYY [MM:2 digit month ; DD:2 digit date ; hh:2 digit hour ; mm:2 digit minutes ; YYYY:4 digit year]

6. compile linux kernel:

 # cd /usr/src/linux
# cp .config /tmp
# make distclean
# cp /tmp/.config .
# make menuconfig -> exit -> save
# make -j9 cc=distcc -> -j[n] : n merupakan nominal pembagi proses

7. mengganti ip address di linux secara konsole:

 # ifconfig eth[n] [ip baru] netmask [netmask]
# /sbin/route add -net default gw [gateway baru]
# /sbin/route -n

8. cek package-dependancies di gentoo

 # equery --help
Usage: equery command

where is one of:
-q, --quiet - minimal output
-C, --nocolor - turn off colours
-h, --help - this help screen
-V, --version - display version info
-N, --no-pipe - turn off pipe detection

where command(short) is one of:
belongs(b) files... - list all packages owning files...
changes(c) - not implemented yet
check(k) pkgspec - check MD5sums and timestamps of pkgspec's files
depends(d) pkgspec - list all direct dependencies matching pkgspec
depgraph(g) pkgspec - display a dependency tree for pkgspec
files(f) pkgspec - list files owned by pkgspec
glsa(a) - not implemented yet
hasuse(h) useflag - list all packages with useflag
list(l) pkgspec - list all packages matching pkgspec
size(s) pkgspec - print size of files contained in package pkgspec
stats(t) - not implemented yet
uses(u) pkgspec - display USE flags for pkgspec
which(w) pkgspec - print full path to ebuild for package pkgspec

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)