Hello,
In the Message;
Subject : Re: Need help with a laptop that will only run Plasma/Wayland
Message-ID : <ad85133e-c59c-4d07-9207-8c076c83dc98@marcchamberlin.com>
Date & Time: Tue, 20 Aug 2024 00:50:27 -0700
[MC] == Marc Chamberlin via openSUSE Users <users@lists.opensuse.org> has written:
[...]
MN> > Anyway, this is all I can think of;
MN> > export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0
MC> This incantation doesn't seem to work, and produces a null string. I tried to
MC> break this command down and execute it in partial commands broken at each
MC> pipe. I found one error, the quotes around the 4 are wrong, I think. So I
MC> changed it and tried this partial command -
marc@marcslaptop:~> ip address | grep "4"
MC> link/ether 38:d5:47:31:54:0f brd ff:ff:ff:ff:ff:ff
MC> inet 192.168.10.10/24brd 192.168.10.255 scope global eth0
MC> link/ether e4:a7:a0:46:83:e0 brd ff:ff:ff:ff:ff:ff
[..]
marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}'
MC> lo
MC> Now I am outside of my comfort zone, I am not a user of awk so this is out of my
MC> league! Taking this to the last step produces a null string -
marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}' | awk
MC> 'sub(/\r$/,"")'
MC> marc@marcslaptop:~>
I'm Tumbleweed, but like this;
$ export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0
$ echo $DISPLAY
:0
OK, same here -