[SOLVED] Install other apps - GUI conflict...
#1
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
 Go to solution Reply

#2
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
Snakeoil Operating System - Music, your way!
Reply

#3
(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 ?
Reply

#4
(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!
Reply

#5
(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.
[-] The following 2 users Like davem's post:
  • hkphantomgtr, agent_kith
Reply

#6
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 ?
Reply

#7
(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!
Reply

#8
(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.
[-] The following 1 user Likes davem's post:
  • agent_kith
Reply

#9
(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
[-] The following 1 user Likes davem's post:
  • agent_kith
Reply

#10
(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!
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Bromf
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fail to install myMPD sjtuross 9 195 03-Mar-2024, 08:45 PM
Last Post: hkphantomgtr
  Install not working Pi2Design Mercury V2 Snoopy8 1 288 01-Aug-2023, 10:03 AM
Last Post: agent_kith
  Problem to install Upmdpcli on Raspberry Pi 4 kees1000 6 1,004 16-Jul-2023, 06:54 PM
Last Post: agent_kith
  I dont have write permissions on /media/music after install patricia1066 5 610 18-Jun-2023, 04:37 AM
Last Post: patricia1066
  [split] Cannot install Roon Bridge kees1000 3 755 27-May-2023, 07:27 PM
Last Post: pikachullk



Users browsing this thread:
2 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 605
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 147
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 69
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4133
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 364
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4123

[-]
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.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.