Re: [gentoo-user] mtp cannot create directories on SD card on cellphone

2024-05-15 Thread Walter Dnes
On Wed, May 15, 2024 at 03:06:50PM -0700, Mark Knecht wrote
> 
> Have you checked that the directory where you are attempting to
> do this is one that your account owns? I generally have to su - to
> root, create a directory at the top level, change it so that I own it and
> have rwx permissions, and then exit root. After that I can do what I want.

  I have a short script ~/bin/tabon

[x8940][waltdnes][~] cat bin/tabon
#!/bin/bash
sudo /usr/bin/jmtpfs /home/waltdnes/tablet -o allow_other,auto_unmount,rw
#
# Only needed once
#sudo /bin/chown -R waltdnes:users /home/waltdnes/tablet

  The last (commented out) line *USED TO WORK*.  Now it spits out a
whole slew of...

/bin/chown: changing ownership of 
'/home/waltdnes/tablet/sdcard1/blah_blah_blah': Function not implemented

...one for each direcory and file.  I believe the phone formats the card
as either FAT32 or XFAT.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] mtp cannot create directories on SD card on cellphone

2024-05-15 Thread Mark Knecht
On Wed, May 15, 2024 at 4:38 PM Walter Dnes  wrote:
>
> > Have you checked that the directory where you are attempting to do
> > this is one that your account owns? I generally have to su - to root,
> > create a directory at the top level, change it so that I own it and
> > have rwx permissions, and then exit root. After that I can do what
> > I want.
>
>   So I did "su" and tried changing ownership... failed
>
> x8940 /home/waltdnes/tablet # chown waltdnes:users sdcard1
> chown: changing ownership of 'sdcard1': Function not implemented
>
>   Let's try "chmod"... failed silently
>
> [x8940][root][/home/waltdnes/tablet] chmod 777 sdcard1
> [x8940][root][/home/waltdnes/tablet] ll
> total 24
> drwxr-xr-x   4 root root  0 Dec 31  1969 .
> drwxr-xr-x 144 waltdnes users 24576 May 15 18:17 ..
> drwxr-xr-x   5 root root  0 Nov 16  4456932 sdcard
> drwxr-xr-x   6 root root  0 Apr 22  4456932 sdcard1
>
>   root can't chmod sdcard1.
>
> [x8940][root][/home/waltdnes/tablet] mkdir sdcard1/data
> mkdir: cannot create directory ‘sdcard1/data’: Input/output error
>
>   and root can't create a directory!!!  Let's try top level...
>
> [x8940][root][~] cd /home/waltdnes/tablet
> [x8940][root][/home/waltdnes/tablet] mkdir data
> mkdir: cannot create directory ‘data’: Read-only file system
>


So it seems very strange to me that, per the initial message, you
can create and delete files, which implies the file system
is not read only, but the mkdir command thinks it is read only.

And from what I've read there is no read-only switch on this
SD card, correct? It's just something like a chip that plugs into
a Raspberry Pi or a camera, correct?

I am not exactly clear from rereading what the actual SD card is
or how it's attached, and you are using file system types I know
nothing about. However, if only for clarity, what I've had to do
even with ext3/4 is essentially the following:

1) su - and enter root password.

2) As root navigate to /home/walter/tablet or whatever the
location is where you believe you are really ON the SD card

3) Create a file using vi, save the file, make sure it's there
and make sure it's owned root:root.

4) Exit the su and make sure the file is there. Unmount the
SD card, remount the SD card and check that it's really
there. Put the SD card in some other system where you
can see the file, if possible.

5) Assuming all of that makes sense, remount the CD
card, su there again, and chown the file to walter:walter
or walter:user or whatever is appropriate. Make sure
you can edit the file from some other terminal process.

6) As root in the su, then try to create a directory. If it's
still read only then this is way above my pay grade. However
if you can create the directory, which I've always been able
to do as root, then chown -R the directory to your user
ID.

It is important to ensure that OS believes you have
read/write access all the way up and down the chain so
you might need to chown -R walter:walter AS ROOT
from your home directory into the mount point, which if
I understand, is /home/walter/tablet, so I'd be root and
doing the command sitting in /home/walter.

Sorry. Wish I could be more helpful but this has been
a problem on my systems ever since I started using
Linux 25-30 years ago and I struggle with it maybe once
a year.

Good luck,
Mark


Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Dale
Neil Bothwick wrote:
> On Wed, 15 May 2024 08:09:01 -0500, Dale wrote:
>
>>> x11-misc/xclip
>>>
>>> Or just select some empty space in an application, to overwrite your
>>> previous selection.  
>> Well, since it works, something is acting as a clipboard.  It doesn't
>> seem to be xclip in my case.
> xclip is not a clipboard, it is a tool to manage the contents of the
> existing clipboards and selection buffers.
>
>


Well, just for giggles. 

root@fireball / # echo "" | xclip
-bash: xclip: command not found
root@fireball / #

It didn't like it.  :/

