Sign inSign up

tolerare21/xfce4

By tolerare21

Updated over 3 years ago

Image
0

57

tolerare21/xfce4 repository overview

이미지 사용법

docker run -it --name xfce4 -v $HOME:/data -p 5901:5901 tolerare21/xfce4:1.0.0 /bin/bash

VNC 시작/중지

$ vncserver -localhost :1

# VNC Stop 명령어
$ vncserver -kill :1

# VNC List 명령어
$ vncserver -list

VNC 접속 패스워드 변경

  • 기본 패스워드 :123456
$ vncpasswd

Password: 123456
Verify: 123456
Would you like to enter a view-only password (y/n)? n

도커 이미지 Ubuntu-Xfce-VNC 환경 구성 상세 정보

Ubuntu 기본 이미지

# ubuntu 20.04 컨테이너 실행 
$ docker run -it --name xfce4  ubuntu:20.04 /bin/bash

Xfce

  • Xfce 4.14 데스크톱 설치 및 환경 구성
# update && upgrade
$ apt update && apt upgrade

# 기본 프로그램 설치
$ apt install -y sudo vim curl wget zip unzip git fonts-nanum* language-pack-ko ibus-hangul

# Time Zone
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
6. Asia
Geographic area: 6

Please select the city or region corresponding to your time zone.
69. Seoul
Time zone: 69

# Locale 설정
$ locale-gen ko_KR.UTF-8

$ update-locale LANG=ko_KR.UTF-8 LC_MESSAGES=POSIX

# xfce 4 설치
$ apt install -y xfce4 xfce4-goodies

# lightdm 선택
Configuring lightdm
-------------------
A display manager is a program that provides graphical login capabilities for the X Window System.
Only one display manager can manage a given X server, but multiple display manager packages are installed. Please select which display manager should run by
default.
Multiple display managers can run simultaneously if they are configured to manage different servers; to achieve this, configure the display managers
accordingly, edit each of their init scripts in /etc/init.d, and disable the check for a default display manager.
1. gdm3  2. lightdm
Default display manager: 2

# VNC 설치
$ apt install -y tigervnc-standalone-server

# VNC 접속 패스워드
$ vncpasswd

Password: 123456
Verify: 123456
Would you like to enter a view-only password (y/n)? n

# xfce4 xstartup 작성
$ vi ~/.vnc/xstartup

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec startxfce4

$ chmod u+x ~/.vnc/xstartup

# vnc config 작성
$ vi ~/.vnc/config

geometry=1920x1080
dpi=96

# VNC Start 명령어 (5901 포트 실행)
$ vncserver -localhost :1

# VNC Stop 명령어
$ vncserver -kill :1

# VNC List 명령어
$ vncserver -list

# xfce4 테미널 기본 프로그램 설정
$ update-alternatives --config x-terminal-emulator
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).
  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gnome-terminal.wrapper   40        auto mode
  1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/xfce4-terminal.wrapper   40        manual mode
Press <enter> to keep the current choice[*], or type selection number: 2

# Firefox Web Browser 설치
$ apt install -y firefox
settings > Language and Appearance
> Website appearance : "Dark" 
> Fonts : "NanumGothicCoding"
> Language > Alternatives... > Select a language to add... > Search for more languages... 
: "한국어" > Add > OK

# 한글 키보드 추가
Application>settings>Keyboard
  Layout
    Use system defaults 체크 해제
    Keyboard layout 
        korea| Korea(101/104 key compatible)
				English(US)

# 한글 입력 추가
Application>settings>IBus Preferences
The IBus daemon is not running. Do you wish to start it? : "Yes"

> Input Method > Add > Korean > Hangul "Add" 

# 전원 설정 변경
Application>settings>Xfce Power Manager 
  Display
    Never

Dockerfile

FROM ubuntu:20.04
WORKDIR /root/.vnc
COPY ["config","xstartup","passwd", "/root/.vnc/"]
RUN \
    sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list && \
    apt update && \
    apt upgrade && \
    DEBIAN_FRONTEND=noninteractive \
    apt install -y sudo vim curl wget zip unzip git fonts-nanum* language-pack-ko ibus-hangul xfce4 xfce4-goodies tigervnc-standalone-server firefox && \  
    locale-gen ko_KR.UTF-8 && \
    update-locale LANG=ko_KR.UTF-8 LC_MESSAGES=POSIX && \
    chmod u+x ~/.vnc/xstartup

Tag summary

Content type

Image

Digest

sha256:edd321752

Size

655.4 MB

Last updated

over 3 years ago

docker pull tolerare21/xfce4:1.0.0