Author Topic: Aiuto con Arch  (Read 4150 times)

ciccoale

  • Guest
Aiuto con Arch
« on: October 29, 2011, 12:45:44 AM »
ho appena insatallato arch...  :help: ho scelto la password.....  ma il nome per il login come si fa ad inserirlo???  :help:

Darko82

  • Guest
Re:Aiuto con Arch
« Reply #1 on: October 29, 2011, 12:48:34 AM »
Devi creare l'utente.

#adduser tuonome

Mi pare

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #2 on: October 29, 2011, 12:54:57 AM »
Devi creare l'utente.

#adduser tuonome

Mi pare

Ok sorry ho risolto!  :sorriso: Prima installazione di arch... non credevo fosse così tosto..... :ysy:
Il problema è che dovevo entrare prima da root!

Buntolo

  • Guest
Re:Aiuto con Arch
« Reply #3 on: October 29, 2011, 12:25:54 PM »
Nel processo di installazione di arch prima ti trovi a fare l'installazione base, poi al primo avvio senza cd ti trovi col solo account di root.

A quel punto devi creare un utente, aggiungerlo ad un gruppo che abbia i vari permessi spiegati nella wiki.

Poi installi il sistema grafico e tutto il resto.

turlando

  • Guest
Re:Aiuto con Arch
« Reply #4 on: October 29, 2011, 01:33:26 PM »
Ma leggere la wiki no eh?

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #5 on: October 29, 2011, 05:21:18 PM »
Ma leggere la wiki no eh?

Wiki è molto ampia e non è che c'è scritto tutto per filo e per segno, inoltre ho incontrato alcuni problemi che lì non vengono neanche menzionati, se a questo aggiungi il fatto che è la mia prima installazione di arch, è chiaro che posso fare delle cazzate, no?

AirPort

  • Guest
Re:Aiuto con Arch
« Reply #6 on: October 29, 2011, 05:24:36 PM »
Ma leggere la wiki no eh?

Wiki è molto ampia e non è che c'è scritto tutto per filo e per segno, inoltre ho incontrato alcuni problemi che lì non vengono neanche menzionati, se a questo aggiungi il fatto che è la mia prima installazione di arch, è chiaro che posso fare delle cazzate, no?

Segui questo e andrà tutto a buon fine :verovero:

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #7 on: October 29, 2011, 05:34:15 PM »
Ma leggere la wiki no eh?

Wiki è molto ampia e non è che c'è scritto tutto per filo e per segno, inoltre ho incontrato alcuni problemi che lì non vengono neanche menzionati, se a questo aggiungi il fatto che è la mia prima installazione di arch, è chiaro che posso fare delle cazzate, no?

Segui questo e andrà tutto a buon fine :verovero:

Grazie!  :sorriso:

AirPort

  • Guest
Re:Aiuto con Arch
« Reply #8 on: October 29, 2011, 05:35:57 PM »
Ma leggere la wiki no eh?

Wiki è molto ampia e non è che c'è scritto tutto per filo e per segno, inoltre ho incontrato alcuni problemi che lì non vengono neanche menzionati, se a questo aggiungi il fatto che è la mia prima installazione di arch, è chiaro che posso fare delle cazzate, no?

Segui questo e andrà tutto a buon fine :verovero:

Grazie!  :sorriso:

Di nulla, figurati. Un consiglio solo: se puoi guarda sempre la wiki inglese. Quella italiana è fatta bene, ma spesso quella inglese spesso è più aggiornata e a volte più dettagliata.

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #9 on: October 29, 2011, 05:41:58 PM »
Ma leggere la wiki no eh?

Wiki è molto ampia e non è che c'è scritto tutto per filo e per segno, inoltre ho incontrato alcuni problemi che lì non vengono neanche menzionati, se a questo aggiungi il fatto che è la mia prima installazione di arch, è chiaro che posso fare delle cazzate, no?

Segui questo e andrà tutto a buon fine :verovero:

Grazie!  :sorriso:

Di nulla, figurati. Un consiglio solo: se puoi guarda sempre la wiki inglese. Quella italiana è fatta bene, ma spesso quella inglese spesso è più aggiornata e a volte più dettagliata.
Sì infatti questa pagina spiega molto bene cosa fare e non l'ho trovata in italiano!

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #10 on: October 30, 2011, 04:29:57 AM »
 :mki: :love: :mki: :love:

Certo che arch e' veramente bella!   :mki:  ed e' velocissima rispetto ad ubuntu!   :wow:  Adesso devo risolvere alcuni problemini, ma il piu' e' fatto!  :tnz:

turlando

  • Guest
Re:Aiuto con Arch
« Reply #11 on: October 30, 2011, 05:26:50 PM »
m'accollo al topic.

domanda, ma arch, durante l'installazione, non dovrebbe, superata la fase di configurazione, dare un 'mkinitcpio' o simile?

perché non mi pare di leggere nulla di simile, e difatti dopo non parte, non riesce a montare i fs in LVM

ovviamente ho seguito questi 2 punti:

Quote
Assicurarsi di avere la riga USELVM="yes" in /etc/rc.conf, se la directory radice del sistema si trova su un Volume Logico. (Configure System)
Aggiungere lvm2 alla lista HOOKS in /etc/mkinitcpio.conf subito prima di filesystems così il kernel sarà in grado di accedere ai Volumi Logici in avvio del sistema. (Configure System)

al boot: ERROR: unable to determine major/minor number of root device '/dev/mapper/archlaptop-rootfs'.

Certo che sì. Non lo ha fatto? o.O Di che data è lo snapshot?

Buntolo

  • Guest
Re:Aiuto con Arch
« Reply #12 on: October 30, 2011, 10:58:24 PM »
cicco fai una cosa:
Code: [Select]
pacman -S bootchart
Poi cosa usi, grub 1 o grub 2?

grub 1:
con un editor di testo apri /boot/grub/menu.lst
vai alla riga kernel ed aggiungi init=/sbin/bootchartd
Deve venire tipo così:
Quote
# (1) Arch Linux Bootchart
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/d531ff5b-de65-499a-9942-d18682375163 ro quiet init=/sbin/bootchartd
initrd /initramfs-linux.img

grub 2:
per renderlo semi-permanente fai quanto sopra ma con /boot/grub/grub.cfg
Se vuoi renderlo davvero permanente chiedi.

Poi avvia arch, apri un terminale in una cartella (io ho creato "bootchart" sulla scrivania per farlo) e dai
Code: [Select]
bootchart-render

Poi mettimi qua i seguenti:
/etc/rc.conf
/etc/inittab
/etc/rc.sysinit
« Last Edit: October 31, 2011, 10:35:16 AM by SuNjACk »

ciccoale

  • Guest
Re:Aiuto con Arch
« Reply #13 on: October 30, 2011, 11:28:32 PM »
Cosa fa questo?

cicco fai una cosa:
Code: [Select]
pacman -S bootchart[code]

Poi cosa usi, grub 1 o grub 2?

grub 1:
con un editor di testo apri [b]/boot/grub/menu.lst[/b]
vai alla riga kernel ed aggiungi [b]init=/sbin/bootchartd[/b]
Deve venire tipo così:[quote]
# (1) Arch Linux Bootchart
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/d531ff5b-de65-499a-9942-d18682375163 ro quiet [b]init=/sbin/bootchartd[/b]
initrd /initramfs-linux.img[/quote]

grub 2:

per renderlo semi-permanente fai quanto sopra ma con [b]/boot/grub/grub.cfg[/b]
Se vuoi renderlo davvero permanente chiedi.

Poi avvia arch, apri un terminale in una cartella (io ho creato "bootchart" sulla scrivania per farlo) e dai
[code]bootchart-render


Quote
Poi mettimi qua i seguenti:
/etc/rc.conf
/etc/inittab
/etc/rc.sysinit

Code: [Select]
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
#   Note: Using "localtime" is discouraged, using "" makes hwclock fall back
#   to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
#   Note: if unset, the value in /etc/localtime is used unchanged
# 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.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Rome"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
#   Replace every !module by an entry as on the following line in a file in
#   /etc/modprobe.d:
#     blacklist module
#   See "man modprobe.conf" for details.
#
MODULES=(fuse)

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
#   - broadcast: broadcast address (ignored for DHCP) (optional)
#   - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=
netmask=
broadcast=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as 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 requires the netcfg package
#
#NETWORKS=(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
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(@hwclock @syslog-ng dbus network netfs crond gdm @sensor)

