PDA

View Full Version : [SOLVED] Change default user on live session


Nonno Bassotto
October 26th, 2008, 07:30 PM
I'm trying to create a customized version of ubuntu. The last thing missing is to remove all occurrences of the name ubuntu, at least in the user interface.

I'm trying to find out how to rename the default user of the live session, which for now is called ubuntu@ubuntu. I've been not able to find where this name comes from. Does anyone know?

init1
October 27th, 2008, 06:13 PM
The host name (it's the first "ubuntu" in "ubuntu@ubuntu") can be changed by editing /etc/hostname.

Nonno Bassotto
October 27th, 2008, 06:50 PM
Unfortunately the user is created during boot for the live session, so the default name is stored somewhere else. It seems that it should be under /etc/casper.conf, at least from what I could understand of the boot scripts for the live cd. But unfortunately changing the appropriate lines there didn't work :(

chris4585
October 27th, 2008, 09:36 PM
I have a similar problem (ok the same problem) but I think I know where to look

/etc/casper.conf <-- never worked for me

another place is

/usr/share/initramfs-tools/scripts

Thats all I can say since I actually haven't had success in editing the casper file in that folder, maybe you might who knows

Nonno Bassotto
October 28th, 2008, 04:56 AM
I solved this. You just need to edit /etc/casper.conf and then rebuild initrd.gz using mkinitramfs and copy the resulting image on the cd.

chris4585
October 28th, 2008, 06:14 AM
I'll try that, thanks