It seems that it only remembers one in memory anyway.  Once I highlight
something else, it kinda clears itself.  That works.  Heck, I have to
clear the Konsole when I exit kpcli anyway. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread karl
Wol:
> On 15/05/2024 11:40, Peter Humphrey wrote:
> > I think whoever named grub had delusions of grandeur.  🙂  Anyway, I 
> > never let
> > it near my systems.
> 
> I liked lilo. And then it disappeared :-(
...

 Still available and still working on non-uefi setups:
https://packages.gentoo.org/packages/sys-boot/lilo

Regards,
/Karl Hammar




Re: [gentoo-user] mtp cannot create directories on SD card on cellphone

2024-05-15 Thread Walter Dnes
> Have you checked that the directory where you are attempting to do
> this is one that your account owns? I generally have to su - to root,
> create a directory at the top level, change it so that I own it and
> have rwx permissions, and then exit root. After that I can do what
> I want.

  So I did "su" and tried changing ownership... failed

x8940 /home/waltdnes/tablet # chown waltdnes:users sdcard1
chown: changing ownership of 'sdcard1': Function not implemented

  Let's try "chmod"... failed silently

[x8940][root][/home/waltdnes/tablet] chmod 777 sdcard1
[x8940][root][/home/waltdnes/tablet] ll
total 24
drwxr-xr-x   4 root root  0 Dec 31  1969 .
drwxr-xr-x 144 waltdnes users 24576 May 15 18:17 ..
drwxr-xr-x   5 root root  0 Nov 16  4456932 sdcard
drwxr-xr-x   6 root root  0 Apr 22  4456932 sdcard1

  root can't chmod sdcard1.

[x8940][root][/home/waltdnes/tablet] mkdir sdcard1/data
mkdir: cannot create directory ‘sdcard1/data’: Input/output error

  and root can't create a directory!!!  Let's try top level...

[x8940][root][~] cd /home/waltdnes/tablet
[x8940][root][/home/waltdnes/tablet] mkdir data
mkdir: cannot create directory ‘data’: Read-only file system

  A suggestion at https://ubuntuforums.org/showthread.php?p=7317638

> The permissions for non-linux filesystems are defined for the whole
> partition at the time it's mounted, and you can change them by
> configuring the drive in /etc/fstab.

  So I added a line to /etc/fstab, but no luck...

/sys/fs/fuse/connections /home/waltdnes/tablet auto 
noauto,users,noatime,nodiratime,async,rw 0 0

  No luck.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



[gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Nuno Silva
On 2024-05-15, Michael wrote:

>
> There are 3 'cliboards', known as selections, I know of:
>
> 1. Primary - you select some text by holding down your left mouse button (or 
> Shift+arrow) and you paste it with your middle button (or Shift+Insert - 
> depending on application).
>
> 2. Secondary - some applications will autoselect text, e.g. when you click in 
> the non-empty address bar of a browser.  This can replace any selection you 
> had in the Primary selection.  It depends on the particular application.
>
> 3. Clipboard - this is the Ctrl+x/c/v MSWindows style of cut/copy/paste menu 
> items.
>
> More details can be found in the spec here:
>
> https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

There's also this one:

  https://www.jwz.org/doc/x-cut-and-paste.html

Which mentions the support for different targets, also mentioned in:

  https://lars.ingebrigtsen.no/2018/10/07/further-fun-with-the-clipboard/

(xclip can be used for targets too, "xclip -o -target TARGETS" for a
list of the currently available targets)

> As far as I know the Primary selection is not stored anywhere - other than 
> within the application's memory space where the range of characters have been 
> selected.  The xserver will call for this when you middle click to paste it 
> on 
> another application's window.
>
> The Clipboard may be stored in RAM or cache of any applications which use 
> this 
> method.

-- 
Nuno Silva




Re: [gentoo-user] mtp cannot create directories on SD card on cellphone

2024-05-15 Thread Mark Knecht
On Wed, May 15, 2024 at 2:29 PM Walter Dnes  wrote:
>
>   What I *CAN* do... upload/download/create/delete *FILES* on SD card
>
>   What I *CANNOT* do... create new *DIRECTORIES* on SD card
>
> [x8940][waltdnes][~/tablet/sdcard1] mkdir data
> mkdir: cannot create directory ‘data’: Input/output error
>
>   This happens with both "jmtps" and "simple-mtpfs", so I think it's
> probably a systemic issue that affects all implementions.  For now I'm
> using the "screenshots" directory for transferring miscellaneous files,
> but I'd really like to solve the core problem.  Any ideas?

Have you checked that the directory where you are attempting to
do this is one that your account owns? I generally have to su - to
root, create a directory at the top level, change it so that I own it and
have rwx permissions, and then exit root. After that I can do what I want.

HTH,
Mark


[gentoo-user] mtp cannot create directories on SD card on cellphone

2024-05-15 Thread Walter Dnes
  What I *CAN* do... upload/download/create/delete *FILES* on SD card

  What I *CANNOT* do... create new *DIRECTORIES* on SD card

[x8940][waltdnes][~/tablet/sdcard1] mkdir data
mkdir: cannot create directory ‘data’: Input/output error

  This happens with both "jmtps" and "simple-mtpfs", so I think it's
probably a systemic issue that affects all implementions.  For now I'm
using the "screenshots" directory for transferring miscellaneous files,
but I'd really like to solve the core problem.  Any ideas?

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Neil Bothwick
On Wed, 15 May 2024 08:09:01 -0500, Dale wrote:

> > x11-misc/xclip
> >
> > Or just select some empty space in an application, to overwrite your
> > previous selection.  
> 
> Well, since it works, something is acting as a clipboard.  It doesn't
> seem to be xclip in my case.

xclip is not a clipboard, it is a tool to manage the contents of the
existing clipboards and selection buffers.


-- 
Neil Bothwick

Loose bits sink chips.


pgp8VMd5CFgb7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Michael
Hi Alan,

On Wednesday, 15 May 2024 15:23:47 BST Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> My current rig is working well (hence the lack of posts to the list from
> me), but 
> 
> The time is coming up for me to buy a new PC, the current one being
> around 7 years old.  It's served me well for that time, but nothing
> lasts forever.  Also, it would be nice to be able to build clang and
> rust and friends somewhat faster.
> 
> So I'm looking at getting an AMD Ryzen 7 7700X processor, and using its
> inbuilt graphics rather than buying a distinct graphics card.
> 
> But in the doc on wiki.gentoo.org, I can't find any mention of inbuilt
> graphics; all references are to graphics _cards_.  Does Gentoo support
> my intended processor's graphics, and if so, how do I go about
> identifying the needed microcode (if any) and so on?  Am I missing
> something obvious in the wiki?

I don't have anything as exotic running here, but you will need amdgpu, plus 
(potentially) amdgpu-pro for your graphics:

https://wiki.gentoo.org/wiki/AMDGPU
https://wiki.gentoo.org/wiki/AMDGPU-PRO

You will be able to confirm what is required in respect to firmware and kernel 
graphics driver components once you boot up with a liveUSB.  It will complain 
of any missing firmware.

For microcode, flash the BIOS with the latest OEM firmware and add the 
corresponding AMD family firmware file in your kernel:

https://wiki.gentoo.org/wiki/AMD_microcode

If you boot with the latest Ubuntu it will probably load everything required; 
then fish around dmesg and hwinfo, lspci, lscpu, etc. for relevant drivers and 
firmware files.


> As a somewhat tangential question, would it be worthwhile getting water
> cooling in my new machine?  In particular, to reduce the noise it gives
> off while building large packages such as clang and rust?  Or is water
> cooling only sensible for really heavy users such as gamers?
> 
> Thanks for the upcoming answers!

WC will be quieter and more expensive than an after market air cooler.  You 
could invest the money toward more RAM, (more/bigger) case fans, a better PSU, 
monitor, speakers, a new car, etc.  :-)

https://www.techreviewer.com/tech-specs/amd-7700x-tdp/

Cranking up 16 threads to 5.4 GHz will produce some heat, but compiles will 
complete sooner too.  I think an air cooler will be equally as effective 
thermally, with fewer components to go wrong.  Either way, consider the space 
envelop in the case because some dual fan air-coolers can be rather large.


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


[gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Wols Lists  wrote:
> On 15/05/2024 11:40, Peter Humphrey wrote:
>> I think whoever named grub had delusions of grandeur.    Anyway, I never let
>> it near my systems.
>
> I liked lilo. And then it disappeared :-(
>
> Grub isn't that bad - it's just that insists on trying to do everything 
> itself - and if you've got at all a strange setup it makes a complete 
> hash of it.

Grub2 is a bit overblown, but it's quite usable as long as you stick
to a manually generated grub.cfg file and stay away from the
auto-magical disk-probing configuration script world-domination
scheme.

--
Grant






Re: [gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread Wols Lists

On 15/05/2024 11:40, Peter Humphrey wrote:

I think whoever named grub had delusions of grandeur.    Anyway, I never let
it near my systems.


I liked lilo. And then it disappeared :-(

Grub isn't that bad - it's just that insists on trying to do everything 
itself - and if you've got at all a strange setup it makes a complete 
hash of it.


LIKE GENTOO!

I've moaned about this before, but last time SUSE updated itself, it 
trashed grub.conf and left me with an unbootable system. And then gentoo 
sees that I've got an unmounted /boot and throws a complete and utter 
hissy fit because I told it not to touch it ...


Cheers,
Wol



Re: [gentoo-user] Re: Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Matt Connell
On Wed, 2024-05-15 at 16:25 +, Grant Edwards wrote:
> You'll need kernel 5.18 and Mesa 22 plus recent firmware.
> 
> That article was almost 2 years old, so I'd be surprised if all those
> are not stable in Gentoo by now.

Mesa 22 is not.  Only version 24 is stable

:)



[gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Michael  wrote:
> On Wednesday, 15 May 2024 15:37:22 BST Grant Edwards wrote:
>> On 2024-05-15, Michael  wrote:
>
>> > The Clipboard may be stored in RAM or cache of any applications
>> > which use this method.
>> 
>> AFAICT, the clipboard contents is stored in the X server. When you
>> cut/copy something, the application sends that something to the X
>> server where it's stored.  When that application exits, the clipboard
>> contents are still there in the X server, and can still be requested
>> by other applications who want to do a "paste".
>
> What you write makes sense.

I got curious, and did some more Googling. It looks like the clipboard
contents only survive application exit if the application explicitly
tells the server it wants the clipboard contents to persist.  But,
AFIACT, that's what all apps do.

> I am not sure what happens in Wayland, where application windows are
> supposed to be isolated.

I try not to think about Wayland and dread the day when I'm forced to switch. :)

It's taken me 40 years to figure out X (most-sort-of)...

> I recall in earlier days the Primary selection would not work
> between windows, which was rather frustrating.  I think at present
> the Plasma desktop clipboard application acts as a mediator,
> probably engaging Xwayland - but I am not sure.
>
> There are quite a few settings in Plasma's clipboard application to
> configure interoperability between Primary & Clipboard selection and
> can be set to save the Primary selection in the Clipboard section
> and its history if so desired.
>
> With my current settings I can middle click to paste a Primary
> selection into Konsole, but Shift+Insert which works with Xterm &
> friends does not work with Konsole.

There probably should have been a section on cutbuffers, selections,
and clipboards in the X11 section of the Unix Hater's Handbook.

 which I highly recommend, BTW:

  https://web.mit.edu/~simsong/www/ugh.pdf
  https://en.wikipedia.org/wiki/The_UNIX-HATERS_Handbook







Re: [gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Michael
On Wednesday, 15 May 2024 15:37:22 BST Grant Edwards wrote:
> On 2024-05-15, Michael  wrote:

> > The Clipboard may be stored in RAM or cache of any applications
> > which use this method.
> 
> AFAICT, the clipboard contents is stored in the X server. When you
> cut/copy something, the application sends that something to the X
> server where it's stored.  When that application exits, the clipboard
> contents are still there in the X server, and can still be requested
> by other applications who want to do a "paste".

What you write makes sense.

I am not sure what happens in Wayland, where application windows are supposed 
to be isolated.  I recall in earlier days the Primary selection would not work 
between windows, which was rather frustrating.  I think at present the Plasma 
desktop clipboard application acts as a mediator, probably engaging Xwayland - 
but I am not sure.

There are quite a few settings in Plasma's clipboard application to configure 
interoperability between Primary & Clipboard selection and can be set to save 
the Primary selection in the Clipboard section and its history if so desired.

With my current settings I can middle click to paste a Primary selection into 
Konsole, but Shift+Insert which works with Xterm & friends does not work with 
Konsole.


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


[gentoo-user] Re: Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Alan Mackenzie  wrote:

> But in the doc on wiki.gentoo.org, I can't find any mention of inbuilt
> graphics; all references are to graphics _cards_.  Does Gentoo support
> my intended processor's graphics,

Technically, no. Gentoo doesn't.  However, the Linux kernel, Xorg, and
Mesa do. You'll need "recent" versions of those.  According to this
article:

https://www.phoronix.com/review/amd-ryzen7-7700x

You'll need kernel 5.18 and Mesa 22 plus recent firmware.

That article was almost 2 years old, so I'd be surprised if all those
are not stable in Gentoo by now.

--
Grant





Re: [gentoo-user] Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Peter Humphrey
On Wednesday, 15 May 2024 15:23:47 BST Alan Mackenzie wrote:

> So I'm looking at getting an AMD Ryzen 7 7700X processor, and using its
> inbuilt graphics rather than buying a distinct graphics card.
> 
> But in the doc on wiki.gentoo.org, I can't find any mention of inbuilt
> graphics; all references are to graphics _cards_.  Does Gentoo support
> my intended processor's graphics, and if so, how do I go about
> identifying the needed microcode (if any) and so on?  Am I missing
> something obvious in the wiki?

The AMD website says it uses Radeon graphics, so it seems to be covered, as 
long as you have a USB-C connector.


> As a somewhat tangential question, would it be worthwhile getting water
> cooling in my new machine?  In particular, to reduce the noise it gives
> off while building large packages such as clang and rust?  Or is water
> cooling only sensible for really heavy users such as gamers?
> 
> Thanks for the upcoming answers!


-- 
Regards,
Peter.


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


Re: [gentoo-user] Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Dale
Alan Mackenzie wrote:
> Hello, Gentoo.
>
> My current rig is working well (hence the lack of posts to the list from
> me), but 
>
> The time is coming up for me to buy a new PC, the current one being
> around 7 years old.  It's served me well for that time, but nothing
> lasts forever.  Also, it would be nice to be able to build clang and
> rust and friends somewhat faster.
>
> So I'm looking at getting an AMD Ryzen 7 7700X processor, and using its
> inbuilt graphics rather than buying a distinct graphics card.
>
> But in the doc on wiki.gentoo.org, I can't find any mention of inbuilt
> graphics; all references are to graphics _cards_.  Does Gentoo support
> my intended processor's graphics, and if so, how do I go about
> identifying the needed microcode (if any) and so on?  Am I missing
> something obvious in the wiki?
>
> As a somewhat tangential question, would it be worthwhile getting water
> cooling in my new machine?  In particular, to reduce the noise it gives
> off while building large packages such as clang and rust?  Or is water
> cooling only sensible for really heavy users such as gamers?
>
> Thanks for the upcoming answers!
>


On the cooling point, I notice that newer CPUs actually consume less
power therefore produce less heat.  I've never used water.  I don't have
anything to drink close to my puter either.  I suspect that if you got a
pretty good size air CPU cooler, with a large quiet fan, you will find
it pretty quiet.  I have a FX-8350 right now.  I can't recall the power
it pulls right now but it is more than the newer CPUs.  I have a CPU
cooler with a 120mm fan and even at full load, I don't hear anything and
I'm right next to it.  I don't even hear the large case fans.  Keep in
mind, those case fans are 200mm fans. 

Some prefer water and for those who do, use water.  I just don't see why
newer CPUs that produce less heat would need water when air cooling
works fine on CPUs that produce more heat.  If you would rather avoid
water, I can't imagine a good air CPU cooler with a large fan not being
more than enough.  I might add, I'm always scared the pump will decide
to take a nap.  At least with a air cooler, it will cool some even
without a fan.  Could prevent burning out the CPU if you shutdown quick.

Maybe when I get me a new rig built I can share personal experience.  ;-) 

Dale

:-)  :-) 



Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Dale
Peter Humphrey wrote:
> On Wednesday, 15 May 2024 14:37:22 BST Michael wrote:
>
>> There are 3 'cliboards', known as selections, I know of:
>>
>> 1. Primary - you select some text by holding down your left mouse button (or
>> Shift+arrow) and you paste it with your middle button (or Shift+Insert -
>> depending on application).
>>
>> 2. Secondary - some applications will autoselect text, e.g. when you click
>> in the non-empty address bar of a browser.  This can replace any selection
>> you had in the Primary selection.  It depends on the particular
>> application.
>>
>> 3. Clipboard - this is the Ctrl+x/c/v MSWindows style of cut/copy/paste menu
>> items.
> I just think of them simply as a selection buffer and a paste buffer. It 
> obviates any more complicated mental models.
>
>> I understand there's a new disk technology about to be released upon us with
>> laser heating up the area where data is being stored, to increase density
>> and therefore hugely increase capacity.  Your next spinning drive could
>> well be 30-50T or more!  0_0
> Oo-er!
>
> -- Regards, Peter.


This explanation makes sense.  Looks like once I highlight something
else, it forgets the previous highlight.  That goes with how it seems to
work as well. 

On the larger hard drives, I just bought a Fractal case that holds at
least 18 drives.  Now this.  :-D 

Dale

:-)  :-) 


[gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Michael  wrote:

> As far as I know the Primary selection is not stored anywhere -
> other than within the application's memory space where the range of
> characters have been selected. The xserver will call for this when
> you middle click to paste it on another application's window.


Right. When you highlight some text, the application asserts ownership
of the primary selection, but no contents of the selection are
transferred to the X server.

So, the X server knows who owns the selection, but it doesn't actually
store the contents anywhere. If you middle-click on a window, the X
server will make a call to the owner of selection to get the selection
contents and then provide that contents to the active window.

When process (X client) that owns the selection exits, the selection
becomes "empty" (unavailable).

> The Clipboard may be stored in RAM or cache of any applications
> which use this method.

AFAICT, the clipboard contents is stored in the X server. When you
cut/copy something, the application sends that something to the X
server where it's stored.  When that application exits, the clipboard
contents are still there in the X server, and can still be requested
by other applications who want to do a "paste".

With the usual behavior, the selection and clipboard sort of overlap:

When you highlight something the application asserts ownership of the
primary selection, but nothing is transferred to the X server. If you
then do a "copy", the application will send that highlighted text to
the clipbard.

If you haven't selected anything else, now you can either middle-click
or paste, and you'll get the same thing.

If you exit the app, then middle-click will produce nothing because
there is no selection owner. But, paste will still get the "copied"
data from the X server.

That said, something doesn't have to be selected (in the X11 sense) to
be copied into the clipboard -- but that's how most applications work
first you select (in the X11 sense) something then you copy it to the
clipboard.

--
Grant





[gentoo-user] Graphics configuration for a Ryzen 7 7700X chip and water cooling.

2024-05-15 Thread Alan Mackenzie
Hello, Gentoo.

My current rig is working well (hence the lack of posts to the list from
me), but 

The time is coming up for me to buy a new PC, the current one being
around 7 years old.  It's served me well for that time, but nothing
lasts forever.  Also, it would be nice to be able to build clang and
rust and friends somewhat faster.

So I'm looking at getting an AMD Ryzen 7 7700X processor, and using its
inbuilt graphics rather than buying a distinct graphics card.

But in the doc on wiki.gentoo.org, I can't find any mention of inbuilt
graphics; all references are to graphics _cards_.  Does Gentoo support
my intended processor's graphics, and if so, how do I go about
identifying the needed microcode (if any) and so on?  Am I missing
something obvious in the wiki?

As a somewhat tangential question, would it be worthwhile getting water
cooling in my new machine?  In particular, to reduce the noise it gives
off while building large packages such as clang and rust?  Or is water
cooling only sensible for really heavy users such as gamers?

Thanks for the upcoming answers!

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Peter Humphrey
On Wednesday, 15 May 2024 14:37:22 BST Michael wrote:

> There are 3 'cliboards', known as selections, I know of:
> 
> 1. Primary - you select some text by holding down your left mouse button (or
> Shift+arrow) and you paste it with your middle button (or Shift+Insert -
> depending on application).
> 
> 2. Secondary - some applications will autoselect text, e.g. when you click
> in the non-empty address bar of a browser.  This can replace any selection
> you had in the Primary selection.  It depends on the particular
> application.
> 
> 3. Clipboard - this is the Ctrl+x/c/v MSWindows style of cut/copy/paste menu
> items.

I just think of them simply as a selection buffer and a paste buffer. It 
obviates any more complicated mental models.

> I understand there's a new disk technology about to be released upon us with
> laser heating up the area where data is being stored, to increase density
> and therefore hugely increase capacity.  Your next spinning drive could
> well be 30-50T or more!  0_0

Oo-er!

-- 
Regards,
Peter.


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


Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Michael
On Wednesday, 15 May 2024 14:09:01 BST Dale wrote:
> Michael wrote:
> > On Wednesday, 15 May 2024 11:56:04 BST Dale wrote:

> >> There doesn't appear to be a xclip on here, not as a command anyway.
> >> Could it be some other name?  Maybe it changed?  I'm sure it is
> >> something.  I just don't know what.
> >> 
> >> Thanks.
> >> 
> >> Dale
> >> 
> >> :-)  :-)
> > 
> > x11-misc/xclip
> > 
> > Or just select some empty space in an application, to overwrite your
> > previous selection.
> 
> Well, since it works, something is acting as a clipboard.  It doesn't
> seem to be xclip in my case.  Anyway, that's what I been doing is
> highlighting something else and that makes it paste the new highlighted
> info instead of previous info.  I have no idea if those entries are
> stored somewhere or when gone, they gone.  I'm hoping they are gone. 

