Windows on Ubuntu ( +X もあるよ!)
最近流行りの Windows Subsystem for Linux でGUIでグイグイしたい方向けの記事です。
ubuntu 以外にも kali linux もサポートされましたので、windows でもlinux のコマンド打ちたいって方にはよろしいかと思います。
パッケージの更新
$ sudo apt update $ sudo apt upgrade
日本語対応
$ sudo dpkg-reconfigure tzdata # asia -> tokyo $ sudo apt install language-pack-ja $ export LANG=ja_JP.UTF-8 $ sudo update-locale LANG=ja_JP.UTF-8
VNCリモート制御
$ sudo apt-get install vnc4server $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal #VNCパスワード設定 $ vncpasswd # VNC一旦起動(設定関係の~/.vncが作成されます) $ vncserver :1
リモート制御時の自動実行設定
$ emacs ~/.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 & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel & gnome-settings-daemon & metacity & nautilus &
VNCの再起動
$ vncserver -kill :1 $ vncserver :1
Windowsからリモート操作
Windows用のVNCクライアントをインストールする。
「UltraVNC」PCリモート操作ソフト - 窓の杜ライブラリ
vnc-serverのチェックはオフでいいかも
vnc-clientだけ欲しい感じです。