Sabtu, 26 Juli 2008

Kumpulan perintah linux ubuntu

Wesnoth
Select a character and make sure the cursor stays over the character. Put the game into debug mode:
":debug[enter]"
Now change the characters hitpoints and/or experience:
":unit hitpoints=1000[enter]"
":unit experience=250[enter]"
The first (hitpoints) is fairly safe, the second is risky if the character then gets upgraded to something that does not exist (this happens in a few of the optional downloads)
"$ apt-cache search wesnoth"
"sudo aptitude install nameofcampaign"

checking version of a program
"dpkg -l | grep ksnapshot"

unrar
"unrar x xxxx.rar"

mencari paket
"sudo apt-cache search"

Mengaktifkan account root:
" sudo passwd root"

Menonaktifkan account root:
" sudo passwd -l root"

Masuk root environtment:
" sudo -i"

Mengakses Nautilus sebagai root, dari terminal :
"sudo nautilus" atau "gksudo nautilus"

akses drive ntfs
" sudo mkdir /mnt/windows "
" sudo mount /dev/sda* /mnt/windows"
sda* adalah struktur dalam HDD, trus liat di /mnt/windows melalui file browser.
/dev/sda1 C
/dev/sda5 DataKosong
/dev/sda6 Data
/dev/sda7 Musik
/dev/sdb4 Ext3 Ubuntu
/dev/sdb5 GameStation
/dev/sdb6 Trian
/dev/sdb1 linux

menambah user, bisa menggunakan useradd atau adduser, saya lebih suka menggunakan adduser
"sudo adduser "

membuat folder
mkdir "nama folder"

menghapus folder
rmdir "nama folder"

deteksi hardware
"lshw" atau "lspci"

picture resizer (batch), ada program namanya "squash", dapetinnya
"sudo apt-get install squash"
tapi setelah di install ngga muncul di menu application, kudu ketik dari terminal
"squash"

mematikan komputer - shutdown
"shutdown now"

kalau mau pake timer
shutdown -h +30 ----- "+30"artinya akan shutdown sendiri setelah 30 menit

Tidak ada komentar: