Guest User

Untitled

a guest
Aug 21st, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.91 KB | None | 0 0
  1. Getting the ultimate home theatre setup with DLNA and automatic usenet configuration is one of those things that has a very high amount of one-time setup, but very minimal maintenance afterwards and huge amounts of payoff. I often have people approach me asking how I setup my usenet system at home, well consider this a tutorial of sorts... or at least how I did it.
  2.  
  3. The first thing to understand is how my network is laid out at home, it's fairly simple, PCs and Internet connection are upstairs, TV downstairs. I purchased two "in-line" power adapters for my home, these adapters plug into your electrical outlets and allow you to broadcast ethernet through your home power outlets. It's a bit faster than standard WIFI and a little less flakey so long as you have a solid power infrastructure in your home. To answer one of the primary concerns of "in-line" power: "Yes it does transmit through your breaker panel at home".
  4.  
  5. So I've got one of these in-line adapters by my TV on the main floor and by my PCs on the top floor. My home router is upstairs with the PCs and the in-line power adapter is plugged into the home router. In-Line Ethernet isn't perfect, it still isn't fast enough to stream a full 1080p MKV so there is a little bit of trickery. My NAS (more on this in a little bit) and my TV is connected to a gigabit switch which is connected to the in-line power on the main floor. What this allows is full gigabit streaming between my TV and my NAS. The NAS controls everything, downloading, streaming, indexing and DLNA. The most bandwidth is used up between the TV and the NAS, not the NAS and the router, so it makes sense that the NAS and the TV should be on a gigabit switch together. Now this might cause problems if you try to stream a 1080p MKV to your PCs on the other side of your home, but you have to ask yourself what's more important? Streaming to your TV or to your PCs... to me the answer is TV.
  6.  
  7. The NAS can be used for other purposes other than just streaming video, it can stream music, store documents, but I wouldn't really let it store files or executables that your PCs often use, these should be stored on the internal storage on your PCs. Plus if you have a NAS with RAID it can be a viable nightly backup solution if you require such a feature.
  8.  
  9. THe NAS I purchased was a Seagate GoFlex Home 3TB. It's a single drive bay (so no RAID), but I figure I don't really need RAID as most of the things I'm putting on the NAS is pretty volitile to begin with, plus I have no need for a home backup solution as most of my important documents are on my Google Drive. Out of the box the GoFlex Home comes pre-bundled with a DLNA service, but it's pretty limited... luckly we can install a custom copy of ArchLinux ARM on it.
  10.  
  11. It's a good idea at this point to make a DHCP reservation for your NAS in your router. This is good for port forwarding later if you want to access your media services remotely.
  12.  
  13. To install ArchLinux I followed this guide:
  14. http://archlinuxarm.org/platforms/armv5/seagate-goflex-home
  15.  
  16. I'll break it down here as well.
  17.  
  18. Before doing anything I needed to empty out the NAS as installing ArchLinux would format the entire storage array. This was as simple as cutting and pasting the file structure to a temporary storage location on my PC.
  19.  
  20. Next I had to create a user account on the NAS. I already was using the NAS and the Seagate dashboard had me do this automatically.
  21.  
  22. Now I needed to get all the device information, I wrote down the PN#, SN#, MAC ADDR and PK# just for reference, also wrote down the IP address incase I forgot it.
  23.  
  24. Next I needed to SSH into the NAS, I simply downloaded Putty, typed the IP into the hostname and the NAS prompted me for a login.
  25.  
  26. The login is a combination of the default login, your username you previously setup and your PK#. I logged in with USERNAME_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX where USERNAME was my username and XXXX-XXXX-XXXX-XXXX was my PK#. It prompted me for a password and I typed the password I configured with my username.
  27.  
  28. Now to login with super user privilages. I typed sudo -E -s and my password again and was greeted with the bash prompt# signifing I'm in super user mode.
  29.  
  30. Next I killed all the processes that start by default I simply typed:
  31. killall -9 mynetworkd access-patrol seagate-lifecycle oe-spd xinetd udevd httpd avahi-daemon smbd nmbd vsftpd afpd minidlna mt-daapd check_igd.pl igd-daemon
  32.  
  33. The -9 flag uses the stronger kill signal called SIGKILL and it nearly guarantees that the process will be killed.
  34.  
  35. Now time to kill the swap space, this is done by typing:
  36. /sbin/swapoff -a
  37.  
  38. Swapping is the process where a page of memory is copied to the preconfigured space on the disk called the swap space so you can free up memory. Swapping is useful when the system requires more memory than physically availble so it swaps it to disk when not critically being used. When messing with the disk we don't want the system trying to swap memory to disk space.
  39.  
  40. If you are curious you can do a "mount" to see what drives are currently mounted to the NAS. Our goal right now is to unmount the sda1 drive (which is the sata drive). You can see at this point there are various mounts of different sections of the SATA drive to different shares, we want to unmount all of these.
  41.  
  42. Now we want to unmount the SATA drive so we can format it, we do this by issuing this command:
  43. while [ `mount | grep sda1 | wc -l` -gt 0 ]; do umount -f /dev/sda1; done
  44.  
  45. This command will iterater through all the sda1 mounts, try to unmount them and if it can't try again. When I issued this command the minidlna mount was looping infinitly so I did a ps aux | less and tried to look for any process ID running minidlna, found the process number and did a kill -9 on that PID, ran the unmount loop again and it completed with no problem.
  46.  
  47. You can verify that the SATA drive is unmounted by doing a "mount" and check that there are no sda1's listed.
  48.  
  49. PREPARING THE FILE SYSTEM
  50.  
  51. Now we start fdisk to partition the SATA drive by typing:
  52. /sbin/fdisk /dev/sda
  53.  
  54. First issue command o which creates a new empty DOS partition table
  55. Next issue a p to list the partitions to verify that they are now removed
  56. Now issue a n to create a new partition
  57. Set it as a primary partition
  58. Set it as the first partition number
  59. Hit enter to set the first cylinder as the first part of the partition
  60. Now type +20G to set the size of the partition, this creates a 20gig partition for ArchLinux
  61. You can verify the partition by hitting p
  62.  
  63. Now we want to create a second partition which will be the data portion of the drive
  64. Type n for new, p for primary, 2 for second partition
  65. set as a primary partition
  66. start with the default sector
  67. Now type +1700G to set the size of the partition
  68. We want to change the partition for sda2 so hit t to change the partition type
  69. Select the second partition
  70. and finally type 87 for the NTFS partition code
  71.  
  72. Now we want to create the swap partition
  73. n for new
  74. p for primary
  75. 3 for third
  76. start with the default sector
  77. Now type +2G to set the size
  78.  
  79. Lastly you can check the partition list again by hitting p
  80.  
  81. Finally hit w to write
  82.  
  83. During this process you might get an invalid flag warning, don't worry, this will be corrected by doing a write.
  84.  
  85. Now we need to make the ext3 filesystem, required for ArchLinux. Unfortunately the default shell on this NAS has no way of creating an ext3 filesystem so we much download the executable.
  86.  
  87. First we want to switch to a tmp directory, no use mucking up anything else.
  88. cd /tmp
  89.  
  90. Remember you can do a pwd to get your current working directory.
  91.  
  92. Now we want to wget the mke2fs archive from the archlinuxarm web server:
  93. wget http://archlinuxarm.org/os/pogoplug/mke2fs
  94.  
  95. You can verify that mke2fs is there by doing a ls.
  96.  
  97. Now we need to set the permissions on mke2fs to be executable:
  98. chmod 755 mke2fs
  99.  
  100. Now we want to create an ext3 file system on sda1:
  101. ./mke2fs -j /dev/sda1
  102.  
  103. The -j flag creates and ext3 journal.
  104.  
  105. INSTALLING ARCHLINUX ARM
  106.  
  107. Now we want to create a directory for archlinux ARM:
  108. mkdir alarm
  109.  
  110. Now we want to mount the file system found on sda1 at the directory /tmp/alarm we do this by issuing the following:
  111. mount /dev/sda1 alarm
  112.  
  113. You can do a mount to see the mount we just created and it's file type (ext3).
  114.  
  115. Now we download archlinux:
  116. cd alarm
  117. wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz
  118.  
  119. This is about a 155MB download, keep an eye on it and make sure it completes with no issues.
  120.  
  121. Now we extract it:
  122. tar -xzvf ArchLinuxARM-armv5te-latest.tar.gz
  123.  
  124. Now we remove the tar file, since it's extracted:
  125. rm ArchLinuxARM-armv5te-latest.tar.gz
  126.  
  127. Finally we sync, this will write any memory to disk:
  128. sync
  129.  
  130. Now we want to unmount the archlinux drive from sda1:
  131. cd ..
  132. unmount alarm
  133.  
  134. Again you can do a mount to make sure it's unmounted
  135.  
  136. INSTALLING UBOOT
  137.  
  138. Ok now we install u-boot, which is a universal bootloader for embedded devices.
  139.  
  140. We head back into our /tmp directory:
  141. cd /tmp
  142.  
  143. And download the u-boot files:
  144. wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd
  145. wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start
  146.  
  147. Make the ubit_start executable:
  148. chmod +x ubit_start
  149.  
  150. And start the ubit environment:
  151. ./ubit_start
  152.  
  153. CONFIGURING UBOOT
  154.  
  155. You'll know you're in the uboot environment because your shell will change.
  156.  
  157. First we have to install a few things into uboot, specifically the boot loader for your device, for me I have to install the goflexhome bootloader, then copy the OE U-boot into unused NAND memory:
  158. chain_install goflexhome
  159. chain_revert
  160. uboot_uptodate
  161.  
  162. Now we set the mac address into u-boot:
  163. ethaddr uu:vv:ww:xx:yy:zz
  164.  
  165. Couple more things to install, first the rescue system:
  166. on /dev/sda1 ubit_write
  167.  
  168. And Mark the parition with the sepcia label "rootfs":
  169. tune2fs -L "rootfs" /dev/sda1
  170.  
  171. REBOOTING THE DEVICE
  172.  
  173. Now we want to exit UBIT and reboot into Arch Linux ARM:
  174. exit
  175. /sbin/halt
  176.  
  177. Wait for the unit to shut down, then physically power the unit using the power switch or unplugging it.
  178.  
  179. SUMMARY THUS FAR
  180.  
  181. OK, so what did we do? First we formatted the NAS, then we prepared the filesystem for ArchLinux ARM, installed Arch, then installed a bootloader so when the NAS boots up it automatically loads Arch. Fairly simple now that you are done.
  182.  
  183. The rest of this article is pretty much taken word for word from the following link:
  184. http://blog.philippklaus.de/2011/04/install-archlinuxarm-on-the-seagate-goflex-home/
  185.  
  186. UPDATING ARCHLINUX
  187.  
  188. First thing you'll want to do is check your DHCP reservations again, since the hostname has changed you might have to connect to a different IP address or change your reservation.
  189.  
  190. SSH to the NAS again and you will be prompted for a login, this time use root/root.
  191.  
  192. Now you will be at the alarm shell.
  193.  
  194. Run a full system update first:
  195. pacman -Syu
  196.  
  197. Now change the root password:
  198. passwd
  199.  
  200. Now you'll want to create a useraccount to use other than root. You can define supplimentary groups for that user to be part of and also define which shell the user should use by default. Here's my script:
  201. useradd -m -g users -G audio,storage,video,games -s /bin/bash wmcmahon
  202.  
  203. Now set the password for the user:
  204. passwd wmcmahon
  205.  
  206. You can get the full list of all users by doing the following:
  207. cat /etc/passwd
  208.  
  209. SETTING JUMBO FRAMES
  210.  
  211. Most NAS and networking gear support "jumbo" frames. This means you can cram more information into your packet. To understand this concept ping your device in Windows. By default your packet size is 32bytes. Now issue the following command:
  212. ping IP -f -l 1472
  213.  
  214. You'll see that you are now pinging with packet sizes of 1472 bytes
  215.  
  216. Now issue the following:
  217. ping IP -f -l 1473
  218.  
  219. You'll see that you are getting framentation errors. You can increase the size of frames accepted on your NAS to increase general file transfer speeds and streaming speeds. This will help with larger file sizes as there is less need for fragmentation.
  220.  
  221. To view your current MTU (maximum transmission size) type the following into your arch shell:
  222. ifconfig eth0 | grep mtu
  223.  
  224. Your MTU size is 1500, with packet headers that's roughly 1472bytes. Now let's change it:
  225. ifconfig eth0 mtu 4000
  226.  
  227. The interface will go down for a second and come back up. Now go back to your windows machine and try pinging with 1473 bytes. If they don't go through then you need a networking device that handles jumbo frames. Check your router configuration. If you can't get it to work just set your MTU back to 1500.
  228.  
  229. SETTING TIMEZONES
  230.  
  231. You can get the list of all the availble timezones by issueing the following command:
  232. timedatectl list-timezones
  233.  
  234. To set your timezone issue the following:
  235. timedatectl set-timezone TIMEZONE
  236.  
  237. INSTALL YOUR NTFS PARTITION
  238.  
  239. Ok, so now we actually want to start using our NAS as a network file server. The first step in doing this is actually creating a NFS.
  240.  
  241. Firstly, we want to format sda2 as a ntfs file system, this can simply be done by issuing the following:
  242. mkntfs -Q -L <device label> /dev/sda2
  243.  
  244. This will perform a full format, you can do a quick format by putting -Q for quick, it's up to you. When using -Q the format won't "zero" all the sectors.
  245.  
  246. Now let's make a directory for all our NAS data to mount to:
  247. mkdir /NASdata
  248.  
  249. Now we want to test the mount:
  250. mount -t ntfs-3g /dev/sda2 /NASdata
  251.  
  252. You can check your mounts by typing mount and you should see /dev/sda2 on /NASdata
  253.  
  254. Finally you can check the free space on /NASdata by issuing the following command:
  255. df /NASdata
  256.  
  257. Now we have to define our mounts in /etc/fstab so the mount is auto created on boot:
  258. nano /etc/fstab
  259.  
  260. At the bottom of the document enter the following:
  261. /dev/sda2 /NASdata ntfs-3g defaults 0 0
  262.  
  263. The spacing matters!!
  264.  
  265. CTRL-X to exit, Y to save
  266.  
  267. Now we want to test the mount in fstab. If you rebooted the device right now, and there was an issue with fstab, you would need to take the drive, connect it to a Linux machine and edit the fstab file there (it sucks, I had to do this). Instead we can test the fstab mount without rebooting. First unmount /dev/sda2:
  268. umount /dev/sda2
  269.  
  270. Now check your mounts to make sure it isn't listed there anymore by typing mount.
  271.  
  272. Now perform a mount -a to load the fstab configuration.
  273.  
  274. Type mount again and check that your drive is mounted.
  275.  
  276. If everything is good, reboot, login as root and ensure the mount is still there.
  277.  
  278. SETTING UP YOUR SWAP SPACE
  279.  
  280. First thing we want to do is make your swap space, since the RAM is limited on this device:
  281. mkswap /dev/sda3
  282.  
  283. To enable paging:
  284. swapon /dev/sda3
  285.  
  286. Now we verify the swap is working:
  287. free -m
  288.  
  289. Verify that there is swap space
  290.  
  291. swapon -s
  292.  
  293. Verify that there is swap space
  294.  
  295. Now we add an entry to fstab:
  296. nano /etc/fstab
  297.  
  298. Add the following entry:
  299. /dev/sda3 none swap defaults 0 0
  300.  
  301. Remember spacing matters.
  302. Reboot and check your swap is still loaded
  303.  
  304.  
  305.  
  306. INSTALL A NFS
  307.  
  308. Before you continue with this section be aware the NFS is mainly for file sharing between Linux machines, if you aren't interested in this you can skip to the next section which is install SAMBA to share between your NAS and your Windows Machines.
  309.  
  310. Ok now we can start playing around with NFS and configuring it for Windows.
  311.  
  312. First download the NFS utilities:
  313. pacman -Sy nfs-utils rpcbind
  314.  
  315. Now we want to autostart these services, this is normally done through /etc/rc.conf, but Archlinux now uses SystemCTL for this. In fact if you perform a systemctl you can see that your mount point is listed in the loaded services. So we want to add some services to this list:
  316. systemctl enable nfsd.service rpc-idmapd.service rpc-mountd.service rpcbind.service
  317.  
  318. Again, reboot and do a systemctl to see the running services and verify that the four new services are there in the list and are loaded and active.
  319.  
  320. Now we need to change the file permissions on NASdata:
  321. chmod 777 /NASdata
  322.  
  323. Now we need to add the exports to allow specific clients to connect to the shares. You can edit the current content of exports by typing:
  324. nano /etc/exports
  325.  
  326. Now type, at the end of the file:
  327. /NASdata 192.168.1.1/24(rw,async,insecure)
  328.  
  329. This will allow all clients in the 192.168.1.0/24 (192.168.1.0-255) network to access your NFS shares. If your home network is different you'll want to modify this.
  330.  
  331. CTRL-X to exit, Y to save
  332.  
  333. Now we can reload the export share by typing:
  334. exportfs -arv
  335.  
  336. You can type exportfs to see the current exports
  337.  
  338. Now reboot to make sure nothing is broken again.
  339.  
  340. Login with root and type exportfs to verify exports.
  341.  
  342. INSTALL SAMBA
  343.  
  344. First we install Samba:
  345. pacman -Sy samba
  346.  
  347. By default there is no samba configuration file, you must copy the default:
  348. cp /etc/samba/smb.conf.default /etc/samba/smb.conf
  349.  
  350. Next we want to add our share to the samba configuration, if we nano /etc/samba/smb.conf and scroll down to you'll find a section titled "Share Definitions". By default the home directories of the ArchLinux users are shared, however there is a section commented out that is perfect for our use. Scroll down a few sections to find the "tmp" section. Uncomment and edit the following lines:
  351.  
  352. [NASdata]
  353. comment = NAS Shares
  354. path = /NASdata
  355. read only = no
  356. public = yes
  357.  
  358. CTRL-X to exit, Y to save.
  359.  
  360. We want to start the samba service at boot, much like our NFS service above (which goes into more detail):
  361. systemctl enable smbd.service
  362. systemctl enable nmbd.service
  363.  
  364. Now we reboot, login as root, and check to see if the service is started by typing:
  365. systemctl
  366.  
  367. You should see the following entry:
  368. smbd.service loaded active running Samba SMB/CIFS server
  369.  
  370. Now on your windows machine you you can browse to \\alarm\NASdata, enter your ArchLinux username and password and you're in!
  371.  
  372. Personally, I don't want to have to type in my username/password for this share (even though it's insecure).
  373.  
  374. So let's open the configuration file:
  375. nano /etc/samba/smb.conf
  376.  
  377. Scroll down to where it says "security = user" and change it to:
  378. security = user
  379.  
  380. Uncomment security = user and below it add:
  381. map to guest = bad user
  382.  
  383. Above this setting you'll find the "guest account" setting change it to:
  384. guest account = nobody
  385.  
  386. Now scroll back down to your previous share and edit it so it looks like the following:
  387. [NASdata]
  388. writable = yes
  389. comment = NAS Data
  390. path = /NASdata
  391. read only = no
  392. public = yes
  393. guest ok = yes
  394. guest only = yes
  395. guest account = nobody
  396. browsable = yes
  397.  
  398. CTRL-X to exit, Y to save
  399.  
  400. Finally type:
  401. smbpasswd -an nobody
  402.  
  403. Reboot your NAS and browse to your share again.
  404.  
  405. INSTALL TRANSMISSION BT CLIENT
  406.  
  407. Let's setup a bittorrent client, usenet isn't perfect and for that there is always bittorrent, first we need to install BT:
  408.  
  409. pacman -Sy transmission-cli
  410.  
  411. Now we add it to the auto-start script as before:
  412. systemctl enable transmission
  413.  
  414. We can start transmission (so we don't need to reboot):
  415. systemctl start transmission
  416.  
  417. And verify it's running:
  418. systemctl
  419.  
  420. CONFIGURE TRANSMISSION BT CLIENT
  421.  
  422. Ok let's stop the service so we can configure some things:
  423. systemctl stop transmission
  424.  
  425. Open the default configuration file:
  426. nano /var/lib/transmission/.config/transmission-daemon/settings.json
  427.  
  428. Find the line that says: rpc-whitelist-enabled and set it to false
  429.  
  430. Start transmission:
  431. systemctl start transmission
  432.  
  433. Browse to /NASdata
  434. cd /NASdata
  435.  
  436. Create a directory for your torrents:
  437. mkdir Torrents
  438.  
  439. Browse to alarm:9091 in your browser, click the spanner icon at the bottom, change the "download to:" folder to /NASdata/CompletedDownloads
  440.  
  441. You effectively at this point have transmission configured, but why not setup a watch folder? So transmission constantly watches a folder for torrents, once it finds it, it will automatically download the torrent.
  442.  
  443. So let's make another directory in NASdata called Torrent-watch
  444. mkdir Torrent-Watch
  445.  
  446. Let's open the settings file again:
  447. nano /var/lib/transmission/.config/transmission-daemon/settings.json
  448.  
  449. Add the following lines at the end:
  450. "watch-dir": "/NASdata/Torrent-Watch",
  451. "watch-dir-enabled": true
  452.  
  453. Restart the service:
  454. systemctl start transmission
  455.  
  456. Now when you place a torrent file into Torrent-Watch it'll automatically start grabbing it in Transmission. When transmission is done with the file it'll put it into Torrents.
  457.  
  458. Lastly, let's add tranmission to autostart service:
  459. systemctl enable transmission
  460.  
  461. Reboot and make sure it works.
  462.  
  463. SETTING UP A DLNA SERVICE
  464.  
  465. There are plenty of DLNA/uPnP services out there availble for ArchLinux, I had issues with MediaTomb and MiniDLNA seems to be the popular choice.
  466.  
  467. Let's start by downloading minidlna
  468. pacman -Sy minidlna
  469.  
  470. Configuration of minidlna is simple:
  471. nano /etc/minidlna.conf
  472.  
  473. We'll start the service:
  474. systemctl start minidlna
  475.  
  476. Let's change the scan location to:
  477. /NASdata
  478.  
  479. Now let's auto-start the service:
  480. systemctl enable minidlna
  481.  
  482. I had some issue with minidlna starting on boot, I did some googling and found the following service also needed to be enabled:
  483. pacman -Sy networkmanager
  484. systemctl enable NetworkManager-wait-online
  485.  
  486. Later we will refine this a bit more.
  487.  
  488. INSTALLING SABNZB
  489.  
  490. Sabnzb is a usenet downloader, it's incredibly powerful and highly configurable and essential for my usenet setup.
  491.  
  492. Start by installing Sabnzbd:
  493. pacman -Sy sabnzbd
  494. pacman -Sy python2-pyopenssl
  495.  
  496. Let's start and stop the service to create the proper config files:
  497. systemctl start sabnzbd
  498. systemctl stop sabnzbd
  499.  
  500. Now let's edit the initial configuration file:
  501. nano /opt/sabnzbd/sabnzbd.ini
  502.  
  503. Find the "host" line and change it to 0.0.0.0 to allow access from other PCs
  504.  
  505. Now browse to alarm:8080 and let's step through the SabNZB wizard.
  506.  
  507. Choose your language
  508. Type in the host of your newsgroup provider -- use ssl if they provide it
  509. Port, use SSL port if they provide it
  510. username/password
  511. set connection number
  512. checkmark ssl if you want to use it
  513. Test the server connection
  514. Enable HTTPs
  515.  
  516. Open the SabNZB Service:
  517. nano /usr/lib/systemd/system/sabnzbd.service
  518.  
  519. Enter the following line under ExecStart:
  520. PIDFile=/tmp/sabnzbd-9090.pid
  521.  
  522. Restart the service:
  523. systemctl --system daemon-reload
  524.  
  525. Browse to:
  526. https://alarm:9090
  527.  
  528. Under config - general
  529. copy the API key, this will be needed later
  530. copy the NZB key, this will be needed later
  531. Save changes
  532.  
  533. Under config - folders
  534. Set your incomplete folder to: /NASdata/Incomplete
  535. Set your complete folder to: /NASdata/CompletedDownloads
  536. Set permissions to 777
  537. Set your watched folder to: /NASdata/SABnzbdWatched
  538. Save changes
  539.  
  540. under config - switches
  541. uncheck launch browser on startup
  542. save changes
  543.  
  544. Add sabnzbd to auto start:
  545. systemctl enable sabnzbd
  546.  
  547. Reboot and ensure all the pieces are still working
  548.  
  549. INSTALLING SICKBEARD
  550.  
  551. First let's install the package:
  552. pacman -Syu sickbeard-git
  553.  
  554. Browse to your sickbeard installtion:
  555. http://alarm:8081
  556.  
  557. Update by clicking "Update Now" at the top
  558.  
  559. If you get permission errors you'll need to chmod your cherrypy directory:
  560. chmod -R 777 /opt/sickbeard/cherrypy
  561.  
  562. After the update you'll probably have to restart sickbeard:
  563. systemctl start sickbeard
  564.  
  565. Browse to alarm:8081
  566.  
  567. Under config - General
  568. Uncheck launch browser
  569.  
  570. Under config - Search Settings
  571. Choose your NZB Method as SabNZB
  572. Enter the url: http://alarm:8080
  573. Enter your API Key
  574. Click Test
  575. Checkmark torrent search
  576. Browse to your torrent watch directory
  577.  
  578. Under config - search settings
  579. Add your search providers
  580.  
  581. Under config - post processing
  582. Set your TV Download directory to /NASdata/CompletedDownloads
  583. Uncheck keep originals
  584. check scan and process
  585. Create all meta data.
  586.  
  587. Finally we add sickbeard to the startup process
  588. systemctl enable sickbeard
  589.  
  590. INSTALLING COUCHPOTATO
  591.  
  592. Up next is couchpotato, let's install it:
  593. pacman -Syu couchpotato-git
  594.  
  595. Start the service:
  596. systemctl start couchpotato
  597.  
  598. Browse to couchpotato:
  599. http://alarm:5050/
  600.  
  601. Step through the settings much like you did with SickBeard
  602. The configuration of couchpotato is pretty straight forward
  603.  
  604. Finally add the service to start on boot:
  605. systemctl enable couchpotato
Advertisement
Add Comment
Please, Sign In to add comment