Last active
April 10, 2018 21:50
-
-
Save yagop/da65d3bbdd773582596678df204de1b0 to your computer and use it in GitHub Desktop.
My Scaleway Ubuntu base script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /mnt/downloads | |
chmod 777 /mnt/downloads/ | |
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount | |
sudo systemctl enable tmp.mount | |
sudo systemctl start tmp.mount | |
mkfs -t ext4 /dev/vdb | |
cp mnt-downloads.mount /etc/systemd/system/ | |
systemctl enable mnt-downloads.mount | |
systemctl start mnt-downloads.mount | |
useradd yago -m -d /home/yago -s /bin/bash -k /etc/skel | |
echo "yago ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/yago | |
mkdir -p /home/yago/.ssh | |
curl -L -s "http://git.io/vO0rT" -o /home/yago/.ssh/authorized_keys | |
usermod -a -G adm yago | |
chown -R yago:yago /home/yago |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"file": 1, | |
"format": 1 | |
}{ | |
"info_sent": 0.0, | |
"lsd": true, | |
"max_download_speed": 10000.0, | |
"send_info": false, | |
"natpmp": true, | |
"move_completed_path": "/home/yago/Downloads", | |
"peer_tos": "0x00", | |
"enc_in_policy": 1, | |
"queue_new_to_top": false, | |
"ignore_limits_on_local_network": true, | |
"rate_limit_ip_overhead": true, | |
"daemon_port": 58846, | |
"torrentfiles_location": "/home/yago/downloads", | |
"max_active_limit": 8, | |
"geoip_db_location": "/usr/share/GeoIP/GeoIP.dat", | |
"upnp": true, | |
"utpex": true, | |
"max_active_downloading": 3, | |
"max_active_seeding": 5, | |
"allow_remote": false, | |
"outgoing_ports": [ | |
0, | |
0 | |
], | |
"enabled_plugins": [], | |
"max_half_open_connections": 50, | |
"download_location": "/home/yago/downloads", | |
"compact_allocation": false, | |
"max_upload_speed": 10000.0, | |
"plugins_location": "/home/yago/.config/deluge/plugins", | |
"max_connections_global": 200, | |
"enc_prefer_rc4": true, | |
"cache_expiry": 60, | |
"dht": true, | |
"stop_seed_at_ratio": false, | |
"stop_seed_ratio": 2.0, | |
"max_download_speed_per_torrent": -1, | |
"prioritize_first_last_pieces": false, | |
"max_upload_speed_per_torrent": -1, | |
"auto_managed": true, | |
"enc_level": 2, | |
"copy_torrent_file": false, | |
"max_connections_per_second": 20, | |
"listen_ports": [ | |
6881, | |
6891 | |
], | |
"max_connections_per_torrent": -1, | |
"del_copy_torrent_file": false, | |
"move_completed": false, | |
"autoadd_enable": true, | |
"proxies": { | |
"peer": { | |
"username": "", | |
"password": "", | |
"hostname": "", | |
"type": 0, | |
"port": 8080 | |
}, | |
"web_seed": { | |
"username": "", | |
"password": "", | |
"hostname": "", | |
"type": 0, | |
"port": 8080 | |
}, | |
"tracker": { | |
"username": "", | |
"password": "", | |
"hostname": "", | |
"type": 0, | |
"port": 8080 | |
}, | |
"dht": { | |
"username": "", | |
"password": "", | |
"hostname": "", | |
"type": 0, | |
"port": 8080 | |
} | |
}, | |
"dont_count_slow_torrents": false, | |
"add_paused": false, | |
"random_outgoing_ports": true, | |
"max_upload_slots_per_torrent": -1, | |
"new_release_check": false, | |
"enc_out_policy": 1, | |
"seed_time_ratio_limit": 7.0, | |
"remove_seed_at_ratio": false, | |
"autoadd_location": "/home/yago/torrents", | |
"max_upload_slots_global": 4, | |
"seed_time_limit": 180, | |
"cache_size": 512, | |
"share_ratio_limit": 2.0, | |
"random_port": true, | |
"listen_interface": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Mount Downloads | |
[Mount] | |
What=/dev/vdb | |
Where=/mnt/downloads | |
Type=ext4 | |
Options=defaults,errors=remount-ro | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment