Re: [gentoo-user] Lenovo T400 wifi scan and connect questions

2022-08-30 Thread Walter Dnes
  I'm having problems, even running as root.  As per the previous
message, the system is detecting the hardware, but wpa_aupplicant cannot
get going.  I have a minimal /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
update_config=1

  From https://wiki.gentoo.org/wiki/Wpa_supplicant#Using_wpa_cli the
command for debugging is...

wpa_supplicant -Dnl80211 -iwlan0 -C/var/run/wpa_supplicant/ 
-c/etc/wpa_supplicant/wpa_supplicant.conf -dd

...to which I appended ">>logfile.txt 2>&1" to grab all output.  I
waited for a minute or so, and got the logfile which I've attached.  Any
ideas?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications


logfile.txt.gz
Description: application/gzip


Re: [gentoo-user] Getting maximum space out of a hard drive

2022-08-30 Thread Frank Steinmetzger
Am Mon, Aug 29, 2022 at 04:28:55PM -0500 schrieb Dale:

> >> It sort of reminds me of a cell phone.  Small but fast CPUs, some even
> >> have decent amounts of ram so they can handle quite a lot.  Never heard of
> >> this thing before.  I wouldn't mind having one of those to work as my
> >> OpenVPN server thingy.  I'd just need to find one that has 2 ethernet
> >> ports and designed for that sort of task. 
> > Many of the ZBoxes have dual NICs, which is what makes them very popular
> > among server and firewall hackers because they are also very frugal. My
> > particular model is the CI331:
> > https://www.zotac.com/us/product/mini_pcs/zbox-ci331-nano-barebone
> > It has one 2,5″ slot and one undocumented SATA M.2 which can only be reached
> > by breaking the warranty seal. That’s where zotac installs a drive if you
> > buy a zbox with Winblows pre-installed.
> >
> > After updating the BIOS, which allowed the CPU to enter lower C states, it
> > draws 6 W on idle. It’s not a record, but still not so much for a 24/7 x86
> > system.
>
> I was looking for one with two ethernet ports but wasn't having any luck
> yet.  I did find and download like a catalog thing but it will take a
> while to dig through it.  They have a lot of models for different
> purposes.

Here’s a list of barebone systems with dual-nics:
https://skinflint.co.uk/?cat=barepc=19071_2
You can narrow down your criteria in much detail, such as passively cooled¹,
CPU vendor and features (hello, AES) or even if it’s officially suited for
conutinuous operation by the manufacturer. Obviously, mini barebones are not
suited for big NAS duty due to their form factor.

I mentioned this site before. But even though it’s EU centric, many products
are available worldwide (or in regional variants). Others on the list chimed
in and named more sites, but I can’t remember them.

> I did see a pre-made thing on ebay but can't recall the brand that cost
> hundreds that was made just for VPNs and such.

VPN appliances are pricey due to their industrial design. But for a normal
dude like we are, a consumer-grade device might be better suited. Especially
if it can be used for other purposes such as media source for the TV.

> It was really pricey tho.  But, you plug it in, boot it up and it had
> evrything installed and then some to control networks traffic.  It had
> stuff I never heard of. 

Industrial stuff, as I said. And you pay for the bespoke software, without
which the appliance probably won’t work.

>  I have a old computer that I might could use.  It is 4 core something
>  and I think it has 4GBs of memory, maxed out.  I think it will perform
>  well enough but wish it had a little more horses in it.
> >> I'm not real sure what that old machine has.  I have Linux, can't recall
> >> the distro tho, on it.  Is there a way to find out if it supports the
> >> needed things?
> > cat /proc/cpuinfo and look for aes or the like.

> I have booted that old thing up and I grepped cpuinfo and no AES that I
> could see or grep could find.  Must be before it's time. 
>
> While I had it booted up, I checked into what all it did have.  It only
> has 4 SATA ports, one already used for the OS hard drive.  I could
> likely run it from a USB stick which would make all 4 available.  It has
> 8GBs of memory too.  CPU is a AMD Phenom 9750 Quad running at 2.4GHz.  I
> found it add that cpuinfo showed a different speed I think.

cpuinfo shows the current frequency, not the maximum.

> It's not a speedster or anything but I may can do something with it.

According to https://en.wikipedia.org/wiki/List_of_AMD_Phenom_processors the
9750 Quad is a 95 W or 125 W processor. Going by
https://www.cpubenchmark.net/cpu.php?cpu=AMD+Phenom+9750+Quad-Core=306
its single-thread power is ca. ⅔ that of the Celeron N5100 on my ZBox (at 6 W):
https://www.cpubenchmark.net/cpu.php?cpu=Intel+Celeron+N5100+%40+1.10GHz=4331

> >> I'm pretty sure they support RAID and such by default.  It is likely set
> >> up to make setting it up easier too. 
> > They do, naturally. And yes, the frontends hide lots of the gory details.
>
> That's my thinking since RAID, ZFS and such are new to me.  Of course,
> front ends do take away a lot of fine controls too, usually. 

