ãさくらのVPSãã«Ubuntu 15.10をインストールãã¾ãããUbuntuã§ãã®ã§ãã¹ã¯ãããç°å¢ããã²ä½¿ãããã§ãããGUIã§æä½ããã»ããå©ä¾¿æ§ãè¯ããã¨ãå¤ã ããã¾ãã
ããã§ãã¤ã³ã¹ãã¼ã«ããUbuntu 15.10ã«æå
ã®Windowsãã·ã³ãããªã¢ã¼ããã¹ã¯ãããã§æ¥ç¶ãã¦ã¿ã¾ãããããã«ãé³å£°ã転éãããããã«ãã¦ã¿ã¾ããã
1. åèã«ããWebãã¼ã¸
以ä¸ã®ãã¼ã¸ãåèã«ãªãã¾ããããã ããã¨ã³ããªãæ¸ãããã®ã¯ããåã§ãã®ã§ããã¼ã¸ã§ã³ã®éããªã©ãããã®ã¾ã¾ã§ã¯æ£ããåä½ãã¾ããã
2. ã¤ã³ã¹ãã¼ã«ã®æé
ã¤ã³ã¹ãã¼ã«ã¯2段éã«åãããã¾ããã¯ããã«ãªã¢ã¼ããã¹ã¯ããããè¡ãããã® xrdp ã®ã¤ã³ã¹ãã¼ã«ã次ã«ãªã¢ã¼ããã¹ã¯ãããã§é³å£°ã転éãããããã«ããããã® pulseaudio ã®ã¤ã³ã¹ãã¼ã«ã§ãã
3. xrdp ã®ã¤ã³ã¹ãã¼ã«
apt-getã§ãã¤ã³ã¹ãã¼ã«ã§ãã¾ããããã¼ã¸ã§ã³ãå¤ãä¸é©åã§ãããããã£ã¦æåã§ã¤ã³ã¹ãã¼ã«ããã¾ããæåã§ã¤ã³ã¹ãã¼ã«ããéããã¼ã¸ã§ã³ã®éãã«ããæ£ããã¤ã³ã¹ãã¼ã«ã§ããªããã¨ãããããããã試ããçµæã以ä¸ã®ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ãããã¨ã§OKã§ããã
# git clone --depth 1 -b v3.03 https://github.com/scarygliders/X11RDP-o-Matic.git # sudo ./X11rdp-o-matic.sh --justdoit --withsound --withjpeg --branch master
ãã«ãã«ã¯1æé以ä¸ãããã¾ããï¼ãããã®VPS 1Gï¼ã
æ£ããã¤ã³ã¹ãã¼ã«ããããã®ç¢ºèªãããããã«ã¯æ¬¡ã®ããã«ãã¾ããxrdpã¨x11rdpã両æ¹ã¨ããã¼ã¸ã§ã³0.9.0-1ã§å ¥ã£ã¦ãããã¨ã確èªã§ããã°OKã§ãã
# dpkg -l xrdp x11rdp
ãã A dependency job for xrdp.service failed. see journalctl -xe for details ã¨ããã¨ã©ã¼ãåºãå ´åã¯ãã¡ã¤ã«ãåé¤ããå¿ è¦ãããã¾ãã詳ããã¯こちらã«æ¸ãã¦ããã¾ããæ¶ããã¡ã¤ã«ã¯ä»¥ä¸ã®2ã¤ã§ãããã¡ã¤ã«ãæ¶ããã xrdp ãèµ·åï¼åèµ·åï¼ãã¾ãããã
/lib/systemd/system/xrdp.service
/lib/systemd/system/xrdp-sesman.service
# service xrdp restart # service x11rdp restart
3. pulseaudio ã®ã¤ã³ã¹ãã¼ã«
åç« ã§ã¤ã³ã¹ãã¼ã«ã«ç¨ãã xrdp ã®ã½ã¼ã¹ã¯ã¾ã ãã®ã¾ã¾ã«ãã¦ããã¾ããç¶ã㦠pulseaudio ã®ã¤ã³ã¹ãã¼ã«ã§ãã
ããã©ã«ã㧠pulseaudio ã¯å ¥ã£ã¦ããã¨æãã¾ãã®ã§ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã¾ããä¸å¯§ã«ã¢ã³ã¤ã³ã¹ãã¼ã«ããªãã¨æ¢åãã¼ã¸ã§ã³ãæ®ã£ã¦ãã¾ãã®ã§ãã¢ã³ã¤ã³ã¹ãã¼ã«ããããå度確èªããã¾ãããï¼ãã¨ã§ã¾ã確èªããã¾ãï¼ã
# pulseaudio --version pulseaudio 6.0 # apt-get purge pulseaudio* # apt-get purge pulseaudio:i386
pulseaudio ãã½ã¼ã¹ãããã«ããã¾ããã½ã¼ã¹ã¯ここã«ããã®ã§ãããããã¤ãã®ãã¼ã¸ã§ã³ã§è©¦ãã¦ã¿ãã¨ããã4.0 ãè¶ ããã¨ãã«ãã¨ã©ã¼ãåºã¾ãã®ã§ãããã§ã¯ 4.0 ãå©ç¨ãã¾ãã
# wget http://freedesktop.org/software/pulseaudio/releases/pulseaudio-4.0.tar.gz # tar zxvf pulseaudio-4.0.tar.gz # cd pulseaudio-4.0/
å¿ è¦ãªã©ã¤ãã©ãªãå ¥ãã¾ãã
apt-get install libjson-c-dev apt-get install libsndfile1-dev apt-get install libcap-dev
ãã«ããã¾ããWarningãåºã¦ãErrorãåºã¦ããªããã°å¤§ä¸å¤«ã§ããæ°åã§ãã«ãã§ãã¾ããã¤ã³ã¹ãã¼ã«ãçµãã£ãã ldconfig ãã¦ããã¾ãã
# ./bootstrap.sh # make install # ldconfig
ãªã¢ã¼ããã¹ã¯ãããç¨ã® pulseaudio ã®è¨å®ããã¾ããããåç« ã®ã½ã¼ã¹ãã¡ã¤ã«ã®å ´æã/X11RDP-o-Matic/xrdp/sesman/chansrv/pulse ã«ãã Makefile ãç·¨éãã¾ããPULSE_DIR ã®å¤ã pulseaudio ã®ã½ã¼ã¹ãã©ã«ãã®å¤ã«å¤æ´ãã¾ãï¼ä»¥ä¸ã¯ä¾ã§ãï¼ã
PULSE_DIR = /home/ï¼ã¦ã¼ã¶ã¼åï¼/pulseaudio-4.0
ãã«ããã¾ããããmodule-xrdp-sink.so 㨠module-xrdp-source.so ãçæããã¾ãï¼ããã§ãã«ãã¨ã©ã¼ãåºãå ´åã¯ãã¼ã¸ã§ã³ã®éãã§ãï¼ãçæãããã¢ã¸ã¥ã¼ã«ã /usr/local/lib/pulse-4.0/modules/ ã«ã³ãã¼ãã¾ããæå¾ã« pulseaudio ã®ãã¼ã¸ã§ã³ã 4.0 ã§ãããã確èªãã¦ããã¾ãã
# make # cp module-xrdp-sink.so module-xrdp-source.so /usr/local/lib/pulse-4.0/modules/ # pulseaudio --version pulseaudio 4.0-rebootstrapped
ããã¾ã§ã§å ¨ã¦ã®æé ãçµããã¾ããã
4. Ubuntuã®åèµ·å
Ubuntuãåèµ·åãã¾ãããã
5. ãªã¢ã¼ããã¹ã¯ãããã§æ¥ç¶ãã¦é³å£°ã転éãããã確èª
å®éã«ãªã¢ã¼ããã¹ã¯ãããã§æ¥ç¶ãã¦é³å£°ã転éããã¦ãããã©ãã確èªãã¾ããããç®è¦ã§ç¢ºèªããããã«ãpavucontrol ãå ¥ãã¾ããããããã¤ã¹ã xrdp sink ã«ãªã£ã¦ããã°æåã§ãã
# apt-get install pavucontrol
radiko.jpããããéãã¦é©å½ã«åçããã¦ãé³å£°ã転éããã¦ããã°ä»¥ä¸ã®ããã«ãªãã¯ãã§ãã
6. å®ç¨ä¸ã®èª²é¡
ããã§é³å£°ä»ãã§ãããã®VPSï¼Ubuntu 15.10ï¼ã«å¯¾ãã¦ãªã¢ã¼ããã¹ã¯ããããã§ããããã«ãªãã¾ããããã ãé度ã«ã¤ãã¦ã¯ãç°å¢ã«ä¾åããã¨ã¯æãã¾ãããç¾ç¶ã§ã¯åä½ãéããé³å£°ãé£ã³é£ã³ã§ããããã©ãæãããã¾ãããã®ç¹ã¯VPSã®æ§è½ãä¸ãããããããå´ã®è¨å®ãå¤æ´ããããã§å¤ããå¯è½æ§ã¯ãããã¨ã¯æãã¾ãã
ã¨ããããããã§ã¹ãã¼ããã©ã³ãã¿ãã¬ããããé³ä»ãã§ãåå£ä¹±èãããè¦éãããããããããã¬ã¤ã§ããããã«ãªãã¾ãããã¹ãã¼ããã©ã³çãåºãã¾ã§ã®ãã¤ãªããã®æã¯å¦ãã¾ãããããã¤ã§ãã©ãã§ãé³ä»ãã¨ããã¶ãè¦ãããå®ç¾ãã¾ããï¼ãããããããã£ãï¼ã