1.remove trash file
#sudo rm -rf ~/.local/share/Trash
2.when logout to clean trash file
#sudo vim ~/.bashrc
add new lins to run command
sync; sync; sync
rm -rf ~/.local/share/Trash
2009年7月19日 星期日
2009年7月18日 星期六
how to install firefox3.5
1.modify apt-get repository
add two lines as below
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
2.import PPA GPG key
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
3.run command to install firefox35 or firefox36
sudo apt-get update && sudo apt-get install firefox-3.5
add two lines as below
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
2.import PPA GPG key
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
3.run command to install firefox35 or firefox36
sudo apt-get update && sudo apt-get install firefox-3.5
2009年6月23日 星期二
mount windows share folder
1.create mount point
#sudo mkdir /media/windows
2.mount point to /media/windows
#sudo mount -t cifs -o username=superman,password=super123 //172.16.1.1/share /media/windows
#sudo mkdir /media/windows
2.mount point to /media/windows
#sudo mount -t cifs -o username=superman,password=super123 //172.16.1.1/share /media/windows
2009年6月11日 星期四
ssh in debug mode
1.Use command to ligin debug mode with ssh server
#/usr/sbin/sshd -d
notice the sshd must be absolute path
it will show
debug1: sshd version......
debug1: read PEM Private key done.......
debug1: Checking blacklist file /usr/share/ssh.......
debug1: Checking blacklist file /etc/ssh/blacklist.......
debug1: private host key: #0 type 1 Rsa.....
#/usr/sbin/sshd -d
notice the sshd must be absolute path
it will show
debug1: sshd version......
debug1: read PEM Private key done.......
debug1: Checking blacklist file /usr/share/ssh.......
debug1: Checking blacklist file /etc/ssh/blacklist.......
debug1: private host key: #0 type 1 Rsa.....
2009年6月10日 星期三
check sshd syntax error
1.Run command to check syntax error
#sshd -t
if error occur, it will show message like below
/etc/ssh/sshd_config: line 1: Bad configuration option: Package
/etc/ssh/sshd_config: terminating, 1 bad configuration options
2.modify line error and run the command again
#sshd -t
#sshd -t
if error occur, it will show message like below
/etc/ssh/sshd_config: line 1: Bad configuration option: Package
/etc/ssh/sshd_config: terminating, 1 bad configuration options
2.modify line error and run the command again
#sshd -t
2009年6月7日 星期日
Use ssh method
1.Connect remote host use ssh login
#ssh -l tommy 192.168.1.38
#ssh tommy@192.168.1.38
2.accept authicate
3.enter your password for login user tommy
#ssh -l tommy 192.168.1.38
#ssh tommy@192.168.1.38
2.accept authicate
3.enter your password for login user tommy
2009年6月4日 星期四
訂閱:
文章 (Atom)