Snakeoil Forums

Full Version: Install other apps - GUI conflict...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all,

Just stumbled onto Snakeoil (LOVE the distro name) while looking for media server alternatives and am playing with this now. Although my primary purpose is LMS/Squeezebox my needs are also a little more broad.

I would like to install Plex media server - there are loads of how-to's out there but there appears to be a conflict with the GUI's based on testing with pi-hole (DNS ad blocker). Pihole gives you the option of either installing a web server or using the existing one and both options messed things up but luckily pihole is OK without the GUI so not a deal breaker.. However I found the following after testing.

1. Installed GUI to use existing web server.
http://snakeoil - gives the admin snakeoil console. OK
http://snakeoil/admin - should give the admin to pi-hole but redirects to the snakeoil admin page.

2. I then configured pihole to add web server to run on port 88 
http://snakeoil - gives the admin snakeoil console but missing data - error saying that REST API timed out.
http://snakeoil:88/admin - again redirected to snakeoil admin page

But to confuse things, http://snakeoil:9000 successfully brings up LMS. But I am guessing that LMS GUI does not use REST...

My linux skills are limited (& dangerous!) but am a little unclear how all this works together... is it because both snakeoil and pihole use REST on the same port ?? I guessed that changing the web listening port would also change the REST port but maybe not.
How would I approach installing Plex ? would it also conflict with the snakeoil console ? 
Where are the REST configs stored ??


Any thoughts greatly appreciated.

cheers
The web server will re-direct all 404s back to the webpage. I'm guessing the pi-hole admin path don't physically exist in /var/www/

As for :88 re-directing back to port 80. There's possibly a pi-hole configuration where you specify the base URL, that needs to point to the new port.

Have a look at /etc/lighttpd and look at the web server configuration files, and also have a look at the pi-hole configuration files, adjust them to do whatever you want. Thumbs Up
(13-Mar-2019, 03:21 PM)agent_kith Wrote: [ -> ]The web server will re-direct all 404s back to the webpage. I'm guessing the pi-hole admin path don't physically exist in /var/www/

As for :88 re-directing back to port 80. There's possibly a pi-hole configuration where you specify the base URL, that needs to point to the new port.

Have a look at /etc/lighttpd and look at the web server configuration files, and also have a look at the pi-hole configuration files, adjust them to do whatever you want. Thumbs Up


Thanks -I will look more closely into that tomorrow. As I said it is not a deal breaker..

Any thoughts on installing Plex ?
(13-Mar-2019, 05:51 PM)davem Wrote: [ -> ]Thanks -I will look more closely into that tomorrow. As I said it is not a deal breaker..

Any thoughts on installing Plex ? 
Plex should work, havn't tried it in a while though.. Snakeoil OS is basically a variant of Ubuntu (Debian). And you have root access to the OS, you can basically do everything you want.
(13-Mar-2019, 06:05 PM)agent_kith Wrote: [ -> ]
(13-Mar-2019, 05:51 PM)davem Wrote: [ -> ]Thanks -I will look more closely into that tomorrow. As I said it is not a deal breaker..

Any thoughts on installing Plex ? 
Plex should work, havn't tried it in a while though.. Snakeoil OS is basically a variant of Ubuntu (Debian). And you have root access to the OS, you can basically do everything you want. 

As an update (& in case it helps someone else), plex worked right away following the process at https://www.howtoforge.com/tutorial/how-...untu-1604/

Pihole. I started off with a new install and it again failed to load the GUI (everything else was ok). Put it aside and I eventually noticed that the install path went into ~/html/admin instead of ~/admin. The GUI worked if I went the full path with with index.php. Moved the directories up a level and I can live with that..
Certain that I tried this earlier but....

Thanks for the comments to help.
Hi

Unfortunately I am still having issues with pihole playing with snakeoil.

Since the last update, I have updated snakeoil twice to 1.1.6 and I am almost 100% certain that a snakeoil update had removed all the pihole web files from /var/www/html/admin (the html dir was removed) . After reinstalling & reconfiguring & rebooting repeatedly I have pihole admin working but I have totally lost the snakeoil gui ! The files are still there and even if I point my browser to x.x.x.x/index.html it still presents the pihole admin page.

As nice as it is to have the pihole admin page, I think that I really need to have the snakeoil GUI back. And ideally not break with every update.

Any suggestions on what I can do to get these 2 playing nicely ?
(16-Jul-2019, 03:04 PM)davem Wrote: [ -> ]Hi

Unfortunately I am still having issues with pihole playing with snakeoil.

Since the last update, I have updated snakeoil twice to 1.1.6 and I am almost 100% certain that a snakeoil update had removed all the pihole web files from /var/www/html/admin (the html dir was removed) . After reinstalling & reconfiguring & rebooting repeatedly I have pihole admin working but I have totally lost the snakeoil gui ! The files are still there and even if I point my browser to x.x.x.x/index.html it still presents the pihole admin page.

