LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-11-2008, 09:19 PM   #1
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Rep: Reputation: 0
Identical Desktops (ubuntu)


I want to customize the Ubuntu desktop so that when a new user logs in, everything is set and customized how I want it to be (not how it comes by default). Such as Wallpaper, placement of icons, gnome applets, etc.

Is there a way to do this?

I know if I take my customized Home folder and place it into another profile's Home folder, I get all the settings. So where does Ubuntu pull the initial user profile settings from? Maybe I can edit them and achieve my goal.

Well if anyone has any insight, please let me know. Thanks.
 
Old 05-12-2008, 01:35 AM   #2
Sorrofix
LQ Newbie
 
Registered: Apr 2008
Location: Canada
Posts: 6

Rep: Reputation: 0
Settings for various Linux applications that are specific for a certain user are stored in hidden files and directories in the home folder. Hidden files are nothing more than filenames that begin with a period. The main one that you're looking for is ".gnome2". To copy it, open a terminal window, and type the following:
Code:
ls -a
This should list all the files (including hidden ones) in your home directory. Now, copy .gnome2, replacing 'otherUser' with the username that you want to copy it to:
Code:
sudo cp -R .gnome2 /home/otherUser/
Enter your password, and it should copy. Repeat this for any other users, and any other configuration files/folders that you need (refer back to the output of ls if you're unsure).
 
Old 05-12-2008, 08:08 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If you just copy the files without changing the owner, then the other user will have problems.

One way around this is to copy the files as the other user. Use the command:

su otherUser

to login as the other user. Then use the command:

cp -vr .gnome2 /home/otherUser/

The "v" option gives you verbose feedback. The "r" option copies recursively. If you want to know what other options you have, use the command:

man cp
 
Old 05-12-2008, 08:16 AM   #4
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.

I wanted to do it automatically when a new user logs into the system for the first time. So where would the original .gnome2 file be located at where it pulls the default settings from that all users get? I think that's the one I want to edit if at all possible.
 
Old 05-12-2008, 09:25 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I think everyone is missing your real Q:
Quote:
Originally Posted by systemdowned View Post
... So where does Ubuntu pull the initial user profile settings from? Maybe I can edit them and achieve my goal.
Look in /etc/skel/, I believe that contains the defaults you want to alter. Make a back-up first.


If that fails, run:
Code:
locate /.gnome2/  | less -S
to find all directories named ".gnome2".

Last edited by archtoad6; 05-12-2008 at 09:28 AM. Reason: add info
 
Old 05-12-2008, 01:02 PM   #6
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks. I looked in /etc/skel and their doesn't seem to be anything there pertaining to gnome settings. I tried the "locate /.gnome2/ | less -S" command and it only turned up .gnome2 files located in Home directories. I also did a search of "/" that didn't turn up anything.

Any other ideas? It has to be getting these settings from somewhere.
 
Old 05-12-2008, 01:55 PM   #7
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
I read to add the files to /etc/profile.d and anything there would be copied to a users profile when it was created. It doesn't seem to work though.
 
Old 05-12-2008, 04:27 PM   #8
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, it seems if I copy the files to /etc/skel then the new profile gets the settings. The .gnome2 file doesn't seem to do much. Not sure what exact files I need to place in there.
 
Old 05-13-2008, 12:05 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Sorry I use KDE, which most certainly has a .kde/ in /etc/skel/, so I can't be much more help. Maybe widening the search w/:
Code:
locate /.gnome | less -S
would help. Either that or doing a locate on one of config files in a ~/.gnome2/.
 
Old 05-13-2008, 12:18 PM   #10
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Do a
Code:
ls -d ./.*
in your home directory and you'll see all the "hidden" directories - or use ctrl+h on Nautilus. There are a lot of them, but if you start going trough them there probably aren't many that are gnome-related; see them trough, or simply try one-by-one how they work (copy them one by one to the skeleton directory and make a fresh login with new user -- if it doesn't work, "clear" the settings and re-try with another directory).

It's not a wonder if you need several directories, because typically (I think) one app stores it's own settings to one directory, so even under Gnome it could be there are more than one directory that you want to get all the settings.

Maybe even quicker way would be, now that I think about it, to create a fresh new user with a home directory that is completely empty; then log in as that user, modify the desktop, log out and then see what files were created into the dot-directories under home. And copy them -- all or part of them -- to the skeleton directory.

Last edited by b0uncer; 05-13-2008 at 12:19 PM.
 
Old 05-13-2008, 01:18 PM   #11
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by b0uncer View Post
Maybe even quicker way would be, now that I think about it, to create a fresh new user with a home directory that is completely empty; then log in as that user, modify the desktop, log out and then see what files were created into the dot-directories under home. And copy them -- all or part of them -- to the skeleton directory.
I was going to do some trial and error, but that sounds way better.
 
Old 05-13-2008, 02:02 PM   #12
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
If anyone is interested, these are the files I copied to /etc/skel so new users loggin in for the first time can get a customized desktop.

.gconfd
.gconf
.nautilus
.gnome2
.config/menus
.config/autostart
.mozilla (for Firefox customization)
 
Old 05-13-2008, 02:33 PM   #13
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Still some mysteries to solve though.

Where does Ubuntu get the Documents, Music, Pictures, Public, and Videos folders when a new user logs in? And where does it pull the System Menu in gnome from. I found I could customize the Applications Menu by copying .config/menus but this doesn't seem to have an effect on the System menu. And why do Admins have more things in the System menu than regular users.... well I know WHY they have more things, but technically why do they.
 
Old 05-13-2008, 02:34 PM   #14
systemdowned
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
By the way, Thanks for everyones help... its been much appreciated!
 
  


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
How to administer many identical desktops? johann_p Linux - Server 7 01-19-2008 03:07 AM
LXer: Dell to ship Ubuntu 7.10 on desktops and laptops LXer Syndicated Linux News 0 10-17-2007 07:12 PM
LXer: Ubuntu-powered Dell desktops and notebook arrive LXer Syndicated Linux News 0 05-24-2007 08:31 PM
LXer: Ubuntu Wants a Bigger Piece of Desktops, Servers LXer Syndicated Linux News 0 02-27-2007 08:06 AM
Identical disks that are not identical staphanes Linux - Hardware 8 03-11-2006 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:12 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