[gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad?

2022-08-24 Thread Walter Dnes
  The Thinkpad has vertical and horizontal arrow keys.  But it does not
have arrow keys corresponding to 7, 9, 1, and 3 on a regular keyboard.
Yes, I know how to "enable numeric keypad" on a Thinkpad.  While that
does emulate numbers, it does not emulate the arrows.  I happen to need
the angled arrows.  Is there a way to find out the keycodes, and send
them?  Plan B is to buy a hardware keypad off Amazon.

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



[gentoo-user] KDE plasma desktop view shows files that don't exist

2022-08-24 Thread Jack

Checking here for any ideas or suggestions before I report as a KDE bug.

I have my KDE Plasma desktop set to show my ~/Desktop folder. Two days 
ago, I created a script.pl Perl script in that folder. (No, I don't 
generally do work in that folder, but I just needed a quick script to 
deal with a file I had just downloaded there.) After editing that file 
in emacs, a script.pl~ also showed up on the Desktop.  However, so did a 
file #script.pl#, and actually I now have three files showing that 
name.  The original and the emacs backup also show up in Dolphin and an 
"ls" command in a terminal.  None of the "#" files do, however, which is 
expected, as there are transient working files only during an active 
emacs session.


Trying to edit one (double click) from the desktop opens an empty file, 
and right clicking and selecting Properties shows the correct info as of 
when the file actually existed - but if I ask for any checksums, they 
show up as blank fields.


I've looked, and have not found any relevant bug on the KDE bugzilla.  
(As it's not likely a Gentoo bug, I don't see any point in filing at b.g.o.)


Has anyone else noticed this?  Can anyone else reproduce it?

Thanks for any feedback.

Jack




Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad?

2022-08-24 Thread Jack

On 2022.08.24 08:16, Walter Dnes wrote:
  The Thinkpad has vertical and horizontal arrow keys.  But it does  
not

have arrow keys corresponding to 7, 9, 1, and 3 on a regular keyboard.
Yes, I know how to "enable numeric keypad" on a Thinkpad.  While that
does emulate numbers, it does not emulate the arrows.  I happen to  
need

the angled arrows.  Is there a way to find out the keycodes, and send
them?  Plan B is to buy a hardware keypad off Amazon.

--
Walter Dnes 
I don't run "desktop environments"; I run useful applications
On my keyboard, those corner keys on the keypad are End, PgDn, PgUp,  
and NumLock, all of which have their own keys elsewhere on the  
keyboard..  When you say angled arrow keys, do you mean that literally,  
or are you just talking about the corner keys of the keypad?  I don't  
recall ever seeng a literal angled arrow on a keyboard.


Jack



Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad?

2022-08-24 Thread Walter Dnes
On Wed, Aug 24, 2022 at 01:07:52PM -0400, Jack wrote

> On my keyboard, those corner keys on the keypad are End, PgDn, PgUp,  
> and NumLock, all of which have their own keys elsewhere on the  
> keyboard..  When you say angled arrow keys, do you mean that literally,  
> or are you just talking about the corner keys of the keypad?  I don't  
> recall ever seeng a literal angled arrow on a keyboard.

  No literal arrows.  But an old OS/2 game I enjoy, treats the numeric
keypads as...
{HOME} ==> move up and to the left
{PgUp} ==> move up and to the right
{END}  ==> move down and to the left
{PgDn} ==> move down and to the right

  I have tried {HOME}, {PgUp}, {END}, {PgDn} on the Thinkpad  but the
game did not respond.  If I attach a big clunky regular USB keyboard, it
works as expected.

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



Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad?

2022-08-24 Thread Jack

On 2022.08.24 17:21, Walter Dnes wrote:

On Wed, Aug 24, 2022 at 01:07:52PM -0400, Jack wrote

> On my keyboard, those corner keys on the keypad are End, PgDn, PgUp,
> and NumLock, all of which have their own keys elsewhere on the
> keyboard..  When you say angled arrow keys, do you mean that  
literally,
> or are you just talking about the corner keys of the keypad?  I  
don't

> recall ever seeng a literal angled arrow on a keyboard.

  No literal arrows.  But an old OS/2 game I enjoy, treats the numeric
keypads as...
{HOME} ==> move up and to the left
{PgUp} ==> move up and to the right
{END}  ==> move down and to the left
{PgDn} ==> move down and to the right

  I have tried {HOME}, {PgUp}, {END}, {PgDn} on the Thinkpad  but the
game did not respond.  If I attach a big clunky regular USB keyboard,  
it

works as expected.


Ah - I expect the game is interpreting keycodes fairly directly.  You  
can use xev (or similar) to find what the various keys are currently  
producing, and there must be some (Xorg related) program to translate  
them to whatever the program is expecting - perhaps determined by using  
xev with a "proper" keyboard.  Wasn't there an early rogue-like game  
that used some of the main keys in the same way, but without invoking  
the numeric keypad?




[gentoo-user] Easiest remote desktop for Windows client?

2022-08-24 Thread Grant Edwards
What's the easiest way to get a remote desktop working for a Gentoo
server with a Windows 10 client machine?

A lot of sources recommend xrdb since Windows comes with a native RDP
client. But there is no ebuild for xrdb in portage -- though I found
one in an overlay.

VNC would probably be OK, but I'd need to install a VNC client on the
Windows end, and that may be problematic.

Does it matter that I don't run a "desktop environment"?  I have a
pretty minimalistic setup using the openbox WM and a couple tint2
panels.

--
Grant







Re: [gentoo-user] Easiest remote desktop for Windows client?

2022-08-24 Thread Julien Roy

Hello,

On 8/24/22 18:03, Grant Edwards wrote:

What's the easiest way to get a remote desktop working for a Gentoo
server with a Windows 10 client machine?


net-misc/freerdp has a server USE flag. I never used it, but from what I 
read, it can be used as a RDP server like you would a Windows machine.
Otherwise, you could also setup a VNC server and install a VNC client on 
your Windows PC.


--
Julien


OpenPGP_signature
Description: OpenPGP digital signature


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

2022-08-24 Thread Frank Steinmetzger
Am Sat, Aug 20, 2022 at 05:45:18PM -0500 schrieb Dale:

> >> This new 10TB drive is maxing out at about 49.51MB/s or so.

For a new 3.5″ drive, I find this quite slow, even for the slowest part near
the centre of the spindle. I tend to use hdparm for a quick info, but that’s
been mentioned in another reply already.

> > I wonder if you are possibly running into performance issues related
> > to shingled drives.  Their raw capacity comes at a performance penalty.
>
> This drive is not supposed to be SMR. […] If you have a better source of
> info, it's a WD model WD101EDBZ-11B1DA0 drive. 

That’s a WD Red Plus. WD introduced the Plus series after the SMR debacle do
differentiate between the „now normal“ WD Reds which can (or maybe always)
have SMR and the Plus, which are always CMR.

> > Conceptually working in 512 B blocks on a drive that is natively 4 kB
> > sectors.  Thus causing the drive to do lots of extra work to account
> > for the other seven 512 B blocks in a 4 kB sector.
> 
> I think the 512 has something to do with key size or something.  Am I
> wrong on that?  If I need to use 256 or something, I can.  My
> understanding was that 512 was stronger than 256 as far as the
> encryption goes. 

Yeah, we are talking about two different kinds of blocks. You have the disk
block size, the encryption block size and the file system block size. (I
call them all block size here, but they may have more appropriate names).

I think the most important thing is to have the FS block size match the
drive, because in the end, the FS is what sends writes out. The encryption
layer is transparent underneath, it simply transforms the bit values, but
not their location. Disclaimer: that is pure speculation on my part based on
common sense.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

“A Melmacian almost never goes back on his word sometimes.” – Alf


signature.asc
Description: PGP signature


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

2022-08-24 Thread Frank Steinmetzger
Am Fri, Aug 19, 2022 at 06:26:14AM +0200 schrieb David Haller:
> Hello,
> 
> On Thu, 18 Aug 2022, Dale wrote:
> >Rich Freeman wrote:
> >> On Thu, Aug 18, 2022 at 2:04 PM Dale  wrote:
> >>>
> >>> Part. # SizePartition TypePartition Name
> >>> 1007.0 KiB  free space
> >>>19.1 TiB Linux filesystem  10Tb
> >>> 1007.5 KiB  free space
> >>>
> >>>
> >>> I'm not sure why there seems to be two alignment spots.  Is that
> >>> normal?  Already, there is almost 1TB lost somewhere.
> >> 10 TB = 9.09495 TiB.  You aren't missing much of anything.
> [..]
> Also, if you're using ext2/3/4, there's the preset, i.e. if you're
> rather sure about what kind of data is going to be on there, you
> can tune it so that it reserves more or less place for metadata like
> inodes, which can be another bit.

When I format a partition (and I usually use ext4, with some f2fs mingled in
on flash bashed devices), I always set the inode count myself, because the
default was always much too high. Like 15 m on a 40 GiB partition or so. My
arch root partition has 2 m inodes in total, 34 % of which are in use for a
full-fledged KDE setup. That’s sufficient.

On Gentoo, I might give it some more for the ever-growing portage directory.
But even a few percent on a 10 TB drive amount to many gigabytes.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

A hammer is a wonderful tool,
but it is plain unsuitable for cleaning windows.  (SelfHTML forum)


signature.asc
Description: PGP signature


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

2022-08-24 Thread Wol

On 24/08/2022 23:39, Frank Steinmetzger wrote:

That’s a WD Red Plus. WD introduced the Plus series after the SMR debacle do
differentiate between the „now normal“ WD Reds which can (or maybe always)
have SMR and the Plus, which are always CMR.


Yup. The new reds are always SMR, the Red Pluses are CMR.

Cheers,
Wol



[gentoo-user] Re: Easiest remote desktop for Windows client?

2022-08-24 Thread Grant Edwards
On 2022-08-24, Grant Edwards  wrote:

> What's the easiest way to get a remote desktop working for a Gentoo
> server with a Windows 10 client machine?
>
> A lot of sources recommend xrdb since Windows comes with a native RDP
> client. But there is no ebuild for xrdb in portage -- though I found
> one in an overlay.

The xrdp-0.9.19 and xorgxrdp-0.2.18-r1 ebuilds in the ACE overlay
installed with no fuss at all:

https://data.gpo.zugaina.org/ace/net-misc/xrdp/

** And they didn't pull in any new dependencies! **

The /etc/init.d/xrdp openrc script works as expected.

I didn't have a ~/.xinitrc, so I got the default X11 "xclock and three
xterms" when I connected remotely from the Windows machine.

So I created a ~/.xinitrc file with this in it:

#!/bin/bash
exec openbox --startup /home/grante/.config/openbox/autostart-xrdb

My normal local desktop startup commands are in 
/home/grante/.config/openbox/autostart,
but I wanted a remote session to start up a little differently, so I
created a second openbox autostart file for use by xrdp sessions.

Everything works fine except for openbox menu items that start urxvt
with options to set the title and exec an application. Those menu
entries appear to do nothing. The menu entry to start a "plain" urxvt
works fine. When I manually execute urxvt with title/exec options in a
remote session, that works fine too.  So I'm a little baffled why
those commands don't work from the openbox menu for a remote session.

Of course, there's still the inescapable brokenness of apps like
Chrome and Firefox which insist only one instance per user can run at
any time. Apparently the concept of multiple GUI sessions running
simultaneously on one machine is beyond the grasp of some people...

--
Grant




Re: [gentoo-user] Re: Easiest remote desktop for Windows client?

2022-08-24 Thread Julien Roy



On 8/24/22 19:48, Grant Edwards wrote:

On 2022-08-24, Grant Edwards  wrote:

Of course, there's still the inescapable brokenness of apps like
Chrome and Firefox which insist only one instance per user can run at
any time. Apparently the concept of multiple GUI sessions running
simultaneously on one machine is beyond the grasp of some people...


You can create a separate profile for Firefox (I assume Chrome too) 
which allows you to run a second instance, though it's not ideal, since 
you don't have the same bookmarks, history, etc. A shell script should 
be able to copy those over, which you could run every time you start 
your openbox session.


--
Julien


OpenPGP_signature
Description: OpenPGP digital signature


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

2022-08-24 Thread Dale
Rich Freeman wrote:
> On Sat, Aug 20, 2022 at 3:15 PM Dale  wrote:
>> Related question.  Does encryption slow the read/write speeds of a drive
>> down a fair amount?  This new 10TB drive is maxing out at about
>> 49.51MB/s or so.
> Encryption won't impact the write speeds themselves of course, but it
> could introduce a CPU bottleneck.  If you don't have any cores pegged
> at 100% though I'd say this isn't happening.  On x86 encrypting a hard
> drive shouldn't be a problem. I have seen it become a bottleneck on
> something like a Pi4 if the encryption isn't directly supported in
> hardware by the CPU.
>
> 50MB/s is reasonable if you have an IOPS-limited workload.  It is of
> course a bit low for something that is bandwidth-limited.  If you want
> to test that I'm not sure rsync is a great way to go.  I'd pause that
> (ctrl-z is fine), then verify that all disk IO goes to zero (might
> take 30s to clear out the cache).  Then I'd use "time dd bs=1M
> count=2 if=/dev/zero of=/path/to/drive/test"  to measure how long
> it takes to create a 20GB file.  Oh, this assumes you're not using a
> filesystem that can detect all-zeros and compress or make the file
> sparse.  If you get crazy-fast results then I'd do a test like copying
> a single large file with cp and timing that.
>
> Make sure your disk has no IO before testing.  If you have two
> processes accessing at once then you're going to get a huge drop in
> performance on a spinning disk.  That includes one writing process and
> one reading one, unless the reads all hit the cache.
>

Kinda picking random reply. 

I finally got the full backups done and have updated a couple times, new
drive and old drives.  Someone mentioned atop and I gave it a try.  I
noticed the drive parts that is either being read from or written to
show up in red and a high amount of use.  After doing some google
searching, red means really, really busy.  Makes sense.  So, the drives
are apparently just maxing out. 

I also noticed something else.  Given that my internet is so much faster
now, that also puts a load on disk I/O.  Heck, the internet alone can
almost max out the drive I/O.  On top of that I'm watching a video on my
TV.  So, doing backups, watching TV and downloading stuff over a really
fast internet connection, no wonder things were a little slow. 

I also ran this on the new 10TB drive and a older SMR 8TB drive.  This
is about normal, ish.  sdl is the 8TB and sdm is the 10TB. 


root@fireball / # hdparm -tT /dev/sdl

/dev/sdl:
 Timing cached reads:   8814 MB in  2.00 seconds = 4410.88 MB/sec
 Timing buffered disk reads: 558 MB in  3.00 seconds = 185.76 MB/sec
root@fireball / # hdparm -tT /dev/sdm

/dev/sdm:
 Timing cached reads:   8992 MB in  2.00 seconds = 4499.72 MB/sec
 Timing buffered disk reads: 612 MB in  3.01 seconds = 203.47 MB/sec
root@fireball / #

I have some other drives that are slower and a couple that are faster. 
So, I guess it about averages out. 

I have another question.  I notice that the drive activity light stays
on a lot more, downloading/uploading faster etc etc.  Will that cause my
drives to age faster or is that designed in?  I try to get the higher
grade of drives, avoid those built for light duty stuff.  Of course,
they not designed to be used by NASA either.  :/

By the way, that new backup drive, filling up fast.  My storage
partition is too.  This fast internet is causing, issues.  ROFL  Time to
hunt up a deal on another 8TB or 10TB drive to add on.  Dang, my case is
about full.  I really need a NAS or something.  :-D

Dale

:-)  :-)



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

