Solved

Linux Command Help

Posted on 2011-09-27
4
365 Views
Last Modified: 2012-05-12
Hi All,
I have setup webmin access trying to play around with a few settings and i deleted the host addresses. Please give me commands to add these to the host address. I have attached a screen shot please give me the commands to add these. thanks
Webminscreen.jpg
0
Comment
Question by:Clement P
4 Comments
 
LVL 2

Assisted Solution

by:Roy
Roy earned 100 total points
ID: 36709831
You can go to console and try these:

#hostname

this should give you the host name of the server and you can add it back to the UI of webmin.
0
 
LVL 39

Expert Comment

by:noci
ID: 36713465
ifconfig -a

gives you the ipaddresses your system uses.
0
 
LVL 2

Accepted Solution

by:
KishorDas earned 150 total points
ID: 36890562
Please go to the networking and section in your webmin and reconfigure the setting there, Otherwise directly at shell prompt you can edit the file /etc/hosts using any of your favorite editor.

Thanks
Kishor Kumar Das
0
 
LVL 2

Author Closing Comment

by:Clement P
ID: 36902662
After what i did i lost access to webmin.
I expected a more detailed answer as I am new here.
But yes it worked.. thanks..

here is what worked for me
[root@Server Downloads]# hostname localhost.localdomain
[root@Server Downloads]# vim /etc/sysconfig/network
[root@Server Downloads]# vim /etc/hosts

edited hosts as desired and was able to access the Webmin again.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now