Twingate setup using Distrobox

Following up here from my Youtube comment on @mikes-tech-tips on his video on using Distrobox / Box Buddy to install and use Twingate... I use it for accessing my home file server, PS5 remote play, Moonlight, etc. I've set up a distrobox Ubuntu 22.04 and installed systemctl and twingate, but it gives the following error: OSError: [Errno 30] Read-only file system: '/var/log/journal/twingate.service.log' mikes-tech-tips says he managed to get it working, but I'm curious how he did it, or if there's anything specific I need to do to accomplish that.
6 Replies
wolfyreload
wolfyreloadβ€’7mo ago
Hey πŸ™‚ that was a while back. Let me see if I can get it up and running again Struggling to figure it out again. Will try again tomorrow.
Bjorndorn
BjorndornOPβ€’7mo ago
Much appreciated, here's kinda where I'm at.
No description
wolfyreload
wolfyreloadβ€’7mo ago
Still not working but the service is installed. Run this in your host system the '--init --additional-packages "systemd libpam-systemd"' part is important
distrobox create --name twingate --image debian:latest --init --additional-packages "systemd libpam-systemd"
distrobox enter twingate
distrobox create --name twingate --image debian:latest --init --additional-packages "systemd libpam-systemd"
distrobox enter twingate
Inside the distrobox, run this (in the linux twingate docs for setting up a linux client)
curl -s https://binaries.twingate.com/client/linux/install.sh | sudo bash
sudo twingate setup
curl -s https://binaries.twingate.com/client/linux/install.sh | sudo bash
sudo twingate setup
These were the setup options I picked
# Do you agre to the User Terms...... [A]
# Enter the name of your Twingate network [the network I picked on registration]
# Do you want to automatically start the Twingate service at boot? [Y]
# Do you want the Twingate service to automatically login after restart? [N]
# Do you want to automatically share application error reports with Twingate? [N]
# Do you want to start Twingate now? [N]
# Do you agre to the User Terms...... [A]
# Enter the name of your Twingate network [the network I picked on registration]
# Do you want to automatically start the Twingate service at boot? [Y]
# Do you want the Twingate service to automatically login after restart? [N]
# Do you want to automatically share application error reports with Twingate? [N]
# Do you want to start Twingate now? [N]
sudo twingate config log-level debug # Turn all the logging on
sudo twingate desktop-start
sudo twingate service-start
sudo systemctl start twingate
sudo twingate config log-level debug # Turn all the logging on
sudo twingate desktop-start
sudo twingate service-start
sudo systemctl start twingate
However, the process is immediately exiting if I check
sudo systemctl status twingate
sudo systemctl status twingate
But I immediately get this error Process: 8791 ExecStart=/usr/sbin/twingated /etc/twingate/config.json (code=exited, status=1/FAILURE) Approach 2 Layered Twingate in the atomic image by adapting the Fedora instructions
sudo nano /etc/yum.repos.d/packages.twingate.com_rpm_.repo
sudo nano /etc/yum.repos.d/packages.twingate.com_rpm_.repo
Put this into the content of the file, this will allow you to add twingate to your Atomic image
[packages.twingate.com_rpm_]
name=created by dnf config-manager from https://packages.twingate.com/rpm/
baseurl=https://packages.twingate.com/rpm/
enabled=1
gpgcheck=0
[packages.twingate.com_rpm_]
name=created by dnf config-manager from https://packages.twingate.com/rpm/
baseurl=https://packages.twingate.com/rpm/
enabled=1
gpgcheck=0
Now layer twingate into your Bazzite installation note that this runs for a very long time
rpm-ostree install -y twingate
rpm-ostree install -y twingate
Reboot (important step, since you are layering twingate)
sudo twingate setup # default setup
sudo twingate config log-level debug # Turn all the logging on
sudo twingate desktop-start
sudo twingate service-start
sudo twingate setup # default setup
sudo twingate config log-level debug # Turn all the logging on
sudo twingate desktop-start
sudo twingate service-start
Now when I type the following it gives me a browser url to paste in my browser
sudo twingate status
sudo twingate status
And now it's working. This probably isn't the solution that you were looking for but this works for Atomic desktops. I can try a bit more with the Distrobox approach a bit later
Bjorndorn
BjorndornOPβ€’7mo ago
OMG, thank you! actually I figured the second approach would be the right one but I was getting some weird problems with ostree ("already requested") but i've got a fresh-er install now so I'll give that a go. Really appreciate you taking the time to help me on this! πŸ™‚
wolfyreload
wolfyreloadβ€’7mo ago
You are welcome However, have you tried tailscale? It's very easy to use and preinstalled
Bjorndorn
BjorndornOPβ€’7mo ago
Yes, I have and that worked for using Moonlight while I'm out and about, but PS5 Remote play using Chiaki4Deck couldn't reach my PS5. Tried openVPN on my router and Tailscale using my PC as an exit node, but it just didn't come together quite right. Some such configuration always left me unable to access the internet. I may try Tailscale again, since there's Decky plugins for it.
Want results from more Discord servers?
Add your server