Monday, 1. June 2009, 07:09:39
Thường thì các tệp tin để chạy chương trình cài đặt thêm ở /usr/bin /usr/local/bin. Để biết nó nằm ở đâu có thể mở terminal rồi gõ lệnh: (Ví dụ)
which opera
hoặc
whereis opera
** Search by package name:
apt-cache search namefile
**Search by pattern:
apt-cache search pattern
**Search by file name:
apt-file search path
**List installed packages:
dpkg -l
Để thêm vào menu thì vào System -> Preferences -> Main Menu rồi thêm chương trình.
* Search một file => Dùng câu lệnh:
locate <usrname file>
, Ví dụ search file fbdesk:
locate fbdesk
=>
locate fbdesk
/usr/bin/fbdesk
/usr/share/doc/fbdesk
/usr/share/doc/fbdesk/changelog.Debian.gz
/usr/share/doc/fbdesk/copyright
/usr/share/man/man1/fbdesk.1x.gz
/var/cache/apt/archives/fbdesk_1.4.1-3_i386.deb
/var/lib/dpkg/info/fbdesk.list
/var/lib/dpkg/info/fbdesk.md5sums
* Nếu cài bbdock gặp lỗi: configure: error: bbdock requires the X Window System libraries and headers
=> Phải tìm các gói xorg cài trươc, thương chỉ cần gói
sudo apt-get install xorg-dev
( libglu1-xorg-dev, xorg, xorg-dev, xserver-xorg, xserver-xorg-core (and 80 others)
* Restart lại gnome:
rm -rf .gnome .gnome2 .gconf .gconfd .metacity .config
* Các file ảnh thừong nằm ở đường dẫn này:
/usr/share/pixmaps
* Delete một thư mục:
sudo rm -fR ~/thư mục
* Tạo một thư mục:
sudo mkdir ~/thư mục
* Rời một thư mục đến thư mục khác:
sudo mv thư mục nguồn thư mục đích
* * Lệnh lấy key rồi add key của ubuntu:
a)
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com Số_hiệu_của_cái_key
b)
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys TENKEY&&gpg --armor --export 4D270D06F42584E6 | apt-key add
**Ghi đĩa(data,iso,audio,..):= Neroburn bên windows:
sudo apt-get install k3b
** Search xem một chương trình đó làm gì:
# apt-cache search ....
Ví dụ:
# apt-cache search idesk
==>
"fortunes-fr - French fortunes cookies idesk
- Program to show icons on the desktop"
**Install vlc-1.0.o-rc3:
sudo apt-get build-dep vlc
*** Xem dung luong fan vung:
fdisk -l ;
du -sh <forder>(vidu: du -sh /home/pht);
df <forder>
***Mở forder trên fluxbox:
Ví dụ:
nautilus /home