Ubuntu 16.04 LTS Samba GUI

I’m making a note of this in case I need to repeat it.

Of course, ideally, especially as I’m heading toward dockerisation and so on, I should be using a proper dev vs production division. With scripted build / continuous delivery where I can work on stuff like front-end javascript, with packages maintained by bower at least and properly using Gulp, Yoeman, SASS etc. integrating my own stuff as my own Git packages, and then deploy it all in bundles where appropriate to a flexible target with versioning.

That’s on my roadmap. Right now I haven’t had time to learn it properly and I need to communicate what I do know and start building-up a knowledge base and documentation for what I have and what I’m doing.

So, for the moment, I’m setting-up a (workgroup) network share on Ubuntu for the Apache2 html directory I’m using for this blog, so I can directly access files from my main Windows Dev environments. It’ll have to do for now.

Even doing that isn’t simple (for GUI) … so here are notes:

davros@xarta101uD:/usr/bin$ cd /
davros@xarta101uD:/$ clear
davros@xarta101uD:/$ sudo apt-get install system-config-samba
[sudo] password for davros:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-21
  linux-headers-4.4.0-21-generic linux-image-4.4.0-21-generic
  linux-image-extra-4.4.0-21-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  attr libaio1 libglade2-0 libuser1 python-cairo python-crypto
  python-dnspython python-glade2 python-gobject-2 python-gtk2 python-ldb
  python-libuser python-samba python-tdb samba samba-common samba-common-bin
  samba-dsdb-modules samba-vfs-modules tdb-tools
Suggested packages:
  python-crypto-dbg python-crypto-doc python-gtk2-doc python-gobject-2-dbg
  bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind heimdal-clients
The following NEW packages will be installed
  attr libaio1 libglade2-0 libuser1 python-cairo python-crypto
  python-dnspython python-glade2 python-gobject-2 python-gtk2 python-ldb
  python-libuser python-samba python-tdb samba samba-common samba-common-bin
  samba-dsdb-modules samba-vfs-modules system-config-samba tdb-tools