Setting up ZFS is—from a technical POV—not that much different from LVM,
which you are familiar with. You have block devices over which you create a
virtual device (vdev). A vdev can be a single disk, or a mirror of disks, or
a parity RAID. A storage pool is then created over one or more vdevs. And in
that pool you can create several ZFS (or just the one that is created with
the pool itself).

┌POOL───┐
│┌VDEV 1┐┌─VDEV 2┐ ┌┴ZFS┐
││  mirror  ││  parity RAID  │ │  /pool │
││┌───┐┌───┐││┌───┐┌───┐┌───┐│ ├─ZFS┴─┐
│││sda││sdbsdc││sdd││sde││ │  /pool/video │
││└───┘└───┘││└───┘└───┘└───┘│ └┬─┘
│└──┘└───┘  │
└───┘

In comparison:

Re: [gentoo-user] Limiting amount of memory a program can use.

2022-08-30 Thread Matt Connell
On Mon, 2022-08-29 at 16:11 -0500, Dale wrote:
> Does deluge have a GUI option?  Of course, if I put it
> on another machine, I may go headless for it.  That's one reason I'm
> asking.  Options.

Yes, deluge has a GUI by default.  I just build it with USE="-gtk -
libnotify -sound webinterface" and then access it by
http://:port from a desktop PC instead.

If you want more details about my setup I'm happy to provide.

Also, for the record, all of my torrent data is on a *USB external hard
disk* which is about the slowest possible workable solution, but it
still performs adequately for my needs.



Re: [gentoo-user] Lenovo T400 wifi scan and connect questions

2022-08-30 Thread Michael
On Monday, 29 August 2022 22:23:00 BST Walter Dnes wrote:
> 1) the output of "dmesg | grep iwlwifi" is...
> 
> [0.640780] iwlwifi :03:00.0: can't disable ASPM; OS doesn't have
> ASPM control [0.641112] Loading firmware: iwlwifi-5000-5.ucode
> [0.641332] iwlwifi :03:00.0: loaded firmware version 8.83.5.1 build
> 33692 5000-5.ucode op_mode iwldvm [0.641360] iwlwifi :03:00.0:
> CONFIG_IWLWIFI_DEBUG disabled [0.641364] iwlwifi :03:00.0:
> CONFIG_IWLWIFI_DEBUGFS disabled [0.641367] iwlwifi :03:00.0:
> CONFIG_IWLWIFI_DEVICE_TRACING disabled [0.641370] iwlwifi :03:00.0:
> Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 [   17.311014] iwlwifi
> :03:00.0: Radio type=0x1-0x2-0x0
> [   17.424989] iwlwifi :03:00.0: Radio type=0x1-0x2-0x0
> 
>   Nice to see that it detects the 5100 AGN just like lspci.  As the old
> saying goes, "use it or lose it";  I used to be able to run wifi on this
> machine manually (command line) in the past, but now I've completely
> forgotten how.  I've emerged "iw" and "wpa_supplicant".  "iw dev" shows
> 
> phy#0
> Interface wlan0
> ifindex 3
> wdev 0x1
> addr 00:26:c6:4a:b4:92
> type managed
> txpower 15.00 dBm
> 
>   Questions...
>   1) what do I do to scan and get a list of available networks?

If you have emerged wpa_supplicant with USE="qt5" you will have a GUI to 
launch its client and click on Scan to find and select a desired AP.

If not, you can run wpa_cli in a terminal.  Something like 'wpa_cli scan' and 
'wpa_cli scan_results' should show you what's available.   If you run just 
'wpa_cli' it will launch an interactive shell from which you can run:

> scan
> scan_results

'wpa_cli --help' for more subcommands and options.


>   2) how do I connect to one of the listed networks (assuming either
> it's public, or I have the password) ?

With wpa_supplicant's GUI, or with wpa_cli, but the latter is more tedious.

Run wpa_cli to get an interactive shell.  Then,

> scan
> scan_results

> add_network
0   (if there is no other network yet configured)
> set_network 0 ssid "My_blah_AP"  <== From the results
> set_network 0 psk "My_secret_passphrase"
> enable_network 0
0K

If you managed to authenticate and get an IP address you may want to save your 
settings - assuming you have enabled 'update_config=1' in your 
wpa_supplicant.conf:

> save config
OK

For permanent associations you can add BSSID and authentication credentials 
into /etc/wpa_supplicant/wpa_supplicant.conf.  Have a look at '/usr/share/doc/
wpa_supplicant-*/wpa_supplicant.conf.bz2' for examples.


>   3) minor detail... The Google hits I've found all show both DVM and
> MVM support enabled.  Given that dmesg output shows "op_mode iwldvm",
> can I safely get rid of MVM support ?

I don't know what works with your wireless adaptor, but I tend to experiment 
initially by building such options as modules and see what is loaded or not 
and any warnings in dmesg.


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