• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 11
LaSi - Bashed Installers for SickBeard, Couchpotato, Headphones and more
#1
Thumbs Up 
In januari 2011 I started writing bash-scripts to ease installation of several apps for my XBMC-Live machine. It also works on Ubuntu servers and Ubuntu Desktop. It's tested on Ubuntu 9.10 and up. The main goal was easy and fast installation of several apps that automate the downloading of tvshows, movies, subtitles, music and more. All those apps also have threads on forum.xbmc.org, so I add a thread for this too.

All programs work best with Sabnzbdplus, but some have little torrent-support too.

Recently I also added scripts for 2 of these programs for Synology NAS devices with bootstrap installed.

The installation is terminalbased, but questiondriven. Like answer yes/no,
type location where to install etc. It's an easy way to install programs in a terminal via ssh. There is no knowledge needed of *buntu's inner workings, you only need to know how to start this script (see below).

The periscope-script for example creates cronjobs (optional) for you, by asking a few questions about language, path and how often it should run, but you don't need knowledge about cronjobs, just answer the questions.

From my readme file:
The purpose of the main script LaSi(_syn).sh is to present a menu
in the terminal. This menu presents some info about installable
programs and those programs can be installed from
this menu.

INSTALL *BUNTU (-based):

Make LaSi.sh executable with sudo chmod +x LaSi.sh
and execute with: ./LaSi.sh

or completely by commandline:
Code:
wget http://dl.dropbox.com/u/18712538/LaSi/LaSi.sh
sudo chmod +x LaSi.sh
./LaSi.sh

INSTALL SYNOLOGY:

Code:
wget http://dl.dropbox.com/u/18712538/Synology/LaSi_syn.sh
chmod +x LaSi_syn.sh
./LaSi_syn.sh

USAGE:
When choosing a program LaSi will show some info about it
and the option to install it. Type ./LaSi.sh --help or ./LaSi_syn.sh for extra install options (like unattended installs)!

Programs supported *buntu/XBMC Live:
* SickBeard
-- TV Showdownloader (git)
URL: http://sickbeard.com/

* CouchPotato
-- Moviedownloader (git)
URL: http://couchpotatoapp.com/

* Subliminal
-- Subtitledownloader (svn)
URL: https://github.com/Diaoul/subliminal

* Beets
-- Musictagger (git)
URL: http://beets.radbox.org/

* Spotweb
-- Dutch usenetcommunity (git)
https://github.com/spotweb/spotweb

* Headphones
-- Musicdownloader (git)
URL: https://github.com/rembo10/headphones.git

* Mediafrontpage
-- HTPC Webinterface (git)
URL: https://github.com/MediaFrontPage/mediafrontpage.git

* Sabnzbdplus
-- Binary newsreader (ppa)
URL: http://sabnzbd.org

* Transmission
-- daemon Torrent downloader (apt)
URL: http://transmissionbt.com

