------------------------
   samba

------------------------
+. samba fileset 설치

$ sudo apt-get install samba


+. samba 용 계정추가

$ sudo smbpasswd -a <$username>


+. samba로 공유할 디렉토리 설정

$ sudo vi /etc/samba/smb.conf

[samba_user]

        path=/opt/shared

        read only=no

        valid users=samba_user

        browseable=yes


+. samba daemon 재시작
$ sudo /etc/init.d/smbd restart

+. samba에 성능 이슈 발생시 IPv6를 제거하고 테스트해 볼 것 !!!


------------------------
   nfs

------------------------

+. fileset 설치 및 daemon 재기동

$ sudo apt-get install nfs-common nfs-kernel-server

$ sudo /etc/init.d/nfs-kernel-server restart

+. nfs 환경파일 수정

$ sudo vi /etc/exports

/nfs_home    *(rw,no_root_squash,no_all_squash)



------------------------
   tftp

------------------------

+. 파일셋 설치

$ sudo apt-get install xinetd tftpd tftp


+. 환경파일 설정

$ vi /etc/xinetd.d/tftpd

service tftp

{

    protocol            = udp

    port                    = 69

    socket_type     = dgram

    wait                   = yes

    user                  = nobody

    server               = /usr/sbin/in.tftpd

    server_args     = /tftpboot

    disable             = no

}


+. xinetd 재기동

$ sudo /etc/init.d/xinetd restart

블로그 이미지

Melting

,

alien으로 ubuntu에서 rpm 파일 변환 설치하기...

+. alien 설치

  > $ sudo apt-get install alien


+. rpm > deb 

  > $ sudo alien -k --script *.rpm

  > *.deb 파일 생성


+. dpkg 명령어로 deb 파일 설치

  > $ sudo dpkg -i *.deb


블로그 이미지

Melting

,

역시 Linux에서는 nxfree가 짱~ ㅎㅎ (www.nomachine.com)


lsysdir:/home/scripts/nxfree#]ls
nxclient-3.5.0-7.x86_64.rpm  nxnode-3.5.0-7.x86_64.rpm  nxserver-3.5.0-9.x86_64.rpm
  
>>> 반드시 client -> node -> nxserver 순으로 설치해야 함 !!!
lsysdir:/home/scripts/nxfree#]
rpm -ivh nxclient-3.5.0-7.x86_64.rpm
Preparing...                ########################################### [100%]
   1:nxclient               ########################################### [100%]
Showing file: /usr/NX/share/documents/client/cups-info

 CUPS Printing Backend

 The NX Client set-up procedure detected that your "IPP CUPS" printing
 backend doesn't allow printing from the NX session. In order to have
 printing support in your NX system, you need to set proper permissions
 on the IPP backend. Please execute:

   chmod 755 /usr/lib/cups/backend/ipp
lsysdir:/home/scripts/nxfree#]
rpm -ivh nxnode-3.5.0-7.x86_64.rpm
Preparing...                ########################################### [100%]
   1:nxnode                 ########################################### [100%]
NX> 700 Starting: install node operation at: Wed Apr 18 06:14:14 2012.
NX> 700 Autodetected system 'redhat'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 Installation of version: 3.5.0-7 completed.
NX> 700 Bye.

lsysdir:/home/scripts/nxfree#]rpm -ivh nxserver-3.5.0-9.x86_64.rpm
Preparing...                ########################################### [100%]
   1:nxserver               ########################################### [100%]
NX> 700 Installing: server at: Wed Apr 18 06:14:23 2012.
NX> 700 Autodetected system: redhat.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 Creating configuration file: /usr/NX/etc/server.cfg.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 700 Version '3.5.0-9' installation completed.
NX> 700 Showing file: /usr/NX/share/documents/server/install-notices

Server keys

The initial login between client and server happens through a DSA key
pair, i.e. a couple of specially generated cryptographic keys, called
the private key and the public key, which allow you to establish a
secure connection, by means of SSL encryption, between NX client and
NX server.

The public part of the key-pair is provided during the installation
of the server, while the private part of the key-pair is distributed
together with the NX Client. This ensures that each NX client is able
to authenticate to the server and to start the procedure for autho-
rizing the user and negotiating the session.

If you want to create a virtual private network (VPN) instead, you
need to generate a new DSA key-pair and distribute the private part
of the key-pair to those NX clients you want authenticated to the NX
server. More information on how to generate and distribute a new DSA
key-pair is available at:

http://www.nomachine.com/ar/view.php?ar_id=AR01C00126

Creating Users

