STORY of AODDY. » Archive of 'Oct, 2007'

Secure shell not authorization.

Initial Key Generation

1. Run ssh-keygen :
zyzgy:/home/dogbert> ssh-keygen

Initializing random number generator…
Generating p: .++ (distance 8 )
Generating q: .++ (distance 8 )
Computing the keys…
Key generation complete.
Enter file in which to save the key (/home/dogbert/.ssh/identity):

2. Press the “Enter” or “Return” key
3. For the next 2 prompts, enter the passphrase you want to use.
(for passwordless authentication, press the “Enter” or “Return” key)
Enter passphrase:
Enter the same passphrase again:
Your identification has been saved in /home/dogbert/.ssh/identity.

Read more »

Basic Shell script programming.

Basic Shell script programming.
1. Variable
You can set value for variable are :

bash-2.05$ a=”SHELL SCRIPT”
bash-2.05$ echo $a
SHELL SCRIPT
bash-2.05$ b=9
bash-2.05$ echo $b
9
bash-2.05$ echo ${b} <- You much use ‘{‘ and ‘}’ for make sure when you use variable.
9

Read more »

99 Commands the Windows XP Command prompt can run.

Here is a list of commands that you can run off from the Run Command prompt
in XP:

Go to Start Menu > Run. and type in the command to run
undefined

Read more »

HANDY ONE-LINERS FOR SED (Unix stream editor)

HANDY ONE-LINERS FOR SED (Unix stream editor) Apr. 26, 2004
compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.4
Latest version of this file is usually at:

http://sed.sourceforge.net/sed1line.txt
http://www.student.northpark.edu/pemente/sed/sed1line.txt

This file is also available in Portuguese at:

http://www.lrv.ufsc.br/wmaker/sed_ptBR.html

Read more »

How to restart network on Ubuntu.

อ่า ครับพี่น้องหลังจาก ที่ห่างหายไปนาย อันสืบเนื่องมาจากผม ย้ายงานมาที่ใหม่ แล้วต้องมาหมกหมุ่น อยู่กับ อุปกรณ์พวก router , switch อยู่ซักพัก ละวันนี้ก็ถือเป็นโอกาสอันดีที่ จะได้มาเขียนอะไรที่อยากเขียน บ้างก็ตามหัวข้อเลยครับ เวลาเราต้องการที่จะ restart network บน ubuntu เราสามารถใช้ command ได้ดังนี้ครับ

# sudo /etc/init.d/networking restart

จาก : http://www.cyberciti.biz/faq/ubuntu-restart-start-stop-networking-service-howto/

Getting Yesterdays or Tomorrows day with shell date command.

อ่า ฮ้าาา ไปเจอมาครับพี่น้อง มันเจ๋งมากเลย เมื่อก่อนกว่าผมจะหาได้ว่า เมื่อวานเป็นวันที่ไหร่ พรุ่งนี้เป็นวันที่เท่าไหร่ ผมต้อง ไปพึ่ง script ของคนอื่น ซ่ะเยอะเลยทีเดียว แต่มาวันนี้ผม ค้นพบ สิ่งที่ง่าย กว่าและรวดเร็วกว่า ครับ มันอยู่ใน bash shell ดีๆ นี่เอง มาดูตัวอย่างดีกว่า ครับ

Read more »

How to write file when you mount ntfs disk on Ubuntu.

อ่า กลับมาอีกครับ กับการใช้งาน Ubuntu วันนี้ปัญหาเกิดจากผมต้องทำการ Write file ไปยัง External Hardisk แต่ไอ้เจ้า Harddisk ดังกล่าว มันเป็นไฟล์ชนิด NTFS เวลาเราเอา USB ไปเสียบมันก็จะ mount ได้เหมือนกันครับ แต่ เราจะสามารถแค่ อ่านไฟล์ได้เท่านั้นเราจะไม่สามารถที่จะ write ไฟล์เข้าไปยัง Harddisk นั้นได้ มันจึงเป็นที่มาของ บทความบทนี้

มาเริ่มกันเลยครับผม

Read more »

How to updating driver for gigabit network card [Broadcom TG3:netXtream] on fedora core 4.

This is detail of how to updating driver for gigabit network card
[Broadcom TG3:NetXtreme] on fedora core 4.

1. Download kernel-devel-2.6.11-1.1369_FC4.i686.rpm from :
ftp://ftp.riken.jp/Linux/fedora/core/4/i386/os/Fedora/RPMS/
kernel-devel-2.6.11-1.1369_FC4.i686.rpm

2. Install new kernel-devel

# rpm -ivh kernel-devel-2.6.11-1.1369_FC4.i686.rpm

3. Download Broadcom TG3 NetXtreme driver from :

http://www.broadcom.com/docs/driver_download/570x/linux-3.71b.zip

Read more »

How to allow user for ssh.

Add this line in file : /etc/pam.d/sshd

auth required pam_listfile.so item=user sense=allow \ file=/etc/ssh/ssh_users_allowed onerr=fail

Add user system on file : /etc/ssh/ssh_users_allowd

aoddy

OK, it’s complete.

การติดตั้ง VMWare Server บน Ubuntu 7.04

เฮ้อออ ทำยากทำเย็น ก็เลยเอามาเล่าให้ฟังครับ

ก่อน ที่จะทำอะไรก็เราก็ต้องทำให้ เครื่องของเรามี Environment ที่จะสามารถติดตั้ง VMWare ได้ก่อน โดยทำดังนี้

#sudo aptitude install linux-headers-`uname -r` build-essential

#sudo aptitude install xinetd

ช่วงที่เรารอก็ไป Download File ที่เราจะ install มาก่อนที่
http://www.vmware.com/download/server/

Read more »

© 2008 STORY of AODDY. is powered by WordPress