LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux installed but no network??? (https://www.linuxquestions.org/questions/linux-networking-3/linux-installed-but-no-network-4175495512/)

cajunchief 02-19-2014 10:26 AM

Linux installed but no network???
 
I recently installed CentOS 6.3 on an HP Envy Desktop. (what a pain but it is in)
I can ping 127.0.0.1 however I cannot ping my network router. When I did the install I selected "basic server" instead of "desktop".

I think I need to get X Window System up and running, and then Gnome.
My questions are:

1. Can Gnome and KDE be both loaded and run on the same box?(simultaneously/or not)

2. Do I need to load X Windows then Gnome/KDE?

HELP!

cajunchief

netnix99 02-19-2014 10:46 AM

cajunchief:

What IP did you assign your machine and your router? 127.0.0.1 is the loopback interface and will not be able to talk to your router. If you have not configured the IP and subnetmask, and it is not set to DHCP, you will not be able to communicate with the router. The router IP should be your gateway.

1. Yes they can both be installed, but they cannot be run simultaneously.. you can select your deksktop at login
2. if you install them with yum, the X dependencies will be installed automatically

cajunchief 02-19-2014 12:25 PM

_____
Quote:

What IP did you assign your machine and your router? 127.0.0.1 is the loopback interface and will not be able to talk to your router. If you have not configured the IP and subnetmask, and it is not set to DHCP, you will not be able to communicate with the router. The router IP should be your gateway.
I have not assigned any IP addresses yet. :( How do I do this?


1. Yet they can both be installed, but they cannot be run simultaneously.. you can select your deksktop at login
Fantastic!
2. if you install them with yum, the X dependencies will be installed automatically
I need to get network access before I can install X!
_____________

schneidz 02-19-2014 12:47 PM

can you provide the output of
Code:

echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n && echo ping router: && ping -c 1 `route | awk '/default/ {print $2}'` && echo ping dns-server: && ping -c 1 `awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n 1` && echo ping using ip: && ping -c 1 64.235.229.141 && echo ping using dns: && ping -c 1 www.02144.com
so someone can start diagnostics.

netnix99 02-19-2014 12:57 PM

cajunchief

at the command line do:
Code:

ifconfig
This will show you the available interfaces. I fyour router is set up as a DHCP server, you will need to edit two files:
1. /etc/sysconfig/network
2. /etc/sysconfig/network-scripts/ifcfg-eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output

The /etc/sysconfig/network file should contain the following line:
NETWORKING=yes

The /etc/sysconfig/network-scripts/ifcfg-eth0 file should contain the following lines:
DEVICE=eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output
BOOTPROTO=dhcp
ONBOOT=yes

If your router is not using DHCP, you will need to figure out what network it is in. (typically something like 192.168.1.0 255.255.255.0)

You will still need to edit the same two files, but like this instead:

The /etc/sysconfig/network file should contain the following line:
NETWORKING=yes

2. /etc/sysconfig/network-scripts/ifcfg-eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.1.0
IPADDR=192.168.1.10 <----IP address selected to be in the same subnet as the router
NETMASK=255.255.255.0 <----Same subnet mask as the router
GATEWAY=192.168.1.1 <----Should be the IP address of the router
USERCTL=no

Here is the full text if you need it.... lots of information here.....

John VV 02-19-2014 02:26 PM

Quote:

(what a pain but it is in)
odd
CentOS6 and SL6 have been way easier to install than Fedora or OpenSUSE or oven kali and Arch

it is one of the easiest to install

you use the DEFAULT settings for EVERYTHING
then after it is installed you make changed to the software
with one exception
If you DO NOT !!!! have any ipv6 service DISABLE THAT at the time of install . using the installer to disable that .

Quote:


I think I need to get X Window System up and running, and then Gnome.
My questions are:
that is auto installed( by default) in the GUI install
now if a TEXT ONLY install ( server install) then x was NOT installed

Quote:

1. Can Gnome and KDE be both loaded and run on the same box?(simultaneously/or not)
yes and Gnome2 is the DEFAULT
kde4 and xfce can be installed
you select the desktop after you put in your used name and before the password

Quote:

2. Do I need to load X Windows then Gnome/KDE?
X11 was auto installed using the GUI install

if you did a headless server TEXT ONLY install it is not installed

Quote:

When I did the install I selected "basic server" instead of "desktop".
well right there is the problem
you installed a headless SERVER
x11 and NO desktop were installed

servers do not need a GUI

at this point it is EASIER to reinstall using the GUI and NOT text only install

but you can "fix it"
but without installing the tools to configure the network ???
you wil lneed to use the dvd and install them

but if you are going to do that . Then just reinstall

cajunchief 02-19-2014 04:37 PM

if you did a headless server TEXT ONLY install it is not installed

Quote:
When I did the install I selected "basic server" instead of "desktop".
well right there is the problem
you installed a headless SERVER
x11 and NO desktop were installed

servers do not need a GUI
Thanks JohnVV. I believe you are correct. I think I need to re-install. Thanks to all others for your help too.

cajunchief 02-20-2014 09:30 AM

Another damn interesting day
 
I re-installed Linux as JohnVV indicated I should. I now have Gnome up and working :). However, I still have the problem with my network not working?

So here are my questions:

1. Since I have Gnome installed, can I have my computer boot up into a terminal window or Gnome at my choice?
2. How do I get my dang network up and running?

cajunchief

schneidz 02-20-2014 09:54 AM

Quote:

Originally Posted by cajunchief (Post 5121652)
I re-installed Linux as JohnVV indicated I should. I now have Gnome up and working :). However, I still have the problem with my network not working?