NX is configured to allow access from any system user, as long as
valid credentials are given to the user for the SSH login. NX pro-
vides an alternative authorization method, allowing system admin-
istrators to determine which users are given access to the NX fun-
ctionalities. This works by implementing a separation between the
system password and the NX password, so that, for example, it is
possible to forbid remote access to the system by any other means
except via NX and use the NX tools to implement effective accounting
of the system resources used by the user, or to share NX passwords in
an external database.

To activate the NX user and password DBs, you will have to edit the
NX server configuration file by hand or use the NX Server Manager
Web tool available for download on the NoMachine Web site at:

http://www.nomachine.com/download-manager.php

Session Shadowing and Desktop Sharing

The session shadowing functionality allows you to share NX sessions
running on the node. The desktop sharing functionality instead, gives
access to the native display of the X server as if you were in front
of the monitor. By default you can access sessions in interactive mode
and upon authorization of the session owner. You can modify this beha-
viour by tuning the server configuration according to your needs, for
example by allowing access to sessions in view-only mode, or connecting
to either a suspended session or the local display via the Desktop
Manager login window.

Load Balancing

NX Advanced Server provides support for multi-node capabilities and
load balancing. In its current implementation, NX server can only
manage accounts on the host machine, so to grant access to the node
running remotely, you will need to create the user account directly
on the remote node host by issuing the NX node commands as root user.
You will also need to add the NX Server public DSA Key to the node to
allow this server to connect to the node running on the remote host.

Documentation

For further information on how to manage the configuration of your
NX system, please refer to the System Administrator's Guide available
on the NoMachine Web site at:

http://www.nomachine.com/documentation/admin-guide.php

The NoMachine Team.


NX> 700 Bye.

lsysdir:/home/scripts/nxfree#]cd /usr/NX/scripts/setup
lsysdir:/usr/NX/scripts/setup#]
./nxserver --install
NX> 701 Updating: server at: Wed Apr 18 07:28:09 2012.
NX> 701 Autodetected system: redhat.
NX> 701 Update log is: /usr/NX/var/log/update.
NX> 701 Checking NX server configuration using /usr/NX/etc/server.cfg file.
NX> 701 Running: chkconfig to remove init script.
NX> 701 Verifying that all init scripts have been removed.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 701 Version '3.5.0-9' update completed.
NX> 701 Bye.

lsysdir:/usr/NX/scripts/setup#]cd ../../bin/
lsysdir:/usr/NX/bin#]
./nxserver --keygen
NX> 704 Starting: server-keygen operation at: Wed Apr 18 07:28:35 2012.
NX> 704 Generating new ssh-keys. Please wait.
NX> 704 Keys generated correctly. Backing up files.
NX> 704 Back up of keys made. Updating files.
NX> 704 Keys updated. NX clients should now use key:
NX> 704 /usr/NX/share/keys/default.id_dsa.key
NX> 704 to get connected to this NX server.
lsysdir:/usr/NX/bin#]
cat /usr/NX/share/keys/default.id_dsa.key
-----BEGIN DSA PRIVATE KEY-----
MIIBugIBAAKBgQDDIaDmPIoH2z8uruP0eqfTbydJXMs7sRBb/0PMirES7JC8tkjt
kBBzPkptdQcafF8JR9GMvY1fxDRxX7Ofr9Z3WV82dvxfyv9GqJR7Q+92nhShIRJe
                               ................
gwxQtALE5/qzfUjmx1iRUhu/OlmRMQdfwz8wXlmvoWtDZ3MyKrRQR6HII7daxsy7
bHysGXXHbgO+KJ3D6B8ktQHiv5XCCLtIO/MBDKHW06/es6Ebgm8oEgIUGne8mNxU
N2bpKUVM3axzCbMdDso=
-----END DSA PRIVATE KEY-----
lsysdir:/usr/NX/bin#]
lsysdir:/usr/NX/bin#]adduser nxfree
lsysdir:/usr/NX/bin#]
passwd ****
Changing password for user nxfree.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
lsysdir:/usr/NX/bin#]
su - nxfree
[nxfree@lsysdir ~]$
exit
logout
lsysdir:/usr/NX/bin#]
./nxserver --useradd nxfree
NX> 900 Setting password for user: nxfree.
NX> 102 Password:
NX> 102 Confirm password:
NX> 110 Password for user: nxfree added to the NX password DB.
NX> 900 Adding public key for user: nxfree to the authorized keys file.
NX> 900 Verifying public key authentication for NX user: nxfree.
NX> 900 Public key authentication succeeded.
NX> 301 User: nxfree enabled in the NX user DB.
NX> 999 Bye.
lsysdir:/usr/NX/bin#]
/etc/rc.d/init.d/nxserver restart
Trying to restart NX server:
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor already stopped.
NX> 122 Service started.
NX> 999 Bye.
Trying to restart NX statistics:
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 999 Bye.
lsysdir:/usr/NX/bin#]
service nxserver restart
Trying to restart NX server:
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor already stopped.
NX> 122 Service started.
NX> 999 Bye.
Trying to restart NX statistics:
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 999 Bye.
lsysdir:/usr/NX/bin#]

