Installing System-config-samba

If none of the more specific forums is the right place to ask

Installing System-config-samba

Postby rmcellig » 2013-05-07 10:13

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 :)
rmcellig
 
Posts: 5
Joined: 2013-05-04 16:12

Re: Installing System-config-samba

Postby Soapm » 2013-05-10 01:21

I never used Ubuntu but see if gadmin-samba is what you're looking for.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Installing System-config-samba

Postby verahill » 2013-05-10 06:30

Look here for build instructions: http://verahill.blogspot.com.au/2013/05/412-system-config-samba-on-debian.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.
User avatar
verahill
 
Posts: 327
Joined: 2012-05-29 07:03
Location: Australia

Re: Installing System-config-samba

Postby davekimble » 2015-06-24 06:31

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
davekimble
 
Posts: 2
Joined: 2015-06-24 06:04

Re: Installing System-config-samba

Postby RoundByte » 2018-04-12 03:00

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.
RoundByte
 
Posts: 2
Joined: 2016-09-09 00:01

Re: Installing System-config-samba

Postby gigabyte898 » 2018-05-05 18:51

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.
gigabyte898
 
Posts: 1
Joined: 2018-05-05 17:04

Re: Installing System-config-samba

Postby stevepusser » 2018-05-05 19:20

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.0.1, wine-staging 3.15, qBittorrent 4.1.2, Linux kernel 4.18.6, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9892
Joined: 2009-10-06 05:53


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable