LinuxForum.Fans
Тема

Вопросы новичка по Funtoo

Автор: SidER 325 сообщений 56124 просмотров
#226794

# cd /etc/init.d
# ln -s netif.tmpl netif.eth0
# rc-update add netif.eth0 default
# echo template=dhcpcd > /etc/conf.d/netif.eth0
# rc (to start)
Делал так. Но почему то ругается.

Показать
text
rc
 * Caching service dependencies ...                                       [ ok ]
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /libexec/rc/init.d/softlevel
 * ERROR: sysfs failed to start
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /libexec/rc/init.d/softlevel
 * ERROR: dmesg failed to start
 * ERROR: cannot start udev-mount as sysfs would not start
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /libexec/rc/init.d/softlevel
 * ERROR: devfs failed to start
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /libexec/rc/init.d/softlevel
 * ERROR: netif.lo failed to start
 * ERROR: cannot start udevd as sysfs would not start

Настроить надо просто чтобы получал по dhcp от роутера

#226795

tyrnov, на каком этапе установки вы это выполняете — в chroot'е или установленной системе?
sys-apps/openrc установлен?
sysfs в ядре включён?

text

zegrep SYSFS /proc/config.gz 
#226796

На этапе chroot. Потому что с ядром что то накосячил получил кернел паник.
sys-apps/openrc не ставил
Сейчас заодно и гляну ядро пересобирать буду. Надо включить sysfs ?

#226798
tyrnov написал:
Надо включить sysfs ?
tyrnov написал:

* ERROR: netif.lo failed to start
* ERROR: cannot start udevd as sysfs would not start
tyrnov написал:
sys-apps/openrc не ставил
text
lupo@gentoo-laptop /etc % equery b /etc/init.d/sysfs
 * Searching for /etc/init.d/sysfs ... 
sys-apps/openrc-0.8.3-r5 (/etc/init.d/sysfs)
#226800
tyrnov написал:
На этапе chroot.

У вас после загрузки с «живого» диска и до перехода в chroot подключение к сети есть?

#226801
text
zegrep SYSFS /proc/config.gz 
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_ISCSI_BOOT_SYSFS=m
CONFIG_VIDEO_PVRUSB2_SYSFS=y
# CONFIG_DMI_SYSFS is not set
CONFIG_SYSFS=y

sys-apps/openrc-0.8.3-r5 а это стоит оказывается

#226802
text
ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:50:8d:91:74:32  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8dff:fe91:7432/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5526 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3959 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6881843 (6.5 MiB)  TX bytes:423344 (413.4 KiB)
          Interrupt:45 Base address:0x4000 

Да

#226803

Вы пытаетесь делать rc в чруте?

#226805

tyrnov, тогда зачем ещё раз сеть поднимать? ...да и выполнять rc (запуск скриптов инициализации системы) поверх запущенных тоже, думаю, ни к чему. wink

#226835

metalog то я поставил но не вижу теперь в логах привычного файла messages

#226845

А alsa выпилино чтоли? Что тогда поставить?

text
emerge alsa -av

* IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news to read news items.

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "alsa".

emerge: searching for similar names... emerge: Maybe you meant any of these: sci-electronics/balsa, mail-client/balsa, app-text/asa, dev-python/pyalsa?

* IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news to read news items.

#226849

И когда иксы ставишь забыл сейчас hal нужен?

text
emerge xorg-x11 xterm nvidea-drevers

хватит

#226850
tyrnov написал:
А alsa выпилино чтоли? Что тогда поставить?

Этот пакет так никогда и не назывался, если мне не изменяет память.
Включить alsa в ядре

text
───────────────────────────────────────────────── Advanced Linux Sound Architecture ──────────────────────────────────────────────────┐
  │ CONFIG_SND:                                                                                                                          │  
  │                                                                                                                                      │  
  │ Say 'Y' or 'M' to enable ALSA (Advanced Linux Sound Architecture),                                                                   │  
  │ the new base sound system.                                                                                                           │  
  │                                                                                                                                      │  
  │ For more information, see <http://www.alsa-project.org/>                                                                             │  
  │                                                                                                                                      │  
  │ Symbol: SND [=m]                                                                                                                     │  
  │ Type  : tristate                                                                                                                     │  
  │ Prompt: Advanced Linux Sound Architecture                                                                                            │  
  │   Defined at sound/Kconfig:64                                                                                                        │  
  │   Depends on: SOUND [=y] && !M68K && !UML                                                                                            │  
  │   Location:                                                                                                                          │  
  │     -> Device Drivers                                                                                                                │  
  │       -> Sound card support (SOUND [=y])

...и установить необходимые программы и библиотеки

text

gentoo-laptop linux # eix -Ic alsa
[i] media-libs/alsa-lib (1.0.25-r1@30.01.2012): Advanced Linux Sound Architecture Library
[i] media-plugins/gst-plugins-alsa (0.10.35(0.10)@02.08.2011): plugin for gstreamer
[i] media-sound/alsa-headers (1.0.25@27.01.2012): Header files for Advanced Linux Sound Architecture kernel modules
[u] media-sound/alsa-utils (1.0.24.2-r1(0.9)@02.08.2011 -> (~)1.0.25(0.9)): Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)
Found 4 matches
#226851
tyrnov написал:
И когда иксы ставишь забыл сейчас hal нужен?
text
emerge xorg-x11 xterm nvidea-drevers

хватит

hal не нужен.
Убедиться, что в /etc/make.conf есть примерно такие строки

text

INPUT_DEVICES="synaptics evdev"
VIDEO_CARDS="nvidia"
ALSA_CARDS="hda-intel usb-audio"

Ну и USE-флаг включен, можно и глобально.
Вместо

text

emerge xorg-x11

...советую

text

emerge xorg-server

...меньше лишнего будет.

#226852

ну может быть. последний раз давно ставил забыл уже как я ее ставил

#226855
text
cat /etc/make.conf
# These settings were set by the metro build script that automatically built this stage.
# Please consult /etc/make.conf.example for a more detailed example.

ACCEPT_KEYWORDS="~amd64" CHOST="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CXXFLAGS="-O2 -march=k8 -pipe" SYNC="git://github.com/funtoo/ports-2012.git"

USE="-a52 accessibility -amr alsa atm -avahi \ cairo consolekit bindist branding dbus djvu dvd -dvdnav ffmpeg \ flac -faac fbcondecor \ gif gpm -hal jpeg kde libnotify loop-aes \ matroska mmx mng mp3 mp4 mpeg mpeg2 mpeg4pt2 \ networkmanager nouveau ogg opengl policykit portaudio png \ gpm qt3support gt4 -real socks5 sse sse2 emantic-desktop \ tiff truetype vino -x264 xvid X usb"

ALSA_CARDS="snd_hda_intel" VIDEO_CARDS="nvidia" INPUT_DEVICES="evdev synaptics virtualbox" MAKEOPTS="-j3" LINGUAS="ru en"

virtualbox наверн лишний

#226859
tyrnov написал:
virtualbox наверн лишний

Вам решать wink

tyrnov написал:
emantic-desktop

Такого флага нет smile

#226861
tyrnov написал:
nouveau
tyrnov написал:
VIDEO_CARDS="nvidia"

Определитесь wink
Хотя и флага nouveau я тоже не нашёл.

#226892

emantic-desktop nouveau убрал virtualbox зачем вобще может быть нужен? зачем то ставил раньше а зачем уже и не помню

Войдите или зарегистрируйтесь, чтобы ответить.