Skip to content

Instantly share code, notes, and snippets.

@krasnuydyx
Forked from integrii/setup.sh
Last active October 21, 2016 14:21
Show Gist options
  • Save krasnuydyx/dd3d1afa9482f6b21d0f to your computer and use it in GitHub Desktop.
Save krasnuydyx/dd3d1afa9482f6b21d0f to your computer and use it in GitHub Desktop.
uTorrent Server (utserver) on Centos 7 (x86_64)
#!/bin/bash
# Took me awhile to figure out how to install utserver on Centos 7 x86_64... Especially with the new systemd subsystem. None of the builds I saw support it - but it will work with a couple symlinks and compatibility packages.
yum install glibc libgcc openssl krb5-libs libcom_err zlib keyutils-libs libselinux glibc glibc.i[36]86 libgcc libgcc.i[36]86 openssl openssl.i[36]86 krb5-libs krb5-libs.i[36]86 libcom_err libcom_err.i[36]86 zlib zlib.i[36]86 keyutils-libs keyutils-libs.i[36]86 libselinux libselinux.i[36]86 openssl098e-0.9.8e-29.el7.centos.2.i686 -y
ln -s /usr/lib/libssl.so.0.9.8e /lib/libssl.so.0.9.8
ln -s /usr/lib/libcrypto.so.0.9.8e /lib/libcrypto.so.0.9.8
mkdir /var/utserver
wget -O /var/utserver/utorrent-server-3.0-25053.tar.gz http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz
cd /var/utserver/
tar zxf utorrent-server-3.0-25053.tar.gz
mv /var/utserver/utorrent-server-v3_0/* /var/utserver/
rm -rf /var/utserver/utorrent-server-v3_0
cat << EOF > /usr/lib/systemd/system/utserver.service
[Unit]
Description=uTorrent Server (8080)
After=network.target
[Service]
WorkingDirectory=/var/utserver
User=root
ExecStart=/var/utserver/utserver
Restart=on-abort
[Install]
WantedBy=multi-user.target
EOF
chown root:root /usr/lib/systemd/system/utserver.service
systemctl enable utserver.service
echo "Browse to http://server:8080/gui and login with user admin and no password."
echo "After logging in, go to settings and setup an admin password."
echo "Want settings? Google utserver.conf for examples..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment