On Friday 28 June 2002 03.41, Chris Roberts wrote:
After some fair time playing with SuSE 7.2, I regret to say I still have some gaps in my knowledge which often give rather fundamental problems with installation of software outside YAST's framework. Hey, I *CAN* do things like set up Cups with Gimp Print and configure Samba, Apache and Tomcat etc., so (hopefully!) I'm not a complete dummy - But the following STILL elude me...
1) X-applications work OK under a user account but I often have problems when some applications or (graphical?) installation procedures require "su"-ing or indeed run under root because of errors like:
Xlib: connection to ":0.0" refused by server etc. etc.
ISTR on unix systems setting and exporting the DISPLAY variable but can't get anywhere far with that one. Fwiw, all my users and root echo $DISPLAY as ":0.0" Now I kinda "know" the display should be a bit more substantial than just ":0.0" but WHERE is that "0.0" being set up and WHERE do I correct it and to WHAT?? I use the default bash shell and can e.g. make changes to my .bashrc file or whatever is most appropriate...
All access permissions to the running X server are owned by the user that started it. X doesn't care about root or superuser, only about owner. There are three ways of giving permission 1. As the user that started X, run "xhost +inet:localhost" This will allow any user running on the local machine to use the X server. 2. Instead of "su" use "sux". sux is a little script written by SuSE that automate the giving of access permissions. 3. As root, after su, and after setting DISPLAY to :0.0, do "export XAUTHORITY=/home/<user>/.Xauthority" where <user> is the user that started X.
2) Next: For networking applications, I don't MIND the system being identified as "linux", "localhost" (or whatever it b*** well wants! <grin> but I'd *like* it to be called something more imaginative- like "anubis", so WHERE do I set that up?? I notice e.g. where I set up the NIC I/P address (192.168.0.1) under "YAST > Network/Basic", it allows for a "hostname" & "domain name" - set to "linux" and "local" at the moment. But is THAT the correct place??
yes.
Or should I be doing something with /etc/hosts
/etc/hosts is the old way of translating hostnames to ip numbers. If you set a hostname you will want to make an entry in that file translating the hostname to 127.0.0.1, but yast will do that for you.
etc. Is the "domain" name above also likely to be the workgroup name ("ennead") that I use for identifying my windows systems?
No, it is the internet domain your computer is on.
3) (Finally!) Some applications FAIL with problems with a "LOCALE" setting. Some just warn and default to "C" - But some others just bomb out. I thought the locale WAS correctly set up correcly... for the UK - under the dialog for YAST>Personalization>Country&Language, but maybe I'm missing something?
What is it set to? I'm guessing it's set to something@euro. Edit this in /etc/rc.config and remove the @euro part. Or change it to en_IE@euro. IIRC Irish English is the only locale set up for euro support. regards Anders -- `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.'