[SOLVED] Install other apps - GUI conflict...
|
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
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
Posts: 2,801
Threads: 180
Joined: Feb 2016
Reputation:
504
Location: Perth, WA
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.
Snakeoil Operating System - Music, your way!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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.
Thanks -I will look more closely into that tomorrow. As I said it is not a deal breaker..
Any thoughts on installing Plex ?
Posts: 2,801
Threads: 180
Joined: Feb 2016
Reputation:
504
Location: Perth, WA
(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.
Snakeoil Operating System - Music, your way!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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.
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
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 ?
Posts: 2,801
Threads: 180
Joined: Feb 2016
Reputation:
504
Location: Perth, WA
(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.
Snakeoil Operating System - Music, your way!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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.
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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
Posts: 2,801
Threads: 180
Joined: Feb 2016
Reputation:
504
Location: Perth, WA
(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... Been very busy lately with a lot of family/friend stuffs happening. Until then, enjoy the music!
Snakeoil Operating System - Music, your way!
|
Users browsing this thread: |
1 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
SnakeoilOS Mission Statement
|
Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.
SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.
If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.
|
|
|