Code: [Select]
#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S) Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file

Code: [Select]
#!/bin/bash
#
# /etc/rc.sysinit
#

. /etc/rc.conf
. /etc/rc.d/functions

echo " "
printhl "Arch Linux\n"
printhl "${C_H2}http://www.archlinux.org"
printsep

# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
mountpoint -q /proc    || mount -n -t proc proc /proc -o nosuid,noexec,nodev
mountpoint -q /sys     || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev
mountpoint -q /run     || mount -n -t tmpfs run /run -o mode=0755,size=10M,nosuid,nodev
mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid \
|| mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
mkdir -p -m 1777 /run/lock
mkdir -p /dev/{pts,shm}
mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null \
|| mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
mountpoint -q /dev/shm || mount -n /dev/shm &>/dev/null \
|| mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev

# remount root ro to allow for fsck later on, we remount now to
# make sure nothing can open files rw on root which would block a remount
findmnt / --options ro &>/dev/null ||
status "Mounting Root Read-Only" mount -n -o remount,ro /

run_hook sysinit_start

# start up our mini logger until syslog takes over
minilogd
bootlogd -p /run/bootlogd.pid

if [[ ! -a /usr/lib ]] ; then
  printf "${C_FAIL}/usr is not mounted. This is not supported.${C_OTHER}\n"
fi

HWCLOCK_PARAMS="--systz"
case $HARDWARECLOCK in
"") ;;
UTC) HWCLOCK_PARAMS+=" --utc --noadjfile";;
localtime) HWCLOCK_PARAMS+=" --localtime --noadjfile";;
*) HWCLOCK_PARAMS="";;
esac

if [[ $HWCLOCK_PARAMS ]]; then
stat_busy "Adjusting system time and setting kernel timezone"
# enable rtc access
modprobe -q -a rtc-cmos rtc genrtc
# If devtmpfs is used, the required RTC device already exists now
# Otherwise, create whatever device is available
if ! [[ -c /dev/rtc || -c /dev/rtc0 ]]; then
for dev in /sys/class/rtc/rtc0/dev /sys/class/misc/rtc/dev; do
[[ -e $dev ]] || continue
IFS=: read -r major minor < "$dev"
mknod /dev/rtc c $major $minor
done
fi

# Adjust the system time for timezone offset if rtc is not in UTC
# 1. Make creation time on udev nodes sane (FS#8665)
# 2. Filesystem checks can depend on system time
# 3. This also sets the kernel time zone, used by e.g. vfat
# If TIMEZONE is not set in rc.conf, the timezone stored in /etc/localtime
# is used. If HARDWARECLOCK is not set in rc.conf, the value in
# /var/lib/hwclock/adjfile is used (in this case /var can not be a separate
# partition).
TZ=$TIMEZONE hwclock $HWCLOCK_PARAMS && stat_done || stat_fail
fi

# Start/trigger UDev, load MODULES and settle UDev
udevd_modprobe sysinit

# bring up the loopback interface
[[ -d /sys/class/net/lo ]] &&
status "Bringing up loopback interface" ip link set up dev lo

# FakeRAID devices detection
[[ $USEDMRAID = [Yy][Ee][Ss] && -x $(type -P dmraid) ]] &&
status "Activating FakeRAID arrays" dmraid -i -ay

# BTRFS devices detection
[[ $USEBTRFS = [Yy][Ee][Ss] && -x $(type -P btrfs) ]] &&
status "Activating BTRFS volumes" btrfs device scan

# Activate LVM2 groups if any
activate_vgs