2022-08-24 Thread William Kenworthy



On 25/8/22 06:45, Frank Steinmetzger wrote:

[..]
Also, if you're using ext2/3/4, there's the preset, i.e. if you're
rather sure about what kind of data is going to be on there, you
can tune it so that it reserves more or less place for metadata like
inodes, which can be another bit.

When I format a partition (and I usually use ext4, with some f2fs mingled in
on flash bashed devices), I always set the inode count myself, because the
default was always much too high. Like 15 m on a 40 GiB partition or so. My
arch root partition has 2 m inodes in total, 34 % of which are in use for a
full-fledged KDE setup. That’s sufficient.

On Gentoo, I might give it some more for the ever-growing portage directory.
But even a few percent on a 10 TB drive amount to many gigabytes.

Keep in mind ext4 is created with a fixed number of inodes - you cant 
change it once its created so you have to deal with reformatting the 
filesystem and replacing the data.  Just another reason to use something 
more modern - running out of inodes, especially on a large disk is not a 
minor matter as you have to find somewhere to copy/store the data so you 
can reformat the disk with more inodes and then put it back.  I seem to 
remember the last time it happened to me (its not an uncommon event) I 
had to deal with mass corruption too.


On the other hand, at one inode per file and Dale primarily storing 
large media files it may be safe to reduce them.


BillK