Tag: *nix’

วิธีเปิดใช้งาน Network ใน Single Mode บน Fedora

 - by NAzT

 

ขั้นแรก switch มาที่  single mode ก่อน โดยสั่ง  init 1    พอเข้ามาแล้วสั่ง ifconfig  แบบในรูป

 

init-1

init-1

จะเห็นว่าตอนนี้มันมี lo อยู่อันเดียว ตอนนี้จะลองออกคำสั่ง ping together.in.th ดูก็ได้ มันจะขึ้นว่า  unknown host ไม่ต้องแปลกใจ หรือตกใจเพราะว่ามันยังไม่ได้เชื่อมต่อกับ internet 

 

แล้วเราก็ลองดู เดิม ด้วยคำสั่ง  cat /etc/sysconfig/network-scripts/ifcfg-eth0

eth0  ก็คือพวกแลนอะถ้ามีแลนช่องเดียวก็อาจจะมีแค่ eth0   ดังรูป Read this article »

วิธีติดตั้ง Webserver บน Mandriva Linux

 - by NAzT

Webserver บน Mandriva Linux

ขั้นแรกพิมพ์ urpmi apache เพื่อติดตั้ง apache

service httpd start เพื่อสั่ง start apache daemon

chkconfig httpd on เพื่อสั่งให้รัน service นี้ทุกครั้งที่เปิดเครื่อง

ส่วน ต่างๆน่าจะอยู่ที่ httpd.

set Document Root ได้ที่นี่แหละ เช่น

DocumentRoot /var/www/html

วิธีติดตั้ง Packages ต่างๆบน Mandriva Linux

 - by NAzT

NAzT

#mandriva webserver , apachehttp://expert.mandriva.com/question/27893
19 hours ago reply | block NAzT
NAzT
#mandriva **** OPEN-SSH SERVERhttp://expert.mandriva.com/question/27501
19 hours ago reply | block NAzT
NAzT
#mandriva setting up telnet service/daemonhttp://expert.mandriva.com/question/49763
19 hours ago reply | block NAzT
NAzT
#mandriva urpmi pine
21 hours ago reply | block NAzT

Related Blogs

วิธีการติดตั้ง Telnet & SSH Server บน Ubuntu

 - by NAzT

การติดตั้ง Telnet Server

sudo apt-get install telnetd

sudo /etc/init.d/openbsd-inetd restart

 

ถ้าไม่ได้ ก็ลอง    sudo /etc/init.d/inetd restart ติดตั้ง SSH Server

sudo apt-get install openssh-server openssh-client

 

เท่านี้ก็จะทำงานได้เลย 

 

Option เสริม ข้างล่าง นี้

sudo /etc/init.d/ssh stop

sudo /etc/init.d/ssh start

 

Related Blogs

วิธีติดตั้ง Telnet & SSH Server บน Mandriva Linux

 - by NAzT

ขั้นแรก ให้ switch user ไปเป็น root ก่อน ซึ่งเป็น super user 

[open@localhost ~]$ su

Password:             

[root@localhost open]# 

ขั้นที่ 2 ลองทดสอบว่า เครื่องเรามี ssh server ทำงานอยู่รึเปล่า

 

[root@localhost open]# ssh localhost

ssh: connect to host localhost port 22: Connection refused

จะเห็นได้ว่าไม่สามารถ connect มายัง port 22 ซึ่งเป็น port ของ secure ได้ แสดงว่า ssh-server ไม่ได้ทำงานอยู่
ขั้นที่ 3  ให้ติดตั้ง telnet-server ก่อน ด้วยคำสั่ง urpmi 
[root@localhost open]# urpmi telnet-server แล้วถ้าได้แบบข้างล่างนี้ ให้ตอบ Y ไปเลย

 

[root@localhost open]# urpmi telnet-server

To satisfy dependencies, the following packages are going to be installed:    Package                        Version      Release       Arch (medium “Main”)   telnet-server-krb5             1.6.3        6mdv2009.0    i586   xinetd                         2.3.14       9mdv2009.0    i586 395KB of additional disk space will be used. 161KB of packages will be retrieved. Proceed with the installation of the 2 packages? (Y/n) y       $MIRRORLIST: media/main/release/telnet-server-krb5-1.6.3-6mdv2009.0.i586.rpm     $MIRRORLIST: media/main/release/xinetd-2.3.14-9mdv2009.0.i586.rpm installing telnet-server-krb5-1.6.3-6mdv2009.0.i586.rpm xinetd-2.3.14-9mdv2009.0.i586.rpm from /var/cache/urpmi/rpms Preparing…                     #############################################       1/2: xinetd                #############################################       2/2: telnet-server-krb5    #############################################  
ขั้นที่ 4 ติดตั้ง openssh-server

[root@localhost open]# urpmi openssh-server

Package openssh-server-5.1p1-2mdv2009.0.i586 is already installed

  ขั้นที่ 5 แก้ไขไฟล์ /etc/xinetd.d/telnet จะแก้ด้วย vi , nano , pico ก็ตามสะดวกได้เลย มองหาบรรทัดที่เขียนประมาณว่า DISABLE = YES ประมาณนี้ให้เป็น NO (

 [root @localhost open]# vi /etc/xinetd.d/telnet

  ขั้นที่ 6 สั่ง start service (จะสังเกตเห็นว่า Stop xinetd FAILED เพราะ ก่อนหน้านี้มันไม่ได้ start อยู่)  

[root@localhost open]# service xinetd restart

Stopping xinetd                                                 [FAILED]

Starting xinetd                                                 [  OK  ]

  ขั้นที่ 7 สั่งให้ ssh daemon ทำงานทุกครั้งที่เปิดเครื่อง  

[root@localhost open]# chkconfig sshd on

  ขั้นที่ 8  สั่งให้ ssh daemon ทำงาน ด้วยคำสั่ง  service sshd start (สั่ง start service)

[root@localhost open]# service sshd start

Starting sshd:                                                  [  OK  ]

   

 

ขั้นสุดท้ายลอง ssh localhost ดู ว่าได้ไหม …

 

[root@localhost open]# ssh localhost

Warning: Permanently added ‘localhost’ (RSA) to the list of known hosts.

root@localhost’s password:

 

 

ถ้าได้แบบนี้แปลว่าได้แล้ววว :)

Related Blogs

    ปัญหา Wireshark มองไม่เห็น Interface

     - by NAzT
    ใครที่ใช้ บน linux, ทั้งหลาย  
    ไม่ว่าจะเป็น mac osx , ubutu , mandriva หรือ fedora  เป็นต้น  
    ก็คงจะพบกับปัญหา แบบรูปข้างล่างนี้
    Wireshark capture interface problem
    Wireshark capture interface problem

     

     

     

     

     

     

    วิธีแก้ไขทำง่ายๆได้ดังนี้ Read this article »

    Wireshark Capture Interface Problem

     - by NAzT

    ถ้าใครใช้ บน แล้วไม่สามารถเลือก Interface  ได้ ดังรูป

     

    wireshark-cap-1

    wireshark-cap-1

     

    ให้แก้ไขดังภาพข้างล่างนี้เลยครับ โดยใช้  Terminal ตัวไหนก็ได้คร้าบบ

     

    wireshark-cap-2

    wireshark-cap-2

     

    wireshark-cap-1

    Related Blogs