Portál AbcLinuxu, 10. května 2025 00:15

Dotaz: archlinux netcfg rc.conf

11.7.2011 10:49 martin knocik | skóre: 14
archlinux netcfg rc.conf
Přečteno: 393×
Odpovědět | Admin
Po aktualizácii Archlinuxu mi pri štarte systému vypisuje toto

Warning: This functionality is deprecated.

Please refer to /etc/rc.conf on how to define a single wired

connection, or use a utility such as netcfg.

:: Starting Network [DONE]

Tak som v netcfg nastavil profil netcfg ethernet-dhcp a v rc.conf pridal net-profiles a net-auto-wired. Ale stale mi to vypisuje This functionality is deprecated... Neviete mi poradiť čo mam spraviť aby mi to nevypisovalo. Ďakujem za pomoc.

takto vyzera moj rc.conf

# -----------------------------------------------------------------------

# NETWORKING

# -----------------------------------------------------------------------

# # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts

# #HOSTNAME="archlinuxpc"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.

# # Interfaces to start at boot-up (in this order)

# Declare each interface then list in INTERFACES

# - prefix an entry in INTERFACES with a ! to disable it

# - no hyphens in your interface names - Bash doesn't like it

#

# DHCP: Set your interface to "dhcp" (eth0="dhcp")

# Wireless: See network profiles below

#

#Static IP example

#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

#eth0="dhcp"

#INTERFACES=(eth0)

# Routes to start at boot-up (in this order)

# Declare each route then list in ROUTES

# - prefix an entry in ROUTES with a ! to disable it

#

#gateway="default gw 192.168.0.1"

#ROUTES=(!gateway)

# Enable these network profiles at boot-up. These are only useful

# if you happen to need multiple network configurations (ie, laptop users)

# - set to 'menu' to present a menu during boot-up (dialog package required)

# - prefix an entry with a ! to disable it

#

# Network profiles are found in /etc/network.d

#

# This now requires the netcfg package

#

NETWORKS=(ethernet-dhcp)

WIRED_INTERFACE="eth0"

# -----------------------------------------------------------------------

# DAEMONS

# -----------------------------------------------------------------------

#

# Daemons to start at boot-up (in this order)

# - prefix a daemon with a ! to disable it

# - prefix a daemon with a @ to start it up in the background

#

DAEMONS=(syslog-ng network net-profiles net-auto-wired netfs crond dbus hal alsa cups rpcbind nfs-common nfs-server autofs slim)


Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Řešení 1× (martin knocik (tazatel))
Guardian avatar 11.7.2011 12:49 Guardian | skóre: 8
Rozbalit Rozbalit vše Re: archlinux netcfg rc.conf
Odpovědět | | Sbalit | Link | Blokovat | Admin

Ahoj, jestli se nepletu tak net-profiles je daemon od netcfg, takže klidně můžeš vypnout network.

DAEMONS=(syslog-ng !network net-profiles net-auto-wired netfs crond dbus hal alsa cups rpcbind nfs-common nfs-server autofs slim)

Řešení 1× (martin knocik (tazatel))
11.7.2011 22:15 GAZDOWN | skóre: 7
Rozbalit Rozbalit vše Re: archlinux netcfg rc.conf
Máte pravdu, network odstranit z DAEMONS a nechat tam jen net-profiles, pak bude vše v naprosté pohodě.
12.7.2011 07:17 martin knocik | skóre: 14
Rozbalit Rozbalit vše Re: archlinux netcfg rc.conf
Odpovědět | | Sbalit | Link | Blokovat | Admin
Odstranil som network z daemonov. Ale pri štarte Xfce mi začalo vypisovať. Neviete čo s tým ? "Nemôžem nájsť internetovú adresu pre (none). Toto može zabrániť normálnemu behu Xfce. Chyba môže byť odstránená pridaním záznamu (none) do /etc/hosts vo svojom systéme.

Moj /etc/hosts vyzerá takto

#

# /etc/hosts: static lookup table for host names

#

#ip-address hostname.domain.org hostname

127.0.0.1 localhost.localdomain localhost archlinuxpc

# End of file

Router pomocou dhcp priraduje mojmu pc s archlinuxom adresu IP adresu 192.168.1.100 Ďakujem za pomoc

Řešení 1× (martin knocik (tazatel))
12.7.2011 07:47 Václav Kramář | skóre: 31 | Nechanice
Rozbalit Rozbalit vše Re: archlinux netcfg rc.conf
Slaď si HOSTNAME v /etc/rc.conf s /etc/hosts.
12.7.2011 09:03 martin knocik | skóre: 14
Rozbalit Rozbalit vše Re: archlinux netcfg rc.conf
ďakujem. pomohlo

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.