psychemedia / ou-robotics-vrep

Repository for V-Rep robot simulator activities
Apache License 2.0
6 stars 5 forks source link

Trying to build on Remote Host With RDP #4

Open psychemedia opened 4 years ago

psychemedia commented 4 years ago

Trying to get things running on eg Digital Ocean.

TO DO: need to update the VREP version...: http://www.coppeliarobotics.com/files/V-REP_PRO_EDU_V3_6_2_Ubuntu18_04.tar.xz

To unzip the .xz file, use tar -xf V-REP_PRO_EDU_V3_6_2_Ubuntu18_04.tar.xz

git clone https://github.com/psychemedia/ou-robotics-vrep.git

#For cloning a branch:
#git clone -b BRANCH --single-branch https://github.com/psychemedia/ou-robotics-vrep.git

cd ou-robotics-vrep/robotVM/build

chmod +x ./monolithic_build.sh
./monolithic_build.sh

#py package needs fixing in install script...
pip install  git+https://github.com/Troxid/vrep-api-python.git

#install xrdp
apt-get install xrdp
#check status
# /etc/init.d/xrdp status

#headless?
#apt-get install xvfb
#xvfb-run --auto-servernum --server-num=1 -s "-screen 0 640x480x24" /opt/V-REP_PRO_EDU_V3_6_2_Linux/vrep.sh

To provide RDP support, we need to add in a user for login:

eg: adduser test1

Running in desktop mode seemed to throw errors... but then started working?

Was this a permissions thing, or something else? (usermod -aG sudo test1)

Also, possibly missing av drivers?

apt-get install -y libavcodec-dev libavformat-dev libswscale-dev

psychemedia commented 4 years ago

Building from:

git clone -b digitalocean --single-branch https://github.com/psychemedia/ou-robotics-vrep.git

RDP just opens onto a black screen, which may be something to do with the way I tried to configure the initial desktop startup.

Try to do an incremental build to see how things go...

git clone -b digitalocean --single-branch https://github.com/psychemedia/ou-robotics-vrep.git

apt-get update && apt-get install -y --no-install-recommends ubuntu-desktop && apt-get install -y gnome-terminal unity-lens-applications unity-lens-files && apt-get clean

apt-get update && apt-get install -y xrdp  && apt-get clean

useradd vagrant  
echo "vagrant:vagrant" | chpasswd

Hmmm... that just give's a black screen...

Works ok if I use: adduser...

adduser --disabled-password --gecos "" robot3
echo "robot3:robot3pwd" | chpasswd