The Inarticulate

← Back to Pinboard

TAGS
  • #bash
  • #docker
  • #ksh
  • #linux
  • #opensource
  • #popen
  • #python
  • #shell
  • #ubuntu
  • #vim
  • #vpn
YEARS
2026 2016 2013 2009 2007 2006
PROJECTS
ydiff view diff side by side
Gcal Exporter Export google calendar events
ipfw.net_ IP Lookup & Firewall Checker
@ymattw

VPS Configuration Portal

Jan 1, 0001

VPS Setup

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

Change Hostname

new_host="newhostname"
sudo hostnamectl set-hostname $new_host
sudo sed -i "s/^127\.0\.0\.1[[:space:]]\+localhost.*/127.0.0.1 localhost $new_host/" /etc/hosts

Change Timezone<

Auto-detect from server IP location:

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

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

sudo timedatectl set-timezone Europe/Zurich

Xray Setup

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