Re: SOLVED: Re: [gentoo-user] Getting WiFi to work

2024-04-21 Thread Peter Humphrey
On Sunday, 21 April 2024 23:30:54 BST Wol wrote:
> On 19/04/2024 17:02, Peter Humphrey wrote:
> > 
> > Just reporting back.
> > 
> > I built a new system - using NetworkManager (after all I've said about
> > it!) - now that it's so much quicker using binpkgs.
> > 
> > It all went fairly smoothly, taking one step at a time through changing
> > several USE flags, installing various tools, and finally, adding the new
> > wlan0 interface to shorewall.
> > 
> > The machine can now boot with either wired or wireless network, or both.
> > 
> > Thank you, all who helped.
> 
> Any chance you can document those steps?

Yes, I ought to do that. I just need to remember...   ;-)

> I'm struggling to get wireless working on my laptop - the statement in the
> handbook Wireless networking on Linux is usually pretty straightforward.
> There are three ways of configuring wifi: graphical clients, text-mode
> interfaces, and command-line interfaces.
> 
> just seems to be complete rubbish :-(

It does seem that way, indeed. It was certainly no use to me.

> As far as I can tell, my kernel is bringing up the hardware fine - dmesg
> tells me my wireless interface has come up fine with iwlwifi, and has
> been renamed from wlan0 to wlo1. Network manager detects the ethernet
> connection but can't even see the wireless connection.
> 
> Ummm ... of course, sod has just struck, I've rebooted, started Network
> Manager (which I thought I'd uninstalled) and wonder of wonders I have
> internet!
> 
> But some documentation would certainly be appreciated.

I'll see what I can do in the next day or two.

-- 
Regards,
Peter.






Re: SOLVED: Re: [gentoo-user] Getting WiFi to work

2024-04-21 Thread Wol

On 19/04/2024 17:02, Peter Humphrey wrote:

On Tuesday, 9 April 2024 14:23:31 BST I wrote:




Just reporting back.

I built a new system - using NetworkManager (after all I've said about it!) -
now that it's so much quicker using binpkgs.

It all went fairly smoothly, taking one step at a time through changing
several USE flags, installing various tools, and finally, adding the new wlan0
interface to shorewall.

The machine can now boot with either wired or wireless network, or both.

Thank you, all who helped.

Any chance you can document those steps? I'm struggling to get wireless 
working on my laptop - the statement in the handbook


> Wireless networking on Linux is usually pretty straightforward. There 
are three ways of configuring wifi: graphical clients, text-mode 
interfaces, and command-line interfaces.


just seems to be complete rubbish :-(

As far as I can tell, my kernel is bringing up the hardware fine - dmesg 
tells me my wireless interface has come up fine with iwlwifi, and has 
been renamed from wlan0 to wlo1. Network manager detects the ethernet 
connection but can't even see the wireless connection.


Ummm ... of course, sod has just struck, I've rebooted, started Network 
Manager (which I thought I'd uninstalled) and wonder of wonders I have 
internet!


But some documentation would certainly be appreciated.

Cheers,
Wol



Re: [gentoo-user] Handbook and question about manual network setup

2024-04-21 Thread J. Roeleveld
On Friday, 19 April 2024 16:05:47 CEST Dale wrote:
> Howdy,
> 
> I'm playing around with my NAS box again.  I ran into a network issue. 
> I sorta forgot I unplugged the network cable so obviously, it made it
> difficult to ssh into the thing from my main rig.  After hooking up a
> monitor and keyboard, I found the problem and plugged the network cable
> back in.  ROFLMBO  Told y'all I forget stuff. 
> 
> Anyway, while investigating this, I realized the network setup is not
> like on my old rig.  Heck, I couldn't even figure out how to restart it
> other than switching to the boot runlevel and back to default, or
> rebooting.  After a bit, I think I can restart DHCP and it restart the
> network.  I figured out the cable was unplugged before trying that.  I'm
> wanting to set up the NAS box network the same way as my main rig. 
> That's the old manual way.  I went back to the install handbook, that's
> what I followed when installing on my main rig.  Thing is, it has been
> updated and the old way isn't all there.  I followed what little bit is
> there but it defaults back to the new way.  I'm sure I'm missing some
> file I need to edit but I can't figure out which one it is.  So, is
> there a way to get the old instructions again?  The ones I followed
> several years ago for my main rig?  I tried searching but it seems they
> all gone.  Maybe there is a place I'm not aware of tho.  Basically, I
> want to be able to start/stop/restart enp3s0 as a service and have it in
> a runlevel. 
> 
> Also, I'd like to get the install handbook as one large page.  My
> intention is to save it locally for future reference as it is now.  I
> may even print a copy.  I looked at all the places that have different
> options but can't find the whole thing as one large page.  I looked
> under several drop down menus and such.  A long time ago, it was a
> option.  I just can't find it now.  May that option isn't available
> anymore.  I wish I had a copy of the one from several years ago.  Back
> when I installed on my main rig. 
> 
> Some network info.  Lines that are commented out are options I tried but
> didn't work.  It was worth a shot.  o_O 
> 
> 
> nas / # grep -r '!net' /etc/
> /etc/rc.conf:rc_hotplug="!net.*"
> nas / # grep -r 'enp3s0' /etc/
> /etc/resolv.conf:# Generated by dhcpcd from enp3s0.dhcp
> /etc/conf.d/net:config_enp3s0="dhcp"
> /etc/conf.d/net:dns_servers_enp3s0="8.8.8.8 8.8.4.4"
> /etc/conf.d/net:#config_enp3s0="10.0.0.5"
> nas / #nas / # ifconfig -s enp3s0
> Iface  MTURX-OK RX-ERR RX-DRP RX-OVRTX-OK TX-ERR TX-DRP
> TX-OVR Flg
> enp3s0   150016802  0  0 0 17196  0 
> 0  0 BMRU
> nas / #
> 
> 
> Thoughts?  If I had the old install info, I think I could get it to
> work.  I did last time.  ;-)

Yes, try:
config_enp3s0="10.0.0.5/24"
routes_enp3s0="default gw "

Changes to what I see:
1) You forgot the netmask ( /24 ) for the network
2) I don't see a default route

--
Joost





Re: [gentoo-user] Handbook and question about manual network setup

2024-04-21 Thread Michael
Hi Dale,

On Sunday, 21 April 2024 03:32:32 BST Dale wrote:

> OK.  I did my weekend OS updates on my main rig, fireball.  That
> involves me switching to boot runlevel and back again.  When the network
> started, no message about going to default.  It just showed it starting
> up and using DHCP.   Looks like this: 
> 
> 
>  * Bringing up interface enp3s0
>  *   dhcp ...
>  * Running dhcpcd ...
> 
> 
> 
> I thought of something.  My NAS box is shutdown right now so can't
> check.  I bet DHCP is set to start in the default runlevel.  On my main
> rig it is not set to start the DHCP service at all.  I suspect the NAS
> box finds the DHCP service first and starts the network and then finds
> the network service but it is already started.  When it starts the
> network with the DHCP service, it does the default thing.  I'll test
> that next time I boot up the NAS box. 

On one box here I have neither netifrc configured, nor dhcpcd, although both 
are installed.  I have also made sure networkmanager is not installed.

However, netmount is in the default runlevel and netmount has the default net 
dependency enabled:

$ grep -v "^#" /etc/conf.d/netmount
rc_need="net"

$ rc-update show -v | grep -i net
local |  default nonetwork 
   net-online |
   net.lo |
 netmount |  default

I believe this is what kicks in on my system first and brings up dhcpcd, which 
in turn obtains an IP address from my router.  I mostly configure static IP 
addresses for known devices in my LAN on the router.

You can compare which network services are configured to come up on your NAS 
Vs your main PC and also check any differences in /etc/rc.conf.  Finally 
search for "rc_need=" dependencies defined in your /etc/conf.d/*.

https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior


> I guess no one else found a way to get the install handbook on a single
> page.  I'll have to copy and paste I guess.  That's gonna take a while. 
> O_O 
> 
> Dale
> 
> :-)  :-) 

To save you copying:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation

but note the warning about links redirecting to individual pages:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full


signature.asc
Description: This is a digitally signed message part.