I got an errors at the end of following your guide.
I got an errors at the end of following your guide.
Last edited by niccholaspage; November 10th, 2008 at 10:42 PM.
Never mind.Kept screwing up XFCE.XD
http://www.crashie.com will crash an IE install.
I will after school.
Never mind.Kept screwing up XFCE.XD
http://www.crashie.com will crash an IE install.
Minor problem.. I must admit i'm in a bit unfamiliar territory with chroot & debootstrap.
Anyway - I created a working live CD using the debootstrap method. I added another user, while still in chroot. When I boot the cd i would like it to ask me for a login prompt and not log in directly as 'ubuntu'
Anyone know how to fix this? This is a text-only boot, there is no GUI..
The reason I would like to do this is because I would like certain files to be available upon login.. for example my ssh keys which i put in the home directory of the new user i created.
What I'm trying to accomplish is a bootable disc that that I can insert into my media center pc and execute dd over a ssh connection to the server, to clone the drive for backup purposes. But I only allow ssh sessions with key.. So i need the keys available on the live cd..
Long story short - i just need to know how to make it go to a login prompt on boot up and not auto login as 'ubuntu'.
Thanks,
-spit
Last edited by Spitphire; November 15th, 2008 at 02:50 PM.
It would be easier to do the following (in my opinion)
first you'd have to change the user name to your user name on the livecd
set the variables you set before
change the USERNAME= to fit the username you want to ssh with in nanoCode:export WORK=~/work export CD=~/cd export FORMAT=squashfs export FS_DIR=casper sudo mount -t proc proc ${WORK}/rootfs/proc sudo mount -t sysfs sysfs ${WORK}/rootfs/sys sudo mount --bind /dev ${WORK}/rootfs/dev sudo chroot ${WORK}/rootfs /bin/bash nano /etc/casper.conf
then within chroot run these commands
then exit out of chrootCode:export kversion=`cd /boot && ls vmlinuz-* | sed 's@vmlinuz-@@'` depmod -a ${kversion} update-initramfs -u -k ${kversion}
set your variables you set before
this should workCode:export WORK=~/work export CD=~/cd export FORMAT=squashfs export FS_DIR=casper sudo rm ${CD}/boot/initrd.gz find ${WORK}/rootfs/boot -iname 'initrd.img*' -exec sudo cp -vp {} ${CD}/boot/initrd.gz \;
then copy your ssh key into ${WORK}/rootfs/etc/skel
then remove the old user you created
I think using userdel
then of course make a new iso
what you should get with this, is a autologin with your username, from what I read this should be what you want
Last edited by chris4585; November 15th, 2008 at 08:44 PM.
For this to be done you will have to use live-initramfs instead of casper. After this it is just a matter of adding to following option to your grub boot entry.
Code:noautologin
Note: Another solution is to stick to casper and use ALT + F(2) to switch to another getty and log in as whatever user you wish.
Beware though that if you opt to use live-initramfs, you will not be able to install ubiquity (The Ubuntu installer) as it depends on casper. Also, you need to do some modifications to the guide. They are as follows:
1. In step A.1 replace:
with:Code:export FS_DIR=casper
Code:export FS_DIR=live
2. Replace the command in Step C.2 with:
Note that in order to install live-initramfs you have to enable the universe repository in your chroot ennviroment. Here are guides to enable universe ,CLI).Code:apt-get install live-initramfs unionfs-modules-$(uname -r) discover1 xresprobe
3. Skip step C.3 and D.2 as you will not be using ubiquity.
4. In Step D.5 Replace every occurence of BOOT=casper and boot=casper in menu.lst with BOOT=live and boot=live respectively.
5. To disable automatic login in a text only system, add the following line to your main boot entry in menu.lst (In step D.5):
Code:noautologin
Last edited by capink; November 15th, 2008 at 11:03 PM.
I decided to put the files I need in /etc/skel . Great idea btw, don't know why I didn't think about doing that. Thank you!Code:This file should go in /etc/casper.conf # Supported variables are: # USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM export USERNAME="am" export USERFULLNAME="am" export HOST="lp" export BUILD_SYSTEM="Ubuntu"
I changed /etc/casper.conf (as seen above)
When I boot the live CD though it still logs me in as ubuntu@ubuntu.
Am I missing something?
Ok, I didn't add the user 'am', i put the files i wanted access to in /etc/skel . for casper.conf to work correctly does the user need to be added to the system? or does is it suppose to add the user specified in casper.conf to the system upon boot up?
If casper creates the user, to achieve the desired results of a id less than 999 do you think changing /etc/adduser.conf to reflect so that the first user added would have an id less than 999?
I could change the following in /etc/adduser.conf:
I haven't tried it yet, I'm just not exactly sure how casper creates the user ubuntu..Code:FIRST_SYSTEM_GID=100 LAST_SYSTEM_GID=997 FIRST_GID=998 LAST_GID=29999
Bookmarks