I noticed that there is no more host name on my terminals.. I mean it used to be user@machine2:~/.fDocument> but now I only have :~ And this also affects some things I'd like to do.. sux won't start. My /etc/hosts file should have everything ok, and also NFS works to my other box. Where to look.. this also happens if I am root. P_s
jvollmer@visi.com
I noticed that there is no more host name on my terminals.. I mean it used to be
user@machine2:~/.fDocument>
but now I only have :~
And this also affects some things I'd like to do.. sux won't start.
My /etc/hosts file should have everything ok, and also NFS works to my other box. Where to look.. this also happens if I am root.
Try entering: export PS1="\u@\h:\w" If this fixes your prompt, place the PS1 definition in your .bashrc file. -- JAY VOLLMER JVOLLMER@VISI.COM TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK VERGING CRIMETHINK IGNORE FULLWISE
Jay Vollmer wrote:
jvollmer@visi.com
I noticed that there is no more host name on my terminals.. I mean it used to be
user@machine2:~/.fDocument>
but now I only have :~
And this also affects some things I'd like to do.. sux won't start.
My /etc/hosts file should have everything ok, and also NFS works to my other box. Where to look.. this also happens if I am root.
Try entering: export PS1="\u@\h:\w"
If this fixes your prompt, place the PS1 definition in your .bashrc file.
No help...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 01:10 pm, p_s wrote:
No help...
Does uname -n give you your hostname? If not, check your /etc/HOSTNAME file. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V8Nf3epPyyKbwPYRAoyWAKC5fCf+fJ+vAMJLZTHSpn7mIXSusgCfWaiY FxSG1xlUgDGn+4bjAKKvv0M= =eZUt -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 02:36 pm, p_s wrote:
gives nothing, but HOSTNAME file has ps3.ps (just like other machine, but it has ps2.ps)
I presume that ps3.ps is the correct name for the machine. It looks like your /etc/profile is hosed. Try replacing it with the one from the package aaa_base, log out and back in again to see if it helps. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V9bS3epPyyKbwPYRAoJQAJ0R6NnSFjFNhcN55q9fb50JeGsSLwCgiqED hvo6fkOk+Gjyh91na3w73hQ= =k54u -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 02:36 pm, p_s wrote:
gives nothing, but HOSTNAME file has ps3.ps (just like other machine, but it has ps2.ps)
I presume that ps3.ps is the correct name for the machine. It looks like your /etc/profile is hosed. Try replacing it with the one from the package aaa_base, log out and back in again to see if it helps.
Charles
I copied the one from /etc/SUSEConfig Not any help, except that now when I do su and enter roots password I get: YPBINDPROC_DOMAIN: Domain not bound Any ideas now ? P_S
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 03:32 pm, tuxnduke wrote:
I copied the one from /etc/SUSEConfig
This is not the same file as /etc/profile. If you are using 8.1 I can send you mine, if you don't know how to extract it from the rpm. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V+Jw3epPyyKbwPYRAmPTAJ9y91sZWj3DpkyjbvfD4Q+T6NNZ5wCfcn/p uFLT/RpmtA21vzKNSXEjhDU= =VC0T -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 03:32 pm, tuxnduke wrote:
I copied the one from /etc/SUSEConfig
This is not the same file as /etc/profile. If you are using 8.1 I can send you mine, if you don't know how to extract it from the rpm.
Charles
Thanks.. I replaced my /etc/profile with yours.. logged out and logged in again.. No improvement. Still the same. P_S
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 04:04 pm, tuxnduke wrote:
Thanks.. I replaced my /etc/profile with yours.. logged out and logged in again.. No improvement. Still the same.
What is the output of the command hostname? Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V+lp3epPyyKbwPYRAldVAJ0Z6JgXrMzpUZs8HwYfjfybrbNMZQCgtrHy hk+2VIPYquUyWlHLXKhAvfY= =MCcV -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 04:19 pm, Charles Philip Chan wrote:
What is the output of the command hostname?
I forgot, use the v switch, ie: hostname -v Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V+oL3epPyyKbwPYRAr+/AJ90SH50ATDKDCrX3s6puCPy6dgCfQCdGb0z px/6xQ5ZAZOfJYDj1YaMNuY= =v4Ru -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 04:19 pm, Charles Philip Chan wrote:
What is the output of the command hostname?
I forgot, use the v switch, ie:
hostname -v
Charles
gethostname()=`' the I did as Andreas suggested and as root did "hostname ps3.ps" and the tried hostname -v and got this promt right, but lost it of course when logged out. P_s
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 04:50 pm, p_s wrote:
the I did as Andreas suggested and as root did "hostname ps3.ps" and the tried hostname -v
Please post your /etc/init.d/boot.localnet. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V/Dm3epPyyKbwPYRAq96AJ4s9xjkBF6n5dOJ0qfbkT8V381jnQCfbL6A nfNSR00gEidtKdaKE57GIPc= =5jTL -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 04:04 pm, tuxnduke wrote:
Thanks.. I replaced my /etc/profile with yours.. logged out and logged in again.. No improvement. Still the same.
What is the output of the command hostname?
Empty row P_s
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 04:24 pm, p_s wrote:
Empty row
This is really strange. Try reinstalling glibc and see if it helps. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V+wA3epPyyKbwPYRAkQFAKC6NTmK3+SV31sZltZTQxxKPr4SvACgxvX7 I0MEvDE4O2whPke/9RVFG7o= =miJ7 -----END PGP SIGNATURE-----
On Saturday 22 February 2003 22:24, p_s wrote:
Charles Philip Chan wrote:
What is the output of the command hostname?
Empty row
What does your "/etc/init.d/boot.localnet" look like. Also, if you do "hostname ps3.ps", does that give you your prompt back?
Anders Johansson wrote:
On Saturday 22 February 2003 22:24, p_s wrote:
Charles Philip Chan wrote:
What is the output of the command hostname?
Empty row
Also, if you do "hostname ps3.ps", does that give you your prompt back?
I got it back, but lost when logged out.
What does your "/etc/init.d/boot.localnet" look like.
Here
ps@:/etc/init.d> cat boot.local
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 04:56 pm, tuxnduke wrote:
Here ps@:/etc/init.d> cat boot.local ...
Is there a start service symlink to it in /etc/init.d/boot.d? It should look something like: S10boot.localnet Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V/Lu3epPyyKbwPYRAoNWAJ9ZXdHhKWifVAaekPSAqZUFuVbtOgCguDTI C1iDDp56vszgE4dbLufR2N4= =jLPg -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 04:56 pm, tuxnduke wrote:
Here ps@:/etc/init.d> cat boot.local ...
Is there a start service symlink to it in /etc/init.d/boot.d? It should look something like:
S10boot.localnet
Charles
I now have the prompt right.. since I did that hostname ps3.ps but it seems to have so symlink ps@ps3:/etc/init.d/boot.d> ls -l total 0 lrwxrwxrwx 1 root root 14 2003-02-22 14:42 S01boot.idedma -> ../boot.idedma lrwxrwxrwx 1 root root 12 2003-02-22 14:44 S01setserial -> ../setserial lrwxrwxrwx 1 root root 12 2003-02-22 14:42 S02boot.proc -> ../boot.proc lrwxrwxrwx 1 root root 10 2003-02-22 14:44 S03boot.md -> ../boot.md lrwxrwxrwx 1 root root 11 2003-02-22 14:44 S04boot.lvm -> ../boot.lvm lrwxrwxrwx 1 root root 15 2003-02-22 14:44 S05boot.localfs -> ../boot.localfs lrwxrwxrwx 1 root root 14 2003-02-22 14:44 S06boot.crypto -> ../boot.crypto lrwxrwxrwx 1 root root 12 2003-02-22 14:44 S06boot.scpm -> ../boot.scpm lrwxrwxrwx 1 root root 27 2003-02-22 14:44 S07boot.restore_permissions -> ../boot.restore_permissions lrwxrwxrwx 1 root root 12 2003-02-22 14:44 S07boot.swap -> ../boot.swap lrwxrwxrwx 1 root root 13 2003-02-22 14:44 S08boot.clock -> ../boot.clock lrwxrwxrwx 1 root root 16 2003-02-22 14:44 S09boot.ldconfig -> ../boot.ldconfig lrwxrwxrwx 1 root root 14 2003-02-22 14:44 S10boot.isapnp -> ../boot.isapnp lrwxrwxrwx 1 root root 16 2003-02-22 14:44 S10boot.localnet -> ../boot.localnet lrwxrwxrwx 1 root root 16 2003-02-22 14:44 S11boot.ipconfig -> ../boot.ipconfig lrwxrwxrwx 1 root root 12 2003-02-22 14:44 S11boot.klog -> ../boot.klog ps@ps3:/etc/init.d/boot.d>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 05:08 pm, tuxnduke wrote:
I now have the prompt right.. since I did that hostname ps3.ps but it seems to have so symlink
Make the symlink, reboot and I suspect you should be fine. Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V/Z23epPyyKbwPYRAv30AKCR1nxP510yAPZQKDNtXNxK9IvhcACfRY8g UJFrvMcBle7SWBzCP3GOICc= =R47/ -----END PGP SIGNATURE-----
Charles Philip Chan wrote:
On February 22, 2003 05:08 pm, tuxnduke wrote:
I now have the prompt right.. since I did that hostname ps3.ps but it seems to have so symlink
Make the symlink, reboot and I suspect you should be fine.
There were a symlinks already and these settings are identical on my desktop, and it runs just fine.. .. symlink from where to what ? Pete
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On February 22, 2003 05:20 pm, p_s wrote:
There were a symlinks already and these settings are identical on my desktop, and it runs just fine.. .. symlink from where to what ?
Sorry I misunderstood. I thought you meant "no symlink" when you said "so symlink". Charles -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+V/qi3epPyyKbwPYRAopcAKDKRMlxW0FTWEd8ibXm2kuLNhn95wCcD8KW HGMhCwaVkJ8I6F6zQIDBA1M= =Rm96 -----END PGP SIGNATURE-----
On Saturday 22 February 2003 22:56, tuxnduke wrote:
Anders Johansson wrote:
Also, if you do "hostname ps3.ps", does that give you your prompt back?
I got it back, but lost when logged out.
1. your boot.localnet looks ok 2. My name is not Andreas 3. Let's get this straight. The above command set your hostname, but it was gone when you logged out and back in? Is this when you log in as a regular user, not as root? What does "grep hostname /etc/*" say? Are you using dhcp on your network? If so, do you have "get hostname from dhcp" set in your network setup in YaST2?
Anders Johansson wrote:
On Saturday 22 February 2003 22:56, tuxnduke wrote:
Anders Johansson wrote:
Also, if you do "hostname ps3.ps", does that give you your prompt back?
I got it back, but lost when logged out.
1. your boot.localnet looks ok 2. My name is not Andreas
Sorry, sleepy eyes I got already :-)
3. Let's get this straight. The above command set your hostname, but it was gone when you logged out and back in?> Is this when you log in as a regular user, not as root?
I changed this as root of cource. Logging in and out as users, and root were ok, but rebooting caused it to get lost again.
What does "grep hostname /etc/*" say?
/etc/Muttrc:# set hostname=cs.hmc.edu /etc/Muttrc:# %h local hostname /etc/Muttrc:# When set, mutt will skip the host name part of ``$hostname'' variable /etc/Muttrc:# set hostname="" /etc/Muttrc:# Name: hostname /etc/Muttrc:# Specifies the hostname to use after the ``@'' in local e-mail /etc/Muttrc:# %h local hostname /etc/Muttrc:# (_) sign. For example, if you want to display the local hostname in /etc/Muttrc:# @host portion) with the value of ``$hostname''. If unset, no /etc/csh.cshrc:setenv HOSTNAME "`hostname -f`" /etc/csh.cshrc:setenv HOST "`hostname -s`" /etc/hosts:# hosts This file describes a number of hostname-to-address /etc/hosts.allow:# The portmapper does not verify against hostnames /etc/hosts.equiv:# hostname /etc/hosts.lpd:# hostname /etc/profile:test -z "$HOST" && HOST=`hostname -s 2> /dev/null` /etc/profile:test -z "$HOSTNAME" && HOSTNAME=`hostname 2> /dev/null` /etc/services:hostname 101/tcp # NIC Host Name Server /etc/services:hostname 101/udp # NIC Host Name Server
Are you using dhcp on your network? If so, do you have "get hostname from dhcp" set in your network setup in YaST2?
Yes I use, and that "get host names.... " solved the whole issue. How stupid of me :-D Thanks a lot anders and Charles P. You saved the rest of my this nights sleep. P_s
participants (5)
-
Anders Johansson
-
Charles Philip Chan
-
Jay Vollmer
-
p_s
-
tuxnduke