[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Re: tazx problem
- From: Indigo <pointofavailability@xxxxxxxxx>
- Date: Fri, 12 Nov 2010 22:28:20 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ihY1+75OzQ3xogx/S5bhu8+77x6FhT+9+f0EImYk4S0=; b=nhrr90Oz2Baqps/sFnUoNk1X4zvNUdZzvyV7fin4/8APN1J3Yl3v3Nb36rjAgzQ8MS M7gSpyNGfX2DqLfWMKBv4Y3DKsPCXHYA2HF3ta3hc0gqoOhISoivTxk3YeyOuVbnIsNj E1IuLHDkV7fqANY0PJ7haE4rk8FnSpBbIMikw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=SoQN6yqJL3fG+T7TroJd1qD1J4OGvBjVGqFKjFuSUMM37zmU+2yv8e+ruVVN182szg Jzin1/AT/msR+zVJFvNIuNOpOqBi7YyfaJX/igaV4FG8m677f1fcbmuIhVnAPoyhnOFA zwT7I41ITUGQ8rvmhTCtX7zrXa3JdW7mHpx10=
/etc/skel is needed to install the system, as much as I wish it didn't
have to exist. It's also used to generate a new iso, though there
might be better options there. My thought is that /root should be
populated with these files, and .xinitrc should not be created each
time by tazx. If slim were to default to using the /root directory,
then .xinitrc could be a pre-installed system file, and it could take
on the responsibility of copying the necessary config files, if they
don't already exist, so that tazx and tazctrlbox would not have to
both be run when a new user is created. A new user, even using
adduser, would not need to have any files in the /home directory to
start -- tazx would only be responsible for installing/reconfiguring
xorg, and tazctrlbox would only be responsible for global settings.
This makes sense because the $USER variable persists (echo $USER is
accurate before and after running tazx, just not during)... so, let
tazx configure root only, let slim login_cmd='exec /root/.xinitrc',
and let .xinitrc check to see what user is logging in and if any
config files need to be copied. This makes sense, also, because it
would be easier to edit /root for global defaults, while still
allowing configurations to be altered on a per user basis. The only
problem with this that I can think of is if /root files are changed,
the changes wouldn't be reflected in pre-existing /home
configurations... but that could be worked out, I'm sure. Anyone have
any thoughts on this idea?
On Fri, Nov 12, 2010 at 9:46 PM, guilbault frederic
<fredericguilbault@xxxxxxx> wrote:
> hi
> this discusion, make me think about why a skel in a live cd ?
>
> can we find a way to save some Ko of iso or ram space around it ?
>
>
> fred
>
>> Date: Fri, 12 Nov 2010 12:19:30 +0100
>> From: gokhlayeh@xxxxxxxxxx
>> To: slitaz@xxxxxxxxxxxxxxxxxxx
>> Subject: Re: tazx problem
>>
>> Hi all,
>>
>> We (indigo and me) already spoke about /etc/skel on IRC, here's what I
>> remember :
>>
>> * /etc/skel doesn't contains all needed files. It's an issue when creating
>> a new user.
>> * /etc/skel is used only at user creation, this implies the following
>> issue :
>> * if you remove a config file in the home of an existing user, it's doesnt
>> rollback to /etc/skel config, but to default config. I.e. : it's better to
>> put the firefox default config in the system dir than in the /etc/skel
>> because at launch time firefox use the system dir to get default config if
>> no config exists.
>> * if you install something which use /etc/skel (let's say
>> slitaz-xfce4-config) it will be used to populate new users home but not
>> existing users home.
>>
>> Solutions can be :
>>
>> • copy the /home]] files from another user (root or tux); there's an issue
>> with this : it's doesn't use default config if the user modified his config
>> files.
>> • add some lines in tazpkg to force it to copy all files in /etc/skel to
>> all users home at package installation time - solve the second issue.
>> • add two options in users management - or one of theses two - to solve
>> partially the first issue :
>> * get default config : copy a new time /etc/skel in user home and
>> reconfigure x with tazx.
>> * reset config entirely : remove all config files and put the default one
>> in user home.
>>
>> In addition, I want to say here that a new variable in receipt can be
>> usefull in slitaz : USER_CONFIG_FILES="...". Storing the path of user config
>> files can give us some new possibilities : remove package & config files,
>> remove config files of deleted packages, reset config files per package,
>> backup all user config files -or per package- and eventually populate
>> /etc/skel with it. I know that adding this is a lot of work, so I just want
>> to submit the idea; Maybe we can think about for a next SliTaz release (I
>> don't know your opinion, adding this for 4.0 seems me difficult).
>>
>> So, I think that we need to use /etc/skel anyway to get default config of
>> some apps, like openbox or pcmanfm etc.
>>
>> About adduser :
>> Maybe we can user a wrapper : a little script instead of the adduser
>> busybox. It can create the user with busybix adduser, then copy/paste the
>> skel and setup the default config with tazx.
>>
>> Hope this help.
>>
>> P.S.: indigo, if you remember something else please tell us.
>>
>> --
>> GoKhlaYeh <gokhlayeh@xxxxxxxxxx>
>>
>>
>>
>> ---
>> SliTaz GNU/Linux Mailing list - http://www.slitaz.org/
>>
>
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/