As soon as I sort out exactly what I did, and can redo it I will.MeanDean wrote:well....share.....
Cheers
Aye, something along that line. I used adduser as well as passwd to set things up, but wound up with root privileges for everything in home/user. I change home/user privileges to user & that sorted things.MeanDean wrote:Actually, that does bring up a good point.
If you create anything when you are in the chroot then it needs to have the proper ownership/permission. If you create a folder in /home/user1 then you must chown/chgrp it properly.
If you want all users to have certain folders/settings then you are probably better off putting those things in /etc/skel and then creating users.
....at least that is my best guess/opinion
Bro.Tiag wrote:As soon as I sort out exactly what I did, and can redo it I will.MeanDean wrote:well....share.....
Cheers
Open a console and then create the file autologin.c ;adduser userCode: Select all
Adding user `user' ... Adding new group `user' (1000) ... Adding new user `user' (1000) with group `user' ... Creating home directory `/home/user' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for user Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y
Code: Select all
nano autologin.c
Code: Select all
int main() { execlp( "login", "login", "-f", "user", 0); }
Code: Select all
gcc -o autologin autologin.c
Code: Select all
cp autologin /usr/local/sbin
Code: Select all
nano /etc/inittab
Code: Select all
1:2345:respawn:/sbin/getty 38400 tty1
Code: Select all
#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
Code: Select all
nano home/user/.bash_profile
Code: Select all
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
Code: Select all
echo "path_to_what_ever_it_is_you_want_to_start" > home/user/.xsession
Code: Select all
chmod -R -v 0777 /home
mode of `/home' retained as 0777 (rwxrwxrwx)
mode of `/home/user' retained as 0777 (rwxrwxrwx)
mode of `/home/user/.config' changed to 0777 (rwxrwxrwx)
mode of `/home/user/.config/menus' changed to 0777 (rwxrwxrwx)
mode of `/home/user/.config/menus/applications.menu' changed to 0777 (rwxrwxrwx)
mode of `/home/user/.xsession' retained as 0777 (rwxrwxrwx)
mode of `/home/user/.bash_profile' retained as 0777 (rwxrwxrwx)
mode of `/home/user/.bash_logout' retained as 0777 (rwxrwxrwx)
mode of `/home/user/.bashrc' retained as 0777 (rwxrwxrwx)
It has been updated....some things have changed and may change again in the future so I have no idea how long it will be applicable. I tried to explain what I was doing so it will at least be a rough guide to follow. Basically it involves copying everything over except stuff that is dynamic and anything that should not be copied - use your best judgment - then edit fstab to look normal, install grub (if needed)...MeanDean wrote: As soon as I get a chance I will update the following howto about manually installing a livecd http://forums.debian.net/viewtopic.php?p=98455
Aye, that just worked. Mind you all I did was modify my /etc/inittab on my previous working auto login set up. But it did work. Also this was the first time I actually was able to boot to the gui in qemu.MeanDean wrote:I wonder if you could just edit /etc/inittab and use -f userBro.Tiag wrote: I'm sure that there is a better way, but this works.
Cheers
1respawn:/bin/login -f user </dev/tty1 >/dev/tty1 2>&1
and then edit bash profile to startx...
so much fun stuff....so little time...
gotta keep up....!!!!Bro.Tiag wrote: ps - stop editing your post's, you keep confusing me.
pss - so I guess I was not the only one with problems trying Xnest?
Great how-to, Dean. One question: what is the correct format/syntax for the "myfavs" package list file? A brief example would be helpful. Can this list be created, for example, using dpkg or maybe apt-cache to generate a list of installed packages on an existing install?MeanDean wrote:The following commands will build a lenny live image for i386 with myfavs package list and the debian installer
mkdir livebuild
cd livebuild
lh_config -d lenny -a i386 -p myfavs --debian-installer=enabled
lh_build
when it is done, look in the livebuild folder for the binary.is
Code: Select all
icewm medit audacious
Code: Select all
icewm
medit
audacious
Code: Select all
#<include> standard-x11
icewm medit audacious
Not sure if live-helper lets you muck with etc/skel (although I suspect it does) but Deans second post in this thread gives instructions on customizing.ingo wrote:Okay, now I got lenny (at last!) I can look at those things as well in more detail.
If I understand right, live-helper does not really let you change things like /etc/skel - or does it???
How hard is it to copy them into a wee file & make them executable? Granted it's not universal, but for personal use it makes things easier.ingo wrote:Non intoxicating?? Not sure I want that
However, one thing I'm sure I don't want is to type in all those commands every time I want to put chroot into a squashfs or make the iso.
A few people have been working on a script on another forum. It needs a little adjustment to work for all squashfs based distros but that is easily done.
Anybody interested?