Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Desktopeinstellungen übertragen / Standard festlegen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
NueX
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 196
Location: Germany

PostPosted: Wed Jul 02, 2003 9:31 pm    Post subject: Desktopeinstellungen übertragen / Standard festlegen Reply with quote

Hallo!

Nachdem ich mein Gentoosystem in (oftmals mühseliger) Kleinarbeit eingerichtet und konfiguriert habe, möchte ich nun ein Gentoo Linux mit mehreren Benutzern aufsetzen.
Das Problem ist dabei, dass nicht jeder Benutzer alles selbst einrichten soll, nach seinem ersten Login soll er seinen Desktop so vorfinden, wie ich ihn als Standard eingerichtet habe. Ich möchte also quasi all meine KDE-Einstellungen (Styles, Menüinhalte, Desktopinhalte, Design) auf andere Benutzer übertragen.
Bei anderen Linux Distris gibt es dafür teilweise Tools, die die Menüs zentral verwalten.
Gibtes so etwas auch für Gentoo? Oder hat jemand so etwas schon mal gemacht und kann mir verraten wie das funktioniert?

Vielen Dank, alles per Hand einzurichten ist zu fummelig ;)
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Jul 02, 2003 10:03 pm    Post subject: Reply with quote

Wenn ich mal aus dem KDE-CVS-Digest vom 27.06.2003 zitieren darf:

Quote:
Helge Deller was busy throughout the repository, with comments refering to roaming user fixes. Here is his explanation:

A few people have asked me, what those "roaming user fixes" are all about. Please let me try to explain the current problem.

All KDE applications use the functions readEntry()/writeEntry() to store values into configuration files under ~/.kde/share/config. Mostly this is no problem, but as soon as hardcoded paths are stored, the application is bound to the given path and you might run into problems later.

Let's take as example the addressbook configuration file (~/.kde/share/config/kabcrc):

[Resource_E9zrABCiHc]
FileName=/home/deller/.kde/share/apps/kabc/std.vcf

This means, that as long as my home directory is /home/deller, I'll have no problems at all. But as soon as e.g. the system administrator changes (and copies) my home directory to e.g. /mnt/homes/deller, this path is wrong and I won't be able to access my addressbook any longer without reconfiguration of kaddressbook and all other apps which use similiar absolute paths in their configuration files. Esp. on workstations attached to big networks and with user home directories on NFS such situations might happen more often and the solution is pretty simple:

[Resource_E9zrABCiHc]
FileName=$HOME/.kde/share/apps/kabc/std.vcf

In this case, calling readPathEntry() instead of readEntry() will automatically expand $HOME to the full home directory path, and writePathEntry(/home/deller/.kde/share/apps/kabc/std.vcf) will store the string $HOME instead of "/home/deller" in the config file.
This forth-and-back conversion happens absolutely transparent to the application and no other changes other than changing the necessary readEntry()/writeEntry() calls to the corresponding readPathEntry()/writePathEntry() calls are needed. The applications themself will use and see at runtime the current home directory only.
writePathEntry() and readPathEntry() will change strings which contain the user's current home directory only.
Other values are not changed and the functions will behave exactly as readEntry()/writeEntry() in this case.

One nice benefit of this change is of course, that you now will be able to copy your current & favorite KDE configuration (icons, default paths, font-configuration,...) directly to your best friend by just directly copying the .kde subdirectory :-)


Ansonsten findest Du auch eine ganze Menge Informationen, wenn Du nach kde +kiosk googlest.


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1495
Location: Würzburg

PostPosted: Thu Jul 03, 2003 6:52 am    Post subject: Reply with quote

Ansonsten kanst Du alles in /etc/skel ablegen, und sobald per adduser ein neuer benutzer angelegt wird, wird das gesamte Verzeichnis als Home Verzeichnis angelegt und vorbereitet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum