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
2009年6月23日 星期二
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日 星期四
install webmin
1.Get web deb package of ubuntu jaunty
#wget http://nchc.dl.sourceforge.net/sourceforge/webadmin/webmin_1.470_all.deb
2.Install webmin package
#dpkg -i webmin_1.470_all.deb
it will show some package lose
3.Fixed the dependence for webmin package
#sudo apt-get -f install
4.Confirm webmin web site status
http://localhost:10000
#wget http://nchc.dl.sourceforge.net/sourceforge/webadmin/webmin_1.470_all.deb
2.Install webmin package
#dpkg -i webmin_1.470_all.deb
it will show some package lose
3.Fixed the dependence for webmin package
#sudo apt-get -f install
4.Confirm webmin web site status
http://localhost:10000
2009年6月3日 星期三
create iso image from cd, dvd, scsi
1.create iso image from dvd
dd if=/dev/dvd of=dvd.iso
2.create iso image from cd
dd if=/dev/cdrom of=cd.iso
3.create iso image from scsi
dd if=/dev/scd0 of=cd.iso
dd if=/dev/dvd of=dvd.iso
2.create iso image from cd
dd if=/dev/cdrom of=cd.iso
3.create iso image from scsi
dd if=/dev/scd0 of=cd.iso
2009年6月2日 星期二
mount mdf image
1.Making a mount point
#sudo mkdir /media/mdf
2.mount mdf image
#sudo mount silver.mdf /media/mdf -o loop
#sudo mkdir /media/mdf
2.mount mdf image
#sudo mount silver.mdf /media/mdf -o loop
2009年6月1日 星期一
訂閱:
文章 (Atom)