Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing System-config-samba

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
rmcellig
Posts: 5
Joined: 2013-05-04 16:12

Installing System-config-samba

#1 Post by rmcellig »

I use this GUI app alot when I was using Ubuntu. Very simple to use. I want to use it in my new Debian 7 xfce install. My understanding is that I would have to build a deb from source to allow me to use this app? If this is the case, what is the best (easiest) way to do this. I saw some videos in Youtube but I'm not sure if things have changed with the new Debian 7. I have never used Debian before so if possible, go easy on me :)

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Installing System-config-samba

#2 Post by Soapm »

I never used Ubuntu but see if gadmin-samba is what you're looking for.

User avatar
verahill
Posts: 332
Joined: 2012-05-29 07:03
Location: Australia

Re: Installing System-config-samba

#3 Post by verahill »

Look here for build instructions: http://verahill.blogspot.com.au/2013/05 ... ebian.html

In brief, download the source code and patch from canonical (it's a redhat tool though -- not made by canonical), extract and apply the patch, then build with debhelper, create a dummy /etc/libuser.conf, and install.

Code: Select all

wget https://launchpad.net/ubuntu/+archive/primary/+files/system-config-samba_1.2.63.orig.tar.gz
tar xvf system-config-samba_1.2.63.orig.tar.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/system-config-samba_1.2.63-0ubuntu5.diff.gz
gunzip system-config-samba_1.2.63-0ubuntu5.diff.gz
patch -p0 < system-config-samba_1.2.63-0ubuntu5.diff
cd system-config-samba-1.2.63/
dpkg-buildpackage -uc -us
sudo dpkg -i ../system-config-samba_1.2.63-0ubuntu5_all.deb
sudo touch /etc/libuser.conf
gksu system-config-samba
It seems a bit slow though.
--------------------------------------------------
http://verahill.blogspot.com
OPs: don't forget to mark your (first) post as solved when the issue has been resolved.

davekimble
Posts: 6
Joined: 2015-06-24 06:04

Re: Installing System-config-samba

#4 Post by davekimble »

After weeks of wrestling with Gadmin-samba with no success, and using system-config-samba without trouble on my Ubuntu boxes, if finally decided to take the plunge and follow verahill's commands to build system-config-samba on my RaspberryPi 1 with Raspian (Debian Wheezy).

It worked ! Some dependencies were missing, but were all in the Debian repository.
On running system-config-samba, the old gadmin smb.conf was backed up and a new copy created, which contained all sorts of weird shares that I suppose I had tried before, and some lines it flagged it didn't understand and I commented out. After tidying that up I created a new share without problems.

Thank you so much for that. :D

RoundByte
Posts: 2
Joined: 2016-09-09 00:01

Re: Installing System-config-samba

#5 Post by RoundByte »

Sadly, looks like the needed dependency python-central is lost at sea, here: https://tracker.debian.org/pkg/python-central. So building system-config-samba goes down with it.

gigabyte898
Posts: 1
Joined: 2018-05-05 17:04

Re: Installing System-config-samba

#6 Post by gigabyte898 »

I was able to install this despite the depreciated packages. You can download the python-central deb package Here.

Follow the steps in Verahill's response up to the point where you build it. Install the python-central package and install the following dependencies:

Code: Select all

cdbs (>= 0.4.43), debhelper (>= 5.0.38), quilt, intltool, python-central (>= 0.5.6), python-all-dev (>= 2.3.5-11), pkg-config, gnome-doc-utils
The part that really tripped me up was the following error message during the build:

Code: Select all

dh_desktop
make: dh_desktop: Command not found
debian/rules:15: recipe for target 'binary-install/system-config-samba' failed
make: *** [binary-install/system-config-samba] Error 127
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
This error arises because the current package for DebHelper does not have the dh_desktop command in it. That component looks to have been depreciated in 2016. You can still get it back if you remove your current debhelper package and install this archived version in its place.

After installing the dependencies run the buildpackage command and it should complete successfully. Don't forget to touch /etc/libuser.conf or the program won't start, and also remove the archived version of DebHelper and update back to the most current one.

EDIT: Or just use stevepusser's method with dh_python. I tend to overcomplicate things
Last edited by gigabyte898 on 2018-05-05 19:57, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Installing System-config-samba

#7 Post by stevepusser »

Nonsense, just build it using the current dh_python method. If you don't know what that means, you can use the version in the MX 17 repo: http://mxrepo.com/mx/repo/pool/main/s/s ... fig-samba/ for Stretch.

But why on Earth are you installing Wheezy, when support for it ends this month? Just install Stretch, for Pete's sake.
MX Linux packager and developer

Post Reply