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

,

1. profile 수정(.bash_profile)
#####################################
LANG="ko_KR.euckr"
SUPPORTED="ko_KR.eucKR:ko_KR:ko"
SYSFONT="lat0-sun16"
SYSFONTACM="8859-15"
ulimit -n 10240
set -o vi
#####################################

 

2. xfce설치
[root@centos ~]# yum grouplist | grep XFCE
   XFCE-4.2
[root@centos ~]# yum groupinstall XFCE-4.2
[root@centos ~]#

3. vnc 설정
[root@centos .vnc]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that. 
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.

# VNCSERVERS="1:myusername"
# VNCSERVERARGS[1]="-geometry 800x600"


VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

[root@centos .vnc]# /usr/bin/vncserver :1

[root@centos .vnc]# /usr/bin/vncserver  -kill :1

[root@centos .vnc]# /usr/bin/vncpasswd

[root@centos .vnc]# cat xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -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 &
# startkde &
# exec gnome-session &
exec xfce4-session &


[root@centos .vnc]# service vncserver start
Starting VNC server: 1:root [  OK  ]
[root@centos .vnc]# chkconfig vncserver on

[root@centos .vnc]# vncserver :1 -geometry 1024x768  (수동으로 직접 기동시)

New 'centos:1 (root)' desktop is centos:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/centos:1.log

[root@centos .vnc]#

 

4. vsftpd 기동
-. vsftpd 설치
[root@centos ~]# yum install vsftpd

-. root 로그인 활성화 - 아래 파일에서 root 삭제
[root@centos ~]# vi /etc/vsftpd/ftpusers
[root@centos ~]# vi /etc/vsftpd/user_list

-. 아스키모드 활성화
[root@centos ~]# vi /etc/vsftpd/vsftpd.conf
ascii_download_enable=YES
ascii_upload_enable=YES

-. vsftpd 데몬 실행
[root@centos ~]# /etc/rc.d/init.d/vsftpd start

-. 서비스등록
[root@centos ~]# chkconfig vsftpd on


5. telnet 서버 설치
-. yum install telnet-server

  or

   Application > Add/Remove Software > PackageManager > Legacy Network Server (gnome관리자)
   => telnet server 설치

-. vi /etc/xinetd.d/telnet -> disable -> no

-. /etc/init.d/xinetd restart

 

6. 기본 윈도우 매니저를 마지막 로그인시 사용한 것으로 선택하는 옵션추가
-. vi /etc/X11/gdm/gdm.conf

    =>
ShowLastSession=true

7. QT 관련 기본 라이브러리 설치
-. 패키지관리자 -> 기반시스템 -> 레거지 소프트웨어 지원 -> 
gtk +
openmotif22
qt4
-. gcc

8. 커널 소스 설치
yum install kernel-devel
yum install kernel-headers
yum install kernel-xen-devel
yum install kernel-xen-headers

   < or >

yum install  kernel-devel  kernel-headers  kernel-xen-devel  kernel-xen-headers


9. 폰트설치
 -. yum install kde-i18n-Korean
 -. yum istall fonts-korean

 -. *.ttf 파일을 /usr/share/fonts/ 아래로 복사
 -. x-windows를 gnom으로 실행
 -. System > Preferences > Fonts 실행
 -. 원하는 폰트 선택 && Details 버튼 클릭
 -. Details(세부옵션)에서 'LCD용' 선택

10. sendmail을 사용하지 않을 경우 서비스 비활성화
  [root@ora11r2 init.d]# chkconfig  --list | grep sendmail
  sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
  [root@ora11r2 init.d]# chkconfig sendmail off
  [root@ora11r2 init.d]# chkconfig  --list | grep sendmail
  sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
  [root@ora11r2 init.d]#


블로그 이미지

Melting

,

1. hostname 변경
[root@rhel5 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=rhel5
[root@rhel5 ~]# cat /etc/hosts
192.168.3.9     rhel5
[root@rhel5 ~]#

2. ip 변경
[root@rhel5 ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth0  < ip 설정관련 파일
[root@rhel5 ~]# ifconfig eth0 192.168.3.9 netmask 255.255.255.0 broadcast + up

3. ip alias 설정
[root@rhel5 ~]# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
[root@rhel5 ~]# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
[root@rhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:29:5b:50:27
[root@rhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0:0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0:0
#BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:29:5b:50:27
IPADDR=192.168.3.9
[root@rhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0:1
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0:1
# BOOTPROTO=dhcp
ONBOOT=yes
IPADDR=192.168.0.9
# HWADDR=00:0c:29:5b:50:27

4. /etc/resolv.conf 변경

5. service network restart
    (or)
   /etc/init.d/network restart

6. 기타 network config tool
  netcfg / netconfig / setup

7. 현재 network 상태 조회
[root@rhel5 ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   1000baseT/Full
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes

+. 리눅스 배포본별 ip 설정 파일
--- ubuntu && debian ---
/etc/network/interfaces

   -----------
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.5
        netmask 255.255.255.0
        gateway 192.168.0.1

# dns-*
dns-nameservers 168.126.63.1
dns-search localdomain
   -----------
/etc/init.d/networking restart

--- redhat ---
/etc/sysconfig/network-scripts/ifcfg-eth0

--- gentoo ---
/etc/conf.d/net



블로그 이미지

Melting

,