LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2014, 10:26 AM   #1
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Rep: Reputation: 0
Red face 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
 
Old 02-19-2014, 10:46 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
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
 
Old 02-19-2014, 12:25 PM   #3
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
_____
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!
_____________
 
Old 02-19-2014, 12:47 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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.
 
1 members found this post helpful.
Old 02-19-2014, 12:57 PM   #5
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
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.....
 
Old 02-19-2014, 02:26 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 02-19-2014 at 02:34 PM.
 
1 members found this post helpful.
Old 02-19-2014, 04:37 PM   #7
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
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.
 
Old 02-20-2014, 09:30 AM   #8
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
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
 
Old 02-20-2014, 09:54 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by cajunchief View Post
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 ?

Last edited by schneidz; 02-20-2014 at 09:56 AM.
 
Old 02-20-2014, 10:03 AM   #10
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by schneidz View Post
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?
 
Old 02-20-2014, 10:09 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ 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.
 
Old 02-20-2014, 10:13 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
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.

Last edited by michaelk; 02-20-2014 at 10:24 AM.
 
Old 02-20-2014, 02:08 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 ?
 
Old 02-20-2014, 02:09 PM   #14
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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
 
Old 02-20-2014, 02:12 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed Scientific Linux 6.2 on a VM using KVM - no network access dralexpe Linux - Virtualization and Cloud 5 09-28-2012 09:09 PM
network drivers not working when I installed linux on compaq v2000 anim3soldi3r Linux - Newbie 1 06-02-2009 11:29 AM
Newbie to Linux.. Just installed Debian Network Install fadeone Debian 29 08-16-2006 11:29 PM
Installed Linux, now I don't appear on the network Camaalis Linux - Networking 7 04-16-2004 04:46 PM
Linux network drive not installed saravanan1979 Linux - Hardware 3 06-11-2002 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration