Re: [gentoo-user] /boot/grub and grub2 directories

2021-12-03 Thread Neil Bothwick
On Fri, 3 Dec 2021 23:26:29 -0600, Dale wrote:

> I was cleaning out my /boot directory.  It's on its own partition and I
> remove outdated kernels and configs etc every once in a while. I was
> noticing that I have two grub directories.  Based on time stamps, I
> think I can delete the plain grub directory and I'm pretty much certain
> grub2 is the current and active grub directory.  Is it safe to remove
> the old grub directory?  Nothing in it has been touched that the time
> stamps show in a long while.  The grub2 directory was when I did my last
> kernel update. 
> 
> I just want to be certain before I remove the directory.  More info
> below.

Yes, but to be on the safe side, rename it rather than removing it. GRUB
will look in either /boot/grub or /boot/grub2, from your setup it looks
like it goes for grub2 first.


-- 
Neil Bothwick

All right, set phasers to deep fat fry!


pgpE1SQqce54D.pgp
Description: OpenPGP digital signature


[gentoo-user] /boot/grub and grub2 directories

2021-12-03 Thread Dale
Howdy,

I was cleaning out my /boot directory.  It's on its own partition and I
remove outdated kernels and configs etc every once in a while. I was
noticing that I have two grub directories.  Based on time stamps, I
think I can delete the plain grub directory and I'm pretty much certain
grub2 is the current and active grub directory.  Is it safe to remove
the old grub directory?  Nothing in it has been touched that the time
stamps show in a long while.  The grub2 directory was when I did my last
kernel update. 

I just want to be certain before I remove the directory.  More info below.


ls -al /boot/
drwxr-xr-x  6 root root    17408 Jun 18  2019 grub
drwxr-xr-x  6 root root 1024 Nov 30 10:55 grub2


By the way, I had the old grub installed on here ages ago.  Can't recall
when I switched to the new, much larger, grub2. 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] x11-base/xorg-server does not want to update

2021-12-03 Thread Dan Johansson

On 03.12.21 17:44, Arve Barsnes wrote:

On Fri, 3 Dec 2021 at 17:36, Dan Johansson  wrote:

If I check the dependencies listed (kde-plasma/kwin,
x11-drivers/xf86-video-amdgpu, x11-drivers/xf86-input-evdev,
x11-drivers/xf86-video-ati, x11-drivers/xf86-input-libinput) I can not
see any dependencies "blocking" the 1.20.13-r1 release.

Have I missed something obvious or is my "logic" flawed?


kde-plasma/kwin-5.22.5 requires either x11-base/xwayland or xorg with
the wayland flag. The wayland flag does not exist on the newer xorg
version. The newer version of kwin fixes this dependency. If you run
stable and can't upgrade kwin, you could manually install xwayland to
satisfy the requirements for kwin and allow the xorg update.


Aahh, now I see it...

Well, will see if I dare to touch the X-configuration (install xwayland) 
this weekend...


Thanks for your help & Regards,
--
Dan Johansson
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] x11-base/xorg-server does not want to update

2021-12-03 Thread Arve Barsnes
On Fri, 3 Dec 2021 at 17:36, Dan Johansson  wrote:
> If I check the dependencies listed (kde-plasma/kwin,
> x11-drivers/xf86-video-amdgpu, x11-drivers/xf86-input-evdev,
> x11-drivers/xf86-video-ati, x11-drivers/xf86-input-libinput) I can not
> see any dependencies "blocking" the 1.20.13-r1 release.
>
> Have I missed something obvious or is my "logic" flawed?

kde-plasma/kwin-5.22.5 requires either x11-base/xwayland or xorg with
the wayland flag. The wayland flag does not exist on the newer xorg
version. The newer version of kwin fixes this dependency. If you run
stable and can't upgrade kwin, you could manually install xwayland to
satisfy the requirements for kwin and allow the xorg update.

Regards,
Arve



[gentoo-user] x11-base/xorg-server does not want to update

2021-12-03 Thread Dan Johansson

