manac ham chơi

7 February, 2006

Tính mình hay wên, cứ ghi lại cho chắc ăn

Filed under: linux-unix — manac @ 8:45 am

lspci
lsmod
modprobe
*****************************
tắt tiếng beep ( fbsd )
For the bell try sysctl hw.syscons.bell=0.
*****************************
###xvnkb -A Vietnamese input keyboard for X-window ( fbsd )

# use xim module of gtk
export GTK_IM_MODULE=xim
# change locale to UTF-8, for example en_US.UTF-8
export LANG=en_US.UTF-8
# preload xvnkb core module
export LD_PRELOAD=/usr/local/lib/xvnkb.so.0.2.9

Command External csh(1) sh(1)
export No No Yes

****************************************

FC ( check package )

$for f in xorg-x11*.rpm; do echo “>>> RPM=$f”; rpm -qlp $f | grep bin | grep conf; done
——————————————————-
wget /path/to/\(name\).*

——————————–

gpg –keyserver subkeys.pgp.net –recv 580E2519969F3F57 && gpg –export –armor 580E2519969F3F57 | sudo apt-key add –

wget http://www.geole.de/fileadmin/data/misc/geole-apt-key.gpg && sudo apt-key add geole-apt-key.gpg
wget http://seerofsouls.com/keys/hawkwind.asc && sudo apt-key add hawkwind.asc
wget http://seerofsouls.com/keys/philip.asc && sudo apt-key add philip.asc

————————-

find -type f|xargs grep “xxx”

————————-

Downloading a whole directory from a site

wget -r -l0 –no-parent http://url/directorytodownload

$ wget -r --level=0 -k -a logfile http://www.yahoo.com

   Giải thích
   '-r --level=0'    nghĩa là download toàn bộ
   '-k'              nghĩa là chuyển các đường dẫn tuyệt đối thành tương đối
   '-a <filename>'   log file, search các lỗi 404 để biết link nào bị hỏng

example: wget -r l4 -np -nH http://abc.com/download/def/gh/
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: