User avatar
alexluther74
Posts: 2
Joined: Wed Apr 15, 2015 7:14 pm

Pi friendly GUI for SAMBA

Wed Apr 15, 2015 8:16 pm

Hi Everyone,


For those of you using your Pi's as file servers with samba, and would like a more point and click way to share folders and adjust share permissions, system-config-samba appears to work well on Raspbian. I've been using it a few days now and so far it has worked perfectly

I found these steps on a Debian forum, and with the 2 additional steps under them was able to get it working on Raspbian on my Pi 2.

1. wget https://launchpad.net/ubuntu/+archive/p ... rig.tar.gz
2. tar xvf system-config-samba_1.2.63.orig.tar.gz
3. wget https://launchpad.net/ubuntu/+archive/p ... u5.diff.gz
4. gunzip system-config-samba_1.2.63-0ubuntu5.diff.gz
5. patch -p0 < system-config-samba_1.2.63-0ubuntu5.diff
6. cd system-config-samba-1.2.63/
7. dpkg-buildpackage -uc -us
8. sudo dpkg -i ../system-config-samba_1.2.63-0ubuntu5_all.deb
9. sudo touch /etc/libuser.conf
10. Run it from the menu: Menue > Preferences > Samba, or from CL: sudo system-config-samba

Notes...

You may have to run this if the build (step 7) fails due to dependency issues...
sudo apt-get install cdbs debhelper quilt intltool python-central python-all-dev rarian-compat gnome-doc-utils

And this if installation (step 8) fails due to dependency problems...
sudo apt-get -f install

Might be a good idea to check launchpad.net with your browser to see if there is a newer version before doing step 1.
The build process is a long one even on a Pi 2, so I imagine it might take more than an hour on a Pi 1.


I love the CL but some things are just quicker and easier with the mouse. For a mouse friendly way of adjusting file or folder permissions, I find Midnight Commander works well. Start it with sudo for full control. The standard file manager also works on all folders / files if started from the CL with sudo (sudo pcmanfm).

VNC will allow you to use system-config-samba remotely... http://elinux.org/index.php?title=RPi_V ... did=346520

User avatar
thagrol
Posts: 1834
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi friendly GUI for SAMBA

Thu Apr 16, 2015 11:09 am

There is also SWAT (Samba Web Admin Tool):

Code: Select all

sudo apt-get install swat
You may need to set a password for your root account:

Code: Select all

sudo passwd
Then point a web browser at localhost:901 or, from another computer, <host name or ip address of pi>:901 and login as root.
This space unintentionally left blank.

User avatar
alexluther74
Posts: 2
Joined: Wed Apr 15, 2015 7:14 pm

Re: Pi friendly GUI for SAMBA

Fri Apr 17, 2015 10:21 am

Another browser based option is Webmin, it allows one to configure samba shares and much more.

Code: Select all

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.740_all.deb

Code: Select all

dpkg --install webmin_1.740_all.deb
If Debian complains about missing dependencies, you can install them with the command :

Code: Select all

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
You then connect to your Pi on port 10000... http://ip_address:10000

Castle_Romeo
Posts: 34
Joined: Tue Jun 26, 2012 5:40 am

Re: Pi friendly GUI for SAMBA

Sat Oct 10, 2015 3:01 am

alexluther74 wrote:Hi Everyone,


For those of you using your Pi's as file servers with samba, and would like a more point and click way to share folders and adjust share permissions, system-config-samba appears to work well on Raspbian. I've been using it a few days now and so far it has worked perfectly

I found these steps on a Debian forum, and with the 2 additional steps under them was able to get it working on Raspbian on my Pi 2.

1. wget https://launchpad.net/ubuntu/+archive/p ... rig.tar.gz
2. tar xvf system-config-samba_1.2.63.orig.tar.gz
3. wget https://launchpad.net/ubuntu/+archive/p ... u5.diff.gz
4. gunzip system-config-samba_1.2.63-0ubuntu5.diff.gz
5. patch -p0 < system-config-samba_1.2.63-0ubuntu5.diff
6. cd system-config-samba-1.2.63/
7. dpkg-buildpackage -uc -us
8. sudo dpkg -i ../system-config-samba_1.2.63-0ubuntu5_all.deb
9. sudo touch /etc/libuser.conf
10. Run it from the menu: Menue > Preferences > Samba, or from CL: sudo system-config-samba

Notes...

You may have to run this if the build (step 7) fails due to dependency issues...
sudo apt-get install cdbs debhelper quilt intltool python-central python-all-dev rarian-compat gnome-doc-utils

And this if installation (step 8) fails due to dependency problems...
sudo apt-get -f install

Might be a good idea to check launchpad.net with your browser to see if there is a newer version before doing step 1.
The build process is a long one even on a Pi 2, so I imagine it might take more than an hour on a Pi 1.


