Re: Changing Hostname?

2013-12-22 Thread Reco
Hi. On Sat, 21 Dec 2013 22:32:06 -0500 Jon N jdnandr...@gmail.com wrote: It does return the new hostname. But, I started wondering about legal characters. If you remember my old one was 'localhost-01' but in my new one I used an underscore (_). According to netregister.biz/faqit.htm no

Re: Changing Hostname?

2013-12-22 Thread Bob Proulx
Jon N wrote: It does return the new hostname. But, I started wondering about legal characters. If you remember my old one was 'localhost-01' but in my new one I used an underscore (_). According to netregister.biz/faqit.htm no symbols are usable except the hyphen (-). No accented

Re: Changing Hostname?

2013-12-22 Thread Jon N
On Sun, Dec 22, 2013 at 3:35 PM, Bob Proulx b...@proulx.com wrote: Jon N wrote: ---snip--- Not empty, but if it contains illegal characters it won't make any difference. I didn't find any error messages that would clue me in to the problem (like: Warning, you have illegal characters in your

Changing Hostname?

2013-12-21 Thread Jon N
I recently installed Jessie on a new computer. Now that I have the system up and running I decided that I would like to have a different hostname than the rather unimaginative 'localhost-01' I picked during install. I used the mate-network-admin utility to change it, and checked /etc/hostname

Re: Changing Hostname?

2013-12-21 Thread Brian
On Sat 21 Dec 2013 at 13:45:11 -0500, Jon N wrote: Anyway, the main question is, how do i change the hostname for my system? I would edit /etc/hostname and change 'foo' to 'bar' Then (because networking will now be confused), edit /etc/hosts and change instances of 'foo' to 'bar'. -- To

Re: Changing Hostname?

2013-12-21 Thread Karl E. Jorgensen
Hi On Sat, Dec 21, 2013 at 01:45:11PM -0500, Jon N wrote: I recently installed Jessie on a new computer. Now that I have the system up and running I decided that I would like to have a different hostname than the rather unimaginative 'localhost-01' I picked during install. I used the

Re: Changing Hostname?

2013-12-21 Thread Tom H
On Sat, Dec 21, 2013 at 6:45 PM, Jon N jdnandr...@gmail.com wrote: sysctl kernel hostname=NEW_HOSTNAME. It's sysctl -w kernel.hostname=NEW_HOSTNAME. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: Changing Hostname?

2013-12-21 Thread Bob Proulx
Jon N wrote: I recently installed Jessie on a new computer. Now that I have the system up and running I decided that I would like to have a different hostname than the rather unimaginative 'localhost-01' I picked during install. I used the mate-network-admin utility to change it, and

Re: Changing Hostname?

2013-12-21 Thread Bob Proulx
Karl E. Jorgensen wrote: In general, if you're changing host name, *ALL* references to the old name should be tweaked. I would recommend: # sed --in-place=.bak -e 's/localhost-01/yournewname/g' $(grep -lr localhost-01 /etc) Good intention but that will corrupt many binary files.

Re: Changing Hostname?

2013-12-21 Thread Brian
On Sat 21 Dec 2013 at 12:56:35 -0700, Bob Proulx wrote: Changing the system hostname is a simple process. But it depends upon what is installed since often the hostname is embedded in the configuration of a package. For example the Postfix mail transport agent needs to know the hostname in

Re: Changing Hostname?

2013-12-21 Thread Jon N
On Sat, Dec 21, 2013 at 3:03 PM, Bob Proulx b...@proulx.com wrote: Karl E. Jorgensen wrote: In general, if you're changing host name, *ALL* references to the old name should be tweaked. I would recommend: # sed --in-place=.bak -e 's/localhost-01/yournewname/g' $(grep -lr localhost-01

Email MTA /etc/mailname Configuration (was: Changing Hostname?)

2013-12-21 Thread Bob Proulx
Brian wrote: Bob Proulx wrote: Here are the places that need to be changed on every system. A non-exclusive list. There will also be other places too. /etc/hosts /etc/hostname /etc/mailname Would (or should) it be necessary to change /etc/mailname? mailname(5) describes this

Re: Changing Hostname?

2013-12-21 Thread Bob Proulx
Jon N wrote: Dec 21 16:36:38 (none) lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0) (none)? It thinks the hostname is (none)? That's not right. Unless you named your new system (none) with the parens which shouldn't work. Dec 21 16:36:38 (none)

