1. root user 로그인
 > sudo passwd root

2. sources.list update
# cp /etc/apt/sources.list /etc/apt/sources.list.org
# sed -i 's/us.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list
    *. cat /etc/apt/sources.list | sed 's/us.archive.ubuntu.com/ftp.daum.net/g' > /etc/apt/sources.list.newlist
        -> save as a new file

3. telnet 서버 
 >>> 패키지 설치
 # apt-get update
 # apt-get install xinetd
 # apt-get install telnetd
 
 >>> 환경파일 수정
 /etc/xinetd.conf 파일에 아래 내용 추가 && defaults 함수 주석처리(#)
 
 service telnet
 {
  disable = no
  flags = REUSE
  socket_type = stream
  wait = no
  user = root
  server = /usr/sbin/in.telnetd
  log_on_failure += USERID
 }
 
 >>> xinetd 재기동
 /etc/init.d/xinetd restart

4. ftp 설치
 >>> ftp 서버 설치

# apt-get install vsftpd
# vi /etc/vsftpd.conf
  anonymous_enable=NO
  local_enable=YES
  write_enable=YES
# vi /etc/ftpusers               
  > root 주석처리
# service vsftpd restart

 ### # apt-get install proftpd  > standalone 에서기동되도록 선택
 ###  
 ### >>> 환경설정
 ### /etc/proftpd/proftpd.conf    (수정할거 없음)
 ### /etc/ftpusers               > root 주석처리
 ### /etc/proftpd/proftpd.conf           > RootLogin on
 ### >>> proftd 재기동
 ### # service proftpd restart


5. ssh 설치
 >>> ssh 서버설치
 # apt-get install ssh
 # /etc/init.d/ssh restart


 >>> 환경설정
 /etc/ssh/sshd_config        (수정할거 없음)


6. vnc 설치
 >>> 파일셋설치
 # apt-get install vnc4server xinetd
      
 >>> 환경설정
   a.  계정별 암호 설정
    ----------------------
       citylock@ubuntu910:~$ vnc4server

       You will require a password to access your desktops.
       Password:
       Verify:
       New 'ubuntu910:1 (citylock)' desktop is ubuntu910:1

       Creating default startup script /home/citylock/.vnc/xstartup
       Starting applications specified in /home/citylock/.vnc/xstartup
       Log file is /home/citylock/.vnc/ubuntu910:1.log

       citylock@ubuntu910:~$ vnc4server -kill :1
    ----------------------
    b. 계정별 vnc 환경 설정 (~/.vnc/xstartup)
    ----------------------
       #!/bin/sh
       # Uncomment the following two lines for normal desktop:
       unset SESSION_MANAGER
       exec /etc/X11/xinit/xinitrc

       gnome-session &

       [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
       [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
       #xsetroot -solid grey
       #vncconfig -iconic &
       #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
       #twm &
    ----------------------
    c. /etc/X11/xinit/xinitrc 파일의 권한 변경 (실행가능파일)
       # chmod 755 /etc/X11/xinit/xinitrc
    d. vnc4server 실행
       # vnc4server
    e. vnc4server 종료
       # vnc4server -kill :1

7. Touchpad Configuration

 - System Settings > Mouse and Touchpad > 'Touchpad' 탭
     > 'Disable tochpad while typing' && 'Enable mouse cliks with touchpad' > check
     > Scrolling > 'Two-finger scrolling' && Enable horizontal scrolling
  - Touchpad configuration application
     > apt-get install gpointing-device-settings

 *. 터치패드 사용법
 - 한 손가락 Tick : 왼쪽 마우스 클릭
 - 한 손가락 더블 Tick : 더블 클릭
 - 두 손가락 Tick (Tick 이후 누르고 있어야 함) : 오른쪽 마우스 클릭
 - 세 손가락 Tick : 마우스 가운데 버튼 클릭
 - 두 손가락 Scroll : 스크롤링 (System Settings 설정)

8. Ubuntu 12.04 에서 'Dash Home'에 Auto hide 설정 추가
   System Settings > Appearance > Behavior 
   : Auto-hide the Launcher > ON


9.  JDK6 설치
# apt-get install python-software-properties
# add-apt-repository ppa:webupd8team/java
# apt-get update
# apt-get install oracle-java6-installer
   > JDK7 >>> apt-get install oracle-java7-installer
update-alternatives --config java


10. configure static IP Addr

# lshw -c network
# lshw -c network | grep logical
       logical name: eth0

# vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.11.101
netmask 255.255.255.0
gateway 192.168.11.1

#. vi resolv.conf
nameserver 192.168.11.2
search localdomain

#. /etc/init.d/networking restart


11. hostname modification
# vi /etc/hostname
# vi /etc/hosts
# /bin/hostname -F /etc/hostname


12. DSH (Distributed Shell)
# apt-get install dsh
# vi /etc/dsh/machines.list
   node1
   node2
# vi /etc/dsh/dsh.conf
   remoteshell =ssh
# generate ssh key && key exchange ((per user && per node))
----------------------------
 > ssh-keygen -t rsa
 > ssh-copy-id -i /home/{userid}/.ssh/id_rsa.pub {userid}@node1
 > ssh-copy-id -i /home/{userid}/.ssh/id_rsa.pub {userid}@node2
----------------------------
# usage1. dsh -m node2 hostname
  usage2. dsh -a shutdown -h now
  usage3. dsh -a apt-get install rdate ; dsh -a rdate -s time.bora.net






블로그 이미지

Melting

,