There are 3 'cliboards', known as selections, I know of:

1. Primary - you select some text by holding down your left mouse button (or 
Shift+arrow) and you paste it with your middle button (or Shift+Insert - 
depending on application).

2. Secondary - some applications will autoselect text, e.g. when you click in 
the non-empty address bar of a browser.  This can replace any selection you 
had in the Primary selection.  It depends on the particular application.

3. Clipboard - this is the Ctrl+x/c/v MSWindows style of cut/copy/paste menu 
items.

More details can be found in the spec here:

https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

As far as I know the Primary selection is not stored anywhere - other than 
within the application's memory space where the range of characters have been 
selected.  The xserver will call for this when you middle click to paste it on 
another application's window.

The Clipboard may be stored in RAM or cache of any applications which use this 
method.


> P. S. My new 16TB drive is almost done with the long SMART test.  :-D 

I understand there's a new disk technology about to be released upon us with 
laser heating up the area where data is being stored, to increase density and 
therefore hugely increase capacity.  Your next spinning drive could well be 
30-50T or more!  0_0
  

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


[gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Dale  wrote:

>> Or just select some empty space in an application, to overwrite your 
>> previous 
>> selection.
>
> Well, since it works, something is acting as a clipboard.

It's part of the X server.  Same for the two selections.

> It doesn't seem to be xclip in my case.  Anyway, that's what I been
> doing is highlighting something else and that makes it paste the new
> highlighted info instead of previous info.  I have no idea if those
> entries are stored somewhere or when gone, they gone.  I'm hoping
> they are gone. 




[gentoo-user] Re: Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Grant Edwards
On 2024-05-15, Dale  wrote:

> I thought that too.  I highlighted some text in a Konsole and then
> looked in the KDE clipboard, what I highlighted was not there. 
>
> It wasn't there after I pasted it either.  It goes to a clipboard
> somewhere but it appears it only remembers one entry then forgets
> when you highlight something else.

You're conflating to different but related things.

In X, the selection and the clipboard are two different "places".

When you click-drag to highlight text, that goes into the selection.
In X, there are actually two different selections: the primary and the
secondary. By default highlighted text goes into the primary
selection.

Middle-clicking shoves the contents of the primary selection into
stdin for whatever window is selected.

When you do "cut" or "copy" something, it goes into the clipboard.

When you "paste" it comes from the clipboard.

xclip can access (read or write) all three (primary selection,
secondary selection, and clipboard).

https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer
https://superuser.com/questions/90257/what-is-the-difference-between-the-x-clipboards
https://www.reddit.com/r/linux/comments/mgr0v/til_x11_has_three_clipboards/

--
Grant




Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Dale
Michael wrote:
> On Wednesday, 15 May 2024 11:56:04 BST Dale wrote:
>> Neil Bothwick wrote:
>>> On Wed, 15 May 2024 03:44:49 -0500, Dale wrote:
 I thought that too.  I highlighted some text in a Konsole and then
 looked in the KDE clipboard, what I highlighted was not there.  It
 wasn't there after I pasted it either.  It goes to a clipboard somewhere
 but it appears it only remembers one entry then forgets when you
 highlight something else.  I'm not aware of a way to access it yet. 
 I've looked for it but can't find it.  To be honest, I wish there was a
 way to clear it, wherever it is.  I clear my KDE clipboard that is on my
 desktop pretty regular.  I always do so after copying passwords or
 something important. 
>>> xclip manipulates both the standard and X selection clipboards. It works
>>> with the X selection clipboard by default, so you shold be able to clear
>>> it with
>>>
>>> echo "" | xclip
>>>
 I'm wondering if that clipboard is a part of Konsole itself.  I've never
 seen anything in the KDE clipboard that I just highlighted in Konsole. 
>>> It's part of X.
>>>
 I could use Bitwarden to generate passwords but then I'd need to copy it
 to my regular clipboard to get it to the Konsole.  I wanted to avoid
 that.
>>> Bitwarden has an option to clear the clipboard after a configurable time,
>>> much like KeePassXC.
>>>
>>> Naturally, if you are really paranoid about security, you will run your
>>> own Vaultwarden server to avoid the passwords ever going anywhere out of
>>> your control.
>> I wanted to check out the help info, maybe learn something new.  This is
>> what I get when trying to find xclip.
>>
>>
>> root@fireball / # xc 
>> xcam  xchm  xcircuit 
>> root@fireball / #
>>
>>
>> There doesn't appear to be a xclip on here, not as a command anyway. 
>> Could it be some other name?  Maybe it changed?  I'm sure it is
>> something.  I just don't know what. 
>>
>> Thanks.
>>
>> Dale
>>
>> :-)  :-) 
> x11-misc/xclip
>
> Or just select some empty space in an application, to overwrite your previous 
> selection.