I love the CL but some things are just quicker and easier with the mouse. For a mouse friendly way of adjusting file or folder permissions, I find Midnight Commander works well. Start it with sudo for full control. The standard file manager also works on all folders / files if started from the CL with sudo (sudo pcmanfm).

VNC will allow you to use system-config-samba remotely... http://elinux.org/index.php?title=RPi_V ... did=346520
I keep getting an error #2 for step 7.....

Castle_Romeo
Posts: 34
Joined: Tue Jun 26, 2012 5:40 am

Re: Pi friendly GUI for SAMBA

Sat Oct 10, 2015 9:33 pm

Here's a more detailed description:

"make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2"

miyaru
Posts: 22
Joined: Mon Dec 15, 2014 4:53 pm
Location: Zaanstad

Re: Pi friendly GUI for SAMBA

Wed Oct 14, 2015 1:43 pm

Another powerfull tool for samba is Gadmin-samba - resident in the repository. I has a steep learning curve but handles samba well. First install samba and the commen bin files, gadmin-samba. In Ubuntu Mate en Raspbian it shows in the menu, but can be started from the terminal.

Robin.

User avatar
topguy
Posts: 5762
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Pi friendly GUI for SAMBA

Wed Oct 14, 2015 3:37 pm

Castle_Romeo wrote:Here's a more detailed description:

"make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2"
I have a feeling that step 7 & 8 can be replaced with:

Code: Select all

./configure
make 
sudo make install
But I havent tested it.

Castle_Romeo
Posts: 34
Joined: Tue Jun 26, 2012 5:40 am

Re: Pi friendly GUI for SAMBA

Sat Jan 30, 2016 10:45 am

./configure does not work......"Command not found"

Make gives Error Code 1

Anyone have a fix???

DirkS
Posts: 9937
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi friendly GUI for SAMBA

Sat Jan 30, 2016 11:22 am

Castle_Romeo wrote:./configure does not work......"Command not found"

Make gives Error Code 1

Anyone have a fix???
Only possible if you post the complete error message...

castletonroad
Posts: 83
Joined: Sat Jul 25, 2015 11:23 pm

Re: Pi friendly GUI for SAMBA

Sat May 14, 2016 11:01 pm

Code: Select all

dh_strip -psystem-config-samba
dh_compress -psystem-config-samba
dh_fixperms -psystem-config-samba
dh_makeshlibs -psystem-config-samba
dh_installdeb -psystem-config-samba
dh_perl -psystem-config-samba
dh_shlibdeps -psystem-config-samba
dh_gencontrol -psystem-config-samba
dh_md5sums -psystem-config-samba
dh_builddeb -psystem-config-samba
dpkg-deb: building package `system-config-samba' in `../system-config-samba_1.2.63-0ubuntu5_all.deb'.
 dpkg-genchanges  >../system-config-samba_1.2.63-0ubuntu5_armhf.changes
dpkg-genchanges: not including original source code in upload
 dpkg-source --after-build system-config-samba-1.2.63
dpkg-buildpackage: binary and diff upload (original source NOT included)
[email protected]:~/system-config-samba-1.2.63 $ sudo touch /etc/libuser.conf
[email protected]:~/system-config-samba-1.2.63 $ system-config-samba
-bash: system-config-samba: command not found
p
Everything seems to go fine for me for the installation. But then I get error when trying to run the new program...?
Raspberry Pi 4 Model B | Raspberry Pi 3 Model B | Raspberry Pi 2 Model B

luc2010
Posts: 1
Joined: Fri Oct 21, 2016 3:07 am

Re: Pi friendly GUI for SAMBA

Fri Oct 21, 2016 3:12 am

I am seeing this error.

dpkg-buildpackage: source package system-config-samba
dpkg-buildpackage: source version 1.2.63-0ubuntu5
dpkg-buildpackage: source distribution precise
dpkg-buildpackage: source changed by Brian Murray <[email protected]>
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build system-config-samba-1.2.63
fakeroot debian/rules clean
debian/rules:4: /usr/share/cdbs/1/rules/debhelper.mk: No such file or directory
debian/rules:5: /usr/share/cdbs/1/class/makefile.mk: No such file or directory
debian/rules:6: /usr/share/cdbs/1/rules/patchsys-quilt.mk: No such file or directory
make: *** No rule to make target '/usr/share/cdbs/1/rules/patchsys-quilt.mk'. Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

User avatar
DougieLawson
Posts: 36104
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Pi friendly GUI for SAMBA

Fri Oct 21, 2016 2:54 pm

thagrol wrote:There is also SWAT (Samba Web Admin Tool):
SWAT is dead and completely unsupported.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

NobahdiAtoll
Posts: 7
Joined: Thu Sep 22, 2016 2:32 pm

Re: Pi friendly GUI for SAMBA

Tue Nov 01, 2016 5:04 am

The problem with those "Web based" network admin are they are so convuluted that you might as well be using the commandline.

system-config-samba just works and you can have everything configured in less than 3 minutes. so thanks for this... just the solution i needed.

Return to “Networking and servers”