티스토리 뷰
root@SVN:~# apt-cache search tightvncserver
tightvncserver - virtual network computing server software
root@SVN:~# apt-get install tightvncserver
root@SVN:~# su - freecatz
freecatz@SVN:~$ vncserver
You will require a password to access your desktops.
Password: 암호는 최대 8자리 까지만 지원
Verify: 암호는 최대 8자리 까지만 지원
freecatz@SVN:~$ vi /home/freecatz/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 1600x900+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
VNC Service Script 생성
freecatz@SVN:~$ vi /etc/init.d/vncserver
#!/bin/sh
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop vncserver
### END INIT INFO
case "$1" in
start)
su freecatz -c "/usr/bin/vncserver -name 'freecatz vnc server' -depth 24 -geometry '1600x900' :1"
echo "Starting VNC-SERVER for freecatz"
;;
stop)
su freecatz -c "/usr/bin/vncserver -kill :1"
echo "Stop VNC-SERVER for freecatz"
;;
*)
echo 'Usage: /etc/init.d/vncserver {start|stop}'
exit 1
;;
esac
exit 0
* 참고 : 복사 하여 붙여 넣기 할 때 주의 할 것.
root@SVN:~# chmod -x /etc/init.d/vncserver
root@SVN:~# chown freecatz:freecatz /etc/init.d/vncserver
root@SVN:~# chmod 755 /etc/init.d/vncserver
root@SVN:~# update-rc.d vncserver defaults
root@SVN:~# /etc/init.d/vncserver start
클라이언트에서 접속 확인 및 테스트
- Total
- Today
- Yesterday
- food
- ssh
- samba
- gpkiapi
- Java
- json parse
- Security
- development
- 맛집
- Flutter
- Fun
- Spring
- web
- devtools
- 엘리스센터
- place
- JavaScript
- SSL
- Android
- springboot
- dart
- TIP
- kotlin
- Linux
- MySQL
- devel
- HTTP
- Compile
- Mobile
- Review
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |