Categories
Open Source Tech

Torrent Container for Proxmox

Why Do This?

I always end up downloading ISO images for use in VMs using my laptop. I’m rarely running the torrent program on my laptop, so I am a leecher!

Proxmox is running 24/7, so I can help the rest of the community by being a seeder!

Creating a container to avoid having too much configuration on the Proxmox server itself. The idea is to keep Proxmox a pure VM host, not a Torrent server.

Plus, the setup is finicky, so being able repeatedly wipe the container and start over is helpful!

Before We Begin

The setup assumes that networking has been configured for both the Proxmox host, and the container that will run the Transmission torrent client.

In case local DNS is not configured, IP addresses are fine!

  • pve1: Physical server that is running Proxmox
  • torrent0: Debian container to run Transmission and Samba.

Both of these servers have IP addresses on the 192.168.27.0/24 network.

Transmission (Torrent)

root@torrent0:~# apt install transmission-daemon transmission-cli
root@torrent0:~# cp /etc/transmission-daemon/settings.json /etc/transmission-daemon/settings.json.original

root@torrent0:~# service transmission-daemon stop

root@torrent0:~# nano /etc/transmission-daemon/settings.json
    "download-dir": "/srv/smb/template/iso",
    "rpc-password": "YourSecretPassword",
    "rpc-whitelist": "192.168.27.*",

root@torrent0:~# service transmission-daemon start

Downloading a torrent will cause that that directory to be automatically created if it doesn’t exist. Avoid doing that until we’ve completed more steps in the setup.

For more information, see Debian’s documentation.

Samba (CIFS / SMB)

root@torrent0:~# apt install samba

root@torrent0:~# smbpasswd -a debian-transmission
root@torrent0:~# mkdir /srv/smb
root@torrent0:~# chown debian-transmission:debian-transmission /srv/smb/

root@torrent0:/etc/samba# cp smb.conf smb.conf.default 
root@torrent0:/etc/samba# nano smb.conf

[smb]
   comment = SMB Share 
   path = /srv/smb 
   guest ok = no
   browseable = yes
   readonly = no

root@torrent0:~# systemctl restart smbd
root@torrent0:~# systemctl status smbd

For more information, see Debian’s documentation.

Connect Proxmox

I had buggy issues removing/editing CIFS shares from the web GUI. Falling back to command line.

root@pve1:~# pvesm add cifs tor0 --server torrent0.vnet --share smb --username debian-transmission --password 'YourSecretPassword'
--then manually edited to change storage type to ISO in GUI

This automatically creates /template/iso/ under whatever share you give it.

For more information, see the Proxmox Storage Documentation

And also, forum post related to bugs adding/removing CIFS.

Download ISO Files

The Web GUI can be accessed here: http://torrent0:9091

  • Default UN: transmission
  • PW: Configured earlier in tutorial

I’ve had better luck with .torrent files than magnet links, but YMMV.

Categories
First Times

First Time Draining a Chip Shot in Golf

I made a 30ft shot in the hole!

It was at The Divide Golf Club in Matthews, NC.

Here’s the view from where I chipped it in.

Bonus First: A round of golf with my own clubs.

Categories
First Times

First Time Seeing a Shower with the Faucet on the Opposite Wall of the Shower Head

My wife and I were staying at the Spring Hill Suites in Mt Pleasant SC.

We were the because we were attending our friends Joe and Caroline’s wedding in Charleston. Congrats Joe and Caroline!

The faucet of the showers is on the opposite wall from the shower head. It was so weird!

Categories
First Times

First Time Donating a Car to NPR (WFAE)

I’ve had my 2001 Ford Focus since 2012. It starting having trouble lately, at it was time to let it go!

I decided to donate it to the local NPR station, WFAE.

Does this sound like a good idea? Check out more details about WFAE’s Vehicle Donation Program!

Off she goes!
What a modern interior. . . for the year 2000
So many hours of work. Kept it running for a solid 8 years!
Categories
First Times

First Time Riding in a Tesla

I went disc golfing with my neighbor Brian today. He has a Tesla. I got to ride in it.

Categories
Tech

Pass Static IP to pfSense with AT&T Router

I have a pfSense router. It should have a public, static IP address.

AT&T requires that I use their gateway, so I cannot use the pfSense router as my edge device.

The solution mostly came from a post on the AT&T community forums titled How do I setup an AT&T Internet Static IP?

The first step is to configure the public subnet. My static IP address block has the following details:

  • Network Address: 99.107.120.136
  • Subnet Mask: 255.255.255.248

This is a block of 8 IP addresses. The AT&T post goes into detail about how the blocks are configured. For my particular assignment, they break down as follows:

IP AddressUsage
99.107.120.136Network Address
99.107.120.137Available
99.107.120.138Available
99.107.120.139Available
99.107.120.140Available
99.107.120.141Available
99.107.120.142Reserved for AT&T Gateway
99.107.120.143Broadcast Address
IP Address Breakdown

The only section that needs to be edited is “Public Subnet”. All other items are left at defaults.

pfSense is configured to get a WAN address from a DHCP server. Next up, we need to move pfSense from the private (LAN) subnet to the public subnet.

Locate pfSense either by hostname, or by the MAC address of the WAN port. Notice that it got a LAN IP by default.

If you don’t see it in the allocation list, reboot pfSense.

pfSense old allocation

Click “Allocate” and choose a public IP.

Reboot pfSense.

Now, it should have an IP on the public subnet!

Categories
Open Source

Multiple WordPress Blogs

I’ve effectively created multiple blogs by using post categories.

Full credit to this tutorial.

Categories
First Times

First Trip to Costco

Costco was almost exactly like I imaged it. Warehouse looking, low prices, pallets of stuff.

It had some random items for sale I would not have expected. Examples would be kitchen gadgets, flashlights, hoodies, etc. Basically a bunch of impulse-buy type stuff.

I made the trip with my wife, her sister, and my brother-in-law. Thanks to Max and Rachel for letting us join them on their trip!

Categories
Open Source

Rendering README files on GitHub

I thought that GitHub would only render README.md files on in the root page of the project.

I just noticed that a repo can have multiple README.md files!

I happened to notice it in Microsoft’s repo for Visual Studio Code Development Containers.

Categories
First Times

First Rainbow Rail

This was the first time I’ve snowboarded over a rainbow rail.

It was also the first solo snowboarding trip I’ve taken. My wife Bethany was in Ireland, so I headed up to Beech Mountain Resort for the weekend.

It was peaceful and relaxing to have just me and the mountain for a few days.

The weather was crisp, cold and beautiful. The trees were coated in ice!

I had to bundle up to stay warm. The magnetic goggles and matching face mask did a great job!

I was super excited to take the very last chair up with the ski patrol. What an amazing end to a great day of boarding!