The Inarticulate

A chaotic pinboard of unsorted notes

TAGS ▼
YEARS ▼
PROJECTS ▼
TAGS
  • #automation
  • #docker
  • #life
  • #linux
  • #opensource
  • #proxy
  • #python
  • #rant
  • #regex
  • #shell
  • #ubuntu
  • #vim
  • #vpn
  • #vps
YEARS
2026 2025 2021 2020 2017 2016 2013 2009 2007 2006
PROJECTS
ydiff View diff side by side
Gcal Exporter Export google calendar events
ipfw.net IP Lookup & Firewall Checker
tenuki Play on OGS from terminal
@ymattw

VPS Configuration

Aug 9, 2020

VPS Setup (init )

curl -L joyus.org/vps/init | bash -s ymattw

Change Hostname

new="newhostname"
sudo hostnamectl set-hostname $new
sudo sed -i "s/\b$(hostname -s)\b/$new/g" /etc/hosts

Change Timezone

Auto-detect from server IP location:

tz=$(curl ip-api.com/line?fields=timezone)
sudo timedatectl set-timezone $tz

Or set manually (e.g., Zurich):

sudo timedatectl set-timezone Europe/Zurich

Xray Setup (xray )

curl -L joyus.org/vps/xray | bash -s xx.joyus.org

See also Shadowrocket Rules .

#automation #vps