Install HTPC manager Ubuntu

Install htpc manager Ubuntu tutorial. We are going to install HTPC manager. With the command line. On a Ubuntu system.

Install required software.

sudo apt-get install build-essential git python-imaging python-dev python-setuptools python-pip python-cherrypy vnstat -y

Install psutil for cpu and memory information.

sudo pip install psutil

Download Htpc Manager to hidden folder HTPCManager.

sudo git clone https://github.com/Hellowlol/HTPC-Manager /.HTPCManager

Set map rights.

sudo chown -R gebruikersnaam:user /.HTPCManager

Start Htpc manager.

python /opt/HTPCManager/Htpc.py –daemon

You are now done with the installation.

Auto-start Htpc Manager Ubuntu

Now we are going to add Htpc Manager to the startup of Ubuntu.

Add to upstart.

sudo cp /.HTPCManager/initscripts/initd /etc/init.d/htpcmanager

Edit the script.

sudo nano /etc/init.d/htpcmanager

Change scripy

######### Edit me ################## #

path to app APP_PATH=./HTPCManager

Ctrl+ X and y to save.

sudo chmod +x /etc/init.d/htpcmanager

Update the script for default.

sudo update-rc.d htpcmanager defaults

Install Upstart.

sudo apt-get install upstart

Type yes.

Make upstart script.

sudo nano /etc/init/htpcmanager.conf

Copy and paste and edit your Username.

#description “Upstart Script to run HTPCManager as a service on Ubuntu/Debian based systems”

#Geef je gebruikersnaam hier onder aan!
setuid Username
setgid Username

start on runlevel [2345]
stop on runlevel [016]

respawn

exec / /.HTPCManager/Htpc.py –daemon

Press Ctrl+X, Y to save file.

You are now done.

Share This

Leave a Reply