Well, since it works, something is acting as a clipboard.  It doesn't
seem to be xclip in my case.  Anyway, that's what I been doing is
highlighting something else and that makes it paste the new highlighted
info instead of previous info.  I have no idea if those entries are
stored somewhere or when gone, they gone.  I'm hoping they are gone. 

Dale

:-)  :-) 

P. S. My new 16TB drive is almost done with the long SMART test.  :-D 



Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Michael
On Wednesday, 15 May 2024 11:56:04 BST Dale wrote:
> Neil Bothwick wrote:
> > On Wed, 15 May 2024 03:44:49 -0500, Dale wrote:
> >> I thought that too.  I highlighted some text in a Konsole and then
> >> looked in the KDE clipboard, what I highlighted was not there.  It
> >> wasn't there after I pasted it either.  It goes to a clipboard somewhere
> >> but it appears it only remembers one entry then forgets when you
> >> highlight something else.  I'm not aware of a way to access it yet. 
> >> I've looked for it but can't find it.  To be honest, I wish there was a
> >> way to clear it, wherever it is.  I clear my KDE clipboard that is on my
> >> desktop pretty regular.  I always do so after copying passwords or
> >> something important. 
> > 
> > xclip manipulates both the standard and X selection clipboards. It works
> > with the X selection clipboard by default, so you shold be able to clear
> > it with
> > 
> > echo "" | xclip
> > 
> >> I'm wondering if that clipboard is a part of Konsole itself.  I've never
> >> seen anything in the KDE clipboard that I just highlighted in Konsole. 
> > 
> > It's part of X.
> > 
> >> I could use Bitwarden to generate passwords but then I'd need to copy it
> >> to my regular clipboard to get it to the Konsole.  I wanted to avoid
> >> that.
> > 
> > Bitwarden has an option to clear the clipboard after a configurable time,
> > much like KeePassXC.
> > 
> > Naturally, if you are really paranoid about security, you will run your
> > own Vaultwarden server to avoid the passwords ever going anywhere out of
> > your control.
> 
> I wanted to check out the help info, maybe learn something new.  This is
> what I get when trying to find xclip.
> 
> 
> root@fireball / # xc 
> xcam  xchm  xcircuit 
> root@fireball / #
> 
> 
> There doesn't appear to be a xclip on here, not as a command anyway. 
> Could it be some other name?  Maybe it changed?  I'm sure it is
> something.  I just don't know what. 
> 
> Thanks.
> 
> Dale
> 
> :-)  :-) 

