Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Tuesday, April 3, 2012

Network interface issues with Fedora

If you are having issues with Fedora (I was using v10) interfaces (such as eth0) staying up after reboot when assigned static IP, there are several things that must be checked for you to stabilize connectivity...

1. Check the GUI network interface configurator to be sure all settings are correct.  Note that hostname is the machine name, not the FQDN.

2. Check the files in /etc/sysconfig/networking/profiles/default... this directory houses all your networking-related files relevant to the interfaces... check your hosts, resolve.conf, network, and ifcfg-XXX files to be sure they are correct.  Also, double-check the ifcfg-XXX files to be sure the netmask is correct, FC10 has a bug when using the GUI that inserts the gateway in the netmask field.

3. Run the commands "chkconfig NetworkManager off" and "chkconfig network on" to disable Network Manager and assure that default networking is activated in all runtime modes.  This was key to having interfaces come up as Network Manager is a buggy piece of garbage when using static IP.  

Make sure your ifcfg files look something like this...


ONBOOT=yes
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
GATEWAY=135.112.66.1
TYPE=Ethernet
DEVICE=eth1
HWADDR=00:1c:c0:98:62:21
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=135.112.66.94
DNS1=135.222.4.10
DNS2=135.222.4.11
DOMAIN=domain.com
NM_CONTROLLED=no



Wednesday, December 2, 2009

Fedora Graphical/Text interface

To switch between text and graphical login just edit the
/etc/inittab file...

and change the line " id:X:initdefault: "
where X is the runlevel (5 for graphical, 3 for text)

If at the console prompt already, just use "init X"
to boot the correct runlevel.

Tuesday, September 15, 2009

Fedora auto-login

Modify the /etc/gdm/gdm.schemas file to have the following...

AutomaticLoginEnable setting at true

AutomaticLogin set with the actual system login - do NOT use the friendly
or full name

Reboot and the system will enter Gnome desktop automatically.

http://forums.fedoraforum.org/showthread.php?t=220794

Fedora 11 single user mode

To get into single user text based mode from GRUB... hit F8 a million times between post and GRUB loader, then choose A to append to existing boot line, then insert an s to the line and continue booting.

http://dailypackage.fedorabook.com/index.php?/archives/157-System-Recovery-Week-Single-user-mode.html

Sunday, September 13, 2009

Fedora YUM and installers will not work

If using Fedora (any flavor but I tried on 8, 10 and 11) and YUM installer (or package installer) and you get the following, (even with a fresh install of Fedora)...

"Cannot retrieve repository metadata (repomd.xml)"

I finally was able to get around this problem, caused by my corporate
firewall, by using this combination...

1) Disabling client firewall in Fedora

2) Exporting the proxy server at the command line (even though I had
specified it in the GUI) as follows...

export http_proxy=http://%yourproxyhere%:port#

3) Changing each https entry in the /etc/yum.repos.d/*.repo files to http to
make fetching non-secure.

4) Inserting the following into the /etc/hosts file...

80.239.156.215 mirrors.fedoraproject.org
213.129.242.84 mirrors.rpmfusion.org

And finally it worked for me.

http://forums.fedoraforum.org/showthread.php?t=223472