Portál AbcLinuxu, 8. listopadu 2025 10:56
IPADDR=192.168.123.100 NETMASK=255.255.255.0 NETWORK=192.168.123.0 BROADCAST=192.168.123.255 GATEWAY=192.168.123.254 DNS=192.168.123.254 DHCPSID=192.168.123.254 DHCPGIADDR=0.0.0.0 DHCPSIADDR=0.0.0.0 DHCPCHADDR=00:11:09:8C:BA:1D DHCPSHADDR=00:C0:49:EB:31:6A DHCPSNAME='' LEASETIME=3600000 RENEWALTIME=1800000 REBINDTIME=3150000 INTERFACE='eth0' CLASSID='Linux 2.6.16 i686' CLIENTID=00:11:09:8C:BA:1DPo skončení instalace je v rc.conf
# # /etc/rc.conf - Main Configuration for Arch Linux # # # ----------------------------------------------------------------------- # LOCALIZATION # ----------------------------------------------------------------------- # # LOCALE: available languages can be listed with the 'locale -a' command # HARDWARECLOCK: set to "UTC" or "localtime" # TIMEZONE: timezones are found in /usr/share/zoneinfo # KEYMAP: keymaps are found in /usr/share/kbd/keymaps # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US) # CONSOLEMAP: found in /usr/share/kbd/consoletrans # USECOLOR: use ANSI color sequences in startup messages # LOCALE="en_US.utf8" HARDWARECLOCK="localtime" TIMEZONE="Canada/Pacific" KEYMAP="us" CONSOLEFONT= CONSOLEMAP= USECOLOR="yes" # # ----------------------------------------------------------------------- # HARDWARE # ----------------------------------------------------------------------- # # Scan hardware and load required modules at bootup MOD_AUTOLOAD="yes" # Module Blacklist - modules in this list will never be loaded by udev MOD_BLACKLIST=() # # Modules to load at boot-up (in this order) # - prefix a module with a ! to blacklist it # MODULES=() # Scan for LVM volume groups at startup, required if you use LVM USELVM="no" # # ----------------------------------------------------------------------- # NETWORKING # ----------------------------------------------------------------------- # HOSTNAME="myhost" # # 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 # # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp") # lo="lo 127.0.0.1" eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" INTERFACES=(lo 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-profiles # #NET_PROFILES=(main) # # ----------------------------------------------------------------------- # 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 netfs crond) # End of file
# # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp") #
bash-3.1# pacman -Ss
error: no targets specified
usage: pacman {-S --sync} [options] [package]
options:
-c, --clean remove old packages from cache directory (use -cc for all) -d, --nodeps skip dependency checks
-f, --force force install, overwrite conflicting files
-g, --groups view all members of a package group
-i, --info view package information
-l, --list list all packages belonging to the specified repository
-p, --print-uris print out download URIs for each package to be installed
-s, --search search remote repositories for matching regexps
-u, --sysupgrade upgrade all packages that are out of date
-w, --downloadonly download packages but do not install/upgrade anything
-y, --refresh download fresh package databases from the server
--ignore <pkg&g ignore a package upgrade (can be used more than once)
--config <path> set an alternate configuration file
--noconfirm do not ask for any confirmation
--noprogressbar do not show a progress bar when downloading files
-v, --verbose be verbose
-r, --root <path> set an alternate installation root
-b, --dbpath <path> set an alternate database location
error: could not open sync database: extra
have you used --refresh yet?
bash-3.1#
bash-3.1# pacman -S links
error: could not open sync database: extra
have you used --refresh yet?
bash-3.1# pacman -Ss
error: no targets specified
usage: pacman {-S --sync} [options] [package]
options:
-c, --clean remove old packages from cache directory (use -cc for all) -d, --nodeps skip dependency checks
-f, --force force install, overwrite conflicting files
-g, --groups view all members of a package group
-i, --info view package information
-l, --list list all packages belonging to the specified repository
-p, --print-uris print out download URIs for each package to be installed
-s, --search search remote repositories for matching regexps
-u, --sysupgrade upgrade all packages that are out of date
-w, --downloadonly download packages but do not install/upgrade anything
-y, --refresh download fresh package databases from the server
--ignore <pkg> ignore a package upgrade (can be used more than once)
--config <path> set an alternate configuration file
--noconfirm do not ask for any confirmation
--noprogressbar do not show a progress bar when downloading files
-v, --verbose be verbose
-r, --root <path> set an alternate installation root
-b, --dbpath <path> set an alternate database location
error: could not open sync database: extra
have you used --refresh yet?
bash-3.1# pacman -S links
error: could not open sync database: extra
have you used --refresh yet?
pacman -Sy
ping? ping 194.228.32.3 (IP adresa www.seznam.cz) ti rekne, jestli sit funguje.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.