x11-misc/xclip

Or just select some empty space in an application, to overwrite your previous 
selection.


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


Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Dale
Neil Bothwick wrote:
> On Wed, 15 May 2024 03:44:49 -0500, Dale wrote:
>
>> I thought that too.  I highlighted some text in a Konsole and then
>> looked in the KDE clipboard, what I highlighted was not there.  It
>> wasn't there after I pasted it either.  It goes to a clipboard somewhere
>> but it appears it only remembers one entry then forgets when you
>> highlight something else.  I'm not aware of a way to access it yet. 
>> I've looked for it but can't find it.  To be honest, I wish there was a
>> way to clear it, wherever it is.  I clear my KDE clipboard that is on my
>> desktop pretty regular.  I always do so after copying passwords or
>> something important. 
> xclip manipulates both the standard and X selection clipboards. It works
> with the X selection clipboard by default, so you shold be able to clear
> it with
>
> echo "" | xclip
>
>> I'm wondering if that clipboard is a part of Konsole itself.  I've never
>> seen anything in the KDE clipboard that I just highlighted in Konsole. 
> It's part of X.
>
>> I could use Bitwarden to generate passwords but then I'd need to copy it
>> to my regular clipboard to get it to the Konsole.  I wanted to avoid
>> that.
> Bitwarden has an option to clear the clipboard after a configurable time,
> much like KeePassXC.
>
> Naturally, if you are really paranoid about security, you will run your
> own Vaultwarden server to avoid the passwords ever going anywhere out of
> your control.
>
>