# Set up non-root encrypted partition mappings
if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#] /etc/crypttab; then
stat_busy "Unlocking encrypted volumes:"
modprobe -q dm-crypt 2>/dev/null
do_unlock() {
# $1 = requested name
# $2 = source device
# $3 = password
# $4 = options
stat_append "${1}.."
local open=create a=$1 b=$2 failed=0
# Ordering of options is different if you are using LUKS vs. not.
# Use ugly swizzling to deal with it.
# isLuks only gives an exit code but no output to stdout or stderr.
if $CS isLuks "$2" 2>/dev/null; then
open=luksOpen
a=$2
b=$1
fi
case $3 in
SWAP)
local _overwriteokay=0
if [[ -b $2 && -r $2 ]]; then
# This is DANGEROUS! If there is any known file system,
# partition table, RAID or LVM volume on the device
# we don't overwrite it.
#
# 'blkid' returns 2 if no valid signature has been found.
# Only in this case we should allow overwriting the device.
#
# This sanity check _should_ be sufficient, but it might not.
# This may cause dataloss if it is not used carefully.
blkid -p "$2" &>/dev/null
(( $? == 2 )) && _overwriteokay=1
fi
if (( _overwriteokay == 0 )); then
false
elif $CS -d /dev/urandom $4 $open "$a" "$b" >/dev/null; then
stat_append "creating swapspace.."
mkswap -f -L $1 /dev/mapper/$1 >/dev/null
fi;;
ASK)
printf "\nOpening '$1' volume:\n"
$CS $4 $open "$a" "$b" < /dev/console;;
/dev*)
local ckdev=${3%%:*}
local cka=${3#*:}
local ckb=${cka#*:}
local cka=${cka%:*}
local ckfile=/dev/ckfile
local ckdir=/dev/ckdir
case ${cka} in
*[!0-9]*)
# Use a file on the device
# cka is not numeric: cka=filesystem, ckb=path
mkdir ${ckdir}
mount -r -t ${cka} ${ckdev} ${ckdir}
dd if=${ckdir}/${ckb} of=${ckfile} >/dev/null 2>&1
umount ${ckdir}
rmdir ${ckdir};;
*)
# Read raw data from the block device
# cka is numeric: cka=offset, ckb=length
dd if=${ckdev} of=${ckfile} bs=1 skip=${cka} count=${ckb} >/dev/null 2>&1;;
esac
$CS -d ${ckfile} $4 $open "$a" "$b" >/dev/null
dd if=/dev/urandom of=${ckfile} bs=1 count=$(stat -c %s ${ckfile}) conv=notrunc >/dev/null 2>&1
rm ${ckfile};;
/*)
$CS -d "$3" $4 $open "$a" "$b" >/dev/null;;
*)
echo "$3" | $CS $4 $open "$a" "$b" >/dev/null;;
esac
if (( $? )); then
failed=1
stat_append "failed "
else
stat_append "ok "
fi
return $failed
}
crypto_unlocked=0
read_crypttab do_unlock && stat_done || stat_fail
# Maybe someone has LVM on an encrypted block device
(( crypto_unlocked == 1 )) && activate_vgs
fi

# Check filesystems
[[ -f /forcefsck ]] || in_array forcefsck $(< /proc/cmdline) && FORCEFSCK="-- -f"
declare -r FORCEFSCK
run_hook sysinit_prefsck
if [[ -x $(type -P fsck) ]]; then
stat_busy "Checking Filesystems"
fsck_all >|"${FSCK_OUT:-/dev/stdout}" 2>|"${FSCK_ERR:-/dev/stdout}"
declare -r fsckret=$?
(( fsckret <= 1 )) && stat_done || stat_fail
else
declare -r fsckret=0
fi
run_hook sysinit_postfsck

# Single-user login and/or automatic reboot if needed
fsck_reboot $fsckret

status "Remounting Root Read/Write" \
mount -n -o remount,rw /

# don't touch /etc/mtab if it is a symlink to /proc/self/mounts
if [[ ! -L /etc/mtab ]]; then
stat_busy "Creating mtab"
rm -f /etc/mtab~* # delete any stale locks
if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
else
cat /proc/mounts >| /etc/mtab
fi
(( $? == 0 )) && stat_done || stat_fail
fi

# now mount all the local filesystems
run_hook sysinit_premount
status "Mounting Local Filesystems" \
mount_all
run_hook sysinit_postmount

# enable monitoring of lvm2 groups, now that the filesystems are mounted rw
[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
status "Activating monitoring of LVM2 groups" \
vgchange --monitor y >/dev/null

status "Activating Swap" swapon -a

[[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE"

RANDOM_SEED=/var/lib/misc/random-seed
[[ -f $RANDOM_SEED ]] &&
status "Initializing Random Seed" \
cp $RANDOM_SEED /dev/urandom

# Remove leftover files
remove_leftover

if [[ $HOSTNAME ]]; then
stat_busy "Setting Hostname: $HOSTNAME"
echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail
fi

if [[ ${LOCALE,,} =~ utf ]]; then
stat_busy "Setting Consoles to UTF-8 mode"
# UTF-8 consoles are default since 2.6.24 kernel
# this code is needed not only for older kernels,
# but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.
for i in /dev/tty[0-9]*; do
kbd_mode -u < ${i}
printf "\e%%G" > ${i}
done
echo 1 >| /sys/module/vt/parameters/default_utf8
stat_done
else
stat_busy "Setting Consoles to legacy mode"
# make non-UTF-8 consoles work on 2.6.24 and newer kernels
for i in /dev/tty[0-9]*; do
kbd_mode -a < ${i}
printf "\e%%@" > ${i}
done
echo 0 >| /sys/module/vt/parameters/default_utf8
stat_done
fi
[[ $KEYMAP ]] &&
status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP

# Set console font if required
set_consolefont

stat_busy "Saving dmesg Log"
if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
(( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then
install -Tm 0600 <( dmesg ) /var/log/dmesg.log
else
install -Tm 0644 <( dmesg ) /var/log/dmesg.log
fi
(( $? == 0 )) && stat_done || stat_fail

run_hook sysinit_end

# End of file
# vim: set ts=2 sw=2 noet:


Buntolo

  • Guest
Re:Aiuto con Arch
« Reply #14 on: October 30, 2011, 11:49:15 PM »
Le modifiche al grub ti fanno partire bootchart all'avvio, bootchart serve per misurare i tempi di avvio, qua la wiki:


Modifica la riga demoni in rc.conf da:
DAEMONS=(@hwclock @syslog-ng dbus network netfs crond gdm @sensor)

a:
DAEMONS=(hwclock syslog-ng dbus @gdm @sensor @crond @network @netfs)

Per la parte di rete si potrebbe anche commentarla tutta con # e demandare tutto al gestore di rete, ormai il suggerimento (ed il futuro andazzo) è quello.


Per inittab ho modificato i wait in once e tieni solo 2 terminali:
Code: [Select]
#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S) Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:once:/etc/rc.single
rm:2345:once:/etc/rc.multi
rh:06:once:/etc/rc.shutdown
su:S:once:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
#c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file


Per sysinit ho tolto la roba riguardo a RAID, LVM e cazzate varie:
Code: [Select]
#!/bin/bash
#
# /etc/rc.sysinit
#

. /etc/rc.conf
. /etc/rc.d/functions

echo " "
printhl "Arch Linux\n"
printhl "${C_H2}http://www.archlinux.org"
printsep

# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
mountpoint -q /proc    || mount -n -t proc proc /proc -o nosuid,noexec,nodev
mountpoint -q /sys     || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev
mountpoint -q /run     || mount -n -t tmpfs run /run -o mode=0755,size=10M,nosuid,nodev
mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid \
|| mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
mkdir -p -m 1777 /run/lock
mkdir -p /dev/{pts,shm}
mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null \
|| mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
mountpoint -q /dev/shm || mount -n /dev/shm &>/dev/null \
|| mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev

# remount root ro to allow for fsck later on, we remount now to
# make sure nothing can open files rw on root which would block a remount
findmnt / --options ro &>/dev/null ||
status "Mounting Root Read-Only" mount -n -o remount,ro /

run_hook sysinit_start

# start up our mini logger until syslog takes over
minilogd
bootlogd -p /run/bootlogd.pid

if [[ ! -a /usr/lib ]] ; then
  printf "${C_FAIL}/usr is not mounted. This is not supported.${C_OTHER}\n"
fi

HWCLOCK_PARAMS="--systz"
case $HARDWARECLOCK in
"") ;;
UTC) HWCLOCK_PARAMS+=" --utc --noadjfile";;
localtime) HWCLOCK_PARAMS+=" --localtime --noadjfile";;
*) HWCLOCK_PARAMS="";;
esac

if [[ $HWCLOCK_PARAMS ]]; then
stat_busy "Adjusting system time and setting kernel timezone"
# enable rtc access
modprobe -q -a rtc-cmos rtc genrtc
# If devtmpfs is used, the required RTC device already exists now
# Otherwise, create whatever device is available
if ! [[ -c /dev/rtc || -c /dev/rtc0 ]]; then
for dev in /sys/class/rtc/rtc0/dev /sys/class/misc/rtc/dev; do
[[ -e $dev ]] || continue
IFS=: read -r major minor < "$dev"
mknod /dev/rtc c $major $minor
done
fi

# Adjust the system time for timezone offset if rtc is not in UTC
# 1. Make creation time on udev nodes sane (FS#8665)
# 2. Filesystem checks can depend on system time
# 3. This also sets the kernel time zone, used by e.g. vfat
# If TIMEZONE is not set in rc.conf, the timezone stored in /etc/localtime
# is used. If HARDWARECLOCK is not set in rc.conf, the value in
# /var/lib/hwclock/adjfile is used (in this case /var can not be a separate
# partition).
TZ=$TIMEZONE hwclock $HWCLOCK_PARAMS && stat_done || stat_fail
fi

# Start/trigger UDev, load MODULES and settle UDev
udevd_modprobe sysinit

# bring up the loopback interface
[[ -d /sys/class/net/lo ]] &&
status "Bringing up loopback interface" ip link set up dev lo

# FakeRAID devices detection
[[ $USEDMRAID = [Yy][Ee][Ss] && -x $(type -P dmraid) ]] &&
status "Activating FakeRAID arrays" dmraid -i -ay

# BTRFS devices detection
[[ $USEBTRFS = [Yy][Ee][Ss] && -x $(type -P btrfs) ]] &&
status "Activating BTRFS volumes" btrfs device scan

# Activate LVM2 groups if any
activate_vgs

# Set up non-root encrypted partition mappings
#if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#] /etc/crypttab; then
# stat_busy "Unlocking encrypted volumes:"
# modprobe -q dm-crypt 2>/dev/null
# do_unlock() {
# # $1 = requested name
# # $2 = source device
# # $3 = password
# # $4 = options
# stat_append "${1}.."
# local open=create a=$1 b=$2 failed=0
# # Ordering of options is different if you are using LUKS vs. not.
# # Use ugly swizzling to deal with it.
# # isLuks only gives an exit code but no output to stdout or stderr.
# if $CS isLuks "$2" 2>/dev/null; then
# open=luksOpen
# a=$2
# b=$1
# fi
# case $3 in
# SWAP)
# local _overwriteokay=0
# if [[ -b $2 && -r $2 ]]; then
# # This is DANGEROUS! If there is any known file system,
# # partition table, RAID or LVM volume on the device
# # we don't overwrite it.
# #
# # 'blkid' returns 2 if no valid signature has been found.
# # Only in this case we should allow overwriting the device.
# #
# # This sanity check _should_ be sufficient, but it might not.
# # This may cause dataloss if it is not used carefully.
# blkid -p "$2" &>/dev/null
# (( $? == 2 )) && _overwriteokay=1
# fi
# if (( _overwriteokay == 0 )); then
# false
# elif $CS -d /dev/urandom $4 $open "$a" "$b" >/dev/null; then
# stat_append "creating swapspace.."
# mkswap -f -L $1 /dev/mapper/$1 >/dev/null
# fi;;
# ASK)
# printf "\nOpening '$1' volume:\n"
# $CS $4 $open "$a" "$b" < /dev/console;;
# /dev*)
# local ckdev=${3%%:*}
# local cka=${3#*:}
# local ckb=${cka#*:}
# local cka=${cka%:*}
# local ckfile=/dev/ckfile
# local ckdir=/dev/ckdir
# case ${cka} in
# *[!0-9]*)
# # Use a file on the device
# # cka is not numeric: cka=filesystem, ckb=path
# mkdir ${ckdir}
# mount -r -t ${cka} ${ckdev} ${ckdir}
# dd if=${ckdir}/${ckb} of=${ckfile} >/dev/null 2>&1
# umount ${ckdir}
# rmdir ${ckdir};;
# *)
# # Read raw data from the block device
# # cka is numeric: cka=offset, ckb=length
# dd if=${ckdev} of=${ckfile} bs=1 skip=${cka} count=${ckb} >/dev/null 2>&1;;
# esac
# $CS -d ${ckfile} $4 $open "$a" "$b" >/dev/null
# dd if=/dev/urandom of=${ckfile} bs=1 count=$(stat -c %s ${ckfile}) conv=notrunc >/dev/null 2>&1
# rm ${ckfile};;
# /*)
# $CS -d "$3" $4 $open "$a" "$b" >/dev/null;;
# *)
# echo "$3" | $CS $4 $open "$a" "$b" >/dev/null;;
# esac
# if (( $? )); then
# failed=1
# stat_append "failed "
# else
# stat_append "ok "
# fi
# return $failed
# }
# crypto_unlocked=0
# read_crypttab do_unlock && stat_done || stat_fail
# # Maybe someone has LVM on an encrypted block device
# (( crypto_unlocked == 1 )) && activate_vgs
#fi

# Check filesystems
[[ -f /forcefsck ]] || in_array forcefsck $(< /proc/cmdline) && FORCEFSCK="-- -f"
declare -r FORCEFSCK
run_hook sysinit_prefsck
if [[ -x $(type -P fsck) ]]; then
stat_busy "Checking Filesystems"
fsck_all >|"${FSCK_OUT:-/dev/stdout}" 2>|"${FSCK_ERR:-/dev/stdout}"
declare -r fsckret=$?
(( fsckret <= 1 )) && stat_done || stat_fail
else
declare -r fsckret=0
fi
run_hook sysinit_postfsck

# Single-user login and/or automatic reboot if needed
fsck_reboot $fsckret

status "Remounting Root Read/Write" \
mount -n -o remount,rw /

# don't touch /etc/mtab if it is a symlink to /proc/self/mounts
if [[ ! -L /etc/mtab ]]; then
stat_busy "Creating mtab"
rm -f /etc/mtab~* # delete any stale locks
if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
else
cat /proc/mounts >| /etc/mtab
fi
(( $? == 0 )) && stat_done || stat_fail
fi

# now mount all the local filesystems
run_hook sysinit_premount
status "Mounting Local Filesystems" \
mount_all
run_hook sysinit_postmount

# enable monitoring of lvm2 groups, now that the filesystems are mounted rw
#[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
# status "Activating monitoring of LVM2 groups" \
# vgchange --monitor y >/dev/null

status "Activating Swap" swapon -a

[[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE"

RANDOM_SEED=/var/lib/misc/random-seed
[[ -f $RANDOM_SEED ]] &&
status "Initializing Random Seed" \
cp $RANDOM_SEED /dev/urandom

# Remove leftover files
remove_leftover

if [[ $HOSTNAME ]]; then
stat_busy "Setting Hostname: $HOSTNAME"
echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail
fi

if [[ ${LOCALE,,} =~ utf ]]; then
stat_busy "Setting Consoles to UTF-8 mode"
# UTF-8 consoles are default since 2.6.24 kernel
# this code is needed not only for older kernels,
# but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.
for i in /dev/tty[0-9]*; do
kbd_mode -u < ${i}
printf "\e%%G" > ${i}
done
echo 1 >| /sys/module/vt/parameters/default_utf8
stat_done
else
stat_busy "Setting Consoles to legacy mode"
# make non-UTF-8 consoles work on 2.6.24 and newer kernels
for i in /dev/tty[0-9]*; do
kbd_mode -a < ${i}
printf "\e%%@" > ${i}
done
echo 0 >| /sys/module/vt/parameters/default_utf8
stat_done
fi
[[ $KEYMAP ]] &&
status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP

# Set console font if required
set_consolefont

stat_busy "Saving dmesg Log"
if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
(( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then
install -Tm 0600 <( dmesg ) /var/log/dmesg.log
else
install -Tm 0644 <( dmesg ) /var/log/dmesg.log
fi
(( $? == 0 )) && stat_done || stat_fail

run_hook sysinit_end

# End of file
# vim: set ts=2 sw=2 noet: