LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-12-2006, 06:14 PM   #1
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Lightbulb How to clone user KDE menu to other users


Hi there

Am running FC5 with KDE. When I set up a user I have been using the menu editor under each user to set each one up the same. Then the user can do what they want after that. Takes me quite a while to pick icons and make directories and change things around how I like it, even using the menu editor.

Is there an easier way where I can just copy a users menu setup to another user to save me this hassle. With all the same little icons and all that stuff.

Been putting off setting up another two users because I am getting to lazy to set each users menu up the same as everyone elses.

Look forward to any reploies and help.

Cheers

Gimmee

Last edited by gimmee; 12-12-2006 at 06:16 PM.
 
Old 12-12-2006, 06:43 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Never done this but copy the file /home/username/.config/menus/applications-kmenuedit.menu to the new user and see if that works. You will need to change ownership and groupship to he new user.

Brian
 
Old 12-12-2006, 09:41 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you haven't created the other users yet, that's good!
Just set up the first user desktop and apps the way you want it.
Then, copy those settings to /etc/skel . That is where new users get their settings from.
For example: My first user is fred
Code:
as root user ...
rm -rf /etc/skel
mkdir /etc/skel
rsync -av --exclude='.thunderbird' /home/fred/ /etc/skel
If you are nervous about it, you can make a backup of /etc/skel first.
 
Old 12-12-2006, 10:08 PM   #4
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Hey thanks for those replies. No I havent set the users up yet so am looking forward to getting home and trying these helpful hints out.

Cheers

Gimmee
 
Old 12-13-2006, 04:12 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Never looked into the /etc/skel directory let alone what it was for. Well make a note of that. Learn something everyday even after 8 years of Linux. Thanks homey.

Brian
 
Old 12-13-2006, 04:42 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You're welcome Brian!
I was afraid that method was just blowing smoke as nobody seems interested. Then, I noticed that Knoppix uses a similar method in the 45xsession file.

Anyway, it works for me and I use it to cut down on setup time for all my systems. You can even rsync the first user settings over to other machines.
 
Old 12-17-2006, 02:41 PM   #7
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Man that command worked primo. Just added a couple more --excludes to the command and ran it. Added users with , adduser newuser, Set each new persons password with "passwd newuser" command. Logged out then into each user and it was exactly like the first user. Changed login photo for each person, set each persons email up, deleted some desktop icons they did not need and that was that. That was a huge timesaver and made adding new users enjoyable and very easy.

Thanks heaps for that valuable piece of info.

Gimmee (I don't want anything. thats just my nickname)

Last edited by gimmee; 12-28-2006 at 12:45 PM.
 
Old 12-17-2006, 03:20 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Glad you could use it!
Quote:
Gimmee (I don't want anything. thats just my nickname)
I'm not going to mention any names but my nickname starts with the intials Homey.
DOH! I mean HC !
 
Old 12-27-2006, 02:23 AM   #9
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Hey there

One thing I havent sorted yet is when each person logs onto KDE, the WELCOME screen shows the orignal user name from when I

rsync -av --exclude='.thunderbird' /home/fred/ /etc/skel

for example all users would have the KDE Welcome screen showing Fred. Where is this name stored in the /Home directory so I can set it to correctly show each user who is logging in. Getting a bit of stick about it from the family but otherwise still one of the best commands I have learnt.

Look forward to any replies on this.

Cheers

Gimmee
 
Old 12-27-2006, 07:56 AM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Did you create the users with the command: adduser ?

Just to clarify, I only use the rsync command once to set the /etc/skel directory. Then, anytime I use the adduser command, the new user gets it's desktop settings from the /etc/skel.
 
Old 12-27-2006, 11:59 PM   #11
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Hi Homey

Yeah I only used the rysync command once from the first user, then did adduser newuser, then passwd newuser. My rsync command looked like this:

rsync -av --exclude='bin' --exclude='Clipart' --exclude='Downloads' --exclude='dvd' --exclude='Fonts' --exclude='Music' --exclude='Photos' --exclude='Printing' --exclude='Video' --exclude='.evolution' --exclude='.picasa' --exclude='Stuff' /home/gimmee/ /etc/skel

then: adduser katrina
then: passwd katrina


It set up the kde environment exactly like the first user but also added the first user name in KDE Welcome screen. So every user has WELCOME gimmee even though they are going into their own logon.

Sure it is in the .kde somewhere but cant see it yet.

Thanks for the replies

Gimmee
 
Old 12-28-2006, 07:52 AM   #12
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
As root user, In kde Control Center/Login Manager/Convenience tab,
do you have Preselect User set to your original user?
That might be something for you to look at. If so, try none
 
Old 12-28-2006, 12:41 PM   #13
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Hi Homey

I knew I saw that somewhere. It must have been in root like you said.

Was looking around last night but didn't go into root and thus didnt see it. Will try that when I get home.

Thanks for the helpful replies.

Cheers

Gimmee
 
Old 12-28-2006, 02:33 PM   #14
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You're welcome!

I don't see a welcome message on my box but maybe cause I'm using gdm and not kdm.
If you are using kdm, you could at /etc/X11/xdm/kdmrc .

Here are a couple of lines which may be of interest.

GreetString=Welcome to %s at %n

PreselectUser=None

Other than that, I'm not sure.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the KDE menu for a single user Samoth Linux - General 3 02-02-2006 06:03 PM
Stopping Users losing KDE main menu 1kyle Linux - General 5 01-09-2006 10:29 PM
KDE Menu Icon Sizes different for users and root cwotoddgood SUSE / openSUSE 3 12-07-2005 01:44 AM
KDE Menu for ALL Users? OpenOffice? tubatodd Slackware 7 03-03-2005 11:35 AM
KDE Menu Edit for multiple users ethidium Linux - Software 1 09-17-2003 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration