-
Notifications
You must be signed in to change notification settings - Fork 1
/
virtualbox install 2004-v1.txt
225 lines (178 loc) · 6.82 KB
/
virtualbox install 2004-v1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
1. download virtualbox from https://www.virtualbox.org/wiki/Downloads
- windows hosts > https://download.virtualbox.org/virtualbox/7.0.4/VirtualBox-7.0.4-154605-Win.exe
- run install
- open Oracle VM VirtualBox Manager
- download ubuntu 20.04 server from https://ubuntu.com/download/server
2. Click 'New'
- Name: OBVM-v1
- iso image: ubuntu-20.04.5-live-server-amd64.iso
- guest install settings : vboxuser, pw: changeme, hostname: OBVM, domain name: myguest.virtualbox.org
- default hardware settings
- default virtual hard disk
3. Power up virtual machine (new window turns on automatically)
- install OS using default settings, continue without updating to the new installer server
- done, done, done, done, continue
- virtualbox - change settings to 4 cores, and 8gb of ram
> Network connections
> DHCPv4 10.0.2.15/24
- your name: obsuser
- your server's name: obvmserver
- pick a username: obsuser, pw: password
- install openssh server
- skip popular server installs
- installing server... this takes a few min
> reboot now - hit enter
-obvmserver login: obsuser, pw: password
4. Now have access to fresh install with terminal (Take Snapshot)
4.1 Settings > Network > Adapter 1 > change attached to : to 'Bridged Adapter'
4.2 Allow copy and paste into virtual box
Settings > Advanced > Shared Clipboard: Bidirectional
5. run the following commands
--update
sudo apt-get update
sudo apt install ssh
--find ipaddress for virtualbox
sudo apt install net-tools
ifconfig
- write down ip address
199.247.136.108
-- download installer sh file
wget https://raw.githubusercontent.com/brookgagnon/ob-install/main/ubuntu-focal.sh --no-check-certificate
-- set execute permission on your script using chmod
chmod +x ubuntu-focal.sh
sudo bash ubuntu-focal.sh
type: install
>what is the FQDN? 199.247.136.108
>what email address? ob@example.com
> Do you want to use https with lets encrypt? No
- change openbroadcaster login password
sudo -u ob php /home/ob/www/tools/password_change.php admin password
6. Log into OpenBroadcaster
- from web browser, type in your server's IP address to the address bar
- 199.247.136.108
- login:
- username: admin
- password: password
7. Log in via winscp
- file protocol: sftp
- ip address: 199.247.136.108
- port: 22
8. Download and install OBPlayer
- documentation from here: https://docs.google.com/document/d/1h3a_yZlckLKqcIAqnZJcBsq_GPq13adNyQdjYTHbBps/edit
- Open windows powershell
ssh obsuser@199.247.136.108
- install open broadcaster player dependencies
sudo apt install ntp python3 python3-pycurl python3-openssl python3-apsw python3-magic python3-dateutil python3-requests python3-gi python3-gi-cairo python3-pip python3-serial python3-gst-1.0 gir1.2-gtk-3.0 gir1.2-gdkpixbuf-2.0 gir1.2-pango-1.0 gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gst-rtsp-server-1.0 gstreamer1.0-tools gstreamer1.0-libav gstreamer1.0-alsa gstreamer1.0-pulseaudio gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-vaapi mesa-vdpau-drivers espeak cifs-utils
- install git cli
type -p curl >/dev/null || sudo apt install curl -y
curl -k -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
- install more dependencies
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
sudo pip3 install passlib passlib[bcrypt] apsw
gh auth login
>github.com
>https
>Y
-Login with browser
-type https://github.com/login/device into chrome
-use one-time access code given in powershell
gh repo clone GStreamer/gstreamer-vaapi
sudo apt-get update -y
sudo apt-get install -y mesa-vdpau-drivers
sudo pip3 install boto3
sudo apt install python3-serial
sudo apt install cifs-utils
sudo pip3 install pulsectl
sudo pip3 install pyrtlsdr
sudo pip3 install inotify
sudo mkdir /usr/share/obplayer
cd /usr/share
sudo git config --global http.sslverify false
sudo git clone https://github.com/openbroadcaster/obplayer.git --branch rtmp-changes
sudo ufw allow 23233
cd obplayer
sudo bash obplayer_loop -d
open chrome to 199.247.136.108:23233
username: admin
password: admin
go to http(s) admin
change password to password
save
9. Connect obplayer to observer
open chrome to 199.247.136.108
Admin> player manager> new
name: obplayer
ip address: leave blank
password: password
Toggle all media types
Timezone Yukon
10. Upload content to observer
added music
added station id
created playlist
modified default playlist for OBplayer to the new playlist
11. Provision the player
go to 199.247.136.108:23233
go to sync/media
Enable the Scheduler [check]
Device ID needs to match the device ID generated in the player manager
Password is password
sync url: http://199.247.136.108/remote.php
save
go to admin > delete db and restart
12. Connect to database from DBeaver
-create user account to connect to database
sudo mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO root@'Y001816.YNet.gov.yk.ca' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
ctrl+c to exit
sudo chmod 777 /etc/mysql/mariadb.conf.d/
- open file in winscp, change bind-variable to 0.0.0.0
sudo service mysqld restart
New database connection
server host: 199.247.136.108
port:3306
database: ob
username: root
password: password
13. Install Icecast
- from https://www.vultr.com/docs/install-icecast-on-ubuntu-20-04/
sudo apt update
sudo apt upgrade
sudo apt install icecast2
> yes
> Icecast2 hostname: localhost
> icecast 2 source password: password
> Icecast2 relay password: password
> icecast 2 administration password: password
sudo systemctl enable icecast2
sudo systemctl start icecast2
sudo ufw allow 'nginx full'
sudo ufw allow 8000/tcp
sudo ufw reload
- Icecast2 now installed
chrome address bar: 199.247.136.108:8000
> administration: username: admin
password: password
sudo chmod +777 /etc/icecast2/icecast.xml
14. Enable streaming in obplayer
make sure obplayer is running
sudo bash /usr/share/obplayer/obplayer_loop -d
!downgrade icecast package to avoid tunneling error
gstreamer error: gst-resource-error-quark: could not connect to server (6) ....
cd /tmp/ && wget http://mirrors.kernel.org/ubuntu/pool/main/libs/libshout/libshout3_2.4.1-2build1_amd64.deb && \
sudo dpkg -i libshout3_2.4.1-2build1_amd64.deb && rm libshout3_2.4.1-2build1_amd64.deb
sudo apt-mark hold libshout3
Goto 199.247.136.108:23233
username: admin
password: admin
Open streaming tab
Enable Streaming [check]
Audio Input Mode [Intersync]
Enable Icecast Streaming [check]
Icecast One Output Bitrate - 320kbps
Icecast One IP: 199.247.136.108:8000