As nice as it is to have the pihole admin page, I think that I really need to have the snakeoil GUI back. And ideally not break with every update.

Any suggestions on what I can do to get these 2 playing nicely ?

How good are you with lighttpd configuration? That's the webserver Snakeoil is using.

What you need to do is to install the pihole (/admin) folder as /var/www/pihole, instead of in /var/www/html. And configure lighttpd to use /var/www/pihole when you browse to the URL http://snakeoil.local/admin

This needs to be setup in /etc/lighttpd/conf-available, and then linked to the /etc/lighttpd/conf-enabled folder.
(16-Jul-2019, 04:23 PM)agent_kith Wrote: [ -> ]
(16-Jul-2019, 03:04 PM)davem Wrote: [ -> ]Hi

Unfortunately I am still having issues with pihole playing with snakeoil.

Since the last update, I have updated snakeoil twice to 1.1.6 and I am almost 100% certain that a snakeoil update had removed all the pihole web files from /var/www/html/admin (the html dir was removed) . After reinstalling & reconfiguring & rebooting repeatedly I have pihole admin working but I have totally lost the snakeoil gui ! The files are still there and even if I point my browser to x.x.x.x/index.html it still presents the pihole admin page.

As nice as it is to have the pihole admin page, I think that I really need to have the snakeoil GUI back. And ideally not break with every update.

Any suggestions on what I can do to get these 2 playing nicely ?

How good are you with lighttpd configuration? That's the webserver Snakeoil is using.

What you need to do is to install the pihole (/admin) folder as /var/www/pihole, instead of in /var/www/html. And configure lighttpd to use /var/www/pihole when you browse to the URL http://snakeoil.local/admin

This needs to be setup in /etc/lighttpd/conf-available, and then linked to the /etc/lighttpd/conf-enabled folder.

Excellent - thanks for the tip. Will have a hack at it and report back.
(16-Jul-2019, 05:14 PM)davem Wrote: [ -> ]
(16-Jul-2019, 04:23 PM)agent_kith Wrote: [ -> ]
(16-Jul-2019, 03:04 PM)davem Wrote: [ -> ]Hi

Unfortunately I am still having issues with pihole playing with snakeoil.

Since the last update, I have updated snakeoil twice to 1.1.6 and I am almost 100% certain that a snakeoil update had removed all the pihole web files from /var/www/html/admin (the html dir was removed) . After reinstalling & reconfiguring & rebooting repeatedly I have pihole admin working but I have totally lost the snakeoil gui ! The files are still there and even if I point my browser to x.x.x.x/index.html it still presents the pihole admin page.

As nice as it is to have the pihole admin page, I think that I really need to have the snakeoil GUI back. And ideally not break with every update.

Any suggestions on what I can do to get these 2 playing nicely ?

How good are you with lighttpd configuration? That's the webserver Snakeoil is using.

What you need to do is to install the pihole (/admin) folder as /var/www/pihole, instead of in /var/www/html. And configure lighttpd to use /var/www/pihole when you browse to the URL http://snakeoil.local/admin

This needs to be setup in /etc/lighttpd/conf-available, and then linked to the /etc/lighttpd/conf-enabled folder.

Excellent - thanks for the tip. Will have a hack at it and report back.

got it working. Had to restore the original snakeoil lighttpd.conf file and then edit it to add a redirect which I eventually tuned to;

url.redirect = ( "/pihole$" => "http://10.1.1.2/pihole/admin/index.php" )

Copied to lighttpd.conf to external.conf as pihole says it rewrites it on update....Everything works fine now. Just need to test that it survives updates from both snakeoil and pihole. But now that I know, its an easy fix if it doesnt.

Hopefully that is of use to someone.

cheers
(18-Jul-2019, 09:43 AM)davem Wrote: [ -> ]got it working. Had to restore the original snakeoil lighttpd.conf file and then edit it to add a redirect which I eventually tuned to;

url.redirect = ( "/pihole$" => "http://10.1.1.2/pihole/admin/index.php" )

Copied to lighttpd.conf to external.conf as pihole says it rewrites it on update....Everything works fine now. Just need to test that it survives updates from both snakeoil and pihole. But now that I know, its an easy fix if it doesnt.

Hopefully that is of use to someone.
As long as your configuration is outside of lighttpd.conf, it'll be fine.

I'm still in the middle of revamping the documentation, and moving to a wiki system. Once everything is up and running, more and more of this information will be available on the wiki.

Eventually these advanced configuration will work itself into the web app. Eventually... Big Grin Been very busy lately with a lot of family/friend stuffs happening. Until then, enjoy the music!
Pages: 1 2