# cd /tmp # mv /home/kagyuu/RDService_1.0b5.zip /tmp # unzip RDService_1.0b5.zip # mv RDService /opt
$ sudo /usr/bin/system-config-firewall
# mkdir /var/video/mpeg2
#! /bin/sh # chkconfig: 35 99 01 # description: Toshiba RD Client export LANG=POSIX export LC_CTYPE=ja_JP.UTF-8 export LC_NUMERIC="POSIX" export LC_TIME="POSIX" export LC_COLLATE="POSIX" export LC_MONETARY="POSIX" export LC_MESSAGES="POSIX" export LC_PAPER="POSIX" export LC_NAME="POSIX" export LC_ADDRESS="POSIX" export LC_TELEPHONE="POSIX" export LC_MEASUREMENT="POSIX" export LC_IDENTIFICATION="POSIX" export LC_ALL= case "$1" in start) /usr/bin/java -jar /opt/RDService/RDService.jar -p 5500:5509 -b 32000000 -d /var/video/src -n Orange & ;; stop) kill `ps ax | grep java | grep RDService | gawk '{print $1}'` sleep 3 ;; restart) $0 stop $0 start ;; *) echo "Usage rdservice [start|stop|restart]" esac
chmod +x を忘れずに
# /sbin/chkconfig --add rdservice # /sbin/chkconfig --list | grep rdservice rdservice 0:off 1:off 2:off 3:on 4:off 5:on 6:off
# cat /etc/samba/smb.conf ... [video] force user = root writeable = yes path = /var/video force group = root # /etc/init.d/smb restart
37 // 稼働プラットフォームを示すフラグ 38 // public static final String kOSName = System.getProperty("os.name").toLowerCase(); 39 public static final String kOSName = "windows and mac os";
$ sudo yum -y install java-1.6.0-openjdk-devel $ cd /opt/RDService/ $ sudo make
$ sudo /etc/init.d/rdservice restart