Hello,

As part of my update procedure I do a "eclean-dist --destructive 
--verbose" at the end when everything is updated and runs OK.


Since some weeks I am getting the following message when running 
eclean-dist (I was thinking this maybe would resolve it self after a 
while...): "The following unavailable installed packages were found

x11-base/xorg-server-1.20.11".

This is happening on two different machines with different GPU-Cards.
One with an AMD/ATI (Radeon) and one with Intel+NVIDIA
(the output below is from the AMD/ATI machine).

Looking at "eix x11-base/xorg-server" it shows me that there is an 
update from 1.20.11 to 1.20.13-r1 available, but when I run "emerge 
--verbose --ask --oneshot x11-base/xorg-server --verbose-conflicts"


I get the following:

-8<--

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U  ] x11-base/xorg-server-1.20.13-r1:0/1.20.13::gentoo 
[1.20.11:0/1.20.11::gentoo] USE="elogind suid udev xorg -debug -dmx -doc 
-ipv6 -kdrive -minimal (-selinux) -systemd -test -unwind -xcsecurity 
-xephyr -xnest -xvfb (-wayland%*)" 5’003 KiB


Total: 1 package (1 upgrade), Size of downloads: 5’003 KiB


!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-base/xorg-server:0

  (x11-base/xorg-server-1.20.13-r1:0/1.20.13::gentoo, ebuild scheduled 
for merge) USE="elogind suid udev xorg -debug -dmx -doc -ipv6 -kdrive 
-minimal (-selinux) -systemd -test -unwind -xcsecurity -xephyr -xnest 
-xvfb" ABI_X86="(64)" pulled in by

x11-base/xorg-server (Argument)

  (x11-base/xorg-server-1.20.11:0/1.20.11::gentoo, installed) 
USE="elogind suid udev wayland xorg -debug -dmx -doc -ipv6 -kdrive 
-minimal (-selinux) -systemd -test -unwind -xcsecurity -xephyr -xnest 
-xvfb" ABI_X86="(64)" pulled in by
x11-base/xorg-server[wayland(-)] required by 
(kde-plasma/kwin-5.22.5:5/5::gentoo, installed) USE="multimedia plasma 
-accessibility -caps -debug -gles2-only -handbook -screencast -test" 
ABI_X86="(64)"







x11-base/xorg-server:0/1.20.11= required by 
(x11-drivers/xf86-video-amdgpu-21.0.0:0/0::gentoo, installed) USE="udev" 
ABI_X86="(64)"
^^^ 



x11-base/xorg-server:0/1.20.11= required by 
(x11-drivers/xf86-input-evdev-2.10.6:0/0::gentoo, installed) USE="" 
ABI_X86="(64)"
^^^ 



x11-base/xorg-server:0/1.20.11= required by 
(x11-drivers/xf86-video-ati-19.1.0:0/0::gentoo, installed) USE="udev" 
ABI_X86="(64)"
^^^ 



x11-base/xorg-server:0/1.20.11= required by 
(x11-drivers/xf86-input-libinput-1.2.0:0/0::gentoo, installed) USE="" 
ABI_X86="(64)"
^^^ 



-8<--

If I check the dependencies listed (kde-plasma/kwin, 
x11-drivers/xf86-video-amdgpu, x11-drivers/xf86-input-evdev, 
x11-drivers/xf86-video-ati, x11-drivers/xf86-input-libinput) I can not 
see any dependencies "blocking" the 1.20.13-r1 release.


-8<--
 * These packages depend on x11-base/xorg-server:
kde-plasma/kwin-5.22.5 (x11-base/xorg-server[wayland(-)])
   (test ? x11-base/xorg-server[xvfb])
x11-drivers/xf86-video-amdgpu-21.0.0 (x11-base/xorg-server[-minimal])
 (>=x11-base/xorg-server-1.20[xorg])
 (x11-base/xorg-server)
