Files
Inanis_Vault/21-Server Reference/px2-server/General Notes.md

56 lines
1.3 KiB
Markdown

Pixel 2, currently running Ubuntu Touch, installed by UBPorts Installer
System starts off read only. For uh... security or something like that. Disable it with ```sudo mount -o remount,rw /```, then add the following conf file.
#### sudo nano /etc/init/force-rw.conf
```
description "Force Root Writable"
start on mounted MOUNTPOINT=/
task
script
mount -o remount,rw /
end script
```
# Tailscale Setup
```
sudo apt update && sudo apt install curl
curl -fsSL https://tailscale.com/install.sh | sh
sudo chmod 666 /dev/net/tun
sudo tailscaled --tun=userspace-networking --socks5-server=localhost:1055 &
sudo tailscale up --ssh
```
#### /etc/init/tailscaled.conf
```
description "Tailscale Service"
start on (filesystem and net-device-up IFACE=wlan0)
stop on runlevel [!2345]
respawn
script
# 1. Clean up environment
mkdir -p /run/tailscale
mkdir -p /var/lib/tailscale
rm -f /run/tailscale/tailscaled.sock
# 2. Start the DAEMON (No --ssh flag here)
/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --tun=userspace-networking --socks5-server=localhost:1055 &
# 3. Give the daemon and Wi-Fi time to handshake
sleep 15
# 4. Run the CLI to enable SSH and networking
/usr/bin/tailscale up --ssh --tun=userspace-networking
end script
```