| 82 | = Настройка рабочего места диспетчера = |
| 83 | Устанавливаем ubuntu |
| 84 | |
| 85 | Обновляемся: |
| 86 | sudo apt-get update |
| 87 | sudo apt-get upgrade |
| 88 | |
| 89 | ssh-сервер |
| 90 | sudo apt-get install ssh |
| 91 | |
| 92 | Устанавливаем java: |
| 93 | sudo add-apt-repository ppa:webupd8team/java |
| 94 | sudo apt-get update |
| 95 | sudo apt-get install oracle-java7-installer |
| 96 | |
| 97 | Разрешаем любому пользователю запускать X: |
| 98 | sudo dpkg-reconfigure x11-common |
| 99 | и выбираем "Anybody". |
| 100 | |
| 101 | Устанавливаем SIP_client: |
| 102 | sudo mkdir -p /usr/local/share/SIP_client |
| 103 | sudo scp -r alx@192.168.0.75:work/dispatcher/dispatcher/SIP_client /usr/local/share/ |
| 104 | |
| 105 | Устанавливаем скрипт запуска и отключаем lightdm: |
| 106 | /etc/init/SIP_client.conf |
| 107 | {{{ |
| 108 | # SIP_client-upstart |
| 109 | # starts SIP_client on startup by using xinit. |
| 110 | # by default runs as dispatcher, to change edit below. |
| 111 | env USER=dispatcher |
| 112 | |
| 113 | description "SIP_client-upstart-script" |
| 114 | author "Alex Mogilnikov" |
| 115 | |
| 116 | # if you use mysql you need to wait for your network device |
| 117 | # that means you should add 'and net-device-up IFACE!=lo' behind the udevtrigger |
| 118 | |
| 119 | start on (filesystem and stopped udevtrigger) |
| 120 | stop on runlevel [016] |
| 121 | |
| 122 | # tell upstart to respawn the process if abnormal exit |
| 123 | respawn |
| 124 | respawn limit 10 5 |
| 125 | limit nice 21 21 |
| 126 | |
| 127 | script |
| 128 | exec su -c "xinit /usr/bin/java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar /usr/local/share/SIP_client/SIP_client.jar 2&>"/home/dispatcher/LoL$ |
| 129 | # the following two are to get an idea, if you want to user a window manager |
| 130 | # exec su -c "xinit /usr/bin/fluxbox :0" $USER |
| 131 | end script |
| 132 | |
| 133 | post-start exec /usr/bin/fluxbox :0 & |
| 134 | }}} |
| 135 | |