Need help setting up CentOS VMWare server on Windows Vista box
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help setting up CentOS VMWare server on Windows Vista box
I'm trying to learn Linux and have created a VMWare guest operating system using CentOS 4.8. I expect the next step is to install ssh in order to transfer files to the server but as of yet I haven't figured out how to assign it a host name or how to effect a transfer. Brand new at Linux so what may seem obvious is eluding me.
thanks, Amy
Did you set up CentOS with the graphical environment or terminal only? I don't have much experience with the GUI myself for CentOS but at this site you'll find a pretty complete manual. If you've set your server up with terminal only then let me know and I'll post what you need to change/configure to get your system up and running. In order to do so you'll need to provide some more information. Will you connect to your router/gateway using DHCP or do you want to set up a static IP? If static then provide the network address and the gateway address. Have fun with Linux.
At this point I'm using terminal only. I don't know the pros and cons of DHCP or static IP, so I don't have a preference - don't know if it matters but I work from home so am limited to a commercial ISP. Right now I have the network adapter set to bridged. The etc/sysconfig/networking/devices folder is empty so I may be missing some configuration steps that need to take place before I can set up network access.
On my virtual machines I don't have anything in /etc/sysconfig/networking/devices so I wouldn't worry about that. But look in /etc/sysconfig/network-scripts if you have file(s) in there that begin with ifcfg-. Those are the files you need to configure your devices. You can also run:
Code:
lspci
to find out if your NIC(s) has(ve) been detected correctly. Let me know what you encounter and we'll take it from there.
Now that you know where the configuration files are you can try the following, which is the simplest. When logged in use your preferred editor (vi, vim, joe, nano, ...) to open the ifcfg-eth0 file and put the following content in there:
Code:
BOOTPROTO=dhcp
ONBOOT=yes
if not in there already. If you're not sure, post the contents of that file here. Normally it should already contain something like these lines:
Don't worry that there's no hardware address in the config file(s). Looking at your output it seems that you are connected and have IP 192.168.1.5 assigned. You can test connectivity by trying a ping to your gateway, which I assume is 192.168.0.1. Just execute:
Code:
ping 192.168.0.1
You'll also need to check your /etc/resolv.conf file to see if your search domain and DNS server(s) have been set up correctly and if not, change them. Can you post the output of that file please?
You could try directly by pinging one of the DNS IP of Google:
Code:
ping 8.8.8.8
If that gives you a result then you are connected and can update your server, transfer files, install services like for example a web or ftp server on your CentOS and try them out. If you only want to transfer files from your Windows host to your virtual Linux server, you could use a program like Putty, SSH Secure Shell, or others which have a SecureFTP client included that allow you copying files over SSH protocol without the need to install additional server software on your virtual Linux box.
And don't worry about taking long to respond. I'm assuming you were trying to copy from VMWare console to your browser in Windows. Try one of the programs mentioned above (Putty for example) and you'll be able to connect using SSH instead of working on the VMWare console window. Using a SSH client allows you to copy / paste text.
On hint: when posting code (configuration files etc.) it's advisable to put that code between [ CODE ] [ /CODE ] tags (without the spaces) for readability.
Thanks again, Eric.
My original question arose from being unable to access the linux server from putty, which I would definitely prefer over the VMWare console window.
Contents of the /etc/resolv.conf are as follows:
Code:
; generated by /sbin/dhclient-script
search home
nameserver 192.168.1.1
nameserver 71.252.0.12
I am able to ping the following:
8.8.8.8
192.168.1.5
192.168.1.1
but not
192.168.0.1
When I try to access the linux server via putty using 192.169.1.5, the connection times out.
OK, so you don't have any problem with your network connection. My first impression would be that you don't have the SSH server installed. Check with the following command:
I thought I submitted a reply which I don't see now, so please excuse if this information is redundant.
openssh-server-3.9pl-11.e14_7 is installed.
iptables shows
many targets, including RH-Firewall-1-INPUT
many ACCEPT listings, including icmp, ipv6-crypt, ipv6-auth, and udp
one REJECT all listing - reject-with icmp-host-prohibited
Please let me know if I should provide all details of the iptables output and if this output should also be included in the code brackets.
thanks, Amy
You can simply try by flushing iptables temporarily. Just run:
Code:
iptables -F
and try to connect from Putty again. If that works then you'll have to add a rule to allow SSH. In order to do that open /etc/sysconfig/iptables and add just before the line that says COMMIT, the following:
Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Then restart iptables with either of the following:
Code:
/etc/init.d/iptables restart
service iptables restart
Response to the first command was:
ssh: unrecognized service
But I was able to ssh as localhost
My firewall is not such in the true sense of the word, but Norton 360 Firewall protection is enabled.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.