# Install Flatpak and add the Flathub repo if you haven't already # See: https://flatpak.org/setup/ or run the below commands on Ubuntu/Debian sudo apt install flatpak gnome-software-plugin-flatpak flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo # Install Barrier without asking any questions flatpak install com.github.debauchee.barrier -y
On the server computer, click “configure server” and set up the positions of the clients and their hostnames. This must be done before Barrier is started otherwise it will reject all connection attempts.
# Make a .desktop file in the autostart folder and make it executable echo " [Desktop Entry] Name=Barrier Exec=flatpak run com.github.debauchee.barrier --config Type=Application " > ~/.config/autostart/barrier.desktop chmod +x ~/.config/autostart/barrier.desktop # Add the Barrier server hostname to the config file (only run this on client devices) echo "serverHostname=XXX.XXX.XXX.XXX" >> ~/.var/app/com.github.debauchee.barrier/config/Debauchee/Barrier.conf