LinuxVillage

Questions En => Help requests => Discussion démarrée par: patrick013 le 05 avril 2013 à 06:32:47

Titre: User Admin - Gui
Posté par: patrick013 le 05 avril 2013 à 06:32:47
Looked in the Debian repo for a User Admin Gui.   I feel like
a chicken punching in terminal commands for this.

Any package(s)  I missed.

THX

Patrick
Titre: Re : User Admin - Gui
Posté par: djohnston le 05 avril 2013 à 07:58:58
As far as I know, usermode is the only GUI for dealing with user properties, and you can't do much using it. Debian needs some kind of Control Center to be on a par with Mandy/Mageia and Suse.

The AntiX people wrote a bash script for dealing with user management tasks. I still have a copy of it. It can be adapted to your needs if I know what you are trying to accomplish. It was part of the Openbox Control Center I adapted to one of Melodie's respins a while back. What DE are you using?

The CLI commands for dealing with user-related management are adduser, deluser, useradd, userdel and usermod.
Titre: Re : User Admin - Gui
Posté par: Taco.22 le 05 avril 2013 à 08:34:51
(http://www.gifs.net/Animation11/Animals/Chickens_and_Turkeys/Chicks_eat_2.gif)

But seriously (!!) it might be a good idea to revisit the Openbox Control Center again.  @djohnston - I tried your link in the old forum but it errored out.  Could you post it again so we can have another look at it? 


EDIT - installing gnome-system-tools (5mb download and 13mb installed) gives the "Users and Groups" application.  Not sure what else got installed because I have installed a number of other things as well!!  Anyway, there might be a way of refining it down and adding some other things.
Titre: Re : User Admin - Gui
Posté par: melodie le 05 avril 2013 à 12:13:59
I would love us to have an Openbox Control Center! When I see the bunch of entries in the Preferences menus, it seems to me all is needed, and at same time it looks very crowded.

Titre: Re : Re : User Admin - Gui
Posté par: patrick013 le 06 avril 2013 à 00:47:00
EDIT - installing gnome-system-tools (5mb download and 13mb installed) gives the "Users and Groups" application. 

On my Debian-LXDE it wanted a 100MB download and over 300MB finished
size, way too big.
Titre: Re : Re : User Admin - Gui
Posté par: patrick013 le 06 avril 2013 à 00:52:26
The AntiX people wrote a bash script for dealing with user management tasks. I still have a copy of it. It can be adapted to your needs if I know what you are trying to accomplish.

Hi DJ,

I'm using Debian-LXDE and Debian-Scorpio both testing.    The PCL-LXDE
has a User Admin GUI on the menu.   That's the package I was looking for.
Quite easy to do with that GUI.

thanks for the response.

patrick
Titre: Re : Re : Re : User Admin - Gui
Posté par: Taco.22 le 06 avril 2013 à 02:58:09
On my Debian-LXDE it wanted a 100MB download and over 300MB finished
size, way too big.

Regarding gnome-system-tools I used apt-get with --no-install-recommends, otherwise it wanted to pull in Gnome Control Center - BIG!  In a terminal just enter "apt-get install --no-install-recommends gnome-system-tools" and it should be just a small download.  That gives you the "Users and Groups" entry in Preferences. 
I am currently doing an update on Villagebox on the test rig and will then try out a couple of these package installs again in a controlled environment.  Currently I'm just hacking up my main system  :o  I have also got hold of both the antixcc.py and the .deb packages.  Looks like a lot of hacking needed to get it to work with our configuration - OB and sakura/xterm.  The .deb won't install due to dependency issues (terminal, editor etc) but the .py can be made to run with the addition of gtkdialog.  All heading too much in the gtk direction I fear - I wonder how it will fit in with gtk3 down the track.  Somebody started a Debian-Control-Center in python a few years back but it died on the vine and all links are dead - pity.
Titre: Re : Re : Re : User Admin - Gui
Posté par: djohnston le 06 avril 2013 à 03:55:20
But seriously (!!) it might be a good idea to revisit the Openbox Control Center again.  @djohnston - I tried your link in the old forum but it errored out.  Could you post it again so we can have another look at it? 
Started running low on Dropbox space and had to dump some things. I'll get it sorted out. I'm working on the control center now.

I'm using Debian-LXDE and Debian-Scorpio both testing.    The PCL-LXDE
has a User Admin GUI on the menu.   That's the package I was looking for.
Quite easy to do with that GUI.
I first installed this on Melodie's antiX respin. Had a helluva time with antiX repos and signing key. Dave's server got hacked by some guy claiming to be part of anonymous. Anyway, I've got all the pieces collected and I'm porting it to DebLXDE. The original looks like this:

(http://s19.postimg.org/srboqvnkv/openboxcc01.jpg) (http://postimg.org/image/srboqvnkv/)
Titre: Re : User Admin - Gui
Posté par: Taco.22 le 06 avril 2013 à 11:31:34
Finally got a clean and updated VillageBox!  I then did "apt-get install --no-recommends gnome-system-tools" which downloaded about 7mb that occupied 17mb of disk.  In the Preferences section of the root menu four new entries appeared -
"Network" allows configuration of your DNS and other things; "Services" allows to turn on or off system services as you wish; "Time and Date" allows you to change your time zone and time keeping method; and "Users and Groups" allows you to add or delete users and/or groups.

Combined with these are other installed GUI tools for adjusting your system settings -

All-in-all that covers a fair amount.  I guess it might be nice to combine all of it under one umbrella - either as a "control-center" or a single category.  If the later then using the root menu would be the easiest method as it doesn't mean futzing around with all the .desktop files.

Just as an aside, I will post the updated VillageBox soon - it has all the software listed above plus Geany has been replaced with Juffed - much faster.  I just need to establish if extra firmware for wireless internet needs to be added.
Titre: Re : Re : User Admin - Gui
Posté par: patrick013 le 06 avril 2013 à 20:38:04
Finally got a clean and updated VillageBox!  I then did "apt-get install --no-recommends gnome-system-tools" which downloaded about 7mb that occupied 17mb of disk. 

Took about 19 MB of space.    Even uses a GTK 3 theme.

The userdrake rpm at PCL should be adequate for a little Openbox if made into
a deb package.    Just for User Admin.    gnome-system-tools for a big OpenBox
then.

thanks for the response.

patrick
Titre: Re : User Admin - Gui
Posté par: djohnston le 09 avril 2013 à 01:22:58
There's a slight problem with users-admin, the Users section of gnome-system-tools. It will be a problem for anyone with a screen less than 864 vertical pixels. I've tried this on OBubuntu, Bento2 and DebWeb. The users-admin window will open just fine, and all sections of the window are accessible. The problem occurs when you select a user and click the Advanced Settings button. Here's a screenshot from a 1024x768 screen.

(http://s19.postimg.org/4kxd4r9y7/Bento2_001.jpg) (http://postimg.org/image/4kxd4r9y7/)

As you can see, there are no Cancel or OK buttons. The "Change Advanced User Settings" window can be resized horizontally, but not vertically. It's the vertical size that's the problem. In order to get to those buttons, I had to increase the screen size to 1152x864. I was then able to access them.

(http://s19.postimg.org/tflgckk67/Bento2_002.jpg) (http://postimg.org/image/tflgckk67/)

Those screenshots are from Bento2. So, I tried running the program as user root.

darrel@Bento:~$ sudo su
[sudo] password for darrel:
root@Bento:/home/darrel# users-admin &
[1] 3499
root@Bento:/home/darrel#
(users-admin:3499): Gtk-WARNING **: Theme parsing error: gtk-widgets-img.css:18:14: Theming engine 'unico' not found

(users-admin:3499): Gtk-WARNING **: Theme parsing error: gtk-widgets-img.css:23:14: Theming engine 'unico' not found

(users-admin:3499): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:248:14: Theming engine 'unico' not found

(users-admin:3499): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:366:14: Theming engine 'unico' not found
^C
root@Bento:/home/darrel# killall users-admin
[1]+  Terminated              users-admin
root@Bento:/home/darrel#

The users-admin window comes up as ghosted and the program will not start. I had to issue a killall command to kill the process. The results are the same on OBubuntu. Both Bento2 and OBubuntu already have the gnome-system-tools package installed.

I installed gnome-system-tools with the --no-install-recommends switch on DebWeb. I then ran the users-admin program from the menu entry. Same deal. The "Change Advanced User Settings" window cannot be resized vertically. I tried running it from a terminal as root using gksu -u root users-admin. Again, the window came up ghosted and the program would not start. And, again, I had to issue a killall users-admin command to close the window.

Titre: Re : User Admin - Gui
Posté par: Taco.22 le 09 avril 2013 à 03:09:37
Bugger - all seemed too easy!!  This bug report (https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/1025094) doesn't give a lot of hope either.  Obviously ya'll just gonna have to get bigger screens  :o
Titre: Re : User Admin - Gui
Posté par: patrick013 le 09 avril 2013 à 05:27:50
@dj

Any chance the userdrake program can fit in a deb package ?

It's got a nice boxy screen.

thanks,

patrick
Titre: Re : User Admin - Gui
Posté par: Taco.22 le 09 avril 2013 à 05:51:35
I had a look at the config files for gnome-system-tools, particularly UI for Advanced Users Settings.  I couldn't work out a way of getting the overall default size to change, but I did manage to change the layout of the dialog box.

I edited the line 2627 in the file /usr/share/gnome-system-tools/ui/users.ui - changed "vertical" to "horizontal".  What this did was to move the "Cancel" and "OK" buttons from the bottom to the side.  This means it will work on almost any sized screen - I will leave this as the default setting in VillageBox.  See screenshot below.

(http://dl.dropbox.com/u/18945176/user_panel.png)
Titre: Re : Re : User Admin - Gui
Posté par: djohnston le 09 avril 2013 à 06:48:30
I edited the line 2627 in the file /usr/share/gnome-system-tools/ui/users.ui - changed "vertical" to "horizontal".  What this did was to move the "Cancel" and "OK" buttons from the bottom to the side.  This means it will work on almost any sized screen - I will leave this as the default setting in VillageBox.

Line 2627! Whoah, Nellie, that's a lotta readin'! That's a good solution. Kudos!

I actually installed Linux Mint's Debian edition Control Center. With the dependencies, the install worked out to about 28MB. However, it was written and compiled for the MATE desktop. It actually worked, although what it was showing were LXDE and Openbox tools already available from the menus. Well, I'm still working on the last section of a hobbled together control center.
Titre: Re : User Admin - Gui
Posté par: melodie le 09 avril 2013 à 06:48:51
Hi,

This is a very good idea indeed! While reading the thread I added a comment to the bugzilla where you pointed to, in order to "refresh" a bit this bug report.

Titre: Re : Re : User Admin - Gui
Posté par: djohnston le 09 avril 2013 à 07:15:05
Any chance the userdrake program can fit in a deb package ?

I downloaded the source rpm package and am looking at it. It's 1099 lines of perl code, so a good perl programmer should be able to modify it to work. Looking at the beginning of the code, it's calling ugtk2, which is actually the file /usr/lib/libDrakX/ugtk2.pm, Perl5 module source. But, a perl programmer I'm not. I'll be glad to experiment when I've finished 2 other projects.

Titre: Re : User Admin - Gui
Posté par: melodie le 09 avril 2013 à 07:27:22
Ideally our distros should all have draktools to gather all the hardware config, and the Synaptic and Software Center tools to manage and select the packages, whatever archive type are the packages. \o/

Titre: Re : Re : Re : User Admin - Gui
Posté par: patrick013 le 09 avril 2013 à 22:33:12
I downloaded the source rpm package and am looking at it. It's 1099 lines of perl code, so a good perl programmer should be able to modify it to work. Looking at the beginning of the code, it's calling ugtk2, which is actually the file /usr/lib/libDrakX/ugtk2.pm, Perl5 module source. But, a perl programmer I'm not. I'll be glad to experiment when I've finished 2 other projects.

thanks for the response.

Hopefully it's just one or two dependencies to check their names,
and one or two directories to check their names.   Glad you found it
interesting.

Patrick
Titre: Re : Re : User Admin - Gui
Posté par: patrick013 le 09 avril 2013 à 23:09:50
I edited the line 2627 in the file /usr/share/gnome-system-tools/ui/users.ui - changed "vertical" to "horizontal".

Line 2228 could use similar treatment looks like.

Just FYI
Titre: Re : Re : Re : User Admin - Gui
Posté par: Taco.22 le 10 avril 2013 à 11:16:20
Line 2228 could use similar treatment looks like.

I've had a  look at it - it's quite a bit shorter than the main offender, but I can't quite work out its overall height in pixels.  Does it fit on an 800 pixel high screen?  If not it needs to be changed like the main dialog box - it doesn't seem to be resizable on the fly at all.

EDIT - well, it certainly looks OK with the change from "vertical" to "horizontal".  I'll go with that - thanks Patrick.
Titre: Re : Re : Re : Re : User Admin - Gui
Posté par: patrick013 le 10 avril 2013 à 20:54:35
I've had a  look at it - it's quite a bit shorter than the main offender, but I can't quite work out its overall height in pixels.  Does it fit on an 800 pixel high screen?  If not it needs to be changed like the main dialog box - it doesn't seem to be resizable on the fly at all.

EDIT - well, it certainly looks OK with the change from "vertical" to "horizontal".  I'll go with that - thanks Patrick.

I use alt-left mouse button  and hold and push the screen around.

I've got several programs like that, my monitor is 1024 x 600 but
if I hooked it up to the 19" TV it would probably show up.
Titre: Re : Re : Re : Re : Re : User Admin - Gui
Posté par: Taco.22 le 11 avril 2013 à 03:02:09
I use alt-left mouse button  and hold and push the screen around.

I've got several programs like that, my monitor is 1024 x 600 but
if I hooked it up to the 19" TV it would probably show up.

Hey Patrick, do you want to put that in the "Tips and Tricks" section - it's something I didn't know and it would probably help a number of other people.  Neat.
Titre: Re : Re : Re : Re : Re : Re : User Admin - Gui
Posté par: djohnston le 11 avril 2013 à 04:58:16
Hey Patrick, do you want to put that in the "Tips and Tricks" section - it's something I didn't know and it would probably help a number of other people.  Neat.

+1. I was trying to remember that key combination the other day.