# arch PVE container & VM set ## Pacman GPG Key Init ```bash= $ nano /etc/pacman.d/mirrorlist #將taiwan nctu的來源取消註解並到最上方 $ pacman-key --init $ pacman-key --populate $ pacman -Sy archlinux-keyring ``` ## Arch System Upgrade ```bash= $ pacman -Syu $ pacman -S base-devel # install build tool ``` ## Add Normal User ```bash= $ useradd -m -G wheel -s /bin/bash <username> $ passwd <username> $ nano /etc/sudoers #將 %wheel ALL=(ALL) ALL 取消註解並儲存 ``` ## Install Yay (using aur) ```bash= #開始前請以一般使用者登入勿用root $ sudo pacman -S git #Install git $ cd /tmp $ git clone https://aur.archlinux.org/yay.git $ cd yay $ makepkg -si ``` ## 本地化設置 ```bash= $ yay -S wqy-microhei #安裝中文字體(文泉驛微米黑94比思源黑體好看😛) $ sudo nano /etc/locale.gen #將en_US.UTF-8 及 zh_TW.UTF-8取消註解 $ sudo locale-gen $ sudo nano /etc/locale.conf #將 LANG=en_US.UTF-8 加入檔案 $ nano ~/.xinitrc #將 export LANG=zh_TW.UTF-8 加入檔案 $ sudo timedatectl set-timezone Asia/Taipei #修改時區 ``` ## Install Xfce4 ```bash= $ yay -S xfce4 xfce4-goodies $ nano ~/.xinitrc #加入 exec startxfce4 ``` ## Install Xrdp ```bash= $ yay -S xrdp #過程一律按Enter $ systemctl start xrdp.service $ systemctl start xrdp-sesman.service #啟動xrdp service $ systemctl enable xrdp.service $ systemctl enable xrdp-sesman.service #開機自動啟動xrdp service ``` ## Connect Xrdp Server  輸入遠端電腦IP port預設為3389  選擇 是  選擇 Xvnc 然後輸入帳號及密碼  連線成功🎉🎉🎉 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up