x11-drivers/xf86-input-evdev-2.10.6 (>=x11-base/xorg-server-1.18[udev])
(>=x11-base/xorg-server-1.20[xorg])
(x11-base/xorg-server)
x11-drivers/xf86-video-ati-19.1.0 (x11-base/xorg-server[-minimal])
  (>=x11-base/xorg-server-1.20[xorg])
  (x11-base/xorg-server)
x11-drivers/xf86-input-libinput-1.2.0 (>=x11-base/xorg-server-1.20[xorg])
  (x11-base/xorg-server)
-8<--


Have I missed something obvious or is my "logic" flawed?

Any suggestion on how to proceed?

Regards
--
Dan Johansson,
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread Peter Humphrey
On Friday, 3 December 2021 13:30:29 GMT Michael wrote:
> On Friday, 3 December 2021 12:08:05 GMT tastytea wrote:
> > On 2021-12-03 11:17+ Peter Humphrey  
wrote:
> > > Hello list,
> > > 
> > > Is there a way to set the colour of a bash prompt according to
> > > whether the user has SSH'd in?
> > > 
> > > This machine is a compile host for some others on the LAN, and it
> > > would be helpful if it were more obvious that I'm connected to
> > > another machine. Of course, the standard prompt tells me the machine
> > > name, but something more conspicuous would help.
> > 
> > When you are connected via SSH, the environment variable 
SSH_CONNECTION
> > is set. I store the color in a variable and set it to yellow if
> > `[[ -n "${SSH_CONNECTION}" ]]`. I can't give you the exact snippet
> > since I use Zsh, but it should be possible to use a variable as color
> > in bash's prompt?
> > 
> > Kind regards, tastytea
> 
> This link expands upon tastytea's idea:
> 
> https://unix.stackexchange.com/questions/217270/change-ps1-color-when-> 
> connected-to-other-host-via-ssh

Thank you both. Now I just have to shoehorn it into /etc/bash/bashrc on the 
SSH server...

-- 
Regards,
Peter.






Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread Michael
On Friday, 3 December 2021 12:08:05 GMT tastytea wrote:
> On 2021-12-03 11:17+ Peter Humphrey  wrote:
> > Hello list,
> > 
> > Is there a way to set the colour of a bash prompt according to
> > whether the user has SSH'd in?
> > 
> > This machine is a compile host for some others on the LAN, and it
> > would be helpful if it were more obvious that I'm connected to
> > another machine. Of course, the standard prompt tells me the machine
> > name, but something more conspicuous would help.
> 
> When you are connected via SSH, the environment variable SSH_CONNECTION
> is set. I store the color in a variable and set it to yellow if
> `[[ -n "${SSH_CONNECTION}" ]]`. I can't give you the exact snippet
> since I use Zsh, but it should be possible to use a variable as color
> in bash's prompt?
> 
> Kind regards, tastytea

This link expands upon tastytea's idea:

https://unix.stackexchange.com/questions/217270/change-ps1-color-when-connected-to-other-host-via-ssh


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


Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread tastytea
On 2021-12-03 11:17+ Peter Humphrey  wrote:

> Hello list,
> 
> Is there a way to set the colour of a bash prompt according to
> whether the user has SSH'd in?
> 
> This machine is a compile host for some others on the LAN, and it
> would be helpful if it were more obvious that I'm connected to
> another machine. Of course, the standard prompt tells me the machine
> name, but something more conspicuous would help.

When you are connected via SSH, the environment variable SSH_CONNECTION
is set. I store the color in a variable and set it to yellow if 
`[[ -n "${SSH_CONNECTION}" ]]`. I can't give you the exact snippet
since I use Zsh, but it should be possible to use a variable as color
in bash's prompt?

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpPmG8W_1HhU.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] Bash prompt colours

2021-12-03 Thread Peter Humphrey
Hello list,

Is there a way to set the colour of a bash prompt according to whether the 
user has SSH'd in?

This machine is a compile host for some others on the LAN, and it would be 
helpful if it were more obvious that I'm connected to another machine. Of 
course, the standard prompt tells me the machine name, but something more 
conspicuous would help.

-- 
Regards,
Peter.