Jump to content
IGNORED

GentooPlayer


Recommended Posts

1 hour ago, antonellocaroli said:

try a dhcp configuration first, and then try static ip...

 

Just did that. And as a last step before rebooting I disabled the hotspot in the GP web interface.

This time the /etc/conf.d/net persisted after reboot.

However the GP home menu shows eth0 (not br0) as being active, and the eth0 ip address (169.254.23,146) is not part of the home network.

See pic: neither of the ip addresses can be reached/pinged.

image.thumb.png.fe71758e8a8cb18295d5d6b92a75f4e6.png

 

audio system

 

Link to comment
16 minutes ago, bodiebill said:

 

Just did that. And as a last step before rebooting I disabled the hotspot in the GP web interface.

This time the /etc/conf.d/net persisted after reboot.

However the GP home menu shows eth0 (not br0) as being active, and the eth0 ip address (169.254.23,146) is not part of the home network.

See pic: neither of the ip addresses can be reached/pinged.

image.thumb.png.fe71758e8a8cb18295d5d6b92a75f4e6.png

maybe this will help you with the configuration:

https://wiki.gentoo.org/wiki/Ethernet_plus_WiFi_Bridge_Router_and_Firewall

 

and

 

https://wiki.gentoo.org/wiki/Handbook:X86/Full/Networking

Link to comment
22 minutes ago, antonellocaroli said:

maybe this will help you with the configuration:
https://wiki.gentoo.org/wiki/Ethernet_plus_WiFi_Bridge_Router_and_Firewall

 

A bit over my head I am afraid. Or at least stretching my patience...

I think I will go back to AL (with systemd) for the server.

I noticed that GP sounds better than AL on the endpoint, so thought it would be elegant to have GP on server also. But possibly it make no difference for SQ.

 

audio system

 

Link to comment
2 hours ago, Wolf65 said:

I use a Raspberry Pi 3, then it is probably a memory problem, as regards openmediavault I can still use it together with gentooplayer because the Raspberry is still connected via USB to the dac amp and used via LMS

you can install samba like this:

 

cd /tmp

wget https://github.com/antonellocaroli/GP-packge-bin/releases/download/samba/samba.tar.xz

tar xvf samba.tar.xz

