On 8/19/24 17:58, Masaru Nomiya wrote:
Hello,
In the Message;
Subject : Re: Need help with a laptop that will only run Plasma/Wayland Message-ID :<10a97ff4-e3c7-4dad-aac7-1610648ba01e@marcchamberlin.com> Date & Time: Mon, 19 Aug 2024 09:35:23 -0700
[MC] == Marc Chamberlin via openSUSE Users<users@lists.opensuse.org> has written:
MN> > Isn't this what your problem is?
MN> >https://askubuntu.com/questions/190194/how-can-i-view-an-x-window-from-a-rem...
MC> Still no joy! I tried the following incantation in my .bashrc file under MC> /home/marc -
MC> export DISPLAY=local:0.0
?
Is this what the ip address displays in your environment? Hmm I am not quite sure what you are asking me to do here, but will take a guess. This is what the command - ip address shows -
marc@marcslaptop:~> ip address 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 38:d5:47:31:54:0fbrd ff:ff:ff:ff:ff:ff altname enp3s0 inet 192.168.10.10/24 brd 192.168.10.255 scope global eth0 valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether e4:a7:a0:46:83:e0brd ff:ff:ff:ff:ff:ff altname wlp2s0
$ echo $local
Anyway, this is all I can think of;
export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0 This incantation doesn't seem to work, and produces a null string. I
and this does not show anything - marc@marcslaptop:~> echo $local marc@marcslaptop:~> tried to break this command down and execute it in partial commands broken at each pipe. I found one error, the quotes around the 4 are wrong, I think. So I changed it and tried this partial command - marc@marcslaptop:~> ip address | grep "4" link/ether 38:d5:47:31:54:0f brd ff:ff:ff:ff:ff:ff inet 192.168.10.10/24brd 192.168.10.255 scope global eth0 link/ether e4:a7:a0:46:83:e0 brd ff:ff:ff:ff:ff:ff Note the change in the quotes around the grep "4" subcommand. But I have a feeling this is not what you wanted either. I took another guess and tried this - marc@marcslaptop:~> ip address | grep "net" inet127.0.0.1/8 scope host lo inet6 ::1/128 scope host inet192.168.10.10/24 brd 192.168.10.255 scope global eth0 Seems promising, so - marc@marcslaptop:~> ip address | grep "net" | head -1 inet 127.0.0.1/8 scope host lo Again, seems promising, though I am totally guessing what your incantation was trying to accomplish. So trying the next step - marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}' lo Now I am outside of my comfort zone, I am not a user of awk so this is out of my league! Taking this to the last step produces a null string - marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")' marc@marcslaptop:~> and at this point I give up! Appears to me the incantation using my modifications also fails, so will turn this back to you! Thanks again and please keep in mind that I am struggling to be helpful. Probably not much, LOL... Marc