Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-07-2016, 12:58 PM   #1
Registered: Mar 2005
Distribution: FreeSlack version of Slackware 14.1
Posts: 107

Rep: Reputation: 15
Getting networkmanager started in chroot environment

After screwing up changing lilo.conf and being unable to log back in, I decided to learn how to chroot into my root directory from the installation media and get basic resources working. I figured out how to chroot in (mounting /proc, /dev, and /sys, etc.) but I can't seem to get network manager working. I ran it, and got the error message that dbus needed to be running. So I started rc.messagebus. Then I could start network manager. But when I run nmtui, even though my wifi network shows when I choose to edit, it doesn't show up when I choose to activate. I ran nmtui-connect along with the ssid for my wifi connection and got the message that that ssid couldn't be found. Is there something else that needs to be running to get networkmanager started?
Old 09-08-2016, 12:48 AM   #2
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 547

Rep: Reputation: 72
If you are trying to chroot to fix something and need the Internet for it, don't start network-manager. Join your access point manually.
Old 09-08-2016, 04:25 AM   #3
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,052

Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
I use the wpa_supplicant approach.

My startup is here.

My /etc/wpa_supplicant.conf. The lines starting with #old require your local values (and the #old removed).
# See /usr/doc/wpa_supplicant-0.7.3/wpa_supplicant.conf.sample
# for many more options that you can use in this file.

# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
# By default, only root (group 0) may use wpa_cli

# WPA protected network, supply your own ESSID and WPAPSK here:
#  ssid="your_essid_here"
#old  ssid="OPTUSA4680E8"
# RSN is WPA2 protocol
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
#  psk=your_64_char_psk_here
# Format is one of:
#old  psk=a895812ddbd2c70ece741f4c2765da52e7da966829b91450fc731d4f63d83a68
#old  psk="PFSLYHUMQTHHSQH47982"

# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
Old 09-08-2016, 06:05 AM   #4
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,313

Rep: Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489Reputation: 5489
You can of course also follow the instructions on-screen when you boot the computer from your installation media. At the end of the boot, you will see these instructions:
In a pinch, you can boot your system from here with a command like:

boot: huge.s root=/dev/sda1 rdinit= ro 

In the example above, /dev/sda1 is the / Linux partition.
Note that there is a SPACE character between "rdinit=" and "ro".
Essentially, it allows you to boot your harddisk-installed Slackware with the kernel and initrd from the installation medium. No need for manual chroots or fussing with the rc scripts.
And when logged in, you can fix your /etc/lilo.conf and re-run the "lilo" command so that next time you do not have to use the installation medium to boot the computer.
4 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot environment shiva1990 Linux - Newbie 2 01-25-2011 09:55 AM
yum Error: NetworkManager conflicts with bind-chroot btb Fedora 1 10-21-2005 04:55 AM
getting started in chroot environment Mystified Linux From Scratch 3 03-28-2005 10:11 AM
Out of the chroot environment? R2RO Linux - Networking 0 05-14-2003 05:01 PM
Getting in and out and in again in the CHROOT environment? kRu_ZaDeR Linux From Scratch 8 01-13-2003 01:20 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration