-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_commands_20.04.txt
192 lines (137 loc) · 5.99 KB
/
install_commands_20.04.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
sudo apt-get update
sudo apt-get upgrade
sudo apt install make gcc libx11-dev libxext-dev libgtk-3-dev libglade2-0 libglade2-dev libpcap0.8 libcap2 ethtool net-tools git gitk libcanberra-gtk-module libcanberra-gtk3-module libtiff-dev libboost-all-dev ffmpeg vlc apt-transport-https intltool libges-1.0-dev libges-1.0-dev gstreamer1.0-plugins-bad libnotify-bin libnotify-dev ipython3 cmake-data librhash0 libuv1 python-numpy cmake-qt-gui libgstreamer-plugins-{base,good}1.0-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine2-dev libv4l-dev qt5-default libgtk2.0-dev libtbb-dev libatlas-base-dev libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev libopencore-amrnb-dev libopencore-amrwb-dev x264 v4l-utils python3-numpy python3-dev python3-pip ubuntu-restricted-extras htop openssh-server mdm mdadm samba cifs-utils chrome-gnome-shell apache2 certbot libpcap-dev python3-tk unattended-upgrades update-notifier-common chrony python3-pysolar
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
*********************
download gig e v framework
https://www.teledynedalsa.com/en/support/downloads-center/software-development-kits/132/
cd DALSA/
sudo ./corinstall
reboot!
*****************OPENCV
**** custom repository not needed any more with newest VISSS osftware software, try sudo apt install libopencv-dev instead ****
cd
mkdir opencv_source
cd opencv_source
git clone --depth=100 --single-branch --branch envrionment_variables https://github.com/maahn/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
cd ~/opencv_source/opencv_contrib
git checkout 4.1.1
cd
cd opencv_source/opencv
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DINSTALL_C_EXAMPLES=ON \
-DINSTALL_PYTHON_EXAMPLES=ON \
-DWITH_TBB=ON \
-DWITH_V4L=ON \
-DENABLE_CXX11=ON\
-DWITH_OPENGL=ON \
-DBUILD_opencv_python3=ON \
-DWITH_GSTREAMER=ON \
-DWITH_FFMPEG=ON \
-DOPENCV_GENERATE_PKGCONFIG=YES \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-DBUILD_EXAMPLES=ON ..
make -j24
sudo make install -j6
sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
#export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig'
********* misc
ssh-keygen
configure autologin follwoing https://askubuntu.com/questions/1202230/auto-login-enable-on-turn-on-system
or https://askubuntu.com/questions/819117/how-can-i-get-autologin-at-startup-working-on-ubuntu-server-16-04-1
für webserver:
sudo nano /etc/apache2/sites-enabled/000-default.conf
DokumentRoot=/data
sudo nano /etc/apache2/apache2.conf
<Directory /data/>
Options FollowSymLinks
AllowOverride None
Require all granted
EnableMMAP Off
</Directory>
sudo timedatectl set-timezone UTC
###### VPN
add file "/etc/polkit-1/localauthority/10-vendor.d/org.freedesktop.NetworkManager.pkla" with:
--
[nm-applet]
Identity=unix-user:visss
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
--
create VPN script "/home/visss/vpn_reconnect.sh" with:
--
#!/bin/bash
CON="vpn.uni-leipzig.de"
STATUS=`nmcli con show --active | grep $CON | cut -f1 -d " "`
if [ -z "$STATUS" ]; then
nmcli con up $CON
fi
--
do "chmod +x /home/visss/vpn_reconnect.sh" and add to cron with "crontab -e" and add:
--
* * * * * /home/visss/vpn_reconnect.sh > /home/visss/vpn_reconnect.log 2>&1
--
finally remove the password of the login key ring, it needs to be unlocked for the vpn password
##### apache2 web server #####
change directory in /etc/apache2/sites-enabled/000-default.conf
add to /etc/apache2/apache2.conf
--
<Directory /data/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
EnableMMAP Off
</Directory>
--
####create RAID#
#use partitions and make them a little smaller becuase disk sizes are not always the same which can cause problems when swapping disks
sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
use GUI to fromat and setup RAID in /data
check whetehr RAID exists after reboot
#### VISSSS Software #################
cd
git clone https://github.com/maahn/VISSS
mkdir -p /home/visss/.local/share/applications/
ln -s /home/visss/VISSS/scripts/visss_gui.desktop /home/visss/.local/share/applications/
sudo cp /home/visss/VISSS/scripts/visss-sudoers /etc/sudoers.d/visss
#launch visss_trigger and visss_follower in /home/visss/Desktop/VISSS/scripts/ to sign them
mkdir -p ~/.config/autostart
ln -s /home/visss/VISSS/scripts/visss_gui.desktop /home/visss/.config/autostart/
#### Ethernet card #################
Only required for 5000baseT interfaces and nano 5G cameras:
sudo cp VISSS/scripts/advertise5000baseT.service /etc/systemd/system
sudo systemctl enable advertise5000baseT.service
Ethtools responds with 'Cannot advertise speed 5000 duplex full' but it works anyway?
test with:
sudo service advertise5000baseT start
systemctl status advertise5000baseT.service
sudo ethtool enp4s0
#### clock
*** only needed when two computers record data of cameras **
add trigger as a clock for the follower, open "sudo nano /etc/chrony/chrony.conf"
server ADD.TRIGGER.IP.ADDRESS iburst prefer
on the trigger "sudo nano /etc/chrony/chrony.conf"
# Allow NTP client access from local network.
allow ADD.FOLLOWER.IP.ADDRESS
on both "sudo systemctl restart chronyd"
check clock status with "chronyc sources", ^* in the beginning means that clock is mainly used.
#### automatic updates
automatic security updates can be enabled follow
https://help.ubuntu.com/community/AutomaticSecurityUpdates
but make sure to exclude kernel upgrades becuase they mess with the serial card drivers:
Unattended-Upgrade::Package-Blacklist {
"linux-headers*";
"linux-image*";
"linux-generic*";
"linux-modules*";
}