LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-22-2014, 05:03 PM   #1
jgrim
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Using connman with Slackware 14.1


I am trying to use Connman instead of Network Manager in Slackware 14.1. I've downloaded, compiled and installed connman 1.23 from source, but now I am uncertain how to make it start with init. Is it enough to add "su /usr/sbin/connmand" to rc.local, or should I edit the appropriate rc.<runlevel> scripts to start/stop the thing?

The documentation for Connman is a bit light and everything I've read so far has to do with starting it with systemd, not init.

Anyone running this way that can provide some insight?
 
Old 04-22-2014, 05:11 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
willysr has provided all that's needed to make and install a connman Slackware package here.

Oh, and if you intend to use Slackware, making Slackware packages instead of manually compiling and installing the software eases maintenance by large.

Last edited by Didier Spaier; 04-22-2014 at 05:14 PM.
 
Old 04-22-2014, 06:57 PM   #3
jgrim
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Didier, I'll give that package a try this evening.

One of the reasons that I enjoy using Slackware is that package management is minimal. I like learning and knowing what is going on under the hood. I will probably take willysr's package apart to see what it does and then do those things myself.

I'll be interested to see if he had to add "-lncurses" to make it compile.
 
Old 04-23-2014, 03:15 AM   #4
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by jgrim View Post
..or should I edit the appropriate rc.<runlevel> scripts to start/stop the thing?
yes

i added to Willy's script, to the "stop" function
Code:
connmand_stop() {
  killall connmand 2> /dev/null
  killall wpa_supplicant 2> /dev/null
  killall connman-vpnd 2> /dev/null
}
 
Old 04-23-2014, 04:03 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by jgrim View Post
[...] or should I edit the appropriate rc.<runlevel> scripts to start/stop the thing?
No. the /etc/rc.d/rc.<numbered_runlevel> structure is not used by Slackware per se as stated in /etc/rc.d/init.d/README.fuctions :
Code:
If you're reading this in /etc/init.d/, Slackware's real init directory is
/etc/rc.d/.  Maybe you already knew this, but it never hurts to say.  :-)

This script was taken from Fedora (and is presumably licensed under the GPL).
While I don't see Slackware init scripts making much use of it (but use it
if you wish), some third party init scripts (such as for commercial software
designed to run on Red Hat based systems) expect this script and use it in
their own init scripts, so it's a good idea to make it available here.

These functions are provided solely for commercial (or other) software that
expects to find "Red Hat-isms".  I wouldn't use them to write new init
scripts (personally), but if you've had experience with them in the past
and like them, by all means feel free.

It's planned to continue support for them.

Last edited by Didier Spaier; 04-23-2014 at 04:05 AM.
 
Old 04-23-2014, 04:16 AM   #6
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
i should read better
thx Didier
 
Old 04-23-2014, 05:09 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I think i already mention it on the README
Quote:
You must give execute permission on /etc/rc.d/rc.connmand and run
/etc/rc.d/rc.connmand start before you can use this application

To make this process repeated on every boot sequence, add this line
in your /etc/rc.d/rc.local:

if [ -x /etc/rc.d/rc.connmand ]; then
/etc/rc.d/rc.connmand start
fi
 
Old 04-23-2014, 10:19 AM   #8
jgrim
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Fixed!

Thanks Didier for the guidance and willysr for the excellent SlackkBuild package!

Is it just me or do most people who use connman also use Enlightenment and eConnman? That's the only reason I wanted it.
 
Old 04-23-2014, 10:50 AM   #9
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
When I run enlightenment window manager on my Slack 14.1 x86_64 I use the slacke17 package (available from sourceforge.com), which has the connman removed. Then I add the systray module and already available in Slackware nm-applet to show in the systray. That way I don't have to struggle with building connman, which is reported as unstable by the slacke17 maintainer. Additionally, by using network manager and nm-applet there is consistency across the window managers that I alternate between. I find my Slackware is more stable and consistent if I only use slackpkg or sbopkg as my application packages and not try to build packages as a newbie.
 
  


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] Beagleboard Black static IPv4 connman difficulties rtmistler Linux - Embedded & Single-board computer 2 01-15-2014 07:22 AM
Slightly newbie: configuring either NetworkManager or Connman for E17 Something Else Linux - Networking 2 05-16-2013 04:10 PM
[SOLVED] Connman borked my Network cov Linux - Networking 3 07-18-2012 03:50 PM
Debian Squeeze - Connman Does not see network Interfaces Jeff91 Linux - Software 0 06-24-2011 08:57 AM
LXer: Intel, Nokia Further Push ConnMan Software LXer Syndicated Linux News 0 06-23-2009 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:44 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