UserVM Handbook: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
sudo pacman -S --needed git
sudo apt install git
}}
Now let's clone the source. This is assuming you're in your home directory but you can clone it wherever
{{code|
git clone https://github.com/computernewb/collab3 collab-vm-server
cd collab-vm-server
git checkout release/1.2.11
}}
Next, we need to install some build dependencies. First, the compile tools:
{{code|
sudo apt install build-essential clang # Debian
sudo pacman --needed -S clang base-devel # Arch
}}
Then run the included script to install required libraries:
{{code|
scripts/grab_deps_linux.sh
}}
Note that this only works on Debian or Arch-based distros. For other distros you'll need to track down the dependencies yourself, these are:
{{code|
libvncserver, cairo, boost, sqlite, turbojpeg
}}
Next, we need to enable reverse proxying mode, as proxying behind nginx with SSL is required for a UserVM.
{{code|
sed -i 's/\/\/#define WEBSOCKETMM_SUPPORT_PROXYING/#define WEBSOCKETMM_SUPPORT_PROXYING/g' src/websocketmm/websocket_user.cpp
}}
Lastly, you should switch to listening on 127.0.0.1 rather than 0.0.0.0, which keeps the port CollabVM is running on closed. This is necessary in reverse proxy mode as anyone with the port can spoof their ip by setting the X-Forwarded-For header.
{{code|
sed -i 's/0.0.0.0/127.0.0.1/g' src/Main.cpp
}}
Finally, build the server
{{code|
make CC=clang CXX=clang++ JPEG=1
}}

Navigation menu