0 to upgrade, 21 to newly install, 0 to remove and 0 not to upgrade.
Need to get 4,678 kB of archives.
After this operation, 35.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libglade2-0 amd64 1:2.6.4-2 [44.6 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-dnspython all 1.12.0-1 [85.2 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-crypto amd64 2.6.1-6ubuntu0.16.04.2 [246 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-ldb amd64 2:1.1.24-1ubuntu3 [29.3 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-tdb amd64 1.3.8-2 [11.1 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-samba amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 [1,059 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba-common all 2:4.3.11+dfsg-0ubuntu0.16.04.3 [84.1 kB]
Get:8 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba-common-bin amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 [506 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 tdb-tools amd64 1.3.8-2 [21.0 kB]
Get:10 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 [902 kB]
Get:11 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 attr amd64 1:2.4.47-2 [25.5 kB]
Get:12 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libaio1 amd64 0.3.110-2 [6,356 B]
Get:13 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 libuser1 amd64 1:0.60~dfsg-1.2 [55.4 kB]
Get:14 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-cairo amd64 1.8.8-2 [41.3 kB]
Get:15 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-gobject-2 amd64 2.28.6-12ubuntu1 [181 kB]
Get:16 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-gtk2 amd64 2.24.0-4ubuntu1 [620 kB]
Get:17 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-glade2 amd64 2.24.0-4ubuntu1 [9,078 B]
Get:18 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 python-libuser amd64 1:0.60~dfsg-1.2 [17.0 kB]
Get:19 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba-dsdb-modules amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 [215 kB]
Get:20 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba-vfs-modules amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 [255 kB]
Get:21 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 system-config-samba all 1.2.63-0ubuntu6 [266 kB]
Fetched 4,678 kB in 1s (3,248 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libglade2-0:amd64.
(Reading database ... 251413 files and directories currently installed.)
Preparing to unpack .../libglade2-0_1%3a2.6.4-2_amd64.deb ...
Unpacking libglade2-0:amd64 (1:2.6.4-2) ...
Selecting previously unselected package python-dnspython.
Preparing to unpack .../python-dnspython_1.12.0-1_all.deb ...
Unpacking python-dnspython (1.12.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../python-crypto_2.6.1-6ubuntu0.16.04.2_amd64.deb ...
Unpacking python-crypto (2.6.1-6ubuntu0.16.04.2) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../python-ldb_2%3a1.1.24-1ubuntu3_amd64.deb ...
Unpacking python-ldb (2:1.1.24-1ubuntu3) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../python-tdb_1.3.8-2_amd64.deb ...
Unpacking python-tdb (1.3.8-2) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb ...
Unpacking python-samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../samba-common_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_all.deb ...
Unpacking samba-common (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../samba-common-bin_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb ...
Unpacking samba-common-bin (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../tdb-tools_1.3.8-2_amd64.deb ...
Unpacking tdb-tools (1.3.8-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb ...
Unpacking samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package attr.
Preparing to unpack .../attr_1%3a2.4.47-2_amd64.deb ...
Unpacking attr (1:2.4.47-2) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-2) ...
Selecting previously unselected package libuser1.
Preparing to unpack .../libuser1_1%3a0.60~dfsg-1.2_amd64.deb ...
Unpacking libuser1 (1:0.60~dfsg-1.2) ...
Selecting previously unselected package python-cairo.
Preparing to unpack .../python-cairo_1.8.8-2_amd64.deb ...
Unpacking python-cairo (1.8.8-2) ...
Selecting previously unselected package python-gobject-2.
Preparing to unpack .../python-gobject-2_2.28.6-12ubuntu1_amd64.deb ...
Unpacking python-gobject-2 (2.28.6-12ubuntu1) ...
Selecting previously unselected package python-gtk2.
Preparing to unpack .../python-gtk2_2.24.0-4ubuntu1_amd64.deb ...
Unpacking python-gtk2 (2.24.0-4ubuntu1) ...
Selecting previously unselected package python-glade2.
Preparing to unpack .../python-glade2_2.24.0-4ubuntu1_amd64.deb ...
Unpacking python-glade2 (2.24.0-4ubuntu1) ...
Selecting previously unselected package python-libuser.
Preparing to unpack .../python-libuser_1%3a0.60~dfsg-1.2_amd64.deb ...
Unpacking python-libuser (1:0.60~dfsg-1.2) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../samba-dsdb-modules_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack .../samba-vfs-modules_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb ...
Unpacking samba-vfs-modules (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Selecting previously unselected package system-config-samba.
Preparing to unpack .../system-config-samba_1.2.63-0ubuntu6_all.deb ...
Unpacking system-config-samba (1.2.63-0ubuntu6) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libglade2-0:amd64 (1:2.6.4-2) ...
Setting up python-dnspython (1.12.0-1) ...
Setting up python-crypto (2.6.1-6ubuntu0.16.04.2) ...
Setting up python-ldb (2:1.1.24-1ubuntu3) ...
Setting up python-tdb (1.3.8-2) ...
Setting up python-samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Setting up samba-common (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba-common-bin (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Setting up tdb-tools (1.3.8-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Setting up attr (1:2.4.47-2) ...
Setting up libaio1:amd64 (0.3.110-2) ...
Setting up libuser1 (1:0.60~dfsg-1.2) ...
Setting up python-cairo (1.8.8-2) ...
Setting up python-gobject-2 (2.28.6-12ubuntu1) ...
Setting up python-gtk2 (2.24.0-4ubuntu1) ...
Setting up python-glade2 (2.24.0-4ubuntu1) ...
Setting up python-libuser (1:0.60~dfsg-1.2) ...
Setting up samba-dsdb-modules (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Setting up samba-vfs-modules (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Setting up system-config-samba (1.2.63-0ubuntu6) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
davros@xarta101uD:/$ sudo apt-get install gksu
Reading package lists... Done
Building dependency tree
Reading state information... Done
gksu is already the newest version (2.0.2-9ubuntu1).
The following packages were automatically installed and are no longer required:
  libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-21
  linux-headers-4.4.0-21-generic linux-image-4.4.0-21-generic
  linux-image-extra-4.4.0-21-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
davros@xarta101uD:/$ sudo nano /etc/libuser.conf
davros@xarta101uD:/$ gksu system-config-samba GUI

(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-9Y0geeiMnQ: Connection refused
GConf Error: No D-BUS daemon running


(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-ODUN08TFDi: Connection refused
GConf Error: No D-BUS daemon running


(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-i4OCMrsYwW: Connection refused
GConf Error: No D-BUS daemon running


(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-AzDL4oDCSa: Connection refused
GConf Error: No D-BUS daemon running


(gksu:22322): GConf-CRITICAL **: gconf_value_free: assertion 'value != NULL' failed

(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-qcyOtGzjfw: Connection refused
GConf Error: No D-BUS daemon running


(gksu:22322): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-4O7a36WhrW: Connection refused
GConf Error: No D-BUS daemon running

^C
davros@xarta101uD:/$ sudo system-config-samba GUI

(system-config-samba:22365): IBUS-WARNING **: The owner of /home/davros/.config/ibus/bus is not root!
davros@xarta101uD:/$


 

$ sudo nano /etc/libuser.conf … just to create an empty file. (Required to be seen). gksu doesn’t run yet, for me, over x11. Needs some work. But sudo is fine.

This screenshot is taken in Windows: the Samba linux application is x11 forwarded over OpenSSH.

Up to now I was installing on my Compute Stick. (It doesn’t have Apache etc. on it – depending on whether and how I make progress with Docker, it might not need such installations on the host OS).

On my temporary Ubuntu VM where I have installed Apache etc. …

So Dave … Windows username can be any made-up one … use one without an @ sign.

Added the share in Windows, and mapped to a letter (“A” in this case) for convenience (less typing in PowerShell etc.)