Re: Changing Hostname?

2013-12-21 Thread Jon N
On Sat, Dec 21, 2013 at 9:02 PM, Bob Proulx b...@proulx.com wrote: Jon N wrote: Dec 21 16:36:38 (none) lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0) (none)? It thinks the hostname is (none)? That's not right. Unless you named your new system (none)

Re: Changing hostname

2004-07-13 Thread * Tong*
Thanks everyone for the reply. I can say that changing the hostname, though seems simple, is the most convoluted part in Linux. As expressed by Kent West: ,- | there may be several places in the /etc directory where it is | specified in various config files, such as /etc/hosts. There may |

Re: Changing hostname

2004-07-13 Thread Greg Folkert
On Tue, 2004-07-13 at 13:29, * Tong* wrote: [snip] Paul Johnson's comment makes me think that changing the hostname is far from simple: ,- | 127.0.0.1 cxmr.dyndns.org localhost | | 127.0.0.1localhost | your-ipcxmr.dyndns.orgcxmr `- That's

Changing hostname

2004-07-12 Thread * Tong*
Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmrlocalhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname is still reporting merely 'cxmr'? How to fix it? (Surely I've

Re: Changing hostname

2004-07-12 Thread Kent West
* Tong* wrote: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname is still reporting merely 'cxmr'? How to fix it? (Surely I've

Re: Changing hostname

2004-07-12 Thread Nicos Gollan
On Mon, 12 Jul 2004 17:57:16 -0400 * Tong* [EMAIL PROTECTED] wrote: Quick question how to change hostname under debian? Quick answer: edit /etc/hostname. No reboot necessary (but go to init level 1 and back again to make sure stuff like Apache doesn't get an identity crisis). -- Got Backup?

Re: Changing hostname

2004-07-12 Thread Paul E Condon
On Mon, Jul 12, 2004 at 05:57:16PM -0400, * Tong* wrote: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost I think you should

Re: Changing hostname

2004-07-12 Thread Paul Johnson
* Tong* [EMAIL PROTECTED] writes: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname is still reporting merely

Re: Changing hostname

2004-07-12 Thread Steven Satelle
On Mon, 12 Jul 2004 17:57:16 -0400, * Tong* wrote: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname is still

Re: Changing hostname

2004-07-12 Thread Micha Feigin
On Mon, Jul 12, 2004 at 05:57:16PM -0400, * Tong* wrote: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname

Re: Changing hostname

2004-07-12 Thread Magnus Therning
On Mon, Jul 12, 2004 at 05:57:16PM -0400, * Tong* wrote: Hi, Quick question how to change hostname under debian? I changed my /etc/hosts from 127.0.0.1 cxmr localhost to 127.0.0.1 cxmr.dyndns.org localhost but why my hostname is still

Consquences of changing hostname

2002-11-23 Thread Robert Ian Smit
I am used to leaving Enter domainname blank when I install Debian. So all my systems are called something like box1 or box2. I want to add to this name so it becomes box1.foo.domain. I have searched through /etc and i have found a couple of files that reflect the hostname of the machine. Can

Re: Consquences of changing hostname

2002-11-23 Thread Nicos Gollan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 23 November 2002 14:28, Robert Ian Smit wrote: I am used to leaving Enter domainname blank when I install Debian. So all my systems are called something like box1 or box2. I want to add to this name so it becomes box1.foo.domain. I

Re: Consquences of changing hostname

2002-11-23 Thread Stephen Gran
This one time, at band camp, Robert Ian Smit said: I am used to leaving Enter domainname blank when I install Debian. So all my systems are called something like box1 or box2. I want to add to this name so it becomes box1.foo.domain. I have searched through /etc and i have found a

Re: Consquences of changing hostname

2002-11-23 Thread Alan Chandler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 23 November 2002 1:28 pm, Robert Ian Smit wrote: Can I update these files to the new name? I am most worried about the exim and ssh(d) configuration? Exim for obvious reasons, and ssh for fear of being locked out of remote systems (I

Re: Changing Hostname

2002-10-27 Thread Sandip P Deshmukh
Antonio Rodriguez wrote: How do you change your host name after your installation is done? (network settings) check /etc/hosts, /etc/hostnames Also, what are valid parameters for host name? I made afresh installation of woody in a 386 I got in an auction, and every time gdm starts it

Changing Hostname

2002-10-26 Thread Antonio Rodriguez
How do you change your host name after your installation is done? (network settings) Also, what are valid parameters for host name? I made afresh installation of woody in a 386 I got in an auction, and every time gdm starts it complains about the host name. I also noticed that email sent from

Re: Changing Hostname

2002-10-26 Thread Russell
Antonio Rodriguez wrote: How do you change your host name after your installation is done? (network settings) try /etc/hostname -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: Changing Hostname

2002-10-26 Thread Donald R. Spoon
Antonio Rodriguez wrote: How do you change your host name after your installation is done? (network settings) Also, what are valid parameters for host name? I made afresh installation of woody in a 386 I got in an auction, and every time gdm starts it complains about the host name. I also

Re: Changing Hostname

2002-10-26 Thread Antonio Rodriguez
Donald R. Spoon wrote: If you got the box at an auction, there are some other places that might need personality changes to fit your situation. This is probably the reason your mail commands are disappearing. You should probably re-configure your MTA (i.e. eximconfig if using EXIM) to

Re: Changing Hostname

2002-10-26 Thread shaulka
On Sat, Oct 26, 2002 at 09:27:32AM -0400, Antonio Rodriguez wrote: How do you change your host name after your installation is done? (network settings) $ hostname -h Usage: hostname [-v] {hostname|-F file} set host name (from file) domainname [-v] {nisdomain|-F file} set NIS

Re: Changing Hostname

2002-10-26 Thread Frank Copeland
On 26 Oct 02 13:27:32 GMT, Antonio Rodriguez [EMAIL PROTECTED] wrote: How do you change your host name after your installation is done? (network settings) This works for me: # echo newhostname /etc/hostname # hostname newhostname # grep -ir oldhostname /etc/* Fix up any references to the

Re: Changing Hostname

2002-10-26 Thread Shyamal Prasad
Frank == Frank Copeland [EMAIL PROTECTED] writes: Frank On 26 Oct 02 13:27:32 GMT, Antonio Rodriguez Frank [EMAIL PROTECTED] wrote: How do you change your host name after your installation is done? (network settings) Frank This works for me: Frank # echo

Re: changing hostname

2001-06-25 Thread Vineet Kumar
Not exactly -- the authorized_keys file has five space-separated fields: options bits exponent modulus comment. Options is where options are specified (and is an optional field), and comment is still comment. Changing hostname, or anything else, in the comment field will not affect operability

changing hostname

2001-06-22 Thread Adri
Hello all, I changed my /etc/hostname from debianAdriano to Adriano That's because I'd like to bring my debian under the Windows domain of the company. I should entry a new row in the domain master for the linux hostname. Since I'm yet there with the name Adriano, I could be in the domain

Re: changing hostname

2001-06-22 Thread nico de haer
and grep on your config files in /etc to find your old hostname. This is not a wonder-fix but it *should* get you there Yours, Nico de Haer - Original Message - From: Adri [EMAIL PROTECTED] To: debian-user@lists.debian.org Sent: Friday, June 22, 2001 10:31 AM Subject: changing

Re: changing hostname

2001-06-22 Thread Iain Smith
Adri, I'm in the habbit of reading loads of magazines / install guides / howto's and so on. They all warn for this situation. None of them give a way to 'solve' this. They 'just' pont out to 'think hard' at the domain and hostname part. I know that this does not help, so i hope this wil:

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 10:31:51AM +0200, Adri wrote: I changed my /etc/hostname from debianAdriano to Adriano That's because I'd like to bring my debian under the Windows domain of the company. If you have to deal with those types of circumstances, try to go the easy way: get a second

Re: changing hostname

2001-06-22 Thread Adri
Ian and Nico, thanks to the both of you but I think I'm goin to reinstall from scratch. The solutions you suggest are too difficult for me and I have nothing important in this installation, so I have nothing to loose. I don't want to take the risk to incurr in consequences of the changed

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 12:16:51PM +, Iain Smith wrote: I'd suggest: find /etc/ -type f |xargs grep $HOSTNAME Well, that is a really big hammer in fact. And you will still miss stuff that is not under /etc, but has a symlink in /etc pointing to it. I used to do it like this (or much

Re: changing hostname

2001-06-22 Thread Iain Smith
On Fri, Jun 22, 2001 at 02:23:46PM +0200, Joost Kooij wrote: On Fri, Jun 22, 2001 at 12:16:51PM +, Iain Smith wrote: I'd suggest: find /etc/ -type f |xargs grep $HOSTNAME Well, that is a really big hammer in fact. And you will still miss stuff that is not under /etc, but has a

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 02:15:12PM +, Iain Smith wrote: Until I found out about this wonderful -r option to gnu grep: grep -r myregex /etc wants to be your friend too. Hmmm I managed to miss that one completely. Time to re-rtfm! I knew of rgrep but found it was rarely

Re: changing hostname

2001-06-22 Thread Iain Smith
On Fri, Jun 22, 2001 at 05:10:56PM +0200, Joost Kooij wrote: snip Also must do is to read a book on unix systems. I suggest the 4.4 bsd book, because it is a lot more readable than some of the more well-known pamphlets by various illustruous academics[1]. Also, Kirk McKusick has a video with

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 05:29:01PM +, Iain Smith wrote: On Fri, Jun 22, 2001 at 05:10:56PM +0200, Joost Kooij wrote: You really don't want to mess with /dev/kmem and /proc/kcore. Install and setup a user-mode-linux system if you like to toy with that stuff without exposing real data to

Re: changing hostname

2001-06-22 Thread David L. Craig
Joost wrote: In my experience, the best one is the bash(1) manpage. It is is really vital. You don't properly realise how much until you've read all of it (well maybe read a little faster over the readline bits). Next come grep(1), sed(1) and awk(1). No, next comes knowing your editor

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 01:46:18PM -0400, David L. Craig wrote: Joost wrote: In my experience, the best one is the bash(1) manpage. It is is really vital. You don't properly realise how much until you've read all of it (well maybe read a little faster over the readline bits). Next

Re: changing hostname

2001-06-22 Thread der.hans
Am 22. Jun, 2001 schwäzte Adri so: Well, I saw the exim.conf file and there were some referrings to the old host name (debianAdriano) so I run eximconfig again. But now I wonder what other files still refer to the old name? What consequences I'm gonna run into? I changed my hostname

Re: changing hostname

2001-06-22 Thread D-Man
On Fri, Jun 22, 2001 at 01:53:23PM +0200, Joost Kooij wrote: | On Fri, Jun 22, 2001 at 10:31:51AM +0200, Adri wrote: | I changed my /etc/hostname from debianAdriano to Adriano | | That's because I'd like to bring my debian under the Windows domain of the | company. [snip lots of fun to read

Re: changing hostname

2001-06-22 Thread Joost Kooij
On Fri, Jun 22, 2001 at 12:48:17PM -0700, der.hans wrote: I found /etc/exim/exim.conf, /etc/apache/conf/httpd.conf, etc/ppp/options.ttyXX and the ssh host key files. I've left the ssh keys alone, but the rest was easy to change. IIRC it worked just fine when I changed the hostname part of ssh