Usermanager / Sambashare - replace mate packages in SolydX

SolydXK is too quiet for you? SolydXK Enthusiast Editions, based on Debian Testing is for you! Here you can find news about Debian Testing and Unstable too, and also tests on SolydXK programs.
The support for SolydXK EE is provided by the community.
User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Usermanager / Sambashare - replace mate packages in SolydX

Postby Arjen Balfoort » 11 Sep 2013 13:47

I'm re-using this thread of Sambashare.
I've created two Python applications to replace some mate packages that has been causing some trouble lately:
  1. mate-shares-admin: http://forums.solydxk.nl/viewtopic.php?f=43&t=1340
  2. mate-user-admin: http://forums.solydxk.nl/viewtopic.php?f=13&t=1652
ad 1 - sambashare
The mate-shares-admin application isn't working.
There are alternatives, but these have too many (Gnome) dependencies.
So, I started building my own Samba share manager: Sambashare.
You can use it on SolydX to create or remove samba shares.

There is one bug that I know of:
If you create the first share, the list does not refresh correctly. However, it is there, because the details are shown in the text field. Closing and opening sambashare will show the share correctly. So does any consequent share.
I have tried many, many possible solutions, but none seem to work.

You can change the current Samba actions in Thunar.
Open the "Custom Actions" dialog in Thunar: edit > configure custom actions.
Remove all but one of the Samba actions.
Edit the remaining one, and replace the command with:

Code: Select all

sambashare %f %n
ad 2 - usermanager
The mate-user-admin is partially working: you can create users, but you cannot remove them.
I created a simple application to replace the mate package.
Only the basic functionalities are added (although I prepared the application for more features if needed).

I need you to help me test them before I add them to SolydX to replace all the mate stuff!

You can find both packages in our testing repository.
Check if you have the following line in your /etc/apt/sources.list:

Code: Select all

deb http://packages.solydxk.com/testing/ solydxk main upstream import kdenext
Then, install the packages:

Code: Select all

sudo apt-get update
sudo apt-get install sambashare usermanager
Let me know what you think.


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Sambashare

Postby Arjen Balfoort » 18 Sep 2013 16:44

I probably created something that nobody needs...pity.


SolydXK needs you!
Development | Testing | Translations

toothandnail
Posts: 94
Joined: 02 Jun 2013 18:45
Location: Oxfordshire, UK

Re: Sambashare

Postby toothandnail » 19 Sep 2013 04:11

Schoelje wrote:I probably created something that nobody needs...pity.
:) I don't use Samba much, but I do need to sometimes. Missed your original message. I'll give it a try next time I'm on my home network.

Paul.

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Sambashare

Postby ScottQuier » 19 Sep 2013 13:42

No - not wasted effort. I use samba from time to time to move smaller files from once machine to another in my (very small) network.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

toothandnail
Posts: 94
Joined: 02 Jun 2013 18:45
Location: Oxfordshire, UK

Re: Sambashare

Postby toothandnail » 19 Sep 2013 14:17

Installed without problems. I've edited the Thunar custom action, but that doesn't seem to be showing up (maybe have to reboot or log out/in?).