rsync -a binpkgs/* /var/cache/binpkgs/

emerge -K samba

 

so you don't compile install the binaries I compiled for rpi3

Link to comment
39 minutes ago, antonellocaroli said:

you can install samba like this:

 

cd /tmp

wget https://github.com/antonellocaroli/GP-packge-bin/releases/download/samba/samba.tar.xz

tar xvf samba.tar.xz

rsync -a binpkgs/* /var/cache/binpkgs/

emerge -K samba

 

so you don't compile install the binaries I compiled for rpi3

I follow your istruction and after to finalize the setupo as the guide:

Finalizing the setup

Lastly, setup the directories:

root #mkdir /home/samba
root #mkdir /home/samba/public
root #chmod 755 /home/samba
root #chmod 755 /home/samba/public
 

Starting the Samba service

Now configure Samba to start at boot and then start it:

  • OpenRC
root #rc-update add samba default
root #/etc/init.d/samba start
  • systemd
root #systemctl --now enable smbd.service
root #systemctl --now enable nmbd.service
Link to comment
37 minutes ago, antonellocaroli said:

systemctl doesn't center...gentooplayer uses openrc...

did you edit the configuration file?image.thumb.png.2ca58e51b8c961f3aa1a389efb4b1f18.png

 

image.png.b2152e6b19d056f1f438738ce22540b0.png

 

 

 

https://forums.gentoo.org/viewtopic-t-338602-start-0.html

 

 

 

thank you very much for your help but honestly I don't know Linux I thought it was simpler to configure following simple instructions but I wouldn't even know how to edit the file you have indicated to me so I believe that I will give up proceeding. Eventually I will buy another Raspberry Pi4 to use as a network player with Gentooplayer and on the Pi3 that I have now I will only use it as a nas.

Link to comment
2 hours ago, antonellocaroli said:

 

I perused the 2nd link to change the /etc/conf.d/net file as follows:

# Configure bridge (man brctl for more details)
bridge_forward_delay_br0=0
bridge_hello_time_br0=200
bridge_stp_state_br0=1

# Add ports to bridge
bridge_br0="eth0 eth2"

# Configure ports to null values so dhcp does not get started
config_eth0="null"
config_eth2="null"

# Give bridge an address - you could use DHCP as well
config_br0="dhcp"

 

Still no luck, the result of ip addr looks as messy as before in the pic, and none of the ports can be reached/pinged.

 

I let it go for now. Maybe will try again in a few days. Thanks for your help!

 

audio system

 

Link to comment

@antonellocaroli my laptop has 2 cores, possible to hyperthread.  What would you recommend?  That hyperthreading is disabled and I just let gentoo player decide on the IRQ and things like that, or should I choose a profile?

i'm interested in whether Gentoo is different and better and handling these things then me trying to configure them if i dont actually have enough physical cores to dedicate a core to each of the main activities?

 

I'm planning on running squeezelite2 for a while.

Link to comment

With the last few GP versions, whenever I boot, the console runs through all the steps and then hangs for approx. one minute, on this message:

haveged: haveged: stopping due to signal 15

As a result the boot process has become much slower (especially added to ram loading).

Is there a way to avoid this?

 

audio system

 

Link to comment
1 hour ago, bodiebill said:

With the last few GP versions, whenever I boot, the console runs through all the steps and then hangs for approx. one minute, on this message:

haveged: haveged: stopping due to signal 15

As a result the boot process has become much slower (especially added to ram loading).

Is there a way to avoid this?

no, it is a sleep that I entered for a specific reason.  but the system is immediately reachable via ssh and / or web interface, which is then the normal use of a system without a graphic interface, that is to use it without a keyboard, monitor and mouse.

Link to comment
6 minutes ago, antonellocaroli said:

no, it is a sleep that I entered for a specific reason.  but the system is immediately reachable via ssh and / or web interface, which is then the normal use of a system without a graphic interface, that is to use it without a keyboard, monitor and mouse.

 

ah, good to know, thanks.

 

audio system

 

Link to comment

I have been alternating between GentooPlayer and Ropieee over the last few days and I am leaning towards Gentooplayer I think. I have noticed that it is running a bit warmer today, around 50c. I have a rpi4 in a metal case, no fans. It has been running around 44c when checking. Has something changed very recently?

Link to comment
14 minutes ago, rossco said:

I have been alternating between GentooPlayer and Ropieee over the last few days and I am leaning towards Gentooplayer I think. I have noticed that it is running a bit warmer today, around 50c. I have a rpi4 in a metal case, no fans. It has been running around 44c when checking. Has something changed very recently?

Yes, we're getting closer to summer and it's starting to get hotter and hotter...hopefully...

Link to comment
1 hour ago, bodiebill said:

ah, good to know, thanks

Just noticed your post, I got the bridge easily working with 2 interfaces, don't know about four, let me post the details below.

I am currently working on bridging wireless and wired, that is another challenge, I got working briefly but now it is not so I have to go over it again, anyway

 

The best article I found was this one:

http://wikigentoo.ksiezyc.pl/Bridging.htm

 

1. Stop the hotspot service

 

2. As root:(you may have to add more interfaces)

 

modprobe bridge
emerge net-misc/bridge-utils

/bin/ifconfig eth0 up
/bin/ifconfig eth1 up
/sbin/brctl addbr br0
/sbin/brctl addif br0 eth0
/sbin/brctl addif br0 eth1
/bin/ifconfig br0 up
/sbin/brctl stp br0 on

 

3. Edit the network if you want static

 

nano /etc/conf.d/net

 

bridge_br0="eth0 eth1"
config_br0=( "192.168.95.226/24" )
config_eth0=( "null" )
config_eth1=( "null" )
brctl_br0=( "stp on" )
depend_br0() {
         need net.eth0
}
routes_br0="default via 192.168.95.1"
##bridge_forward_delay_br0=0
bridge_hello_time_br0=1000
bridge_stp_state_br0=1

 

4. Enter these

ln -sf /etc/init.d/net.lo /etc/init.d/net.eth1
rc-update add net.eth0 default
rc-update add net.eth1 default
ln -sf /etc/init.d/net.lo /etc/init.d/net.br0
rc-update add net.br0 default
/etc/init.d/net.br0 start

 

5. Restart to confirm it is working

 

Feel free  to provide comments I am just listing what worked for me

 

Link to comment
3 hours ago, luisma said:

Just noticed your post, I got the bridge easily working with 2 interfaces, don't know about four, let me post the details below.

I am currently working on bridging wireless and wired, that is another challenge, I got working briefly but now it is not so I have to go over it again, anyway

 

The best article I found was this one:

http://wikigentoo.ksiezyc.pl/Bridging.htm

 

1. Stop the hotspot service

 

2. As root:(you may have to add more interfaces)

 

modprobe bridge
emerge net-misc/bridge-utils

/bin/ifconfig eth0 up
/bin/ifconfig eth1 up
/sbin/brctl addbr br0
/sbin/brctl addif br0 eth0
/sbin/brctl addif br0 eth1
/bin/ifconfig br0 up
/sbin/brctl stp br0 on

 

3. Edit the network if you want static

 

nano /etc/conf.d/net

 

bridge_br0="eth0 eth1"
config_br0=( "192.168.95.226/24" )
config_eth0=( "null" )
config_eth1=( "null" )
brctl_br0=( "stp on" )
depend_br0() {
         need net.eth0
}
routes_br0="default via 192.168.95.1"
##bridge_forward_delay_br0=0
bridge_hello_time_br0=1000
bridge_stp_state_br0=1

 

4. Enter these

ln -sf /etc/init.d/net.lo /etc/init.d/net.eth1
rc-update add net.eth0 default
rc-update add net.eth1 default
ln -sf /etc/init.d/net.lo /etc/init.d/net.br0
rc-update add net.br0 default
/etc/init.d/net.br0 start

 

5. Restart to confirm it is working

 

Feel free  to provide comments I am just listing what worked for me

 

Thanks! Simplest to execute so far. I followed above exact steps (except adding ln -sf /etc/init.d/net.lo /etc/init.d/net.eth0 as the first step under 4 and everywhere replacing eth1 with eth2).

 

Alas, it resulted in the same pandemonium as before, as shown in the pic.

None of the ip addresses can be reached.

Strange, as in my setup it works effortlessly with Audiolinux (systemd).

 

image.thumb.png.0868c13fe9e6debc8e52e76484384aca.png

 

 

audio system

 

Link to comment

Finally got it to work!

 

The problem was with the connections (aiming to bridge eth0 and eth2):

Before they were like this (the way bridging always worked with Audiolinux):

  router => server eth2
  server eth0 => switch => endpoint

 

But as with GentooPlayer eth0 kept getting an ip address outside the 192.168.1.x network, I temporarily added an extra cable between the router and the switch:

  router => switch
  router => server eth2
  server eth0 => switch => endpoint

 

and then the above method (with thanks to @luisma) worked smoothly.

The only thing is that at a certain point (after /sbin/brctl addif br0 eth0) I lost remote access and had to manually type in everything from te console.

 

And afterwards I removed the router => switch connection and the bridge was still working and accessible.

 

Thanks all for your help!

(Filippo also kindly offered to look over my shoulder via Teamviewer, but no need for this now.)

 

audio system

 

Link to comment

Hoping that others spend less time on this, below the steps that worked for me to bridge eth0 and eth2.

Replace ip addresses ad lib.

 

Connect ethernet cables as follows (or similar depending on your topology):
    router => switch (this connection is only needed for install, can be removed afterwards)
    router => server eth2
    server eth0 => switch => endpoint
stop the hotspot service via GP web interface
modprobe bridge
emerge net-misc/bridge-utils
/bin/ifconfig eth0 up
/bin/ifconfig eth2 up
/sbin/brctl addbr br0
/sbin/brctl addif br0 eth0

(from here manually via console:)
/sbin/brctl addif br0 eth2
/bin/ifconfig br0 up
/sbin/brctl stp br0 on
nano /etc/conf.d/net

   bridge_br0="eth0 eth2"
   config_br0=( "192.168.1.202/24" )
   config_eth0=( "null" )
   config_eth2=( "null" )
   brctl_br0=( "stp on" )
   depend_br0() {
      need net.eth0 net.eth2
   }
   routes_br0="default via 192.168.1.1"
   ##bridge_forward_delay_br0=0
   bridge_hello_time_br0=1000
   bridge_stp_state_br0=1
ln -sf /etc/init.d/net.lo /etc/init.d/net.eth0
ln -sf /etc/init.d/net.lo /etc/init.d/net.eth2
rc-update add net.eth0 default
rc-update add net.eth2 default
ln -sf /etc/init.d/net.lo /etc/init.d/net.br0
rc-update add net.br0 default
/etc/init.d/net.br0 start
reboot

 

audio system

 

Link to comment
4 hours ago, bodiebill said:

below the steps that worked for me to bridge eth

Thanks for posting your results and I'm glad most of what I sent you worked, I will be creating same script but with the new commands (which I'm using for the wireless / wired bridge), that one is hard to get it working so we'll see.

 

Link to comment

As a matter of interest has anyone a preference between Squeezelite and Squeezelite-R2 under GenTooPlayer?  I was under the impression that the DSD patch in R2 had been incorporated in the mainline product, and that R2 wasn't being developed any more.

 

Have I got that right, in which case is there any reason to run Squeezelite-R2?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...