* XBMC (stable, unstable, live
-- HTPC software (ppa)
URL: http://xbmc.org

Programs supported Synology (thx to Brickman):
* Spotweb
* Subliminal
* Mediafrontpage
* Headphones **
* Couchpotato **
* Sickbeard **
**not thoroughly tested yet...


It's licensed under GPL v3.0. I maintain code @ Github. For ease of install I host installscripts in my public Dropbox area.

___________
Let me know if you find these scripts helpfull. I also do featurerequests, so let me know if you have ideas for other scripts or more options in the existing scripts.

Also, I'd like to automate for other linux-flavours too, but I need input for that (like packagenames, how to add daemons etc etc).
Reply
#2
Great that you inform the people at this forum too. In the Netherlands you already helped a lot of people with your blog and your scripts (including me)!

Keep up the good work! Smile
Reply
#3
I have an installation question.

I used the LaSi script to install couchpotato. When I try to run /etc/init.d/couchpotato start I get the following error:

start-stop-daemon: Unable to open pidfile '/var/run/couchpotato.pid' for writing. Permission denied

I can start couchpotato using sudo but not from the user (xbmc).

Can someone point me to what I'm doing wrong?

I'm using XBMC Live Dharma.

Couchpotato log is here: http://pastebin.ubuntu.com/652526/
Reply
#4
See Below.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#5
Mxxw Wrote:I have an installation question.

I used the LaSi script to install couchpotato. When I try to run /etc/init.d/couchpotato start I get the following error:

start-stop-daemon: Unable to open pidfile '/var/run/couchpotato.pid' for writing. Permission denied

I can start couchpotato using sudo but not from the user (xbmc).

Can someone point me to what I'm doing wrong?

I'm using XBMC Live Dharma.

Couchpotato log is here: http://pastebin.ubuntu.com/652526/

There is nothing wrong. Daemons are started by root, so you need to sudo that start | stop. It will start with your system. Don't chown it, only root can create pid-files I believe.
Reply
#6
Mar2zz, thanks for the reply.

That is what started me looking into this - couchpotato won't start on system boot. I have to manually start it from root. Sickbeard, which I also installed using the LaSi script, works fine and starts on system boot.

Any ideas?
Reply
#7
Maybe the port you use for couchpotato is in use? (default is 5000).

Can you post the contents of /etc/init.d/couchpotato and results from the command
ls -l /etc/init.d/couchpotato?


Is xbmc the only user you have on your system? or do you have another? xbmc live logs in on the user that is made by you when installing xbmc live. (I have for example three users, xbmc, hts and mars (the one I created during install) and root of course.

I never installed as user xbmc, maybe that's what causing the issue. Don't you have another user, the one created during install?
Reply
#8
I assume you mean /etc/init.d/couchpotato start? it says:

Starting CouchPotato
start-stop-daemon: Unable to open pidfile '/var/run/couchpotato.pid' for writing: Permission denied (Permission denied)

Quote:ls -l /etc/init.d/couchpotato
says:
-rwxr-xr-x 1 root root 1439 2011-07-25 17:53 /etc/init.d/couchpotato

xbmc was the user I created when installing xbmc live. I also have a user called hts, which I guess was created automatically.
Reply
#9
Cool! Maybe it is an option to also download MediaFrontpage. This is a universal, webbased frontend GUI for Couchpotato, Sickbeard & and a few others.
Reply
#10
Mxxw Wrote:I assume you mean /etc/init.d/couchpotato start?
says:
-rwxr-xr-x 1 root root 1439 2011-07-25 17:53 /etc/init.d/couchpotato

xbmc was the user I created when installing xbmc live. I also have a user called hts, which I guess was created automatically.

I mean what's inside /etc/init.d/couchpotato? nano /etc/init.d/couchpotato, and especially this between:
Code:
############### EDIT ME ##################
# path to app
here is all info I need to know...
############### END EDIT ME ##################

It's weird it is not working, since sickbeardinstall.sh uses exactly the same code to create that pid-file.

You said it works when you start with sudo /etc/init.d/couchpotato start, which is correct, that's the way to start a daemon, but it won't work @ boot?

Could you, after a reboot do this: ps aux | grep python
It will show all running processes with python. See if couchpotato is there.

If not, do sudo update-rc.d -n couchpotato remove
and show output.


@Robotica
Mediafrontpage is a good idea. I can rewrite the spotwebinstall.sh, that allready installs an apacheserver.

v0.1 of installer is ready. It will install an apacheserver + dependencies and download mediafrontpage. By default it will be available after install @ http://hostname/mediafrontpage

Please try, and if it's working I will add it to the main script.
Copy/paste into terminal and press enter:
Code:
wget http://dl.dropbox.com/u/18712538/Mediafrontpage/mediafrontpageinstall.sh && sudo chmod +x mediafrontpageinstall.sh && ./mediafrontpageinstall.sh
Reply
#11
I tried this on a syno. I got this error:

Code:
Cannot write to `mediafrontpageinstall.sh' (Permission denied).

Will try it as root....
Reply
#12
Thanks for your help on this.

couchpotato contains:

Code:
############### EDIT ME ##################
# path to app
APP_PATH=/home/xbmc/.couchpotato

# path to python bin
DAEMON=/usr/bin/python

# startup args
DAEMON_OPTS=" CouchPotato.py -q"

# script name
NAME=couchpotato

# app name
DESC=CouchPotato

# user
RUN_AS=xbmc

PID_FILE=/var/run/couchpotato.pid

############### END EDIT ME ##################

Yes, it will start using sudo, but not at boot using the xbmc user.

Quote:Could you, after a reboot do this: ps aux | grep python
It will show all running processes with python. See if couchpotato is there.

Couchpotato is not listed. Sickbeard is.

Quote:If not, do sudo update-rc.d -n couchpotato remove
and show output.

update-rc.d: /etc/init.d/couchpotato exists during rc.d purge (use -f to force)
Reply
#13
Robotica Wrote:I tried this on a syno. I got this error:

Code:
Cannot write to `mediafrontpageinstall.sh' (Permission denied).

Will try it as root....

This is no Syno installer, but for ubuntu/xbmc live. All my synologyinstallers have _syn.sh in their names. I will create one for synology today, Synology doesn't have sudo or bash and this is a bash installer. I have no Synology, so when I write an installer for Synology, someone else has to test.

Synologyinstaller:
Code:
wget http://dl.dropbox.com/u/18712538/Spotweb/mediafrontpage_syn.sh && chmod +x mediafrontpage_syn.sh && sh mediafrontpage_syn.sh
Please test, I don't have a synology, so I need user-input to make it working.

@mxww: Can you reinstall? The installer has an option for that. Copy the entire output of the install-procedure to pastebin and provide me a link to it. I need to see if something goes wrong during install.

Can you also check which groups xbmc belongs to on your system? (on my system its none). Type groups xbmc for that.

quick install:
Code:
cd && wget http://dl.dropbox.com/u/18712538/CouchPotato/couchpotatoinstall.sh && sudo chmod +x couchpotatoinstall.sh && ./couchpotatoinstall.sh
Reply
#14
Mar2zz Wrote:This is no Syno installer, but for ubuntu/xbmc live. All my synologyinstallers have _syn.sh in their names. I will create one for synology today, Synology doesn't have sudo or bash and this is a bash installer. I have no Synology, so when I write an installer for Synology, someone else has to test.

Synologyinstaller:
Code:
wget http://dl.dropbox.com/u/18712538/Spotweb/mediafrontpage_syn.sh && chmod +x mediafrontpage_syn.sh && sh mediafrontpage_syn.sh
Please test, I don't have a synology, so I need user-input to make it working.

Logged in as root and tried
Code:
wget http://dl.dropbox.com/u/18712538/Spotweb/mediafrontpage_syn.sh && chmod +x mediafrontpage_syn.sh && sh mediafrontpage_syn.sh

Result:
......
mediafrontpage_syn.sh: line 30: ipkg: not found
Bootstrap is not installed, please install it before using this script
Information how to install bootstrap can be found on
http://forum.synology.com/wiki/index.php...stall_ipkg

So I need to install Bootstrap. I will do that later....
Reply
#15
Here's the output of the reinstall: http://paste.ubuntu.com/657249/

XBMC groups are: xbmc adm dialout cdrom floppy sudo audio video plugdev users fuse netdev polkituser lpadmin sambashare admin

Also, if it helps at all, I've never been able to get Sabnzbdplus working at boot either. Works fine being launched from the command line with the xbmc user though.
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 11

Logout Mark Read Team Forum Stats Members Help
LaSi - Bashed Installers for SickBeard, Couchpotato, Headphones and more1