Commit 75a99292 authored by Pierre Bürki's avatar Pierre Bürki
Browse files

Add xRDP to setup script

parent 37a242f4
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
#!/bin/bash

# Note : this script assumes the OS to be Lubuntu 18.04.4 LTS (it should also work on Ubuntu 18.04.4 LTS)

# install dependencies
apt -y install curl libglfw3{,-dev} libglew-dev libopencv-{core,imgproc,objdetect}-dev libfreeimage-dev libboost-filesystem-dev libpugixml-dev libopenni{,2}-dev
# remove automatically installed package -y
@@ -10,11 +8,11 @@ apt -y purge openni-utils -y
# install RealSense SDK 2.35
apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
sudo apt-get -y install librealsense2-dev
apt-get -y install librealsense2-dev

# prepare to install Nuitrack
wget https://launchpad.net/~ubuntu-security/+archive/ubuntu/ppa/+build/15108504/+files/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb -O libpng.deb
sudo dpkg -i libpng.deb
dpkg -i libpng.deb
rm libpng.deb

# fix logname error on Lubuntu 18.04
@@ -33,3 +31,11 @@ rm nuitrack.deb
# restore actual logname program
mv /usr/bin/logname{bckp,}

# install xRDP for remote control
# thanks to https://askubuntu.com/questions/580415/how-to-remote-desktop-from-windows-to-lubuntu
# for the black screen fix
apt install -y xrdp
echo "lxsession -e LDXE -s Lubuntu" > ~/.xsession

# display the calibrator script on the desktop for ease of access
cp Calibration\ tool ~/Desktop