I wanted to check out the help info, maybe learn something new.  This is
what I get when trying to find xclip.


root@fireball / # xc 
xcam  xchm  xcircuit 
root@fireball / #


There doesn't appear to be a xclip on here, not as a command anyway. 
Could it be some other name?  Maybe it changed?  I'm sure it is
something.  I just don't know what. 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread Peter Humphrey
On Wednesday, 15 May 2024 08:42:14 BST Wols Lists wrote:
> On 02/05/2024 11:46, Peter Humphrey wrote:
> > When I started using Linux, the received wisdom was to keep a separate
> > /boot, and leave it unmounted during normal operation. The idea was that
> > a successful hacker would not, supposedly, be able to corrupt the kernel
> > ready for a reboot into their system.
> 
> And you can't have /boot on your system partition if, like me, you have
> one instance of grub booting into several different OSs or distros ...
> Less so now, but having multiple distros on one system was a popular
> hobbyist pastime!

I think whoever named grub had delusions of grandeur.  :)  Anyway, I never let 
it near my systems.

-- 
Regards,
Peter.


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


Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Neil Bothwick
On Wed, 15 May 2024 03:44:49 -0500, Dale wrote:

> I thought that too.  I highlighted some text in a Konsole and then
> looked in the KDE clipboard, what I highlighted was not there.  It
> wasn't there after I pasted it either.  It goes to a clipboard somewhere
> but it appears it only remembers one entry then forgets when you
> highlight something else.  I'm not aware of a way to access it yet. 
> I've looked for it but can't find it.  To be honest, I wish there was a
> way to clear it, wherever it is.  I clear my KDE clipboard that is on my
> desktop pretty regular.  I always do so after copying passwords or
> something important. 

