Anyway, someone at forums.debian.net asked for it, which got me thinking about making a post:
sudo apt-get install build-essential gfortran checkinstall python-all-dev cdbs debhelper quilt intltool python-central rarian-compat pkg-config gnome-doc-utils samba python-libuser libuser1 python-glade2 mkdir ~/tmp cd ~/tmp 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
And here we go:
i.e. it at the very least reads my /etc/samba/smb.conf accurately.
To make system-config-samba show up in your gnome menus, add it via Main Menu. Make sure to include gksu in the command to launch it.
Thanks a million! This worked like a champ on #! Waldorf.
ReplyDeleteBeen looking for something like this for awhile thank you!
ReplyDeleteHi there, i have an debian8 jessie 3.16 and there isn't any python-central package, so it is not possible to build the package.... :(
ReplyDeleteYou should get the python-central package from debian wheezy (https://packages.debian.org/wheezy/python-central) and then run the command sudo dpkg -i /python-central_0.6.17_all.deb.
DeleteI had the same issue while trying to build system-config-samba and that solved my problem. The Samba System Configuration GUI works like a charm!
--Geert
hi there python-central isn't available in jessie or debian8 so it is needed to download it from wheezy and then you are able to build the .deb package
ReplyDeleteThanks for the feedback. You're right -- python-central and a few other python packages have been removed: https://wiki.debian.org/Python/JessieRoadmap
DeleteThe newest files for system-config-samba are at:
https://launchpad.net/ubuntu/+archive/primary/+files/system-config-samba_1.2.63.orig.tar.gz
https://launchpad.net/ubuntu/+archive/primary/+files/system-config-samba_1.2.63-0ubuntu6.dsc
https://launchpad.net/ubuntu/+archive/primary/+files/system-config-samba_1.2.63-0ubuntu6.diff.gz
Looking at the debian/control files it doesn't depend on python-central anymore:
Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5.0.38), quilt, intltool, dh-python, python-all-dev (>= 2.3.5-11), rarian-compat, pkg-config, gnome-doc-utils
dh-python is still current for jessie:
https://packages.debian.org/en/jessie/dh-python
Long story short: use the newer files listed above and you won't have to get anything from wheezy. Release mixing can be very bad, and so should be avoided.
DeleteI was so close but got stuck with an error message
ReplyDeletewhile executing "dpkg-buildpackage -uc -us"
Got an error like dh-desktop is against rules or something like that. Can you assist ? Thanks alot in advance!
Which distro/release are you on? The post is quite old, so the way to build may have changed.
DeleteYou're in luck :)
DeleteI tried building on deb 9, and I got the same error as you did. Turns out that dh_desktop is deprecated. Simply delete/comment out the dh_desktop line in debian/rules
More info about dh_desktop here: http://manpages.ubuntu.com/manpages/xenial/man1/dh_desktop.1.html
DeleteThanks a lot!
ReplyDeleteVery helpful :)