LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2012, 03:00 PM   #1
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Rep: Reputation: 31
Start "NetworkManager" at boot


Using openSuse 12.1 with Gnome and NetworkManager. I have to run root '/usr/sbin/NetworkManager' to start it. Is there a way to get it to automatically connect at boot?
 
Old 01-06-2012, 03:04 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If I am not mistaken, you can use chkconfig with suse 12.1.
Code:
chkconfig NetworkManager on
Make sure to run that as root.

Cheers,

Josh
 
Old 01-06-2012, 03:58 PM   #3
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Unhappy

Note: Forwarding request to 'systemctl is-enabled kexec.service'.
static
kexec on
lirc off
mdadmd off
microcode.ctl on
multipathd off
netstat off
network on
network-remotefs on
nfs off
nmb off
nscd on
ntp off
openvpn off
pm-profiler off
Note: Forwarding request to 'systemctl is-enabled postfix.service'.
disabled
postfix off
powerd off
purge-kernels on


Looks like it's on. Don't tell me I've been running the command line for a month when I didn't need to???

Thanks for the reply
 
Old 01-06-2012, 04:05 PM   #4
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Nah, I rebooted and it was off when it came up. I still had to run the command line to start 'NetworkManager'.
 
Old 01-06-2012, 04:31 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You should be able to run the following to get it to turn on at boot:
Code:
systemctl enable NetworkManager.service
 
Old 01-06-2012, 11:06 PM   #6
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Thanks for the help but it didn't work.
 
Old 01-10-2012, 07:10 PM   #7
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
If chkconfig doesn't work
(chkconfig NetworkManager --level 35 on)
and systemctl also doesn't work
systemctl enable NetworkManager.service

try to setup configuration files manualy

1. using systemd make the link:
ln -s /lib/systemd/system/NetworkManager.service /etc/systemd/system/multi-user.target.wants/NetworkManager.service

2.using sysv, make links
ln -s /etc/rc.d/NetworkManager /etc/rc.d/rc3.d/S23NetworkManager
ln -s /etc/rc.d/NetworkManager /etc/rc.d/rc5.d/S23NetworkManager
(there are missing stop service links, even it doesn't mind)
 
Old 01-10-2012, 08:55 PM   #8
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Thanks again, but neither worked. No errors, but didn't work.
 
Old 01-11-2012, 04:03 AM   #9
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
Well, see /var/log/messages
Are there any messages of NetworkManager?

What about boot.log? Please, post /var/log/boot.log

Are your interfaces really managed by NM?

Probably check your configuration files of NM.
http://live.gnome.org/NetworkManager/SystemSettings
 
Old 01-11-2012, 02:05 PM   #10
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
This never happened before. I can't copy the results from the terminal. But they say>'/var/log/boot.log-no> such file or directory', '/var/log/messages'> permission denied. I've seen no messages from NM.
 
Old 01-11-2012, 02:06 PM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You need to be root in order to access those files.
 
Old 01-11-2012, 02:11 PM   #12
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
I was.
 
Old 01-11-2012, 02:43 PM   #13
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
Do you use SELinux? Type 'id -Z', if you see something like 'unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023', the SELinux is enabled.

Try to disable SELinux '/etc/selinux/config'
line:
SELINUX=disabled
# intead of enforcing

You have to reboot to switch SELinux enable/disable

If that matter is because of SELinux wrong policy, you have access to /var/log/messages and /var/log/boot.log now and probably it could fix NM problem.
Well, finally I cannot say if it will be working. Your problem is very unusual.
 
Old 01-11-2012, 08:10 PM   #14
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
openSuse 12.1
 
Old 01-11-2012, 10:42 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Gnome NetworkManager is a graphical program and therefore can't be started before X is running, IIRC. Add it to the autostart list of your GUI environment.
 
  


Reply



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
[SOLVED] "/etc/init.d/apache2" start VS "apache2ctl start" with passenger module (ruby/rails) arond Linux - Server 1 12-13-2010 10:56 AM
[SOLVED] Ubuntu 9.04 boot hangs at "/etc/rc2.d/s00stop-readahead start" WonderLlama Linux - Newbie 3 04-27-2010 10:13 PM
Stuck on "GRUB_" Screen - Will boot from Live CD "Boot from first hard disk" option Snowman11 Linux - Newbie 10 02-01-2009 06:52 PM
"NetworkManager Applet" not reporting correct connection status Rehumanize Linux - Desktop 1 02-25-2008 01:54 PM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:02 AM.

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