블로그 이미지
BJcomm
bjcomm

공지사항

최근에 받은 트랙백

글 보관함

calendar

  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
08-14 14:32

centos5.x 에 Virtualbox 설치하기

2017. 12. 19. 21:02 | Posted by bjcomm

1. X윈도우를 보기위한 패키지 설치

yum groupinstall "X Window System" "GNOME Desktop Environment"
yum install fonts-korean

 

2. 원격에서 x윈도우에 접속하기위한 vnc 설치

yum install vnc-server


vi /etc/sysconfig/vncservers

#####################
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1280x800"
#####################

 

vncpasswd

service vncserver start
chkconfig vncserver on

netstat -an

 

vi /root/.vnc/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 &
#####################

 

service vncserver restart

 

3. VirtualBox 패키지 설치
vi /etc/yum.repos.d/virtualbox.repo

#####################
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
#####################

 

yum install VirtualBox-5.2

 

4. x윈도우 접속하여 프로그램 → 시스템도구 → Oracle VM VirtualBox  실행

 

5. 즐겁게 이용.

Comment