Sign in to follow this  

How to change linux host name and alias name

This topic is 2548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to know how to change my Linux host name and also give it an alias name. For example, it will have a formal name "EBGP-@CPE00400501f9a6:", and also an alias such as "FileServer001". Is it possible?

I think I can use command ‘hostname' to change the Linux host name at runtime, and many other ways to do so. I just don't know how to assign it an alias name. Any idea?

I also would like to enable file transfer between a windows host and a linux host, within the same corporate network. By default every corporate network has DNS server and DHCP server, so I think the windows host and the Linux host can find each other via either their host names, or their alias names. For special case, I also want a host outside of the corporate network to transfer files with another host inside of the corporate network, so I prefer the file transfer via HTTP, which is more likely to pass the firewalls with less trouble than other protocols. Is there any samples codes available for this solution? Is there any potential risk for this technical solution?

Thank you and Merry Christmas!

Share this post


Link to post
Share on other sites
Yes this is 100% possible. It is different for almost every distro depending on how their underlying system is set up. For instance on openSuse all you have to do is edit your /etc/hosts file as root with a command like... su -c 'vim /etc/hosts'.

Debian systems like ubuntu are a little different and so are red hat systems like fedora for those here is a link that will save me some command typing.

Clicky!

In all honesty for transfering of files I think ssh might be more likely to work. But the easiest way by far to transfer files from windows to Linux and vice versa would be samba. Do a google on samba file sharing between windows and linux.

Share this post


Link to post
Share on other sites
Sign in to follow this