rogersj
(usa Slackware)
Enviado em 22/09/2012 - 22:12h
Fala ai AlbFNeto...
Para poder ajudar mais adequadamente, sua conexão com internet é pppoe op pppoa? você usa IP fixo na sua rede?
Eu diria que não precisa reinstalar, porque o seu sabayon já tem muita configuração pronta e com isso (3 anos de uso) vai perder muita coisa, muita configuração e ajustes pessoais...
Informa ai sobre o IP fixo ou não e dá uma olhada nisso (fica em modo texto por enquanto) Gentoo ( ou sabayon) tem que estar configurado no texto que ai no modo gráfico você pode usar o ambiente que quiser...
Seu sistema reconheçe a Net quando está em modo gráfico, provavelmente pelas configurações do ambiente X do KDE.
Vale a pena também dar uma olhada e conferir passo a passo conforme o manual aqui:
__________________________________________________________________________________________________________________________________
We now support modular networking scripts, which means we can easily add support for new interface types and configuration modules while keeping compatibility with existing ones.
Modules load by default if the package they need is installed. If you specify a module here that doesn't have its package installed then you get an error stating which package you need to install. Ideally, you only use the modules setting when you have two or more packages installed that supply the same service and you need to prefer one over the other.
Note: All settings discussed here are stored in /etc/conf.d/net unless otherwise specified.
Code Listing 1.1: Module preference
# Prefer ifconfig over iproute2
modules="ifconfig"
# You can also specify other modules for an interface
# In this case we prefer pump over dhcpcd
modules_eth0="pump"
# You can also specify which modules not to use - for example you may be
# using a supplicant or linux-wlan-ng to control wireless configuration but
# you still want to configure network settings per ESSID associated with.
modules="!iwconfig"
Host name, Domainname, etc
One of the choices the user has to make is name his/her PC. This seems to be quite easy, but lots of users are having difficulties finding the appropriate name for their Linux-pc. To speed things up, know that any name you choose can be changed afterwards. For all we care, you can just call your system tux and domain homenetwork.
Code Listing 2.1: Setting the host name
# nano -w /etc/conf.d/hostname
(Set the hostname variable to your host name)
hostname="tux"
Second, if you need a domainname, set it in /etc/conf.d/net. You only need a domain if your ISP or network administrator says so, or if you have a DNS server but not a DHCP server. You don't need to worry about DNS or domainnames if your networking is setup for DHCP.
Code Listing 2.2: Setting the domainname
# nano -w /etc/conf.d/net
(Set the dns_domain variable to your domain name)
dns_domain_lo="homenetwork"
Note: If you choose not to set a domainname, you can get rid of the "This is hostname.(none)" messages at your login screen by editing /etc/issue. Just delete the string .\O from that file.
If you have a NIS domain (if you don't know what that is, then you don't have one), you need to define that one too:
Code Listing 2.3: Setting the NIS domainname
# nano -w /etc/conf.d/net
(Set the nis_domain variable to your NIS domain name)
nis_domain_lo="my-nisdomain"
Note: For more information on configuring DNS and NIS, please read the examples provided in /usr/share/doc/openrc-*/net.example.bz2 which can be read using bzless. Also, you may want to emerge openresolv to help manage your DNS/NIS setup.
Configuring your Network
Before you get that "Hey, we've had that already"-feeling, you should remember that the networking you set up in the beginning of the Gentoo installation was just for the installation. Right now you are going to configure networking for your Gentoo system permanently.
Note: More detailed information about networking, including advanced topics like bonding, bridging, 802.1Q VLANs or wireless networking is covered in the Gentoo Network Configuration section.
All networking information is gathered in /etc/conf.d/net. It uses a straightforward yet not intuitive syntax if you don't know how to set up networking manually. But don't fear, we'll explain everything. A fully commented example that covers many different configurations is available in /usr/share/doc/openrc-*/net.example.bz2.
DHCP is used by default. For DHCP to work, you will need to install a DHCP client. This is described later in Installing Necessary System Tools. Do not forget to install a DHCP client.
If you need to configure your network connection either because you need specific DHCP options or because you do not use DHCP at all, open /etc/conf.d/net with your favorite editor (nano is used in this example):
Code Listing 2.4: Opening /etc/conf.d/net for editing
# nano -w /etc/conf.d/net
You will see the following file:
Code Listing 2.5: Default /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc-*/net.example.bz2 and save
# your configuration in /etc/conf.d/net (this file :]!).
To enter your own IP address, netmask and gateway, you need to set both config_eth0 and routes_eth0:
Code Listing 2.6: Manually setting IP information for eth0
config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
routes_eth0="default via 192.168.0.1"
To use DHCP, define config_eth0:
Code Listing 2.7: Automatically obtaining an IP address for eth0
config_eth0="dhcp"
Please read /usr/share/doc/openrc-*/net.example.bz2 for a list of all available options. Be sure to also read your DHCP client manpage if you need to set specific DHCP options.
If you have several network interfaces repeat the above steps for config_eth1, config_eth2, etc.
Now save the configuration and exit to continue.
Automatically Start Networking at Boot
To have your network interfaces activated at boot, you need to add them to the default runlevel.
Code Listing 2.8: Adding net.eth0 to the default runlevel
# cd /etc/init.d
# ln -s net.lo net.eth0
# rc-update add net.eth0 default
If you have several network interfaces, you need to create the appropriate net.eth1, net.eth2 etc. just like you did with net.eth0.
Writing Down Network Information
You now need to inform Linux about your network. This is defined in /etc/hosts and helps in resolving host names to IP addresses for hosts that aren't resolved by your nameserver. You need to define your system. You may also want to define other systems on your network if you don't want to set up your own internal DNS system.
Code Listing 2.9: Opening /etc/hosts
# nano -w /etc/hosts
Code Listing 2.10: Filling in the networking information
(This defines the current system)
127.0.0.1 tux.homenetwork tux localhost
(Define extra systems on your network,
they need to have a static IP to be defined this way.)
192.168.0.5 jenny.homenetwork jenny
192.168.0.6 benny.homenetwork benny
Save and exit the editor to continue.
If you don't have PCMCIA, you can now continue with System Information. PCMCIA-users should read the following topic on PCMCIA.
Optional: Get PCMCIA Working
PCMCIA users should first install the pcmciautils package.
Code Listing 2.11: Installing pcmciautils
# emerge pcmciautils
8.c. System Information
Root Password
First we set the root password by typing:
Code Listing 3.1: Setting the root password
# passwd
System Information
Gentoo uses /etc/rc.conf to configure the services, startup, and shutdown of your system. Open up /etc/rc.conf and enjoy all the comments in the file.
Code Listing 3.2: Configuring services
# nano -w /etc/rc.conf
When you're finished configuring these two files, save them and exit.
Gentoo uses /etc/conf.d/keymaps to handle keyboard configuration. Edit it to configure your keyboard.
Code Listing 3.3: Opening /etc/conf.d/keymaps
# nano -w /etc/conf.d/keymaps
Take special care with the keymap variable. If you select the wrong keymap, you will get weird results when typing on your keyboard.
When you're finished configuring /etc/conf.d/keymaps, save and exit.
Gentoo uses /etc/conf.d/hwclock to set clock options. Edit it according to your needs.
Code Listing 3.4: Opening /etc/conf.d/hwclock
# nano -w /etc/conf.d/hwclock
If your hardware clock is not using UTC, you need to add clock="local" to the file. Otherwise you will notice some clock skew.
When you're finished configuring /etc/conf.d/hwclock, save and exit.
You should define the timezone that you previously copied to /etc/localtime in the /etc/timezone file so that further upgrades of the sys-libs/timezone-data package can update /etc/localtime automatically. For instance, if you used the Europe/Brussels timezone, you would write Europe/Brussels in the /etc/timezone file.
Configure locales
You will probably only use one or maybe two locales on your system. You have to specify locales you will need in /etc/locale.gen.
Code Listing 3.5: Opening /etc/locale.gen
# nano -w /etc/locale.gen
The following locales are an example to get both English (United States) and German (Germany) with the accompanying character formats (like UTF-8).
Code Listing 3.6: Specify your locales
en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
Note: You can select your desired locales in the list given by running locale -a.
Warning: We strongly suggest that you should use at least one UTF-8 locale because some applications may require it.
The next step is to run locale-gen. It will generates all the locales you have specified in the /etc/locale.gen file.
Code Listing 3.7: Running locale-gen
# locale-gen
Once done, you now have the possibility to set the system-wide locale settings in the /etc/env.d/02locale file:
Code Listing 3.8: Setting the default system locale in /etc/env.d/02locale
LANG="de_DE.UTF-8"
LC_COLLATE="C"
And reload your environment:
Code Listing 3.9: Reload shell environment
# env-update && source /etc/profile
_____________________________________________________________________________________________________________________________
Boa sorte amigão... e ficamos no aguardo do seu fedback para tentarmos ajudar no que for possível a resolver a configuração e recuperação do seu Linux Sabayon (Gentoo)
Um abraço :)