Skip navigation.

Posts tagged with "Khenyeu"

How to load Web site faster in Mozilla Firefox

URL: about:config


# Filter: -> 
network.dns.disableIPv6 -> true 
network.http.pipelining -> true 
network.http.pipelining.maxrequests -> 8 
network.http.proxy.pipelining -> true

Install Avast Antivirus in Ubuntu

- Download (.deb) về:
wget http://files.avast.com/files/linux/avast4workstation_1.0.6-2_i386.deb
- Cài vào máy:
sudo dpkg -i avast4workstation_1.0.6-2_i386.deb
- Đăng kí key free xong vào mail để lấy key: http://www.avast.com/eng/download-avast-for-linux-edition.html
- Khởi động chương trình: Applications—>Accessories—>avast.
........

How to use AVG 8.5

- Kích hoạt cho AVG hoạt động:
sudo avgctl --start
- Quét viruts:
avgscan -H /home/pht (avgscan -H /đường dẫn đến thư mục cần quét viruts)

avgscan --heur /
- Nếu muốn upgrade phiên bản mới:
sudo avgupdate -p 3
;
sudo avgupdate -p 4
** Để biết thêm =>
avgscan --help

Tùy chọn chung cho bộ OOo

Phần này bao gồm những thiết lập được áp dụng cho toàn bộ các chương trình của bộ OOo
và nó đặc biệt quan trọng trong việc sử dụng Writer.
- Tools/Options:
a) OpenOffice.org Writer
+ Ganeral: Chung
Cập nhật các liên kết và các trường, các đơn vị được dùng cho các thước và các đo lường khác, các đoạn chú
giải được tự động thêm vào các đối tượng được lựa chọn như các bảng hoặc các hình, khoảng
cách đoạn và trạng thái các bước tab.
+ Formatting Aids: Hỗ trợ định dạng
........

Install ClamAV

To install Clam Antivirus:

sudo apt-get install clamav
(Providing that your /etc/apt/sources.list file is up to date, you will get a good recent version of Clam antivirus installed on your machine.)

To update your virus definitions:

freshclam

To check files in your home directory:

clamscan

To check files in the entire home directory:

clamscan -r /home

To check files on the entire drive (displaying everything):

clamscan -r /

To check files on the entire drive but only display infected files and ring a bell when found:

clamscan -r --bell --mbox -i /
Hoac:
clamscan -r --bell -i /

Update:
sudo freshclam
Hoac,
sudo dpkg-reconfigure clamav-base


To help:
man clamscan

gnome2-globalmenu ( thanh panel giong MacOS)

Terminal:
deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
sudo apt-get update
sudo apt-get install gnome-globalmenu
Links: http://code.google.com/p/gnome2-globalmenu/wiki/InstallingonUbuntu

Stardict tren Ubuntu

1. Cai Stardict:(Gom 2 goi stardict va stardict-plugin
sudo apt-get install stardict stardict-plugin
=
sudo apt-get install stardict
va
sudo apt-get install stardict-plugin

2. Cai cac bo tu dien:(vi du theo link nay: http://stardict.sourceforge.net/Dictionaries_misc.php), no la file (*.rpm)
3. Cai goi alien: => De convert file(*.rpm)-->file(*.deb):
$sudo apt-get update 
$sudo apt-get install alien

4. Cach convert file(*.rpm)-->file(*.deb):
a) Chuyen den thu muc chua file (*.rpm) vua down ve:
Vi du:
$cd ~/Desktop (Vidu: cd /home/pht/Desktop) 
b) Bat dau convert file (*.rpm) sang (*.deb):
$sudo alien -k name-of-rpm-file.deb (Vidu: ~/Desktop$ sudo alien -d stardict-dictd_anh-viet-2.4.2-1.noarch.rpm) 

Error GPG Launchpad

W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 4874D3686E80C6B7

Ví dụ: Lỗi trên xuất hiện khi update OpenOffice từ 2.4 lên 3.0. Các khắc phục:Terminal gõ 2 dòng lệnh sau:
$ gpg --keyserver keyserver.ubuntu.com --recv-keys $KEY 
$ gpg --export --armor $KEY | sudo apt-key add -
Trong đó, $KEY là giá trị của khóa bị thiếu (ví dụ ở trên, thiếu 2 khóa 60D11217247D1CFF và 4874D3686E80C6B7).
Terminal:
$ sudo apt-get update

Tạo icons trên desktop fluxbox

1. Tạo thư m(.idesktop), nếu chưa có:
$ mkdir ~/.idesktop
2. Tạo file icons.lnk trong thư mục (.idesktop):
$ nano -w ~/.idesktop/name_of_icon.lnk( Ví dụ, $ nano -w /home/username/.idesktop/firefox.lnk)
3. Nhập mã sau vào file icon.lnk đó(firefox.lnk):
 table Icon    
  Caption: Mozilla Firefox    
  Command: firefox    
  Icon: /path/to/image/firefox.png( /usr/share/pixmaps/firefox-3.0.png)    
  X: 100    
  Y: 50  
end
4. Save file đó: Ctrl+O
=> Ok

Chưa nghĩ ra tên hợp lý

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
- Xem cạc màn hình VGA:
lspci | grep VGA

lspci -k | grep VGA
- Xem đã cài driver chưa:
glxinfo | grep render
- Hien Icons tren fluxbox
nautilus --no-desktop
December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31