I can see the share I created from my desktop machine, and I can open it using Thunar on that machine. However, any attempt to copy files to it fails - I get a "permission denied" error. Not sure - could it be the permissions on the directory? UID of the user on the desktop is the same as the UID on the laptop (where I've created the share).

I'll install it on the desktop as well and see what happens.

Paul.

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Usermanager / Sambashare - replace mate in SolydX

Postby Arjen Balfoort » 13 Oct 2013 23:32

I've created another package to replace mate-user-admin: usermanager.
Both sambashare and usermanager intent to replace the mate packages from SolydX.

You can read the details in the OP.


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby Arjen Balfoort » 14 Oct 2013 19:57

Moved the topic here to get better noticed.

I just updated usermanager, and uploaded it to the testing repository.

I could really use your help.
See the OP for details.


SolydXK needs you!
Development | Testing | Translations

User avatar
ane champenois
Posts: 1539
Joined: 24 Feb 2013 08:17
Location: Grands lacs Forêt d'Orient, France

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby ane champenois » 15 Oct 2013 12:23

Schoelje wrote:Moved the topic here to get better noticed.

I just updated usermanager, and uploaded it to the testing repository.

I could really use your help.
See the OP for details.
I installed the two packages without any problem. i personnaly doesn't use samba but if it needs test I can try ;)
About usermanager: seems to work well. More infos after special testing :lol: (remember: I've got a doomed computer)
They did not know it was impossible so they did it.

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby Arjen Balfoort » 15 Oct 2013 12:25

It's safest to use a VM for this!


SolydXK needs you!
Development | Testing | Translations

User avatar
ane champenois
Posts: 1539
Joined: 24 Feb 2013 08:17
Location: Grands lacs Forêt d'Orient, France

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby ane champenois » 15 Oct 2013 12:29

Schoelje wrote:It's safest to use a VM for this!
I know, but my old computer doesn't allow it (very slooooow...) so I backup my system :roll:
They did not know it was impossible so they did it.

User avatar
davo
Posts: 62
Joined: 18 Aug 2013 10:37
Location: Malvern (UK)

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby davo » 15 Oct 2013 12:41

Installed both packages but only tried Usermanager so far.

Usermanager starts and asks for password
On entering password usermanager opens and shows users and groups

Tested by adding a user Brian (User Brian created successfully)
Image

Tested removal of user Brian (Brian successfully removed)
Image

All is good
"To touch the earth is to have harmony with nature." Oglala Sioux

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby ScottQuier » 16 Oct 2013 22:24

I've installed both.

User Manager seems to work just fine - I have no immediate issues to "report".

The Samba Share application .... well, I can't resize the window; neither the buttons (top right corner) nor the lower-right corner resize widget work. This could be an issue if the path to a share were a bit long in that the user wouldn't be able easily read the path.

Aside from that one comment ... ME LIKE!
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby zerozero » 17 Oct 2013 01:45

usermanager (running on sid)

Code: Select all

zerozero@zerozero-vb:~$ usermanager
gksu --message "<b>Please enter your password</b>" /usr/bin/python3 /usr/lib/usermanager/usermanager.py
glibtop: Non-standard uts for running kernel:
release 3.10-3-amd64=3.10.0 gives version code 199168


(usermanager.py:17569): Gtk-CRITICAL **: gtk_radio_button_set_group: assertion `!g_slist_find (group, radio_button)' failed

(usermanager.py:17569): Gtk-CRITICAL **: gtk_radio_button_set_group: assertion `!g_slist_find (group, radio_button)' failed

(usermanager.py:17569): Gtk-CRITICAL **: gtk_cell_view_set_displayed_row: assertion `GTK_IS_TREE_MODEL (cell_view->priv->model)' failed
Traceback (most recent call last):
  File "/usr/lib/usermanager/usermanager.py", line 703, in <module>
    gui = UserManager()
  File "/usr/lib/usermanager/usermanager.py", line 179, in __init__
    self.refreshData()
  File "/usr/lib/usermanager/usermanager.py", line 677, in refreshData
    self.getUsers()
  File "/usr/lib/usermanager/usermanager.py", line 457, in getUsers
    self.usersInfo = self.usr.getAllUsersInfoDict()
  File "/usr/lib/usermanager/user.py", line 87, in getAllUsersInfoDict
    users.append({ 'user': p, 'groups': self.getUserGroups(p.pw_name), 'prgrp': self.getUserPrimaryGroupName(p.pw_name), 'pwd': self.getUserPasswordInfoDict(p.pw_name), 'face': self.getUserFacePath(p.pw_name) })
  File "/usr/lib/usermanager/user.py", line 169, in getUserFacePath
    copy(face, join(p.pw_dir, ".face"))
  File "/usr/lib/python3.3/shutil.py", line 227, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.3/shutil.py", line 110, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/var/run/vboxadd/.face'
zerozero@zerozero-vb:~$ 
no worky :(
bliss of ignorance

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby Arjen Balfoort » 17 Oct 2013 08:13

Thank you, gentlemen.
I've just updated sambashare, and usermanager.

Please, run the applications from terminal to get verbose output.

Did that solve your problem?


SolydXK needs you!
Development | Testing | Translations

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby ScottQuier » 17 Oct 2013 10:38

Schoelje wrote:Thank you, gentlemen.
I've just updated sambashare, and usermanager.

Please, run the applications from terminal to get verbose output.

Did that solve your problem?
I'll check on it this evening, call it 8 to 12 hours from the time of this posting and post back here.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby zerozero » 17 Oct 2013 13:15

Screenshot7.png
the updated version works
bliss of ignorance

User avatar
smitty1
Posts: 244
Joined: 23 Jun 2013 13:50
Location: Pittsburgh, PA USA

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby smitty1 » 17 Oct 2013 13:23

Just tried out the user manager app and it works perfectly. :D
I added a new user, and then added that user to groups by editing both the user directly and by using the Groups tab.
Unfortunately samba is still on my To Learn list. :(

No Good Deed Goes Unpunished

User avatar
Arjen Balfoort
Site Admin
Posts: 9280
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby Arjen Balfoort » 17 Oct 2013 13:24

@zerozero
Is vboxadd a regular user?
It sounds like it shouldn't be listed at all.
what's the output of:

Code: Select all

cat /etc/passwd | grep  vboxadd


SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby zerozero » 17 Oct 2013 13:34

no it isn't and i found another problem (or another manifestation of the same)
Screenshot8.png
- i created the user "test"
- /home/test was created; i booted into it; functional;
- deleting user "test" removes /home/test (the issue from before is solved) but doesn't actuall remove the user from the system

Code: Select all

zerozero@zerozero-vb:~$ cat /etc/passwd | grep vboxadd
vboxadd:x:999:1::/var/run/vboxadd:/bin/false
zerozero@zerozero-vb:~$ cat /etc/passwd | grep zerozero
zerozero:x:1000:1000:zerozero:/home/zerozero:/bin/bash
zerozero@zerozero-vb:~$ cat /etc/passwd | grep test
test:x:1001:1003:test:/home/test:/bin/sh
bliss of ignorance

User avatar
smitty1
Posts: 244
Joined: 23 Jun 2013 13:50
Location: Pittsburgh, PA USA

Re: Usermanager / Sambashare - replace mate packages in Soly

Postby smitty1 » 17 Oct 2013 14:59

Trying to remove the user I created earlier:
First try removed only the icon that I had assigned to the user.
Logging out and back in and trying to remove the test user didn't work. However if I rebooted, then removed the test user that worked.

No Good Deed Goes Unpunished


Return to “Testing Zone”

Who is online

Users browsing this forum: No registered users and 3 guests