xclip manipulates both the standard and X selection clipboards. It works
with the X selection clipboard by default, so you shold be able to clear
it with

echo "" | xclip

> I'm wondering if that clipboard is a part of Konsole itself.  I've never
> seen anything in the KDE clipboard that I just highlighted in Konsole. 

It's part of X.

> I could use Bitwarden to generate passwords but then I'd need to copy it
> to my regular clipboard to get it to the Konsole.  I wanted to avoid
> that.

Bitwarden has an option to clear the clipboard after a configurable time,
much like KeePassXC.

Naturally, if you are really paranoid about security, you will run your
own Vaultwarden server to avoid the passwords ever going anywhere out of
your control.


-- 
Neil Bothwick

Humpty Dumpty DOS - Just a shell of himself.


pgpbOlXdjFiN7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Encrypted drives, password generation and management howto, guide.

2024-05-15 Thread Dale
Frank Steinmetzger wrote:
> Am Tue, May 14, 2024 at 06:28:17AM -0500 schrieb Dale:
>> Howdy,
>> […]
>> remember either, or write notes to remember them.  I also wanted to
>> avoid the desktop copy and paste, or clipboard, mechanism.  I'm not sure
>> how that data is stored in the clipboard and how good it is at erasing
>> it when I clear it.
> The mark-and-middleclick you describe further down is the very same as the 
> “normal” clipboard. It is just accessed differently.
>