-------------------------------
2. freenx 세팅
freenx는 기본적으로 22번 포트(SSH 포트)를 사용한다.
# vi /usr/NX/etc/server.cfg 로 설정을 수정한다.
#SSHDPort = "22" 를  주석을 푼뒤 저장한다.

그다음 #vi /etc/sysconfig/iptables 로 22번 포트를 열어준다.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 
방화벽재기동
# /etc/rc.d/init.d/iptables restart
# netstat -ntlp 로 22번 포트가 열려있나 확인한다.

안열려 있을 경우 ssh와 nxserver을 restart 시킨다
정상적으로 확인이 될경우
ntsysv로 시작프로그램으로 등록해 매번 실행시키는 수고로움을 덜자
-------------------------------



---------------------------------------------------------------------
   Ubuntu 12.04에서 3D 문제로 nxfree가 않뜰 경우...
NoMachine NX Desktop on Ubuntu 12.04 Precise Pangolin ? No menus?
Posted on May 28, 2012 by drye
---------------------------------------------------------------------
NoMachine NX is a perfect solution to connect to your remote Ubuntu desktop.
But ever since Canonical introduced Unity, NoMachine doesn’t seem so perfect anymore:
client successfully connects to the NX server, but the menus never show up, and there’s no Unity side bar.

Here’s what works in 12.04 Precise Pangolin:

On the remote machine open up this file: /usr/NX/etc/node.cfg and edit it as a superuser:

sudo vim /usr/NX/etc/node.cfg
Towards the end of the file, look for CommandStartGnome and change it to

CommandStartGnome = "/usr/bin/gnome-session --session=ubuntu-2d"
Save the file, and Unity should now work in 2D mode the next time you connect and the menus
and the sidebar will show up.

This entry was posted in Howtos, Technology. Bookmark the permalink.


블로그 이미지

Melting

,

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

,

local repository 설정 전  

1. ftp 서버 설치 && anonymous 로 ftp로그인 가능하도록 설정

2. 방화벽(port:21) 해제 
     >> SELinux 확인

3. yum repository로 사용하고자 하는 linux 원본 dvd를 마운트
   # mount /dev/cdrom /mnt 

4. dvd에서 yum repository로 파일 복사
   # cp -a /mnt/* /repository ; umount /mnt

5. /etc/yum.repos.d/ 아래에 local.repo 파일 생성
   # cat /etc/yum.repos.d/local.repo

 ----------------------
[rhel6-local]
name=Red Hat Enterprise Linux $releasever -$basearch -Debug
baseurl=file:///repository/Server
enabled=1
gpgcheck=0
 ----------------------

6. # yum clean all
   # yum list         
      >> 설치된 yum 정보 확인


블로그 이미지

Melting

,

+. Service and productivity tools 에서 아래의 패키지 설치
  >>  http://www14.software.ibm.com/support/customercare/sas/f/lopdiags/redhat/hmcmanaged/rhel6.html


# rpm -ivh src-1.3.1.1-11320.ppc.rpm                         >> 설치전 ksh 가 필요 
# rpm -ivh rsct.core.utils-3.1.2.1-11320.ppc.rpm
# rpm -ivh rsct.core-3.1.2.1-11320.ppc.rpm
# rpm -ivh devices.chrp.base.ServiceRM-2.3.0.2-12011.ppc.rpm
# rpm -ivh DynamicRM-1.3.9-8.ppc64.rpm




블로그 이미지

Melting

,

# free
             total       used       free     shared    buffers     cached
Mem:       3110272     562496    2547776          0     167296     245888
-/+ buffers/cache:     149312    2960960
Swap:      3112832          0    3112832

# dd if=/dev/zero of=/swap/swapfile00 bs=1024 count=1048576   
# swap 용 파일 1G

# mkswap /swap/swapfile00

# swapon /swap/swapfile00

# vi /etc/fstab
/swap/swapfile00 swap swap defaults 0 0

블로그 이미지

Melting

,

# service iptables stop
# iptables -F

# setenforce permissive
# vi /etc/selinux/config
SELINUX=disabled
# getenforce

블로그 이미지

Melting

,