I have a system with SuSE Linux 7.3 installed, and I believe some of the system packages need updating. The system is running without monitor and keyboard, I administrate it through ssh sessions. What can I do to use SuSE's update service? When I issue 'yast2', I get a message about the X11 connection being rejected (of course!). Is it possible to update such a system at all without taking it out of service and connect monitor and keyboard? Best regards, David List
* David List
I have a system with SuSE Linux 7.3 installed, and I believe some of the system packages need updating. The system is running without monitor and keyboard, I administrate it through ssh sessions.
What can I do to use SuSE's update service? When I issue 'yast2', I get a message about the X11 connection being rejected (of course!).
?? I would try 'yast', the cl version, not 'yast2', the graphic version. ?? Just a guess. -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
On Sun, 18 May 2003, Patrick Shanahan wrote:
* David List
[05-18-03 08:47]: I have a system with SuSE Linux 7.3 installed, and I believe some of the system packages need updating. The system is running without monitor and keyboard, I administrate it through ssh sessions.
What can I do to use SuSE's update service? When I issue 'yast2', I get a message about the X11 connection being rejected (of course!).
?? I would try 'yast', the cl version, not 'yast2', the graphic version. ?? Just a guess.
It's just that I don't see any options in the old YaST for updating the system. I had that in YaST2 which I had access to while having monitor and keyboard on the system right after I did the installation. Is there any way of invoking the YaST2 version coming with SuSE Linux 7.3 so that it can be used from a tty? I know it is possible with the YaST2 versions coming with newer SuSE Linux versions. Best regards, David List
On Sun, 18 May 2003 17:27:24 +0200 (CEST)
David List
When I issue 'yast2', I get a message about the X11 connection being> rejected (of course!).
Turn X11 forwarding on and if you usually log in to the machine as a regular user then su to root- make sure you use sux instead.
It's just that I don't see any options in the old YaST for updating the system.
Of course you can do it in good old YaST1. Just go to install software, choose ftp as the source and point it to the 7.3 update directory on the SuSE site or the mirror of your choice. Charles -- "It's God. No, not Richard Stallman, or Linus Torvalds, but God." (By Matt Welsh)
On Sun, 18 May 2003, Charles Philip Chan wrote:
Turn X11 forwarding on and if you usually log in to the machine as a regular user then su to root- make sure you use sux instead.
That worked. Thanks.
Of course you can do it in good old YaST1. Just go to install software, choose ftp as the source and point it to the 7.3 update directory on the SuSE site or the mirror of your choice.
Hmmm...will try that also. Thank you for your answer. Best regards, David List
On Sunday 18 May 2003 4:27 pm, David List wrote:
On Sun, 18 May 2003, Patrick Shanahan wrote:
* David List
[05-18-03 08:47]: I have a system with SuSE Linux 7.3 installed, and I believe some of the system packages need updating. The system is running without monitor and keyboard, I administrate it through ssh sessions.
What can I do to use SuSE's update service? When I issue 'yast2', I get a message about the X11 connection being rejected (of course!).
?? I would try 'yast', the cl version, not 'yast2', the graphic version. ?? Just a guess.
It's just that I don't see any options in the old YaST for updating the system. I had that in YaST2 which I had access to while having monitor and keyboard on the system right after I did the installation.
You might like to have a look at the Fou4s script: http://fou4s.gaugusch.at/ A replacement for YOU. I used it before updating to 8.2, because YOU in 8.1 took an absolute age to work. You could also try connecting to your server using "ssh -X" and starting Yast2. The Yast window should be forwarded to your local screen. HTH, Jason
On Sun, 18 May 2003, Jason wrote:
You might like to have a look at the Fou4s script: http://fou4s.gaugusch.at/ A replacement for YOU. I used it before updating to 8.2, because YOU in 8.1 took an absolute age to work.
I'll have a look at it.
You could also try connecting to your server using "ssh -X" and starting Yast2. The Yast window should be forwarded to your local screen.
I am doing just that right now. It worked. Thank you for your answer. Best regards, David List
The 03.05.18 at 12:22, David List wrote:
I have a system with SuSE Linux 7.3 installed, and I believe some of the system packages need updating. The system is running without monitor and keyboard, I administrate it through ssh sessions.
What can I do to use SuSE's update service? When I issue 'yast2', I get a message about the X11 connection being rejected (of course!).
Funny: that yast2 is able to run in console, but when it sees the X session it tries it. I wonder if there is an option to force it to use the console? In suse 8.1, yast will run yast2 in text mode. In 7.3 I'm not sure, but you could try to call it form one of the text consoles of the calling machine (I'm assuming it is also a linux machine). -- Cheers, Carlos Robinson
"Carlos E. R."
Funny: that yast2 is able to run in console, but when it sees the X session it tries it.
What it's looking for is a set DISPLAY environment variable.
I wonder if there is an option to force it to use the console? In suse 8.1, yast will run yast2 in text mode.
Simply do 'DISPLAY= yast2' this will effectively make DISPLAY unset and thus the text mode UI will be used. Philipp
On Mon, 19 May 2003, Philipp Thomas wrote: ...<snip>...
Simply do 'DISPLAY= yast2' this will effectively make DISPLAY unset and thus the text mode UI will be used.
I get y2controlcenter: cannot connect to X server yast2 after having issued # export DISPLAY=yast2 on my SuSE Linux 7.3 system. Best regards, David List
The 03.05.19 at 07:12, David List wrote:
On Mon, 19 May 2003, Philipp Thomas wrote:
...<snip>...
Simply do 'DISPLAY= yast2' this will effectively make DISPLAY unset and thus the text mode UI will be used.
I get y2controlcenter: cannot connect to X server yast2 after having issued # export DISPLAY=yast2 on my SuSE Linux 7.3 system.
I have not my 7.3 running right now, but try something like: DISPLAY=; yast2 or unset DISPLAY; yast2 or unset DISPLAY; su - 'DISPLAY= yast2' will set DISPLAY to yast2, instead of running yast2 with DISPLAY unset, which was what Philipp meant, I guess. -- Cheers, Carlos Robinson
On Monday 19 May 2003 11.33, Carlos E. R. wrote:
'DISPLAY= yast2' will set DISPLAY to yast2, instead of running yast2 with DISPLAY unset, which was what Philipp meant, I guess.
I very much suspect he meant DISPLAY= yast2, with a space between = and yast2. This will unset the environment variable DISPLAY for the command only, and not for the rest of the session. DISPLAY=<space>yast2
On Mon, 19 May 2003 14:14:48 +0200
Anders Johansson
I very much suspect he meant DISPLAY= yast2, with a space between = and yast2. This will unset the environment variable DISPLAY for the command only, and not for the rest of the session.
DISPLAY=<space>yast2 This shouold cause an error message. Also, DISPLAY=yast2 will set the local shell variable, DISPLAY, not the environment variable. To set an environment variable, you must either export a shell variable: export DISPLAY
or set it:
export DISPLAY=yast2
--
Jerry Feldman
On Monday 19 May 2003 14.33, Jerry Feldman wrote:
On Mon, 19 May 2003 14:14:48 +0200
Anders Johansson
wrote: I very much suspect he meant DISPLAY= yast2, with a space between = and yast2. This will unset the environment variable DISPLAY for the command only, and not for the rest of the session.
DISPLAY=<space>yast2
This shouold cause an error message.
What makes you think that? Naturally I didn't mean you should actually write the character for less-than, followed by s p a c e, folllowed by the character for greater than. I just wrote it that way for emphasis, since spaces have a tendency to disappear in some fonts
Also, DISPLAY=yast2 will set the local shell variable, DISPLAY, not the environment variable. To set an environment variable, you must either export a shell variable: export DISPLAY
or set it: export DISPLAY=yast2
There is no theoretical difference, only a difference in scope. setting a variable the way you mention will set it for the current shell, and all programs run from that shell. Setting it the way I mentioned above (and Philipp, in a previous mail) will set it for the current command only. That command will see it in its environment array
On Mon, 19 May 2003 14:38:02 +0200
Anders Johansson
On Monday 19 May 2003 14.33, Jerry Feldman wrote:
This shouold cause an error message.
What makes you think that? Naturally I didn't mean you should actually write the character for less-than, followed by s p a c e, folllowed by the character for greater than. I just wrote it that way for emphasis, since spaces have a tendency to disappear in some fonts You are correct. The space causes DISPLAY to effectively become unset, then yast2 will run in console mode.
--
Jerry Feldman
On Mon, 19 May 2003 14:38:02 +0200
Anders Johansson
What makes you think that? Naturally I didn't mean you should actually write the character for less-than, followed by s p a c e, folllowed by the character for greater than. I just wrote it that way for emphasis, since spaces have a tendency to disappear in some fonts Next time, I'll finish my first coffee before I respond :-)
--
Jerry Feldman
On Monday 19 May 2003 14.48, Jerry Feldman wrote:
Next time, I'll finish my first coffee before I respond :-)
:)
If anyone else is interested in the behaviour of variables, here's a short C
program
#include
The 03.05.19 at 14:14, Anders Johansson wrote:
On Monday 19 May 2003 11.33, Carlos E. R. wrote:
'DISPLAY= yast2' will set DISPLAY to yast2, instead of running yast2 with DISPLAY unset, which was what Philipp meant, I guess.
I very much suspect he meant DISPLAY= yast2, with a space between = and yast2. This will unset the environment variable DISPLAY for the command only, and not for the rest of the session.
DISPLAY=<space>yast2
Could be, but it doesn't work. His intention, i think, was to unset DISPLAY, but it can not be done that way; Look: cer@nimrodel:~> set |grep DISPLAY DISPLAY=:0 cer@nimrodel:~> DISPLAY= set |grep DISPLAY DISPLAY=:0 You see? With two spaces, "display" is still set. However, if I su to root like this (a login shell): cer@nimrodel:~> su - Password: nimrodel:~ # set |grep DISPLAY nimrodel:~ # it is also solved - this is the way I normally work when I have to be root, by the way. -- Cheers, Carlos Robinson
On Monday 19 May 2003 20.32, Carlos E. R. wrote:
Could be, but it doesn't work. His intention, i think, was to unset DISPLAY, but it can not be done that way; Look:
Yes it can. Please see the example C code I posted. I'm not sure what 'set' (or for that matter 'echo') does that ignores this, but it does work for regular programs
David List
Simply do 'DISPLAY= yast2' this will effectively make DISPLAY unset and thus the text mode UI will be used.
y2controlcenter: cannot connect to X server yast2 after having issued # export DISPLAY=yast2 on my SuSE Linux 7.3 system.
You misunderstood me. Don't do the export but issue *as one command*: DISPLAY= yast2 ^ This space is significant Philipp
On Mon, 19 May 2003 14:51:29 +0200
Philipp Thomas
You misunderstood me. Don't do the export but issue *as one command*:
DISPLAY= yast2 ^ This space is significant Yes it is and I had not had my coffee yet :-) -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
The 03.05.19 at 14:51, Philipp Thomas wrote:
You misunderstood me. Don't do the export but issue *as one command*:
DISPLAY= yast2 ^ This space is significant
It doesn't work, not on an xterm: cer@nimrodel:~> set | grep DISPLAY DISPLAY=:0 cer@nimrodel:~> DISPLAY= set | grep DISPLAY DISPLAY=:0 cer@nimrodel:~> However: cer@nimrodel:~> DISPLAY= ;set | grep DISPLAY DISPLAY= cer@nimrodel:~> -- Cheers, Carlos Robinson
On Tuesday 20 May 2003 00.24, Carlos E. R. wrote:
It doesn't work, not on an xterm:
cer@nimrodel:~> set | grep DISPLAY
set is a shell builtin, and so is echo. That must be why it doesn't work for them, they must handle things differently compared to normal programs. Did you look at the C prog I posted? It's very short
The 03.05.20 at 01:46, Anders Johansson wrote:
set is a shell builtin, and so is echo. That must be why it doesn't work for them, they must handle things differently compared to normal programs.
I stand corrected: cer@nimrodel:~> DISPLAY= bash -c set | grep DISPLAY DISPLAY=
Did you look at the C prog I posted? It's very short
Grumble, grumble :-)
[...]
Mmm, it needs "#include
participants (8)
-
Anders Johansson
-
Carlos E. R.
-
Charles Philip Chan
-
David List
-
Jason
-
Jerry Feldman
-
Patrick Shanahan
-
Philipp Thomas