I thought that too.  I highlighted some text in a Konsole and then
looked in the KDE clipboard, what I highlighted was not there.  It
wasn't there after I pasted it either.  It goes to a clipboard somewhere
but it appears it only remembers one entry then forgets when you
highlight something else.  I'm not aware of a way to access it yet. 
I've looked for it but can't find it.  To be honest, I wish there was a
way to clear it, wherever it is.  I clear my KDE clipboard that is on my
desktop pretty regular.  I always do so after copying passwords or
something important. 

I'm wondering if that clipboard is a part of Konsole itself.  I've never
seen anything in the KDE clipboard that I just highlighted in Konsole. 
Now if I highlight and right click to copy, that goes to the KDE
clipboard as expected.  I'm not sure where the Konsole clipboard info
goes. 

>> First, I needed to generate a password.  I googled, a lot.  I had
>> trouble finding a way to generate the type of passwords I wanted but I
>> finally found one.
> Care to elaborate regarding the “password you wanted”? There is the obvious 
> pwgen, which can generate passwords with given character sets and length. 
> Keepass can do this, too, so I assume, Bitwarden (which you use) has a 
> similar function.
>
> And if you don’t like parts of the generated PW, keep the part you like, 
> generate new and pick the part you like again. Or just let pwgen generate a 
> big bunch and pick what you like best from the output.
>

I could use Bitwarden to generate passwords but then I'd need to copy it
to my regular clipboard to get it to the Konsole.  I wanted to avoid
that.  Bitwarden is a awesome tool.  It's like LastPasss but open
source.  When LastPass got bought and started limiting basic features, I
switched to Bitwarden.  Honestly, I wish I had started with Bitwarden to
begin with. 

I like my passwords to have all sorts of characters in as random a order
as possible.  Most all password tools do a good job of this.  The thing
I like about the method I posted, I can control exactly what characters
are used, individually.  I had a website once that allowed some
characters, like above the number keys on older keyboards, but didn't
allow a few odd ones.  LastPass and Bitwarden have the option to turn
them off or on as a set but not individually.  Luckily that website
wasn't something sensitive like a bank or anything but still, some
websites do limit what can be used and some are a bit weird.  With the
command I use, I can easily, in a one time way, leave out anything that
I need to but leave the rest. 


>> […]
>> Now that I have a password, how do I keep track of them?  I did some
>> more searching.  I wanted something that was command line not GUI. 
>> After all, I have BitWarden for websites and such already.  Thing is,
>> it's GUI since it is a Firefox add-on.  I'd need to use the clipboard to
>> copy and paste.  I want to avoid that remember?  I also wanted something
>> that is on its own, separate from my main password tool BitWarden.  I
>> found kpcli in the tree.
> I didn’t know about kpcli and it is not available in Arch. So I looked it 
> up. Turns out it is a non-graphical Keepass client (that’s what the kp 
> stands for, after all).
>
> Interestingly, there is also a bitwarden CLI client.
>
> Did you know Keepass (the graphical one) has an autotype feature? This means 
> that it simulates the pressing of keys, so it bypasses the clipboard 
> entirely. Another advantage of that is that you can set up custom key 
> sequences in the autotype field, so you can for example say “first enter the 
> username, then press enter, then wait for a second, then enter the password 
> and press enter again.” Useful for sites that use a dynamic login screen 
> with animations or non-standard input fields.
>

I didn't know KeePass had that feature in the GUI version.  I did know
kpcli was based on KeePass in some way tho.  I read that somewhere. 
Kpcli just fit the need I had and was in the tree to install.  Now that
I got it setup, it does what I want, no need switching.  ;-)


>> Then I needed some way to handle if the password file kpcli uses got
>> lost or damaged.  If I were to lose that file, all drives and the data
>> on them is lost.  I'd lose everything because there is no way to
>> remember the password.
> The obvious answer is: backup – encrypted or not. ;-)
> My Keepass database is a simple file in my home that is backed up together 
> with all the other home files by Borg. Meaning I 

Re: [gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread Wols Lists

On 02/05/2024 11:46, Peter Humphrey wrote:

When I started using Linux, the received wisdom was to keep a separate /boot,
and leave it unmounted during normal operation. The idea was that a successful
hacker would not, supposedly, be able to corrupt the kernel ready for a reboot
into their system.


And you can't have /boot on your system partition if, like me, you have 
one instance of grub booting into several different OSs or distros ... 
Less so now, but having multiple distros on one system was a popular 
hobbyist pastime!


(One distro's system partition is another distro's data partion :-)

Cheers,
Wol



Re: [gentoo-user] Re: Grub, gpt partitions and BIOS, not uefi thing.

2024-05-15 Thread Wols Lists

On 02/05/2024 10:35, Michael wrote:

Besides the automation this feature affords, I find it useful to know what a
partition contains without having to mount it.  On GPT labelled disks I make
use both of the Partition Type UUID and the Partition Name.  A quick glance at
the gdisk output and if need be its 'i' option has saved my day from
formatting the wrong partition more than once!  


Iirc from the days of kernel 1.3 and 2.x, the partition type is not used 
- at all - by linux itself. Dunno about other OSs.


As you pointed out, though, it is used by other tools, which use it to 
identify what the partition is *supposed* to be used for. For example, 
auto-assemble with raid.


I'm not sure, but for example I think swap will quite happily let you 
"mount" a non-swap partiton with swap-on. You can format an allegedly 
DOS or NTFS partition with ext, and linux won't care ...


Cheers,
Wol