So here are my questions:

1. Since I have Gnome installed, can I have my computer boot up into a terminal window or Gnome at my choice?
2. How do I get my dang network up and running?

cajunchief

1: i run fedora which is very similar to centos; this is how i do it:
Code:

sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
fyi:
Code:

[schneidz@mom ~]$ ll /lib/systemd/system/runlevel[0-6].target
lrwxrwxrwx. 1 root root 15 Dec 17 14:30 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16 Dec 17 14:30 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel6.target -> reboot.target

2: did you provide the diag info from post #4 ?

cajunchief 02-20-2014 10:03 AM

Quote:

Originally Posted by schneidz (Post 5121664)
1: i run fedora which is very similar to centos; this is how i do it:
Code:

sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
fyi:
Code:

[schneidz@mom ~]$ ll /lib/systemd/system/runlevel[0-6].target
lrwxrwxrwx. 1 root root 15 Dec 17 14:30 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16 Dec 17 14:30 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel6.target -> reboot.target

2: did you provide the diag info from post #4 ?

I have a question, where does my system get all my IP addresses and g/w address, and all the other info it needs?

schneidz 02-20-2014 10:09 AM

^ not sure. if your router has dhcp enabled then your router would automatically supply your devices with ip/dns/routing addresses. if not then you will need to provide static addresses to each of your devices.

michaelk 02-20-2014 10:13 AM

You have not provided any information about your network adapter.

The installer would of asked some questions about finding the adapter and configuring it for DHCP or static and setting it as active.

We need to do some troubleshooting.
In in addition to post #5:
Just to cover all bases, is this a real or virtual machine? Never mind, dual boot
Look at the output of the dmesg command, does it show any error messages relating to eth0? Does it show that the network adapter is being recognized?
Post the output of the lspci command line for the ethernet adapter. This will tell us the manufacture/chipset.

John VV 02-20-2014 02:08 PM

Quote:

sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
that will NOT work in RHEL6 or CentOS6 !!!
RHEL6 is using SystemV
and fedora20 is using SystemD

cent uses the int system

as to the network
you have provided no information on that
First
What is it ?
56k dial up ?
dsl?
dsl2?
cable?
Fiber?
wireless?
wireless using a usb dongle or your phone ?

cajunchief 02-20-2014 02:09 PM

Quote:

Originally Posted by michaelk (Post 5121678)
You have not provided any information about your network adapter.

The installer would of asked some questions about finding the adapter and configuring it for DHCP or static and setting it as active.

We need to do some troubleshooting.
In in addition to post #5:
Just to cover all bases, is this a real or virtual machine? Never mind, dual boot
Look at the output of the dmesg command, does it show any error messages relating to eth0? Does it show that the network adapter is being recognized?
Post the output of the lspci command line for the ethernet adapter. This will tell us the manufacture/chipset.

Michael, the chipset is an intel I5 chip.
cajunchief

John VV 02-20-2014 02:12 PM

a intel i5 Chip
is the CPU "Central Processing Unit"
it is NOT a Ethernet card nor a dial-up modem nor cable/fiber modem


All times are GMT -5. The time now is 08:33 AM.