Skip to content

Instantly share code, notes, and snippets.

@typcn
Last active May 5, 2019 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save typcn/52506f29ade87df6f208ca11bf721a4b to your computer and use it in GitHub Desktop.
Save typcn/52506f29ade87df6f208ca11bf721a4b to your computer and use it in GitHub Desktop.
Install cloudflare railgun on ArchLinux
#!/usr/bin/zsh
mkdir rg-install
cd rg-install
wget http://pkg.cloudflare.com/dists/xenial/railgun/binary-amd64/Packages.gz
gunzip Packages.gz
wget "http://pkg.cloudflare.com/${$(cat Packages | grep Filename:)//Filename: }"
ar -x *.deb
tar xvf data.tar.xz
rm -rf /usr/local/railgun
mkdir -p /usr/local/railgun
mv etc /usr/local/railgun
mv usr/bin/* /usr/local/bin/
cd ..
rm -rf rg-install
[Unit]
Description=Cloudflare Railgun
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/rg-listener -config=/usr/local/railgun/etc/railgun/railgun.conf
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment