www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Changing hostname

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
ingeniado



Joined: 15 Jun 2007
Posts: 28

PostPosted: Mon Aug 20, 2007 5:31 pm    Post subject: Changing hostname Reply with quote

Hello,

I have setup a PC with Zeroshell, restoring the DB from other PC with Zeroshell and changing some parameters (doing this because I have a large QoS configuration).
Now I want to change the hostname and I'm not able! Sad
I've used the "hostname" command prompt, editing the "/etc/hosts" file, but.. when I reboot, I get the old hostname again.

Are there any way to do it?
or have I to create a new database?

thanks
Michael.
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1069

PostPosted: Mon Aug 20, 2007 10:38 pm    Post subject: Reply with quote

Try to edit the file /var/register/system/misc/hostname and then restart the system.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
ingeniado



Joined: 15 Jun 2007
Posts: 28

PostPosted: Tue Aug 21, 2007 6:39 am    Post subject: OK Reply with quote

It works!

Thanks Fulvio.

Michael.
Back to top
View user's profile Send private message
tasyoshop



Joined: 14 Mar 2015
Posts: 3

PostPosted: Mon Mar 23, 2015 4:54 am    Post subject: Reply with quote

Hi ingeniado and Fulvio,

can you please show the command to edit the hostname..sorry but I'm still new on this flatform thank you.

Regards,
Back to top
View user's profile Send private message
gordonf



Joined: 26 Feb 2012
Posts: 86

PostPosted: Mon Mar 23, 2015 1:25 pm    Post subject: vi works Reply with quote

You're using a POSIX style platform here. If you're not familiar with Linux, MacOS X or other UNIX-like things, start here at the Linux for Newbies site. Don't be ashamed; I have to go there frequently and I admin moderately sized Windows Server networks for a living.

'vi' is integrated into Zeroshell for editing text files. From the ZS console, hit 's' to get a bash shell prompt, and then you can use Bash shell commands to browse and edit files:

cd /var/register/system/misc
vi hostname

Now 'vi' is an evil editor if you haven't used it before, so I suggest reviewing it on the Linux for Newbies site. I don't know if simpler editors exist on the ZS distribution.
--
Back to top
View user's profile Send private message
reaperz



Joined: 13 Apr 2012
Posts: 76

PostPosted: Tue Mar 24, 2015 12:36 pm    Post subject: Reply with quote

Yes, I am Linux System Administrator and I hate vi with passion. I can use it, but still hate it every time.

So could we please get more user friendly editor like nano in next version of zeroshell?

At the moment I manually have install nano into it after install
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group