Solved

Linux Command Help

Posted on 2011-09-27
4
386 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 40

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

821 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