Setting up RPI2 for usenet box

Discussion in 'General Off-Topic Chat' started by DjoeN, Mar 21, 2015.

  1. DjoeN
    OP

    DjoeN Captain Haddock!

    Member
    5,136
    1,478
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    Well i've been busy for a whole week trying to configure my Raspberry pi 2 to be my main download computer
    First days, reading and gathering alot of information (I'm a Windows guy, never worked with Linux)

    Setup:
    - Raspberry Pi 2 + powersuply 2A
    - Wired network
    - Samsung M3 Station external HDD 2TB (own power)
    - 32GB Sandisk SD class 10
    - pure command Line (No need for StartX GUI)
    - Wired USB Keyboard
    - Wireless mouse
    - Connected throu HDMI with my monitor/tv (Samsung SynchMaster 233HD DTV monitor)

    What i want to setup:
    - Samba share so i can access it with my computer
    - Pi2 has a static IP
    - SABnzbd+
    - SickRage (Sickbeard fork)
    - Couchpotato
    - unrar
    - Synch certain folders with my windows desktop computer when i turn it on.

    What i have working so far:
    - Berryboot (Multi OS boot selector)
    - Raspbian (updated and upgraded)
    - Automount HDD on boot
    - SABnzbd+ (autostarts as service on boot)
    - unrar
    - SickRage (autostarts as service on boot)
    - Static IP
    - No GUI (Command line)

    What works partially (i'll include a screenshot as soon as i'm home again)
    - Samba share, Windows can see the share and when i try to access it, a login window pops up on my Windows 8.1 PC, then when i enter the needed info i configured in samba, it says i do not have the needed permissions etc...

    [​IMG] [​IMG]

    - running CouchPotato as a service on boot

    Installing CouchPotato works fine, but trying to run it as a service or getting it autostart when the pi2 startsup gives me either kernel panic or messes up my hdd mount etc...
    It's the 4the time i started from scratsh and everytime i end up screwing my SD or the linux kernel, or freezing the pi2

    So a good guide on how to setup couchpotato and getting it run as service on bootup would be nice (i tried different guides i found, but all or for Pi, not Pi2, don't know if it is any different and always somehow i messed up ending in a corrupt raspbian install (not SD) that would not boot up anymore.

    Why?
    Now my Windows Desktop PC is on 24h/24h and consumes alot of power and that drives my bill i have to pay high, i want to replace it with the RPI2 and an external HDD conected to it, that is shared and i can access from any computer or mediaplayer (chromecast with plex/ or appletv/other pi or computer with kodi) in my network.

    This way i only need to turn on my desktop computer when i'm home and in need of it.

    Any help is welcome on why i can't access my Samba share on my windows 8.1 computer and auto boot as CouchPotato as a service (Without installing "startup" (i know that one gets me always kernel panics))

    Thanks

    (I learned to make an image of my SD after every programm i install :P )
     
  2. Wabsta

    Wabsta you fight like a dairy farmer

    Member
    2,498
    69
    Apr 25, 2008
    Netherlands
    SCUMM Bar
    Do your samba shares need to be protected by a password?
    If not, you could just set it to public. This is my samba share config:
    Code:
    [samba]
      comment = Share the folders in /mnt
      path = /mnt
      guest ok = no
      browseable = yes
      writeable = yes
      public = yes
      only guest = no
      create mask = 0777
      directory mask = 0777
    
    I don't know anything about NZBing with the RPi though, so can't help you there.
    I have a similair setup, but with torrents. (and FlexGet for the automatic downloading)
     
  3. DjoeN
    OP

    DjoeN Captain Haddock!

    Member
    5,136
    1,478
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    No it doesn't really need to be.

    So how do i remove the password from pi user then?

    Code:
    [pi2home]
    comment = Rapberry Pi shares
    path = /mnt/hdd1
    valid users = @users
    force group = users
    create mask = 0660
    directory mask = 0771
    read only = no
    public = yes
    browseable = yes
    writeable = yes
    
    EDIT:

    I took over a bit of your config:

    [pi2home]
    comment = Rapberry Pi shares
    path = /mnt/hdd1
    guest ok = no
    only guest = no
    read only = no
    public = yes
    browseable = yes
    writeable = yes
    create mask = 0777
    directory mask = 0777

    and i can access it now without password :)
    i can access my files and folders now :)

    Anyway, 1 problem solved, thanks for including that :)