티스토리 뷰
Prerequisition
1. Ubuntu 18.04 - Torrent Server.
2. Windows 10 1809 - Client and configure
3. Ubuntu require internet connection and both systems are connected. (sudo ip addr add 10.0.0.1/8 dev ens38)
Added 18/09/2019
Try to automate using bach shell
I assume you run this on SSH session.
1. Run the script (Single line)
curl -s https://raw.githubusercontent.com/last72/linux_scripts/master/torrentbox | sudo bash
Github Link: https://github.com/last72/linux_scripts
Table of Contents
1. Configure SSH
2. Connect to Ubuntu using PuTTY
3. Share Download folder
4. Install qbittorrent
5. Connect to SMB share
1. Configure SSH
- Ubuntu 18.04
1.1 Open terminal
Ctrl + Alt + T to open Terminal
1.2 Type following commands
sudo apt update
sudo apt install openssh-server
1.3 Check installation
sudo systemctl status ssh
Should display active(running). Press q or Ctrl + c to exit.
Source: https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-18-04/
2. Connect to Ubuntu using PuttY
1.1 Install PuTTY
Download: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
1.2 Connect to Ubuntu
Put IP address of Ubuntu in Host Name. I.e. 10.0.0.1
Click open on the bottom. Click yes to store SSH key.
1.3 Put credentials
Login using root account.
3. Share Download folder
3.1 Install samba
sudo apt update
sudo apt install samba
3.2 Check installation
sudo systemctl status smbd
Should display active(running). Press q or Ctrl + c to exit.
Source: https://linuxize.com/post/how-to-install-and-configure-samba-on-ubuntu-18-04/
3.3 Create download folder
sudo mkdir /torrent
3.4 Create smb admin
sudo useradd smbadmin
sudo smbpasswd -a smbadmin
sudo smbpasswd -e smbadmin
sudo chown smbadmin /torrent
sudo chmod 2770 /torrent
3.5 Configure Samba
sudo nano /etc/samba/smb.conf
Append following lines
[torrent]
path = /torrent
browseable = yes
read only = no
valid users = smbadmin
Ctrl + O to save, Ctrl + X to exit.
3.6 Restart samba
sudo systemctl restart smbd
sudo systemctl status smbd
Should display active(running). Press q or Ctrl + c to exit.
Source: https://linuxize.com/post/how-to-install-and-configure-samba-on-ubuntu-18-04/
4. Install qbittorrent
4.1 Install qbittorrent
sudo apt install qbittorrent-nox
sudo useradd qbtuser
sudo nano /etc/systemd/system/qbittorrent.service
Type and save
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
User=qbtuser
ExecStart=/usr/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox
[Install]
WantedBy=multi-user.target
Ctrl + O to save, Ctrl + X to exit.
4.2 Launch qbittorrent
sudo su qbtuser
qbittorrent-nox
Login to qbtuser and launch qbittorrent. Press y to agree to the legal notice.
Press Ctrl + C to exit.
exit
exit qbtuser.
sudo systemctl start qbittorrent
sudo systemctl status qbittorrent
sudo systemctl enable qbittorrent
4.3 Browse through https://10.0.0.1:8080 (Ubuntu IP address)
Default ID/PW is admin/adminadmin
4.4 qbittorrent setting
Change admin password and download directory.
Go to Tools - Options... - Downloads - Harddisk and change the location to /torrent
Go to Tools - Options... - Web UI - Authentication and change username and password.
Source: https://www.linuxbabe.com/ubuntu/install-qbittorrent-ubuntu-18-04-desktop-server
uTorrent: https://www.linuxbabe.com/ubuntu/install-utorrent-ubuntu-16-04-17-04
5. Connect to SMB share
5.1 Connect in Windows machine
Open file explorer and go to This PC
Click Map network drive under Computer tab.
Put IP address of server and share name and click finish.
\\10.0.0.1\torrent
Now you can see Z drive as share folder and you can see torrent downloads.
Troubleshoot
- Turn off Ubuntu update: https://www.omgubuntu.co.uk/2016/02/how-to-disable-automatic-update-ubuntu
- Cannot perform apt command: https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process/315791#315791
- Windows 'Multiple connections to a server or shared resource by the same user' Error: https://stackoverflow.com/questions/24933661/multiple-connections-to-a-server-or-shared-resource-by-the-same-user-using-more
Why don't I use FreeNAS?
- FreeNAS does not support wifi (usb wifi) and I cannot connect using ethernet. Speed is about 50mbps.
'IT' 카테고리의 다른 글
YouTube playlist to iPhone (0) | 2019.06.13 |
---|---|
USB NIC speedtest (0) | 2019.06.09 |
Rename bluetoothe device in Windows 10 (0) | 2019.06.01 |
iPhone Activation lock (0) | 2019.06.01 |
DnF on VM (0) | 2019.05.24 |