LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Mint8 Helena LiveCD on USB Stick - Always logs into Mint user, not newly created user (https://www.linuxquestions.org/questions/linux-mint-84/mint8-helena-livecd-on-usb-stick-always-logs-into-mint-user-not-newly-created-user-802548/)

rrrssssss 04-17-2010 08:40 AM

Mint8 Helena LiveCD on USB Stick - Always logs into Mint user, not newly created user
 
Hello Mint forum,

I used usb-creator to install Mint 8 Helena on a bootable USB stick and it works great. And I can add myself as a user (roy) with no problem. But if I use the login preferences utility (Gnome) to make it automatically log into user roy, it always defaults back to user mint on a reboot. I might add that persistence is enabled so that any changes I make will survive a reboot.

I realize a Live CD does some things differently than a regular install on a hard drive partition, but is there something I can do to make it automatically log in as user roy instead of user mint?

Thanks much,
Roy

piratesmack 04-17-2010 08:33 PM

Maybe try deleting the user 'mint'

rrrssssss 04-18-2010 02:58 PM

No Luck
 
Hello piratesmack

I tried what you said but upon reboot, it attempted to create a new mint user (like I had) except this time there were permissions problems so it would not even log into the desktop.

I also noticed that while it is logged into the default user mint, the mint user does not show up when I launch the utility for editing users and groups. It only shows root and myself, roy. It does not show the default user mint.

After doing more searching for answers, I have concluded this is a complex question I am asking. It will take a very savy Linux guru to figure this one out.

I have already tried the obvious things like editing /etc/host and /etc/casper.conf, and /etc/gdm/custom.conf but the changes I make revert back to the defaults when I reboot. I think the changes would have to be made in the initrd.lz file.

I haven't tried it yet, but I'm sure if I would install this OS on a hard drive (regular install), the installation scripts would make the necessary changes so I could boot up to my newly created user if I wished. I just don't know what those changes would be.

I'm about to give up on this one.

All the best,
Roy

rrrssssss 04-20-2010 02:14 PM

Solved
 
Hello again Mint forum,

My problem was I did not Google enough for the solution. I fixed my problem with this web site: http://ubuntuforums.org/showthread.php?t=1309554

Now just before the desktop launches, I am greeted with a box asking me which user do I wish to log into, either mint (live session user), or user roy.

but this is a quote of what it said by juliopjuliop:

Quote:

Re: Disable Automatic Login on Karmic USB Install
Hi, after many hours of pacience i have managed to come up with a solution to this problem. First i found out the root of the issue is that a script in initrd.lz actually creates the autologin instance(/etc/gdm/custom.conf) for ubuntu user in a livecd, this script is called "15autologin" and is located in the livecd, in the directory "/usr/share/initramfs-tools/scripts/casper-bottom/" the way i fixed this was i unpacked the squashfs file and chrooted in, then edited 15autologin file to set automaticlogin=true to false and i also changed the timeout option to false. Then i went ahead and rebuilt the initrd.lz with this command "mkinitramfs -o /initrd.lz 2.6.31-11-generic" wich made a new file called initrd.lz in the root of the squashfs, then i proceded to close the chroot and overwrite the /casper/initrd.lz in my liveusb with the newly generated one, and booted it up and vuala it showed me the login screen. hope this helped.

Also in theory this could work from within your liveusb just modifying the file 15autologin temporarily in the live environement and using "mkinitramfs -o /initrd.lz 2.6.31-11-generic" then you will have too copy it too another usb or onto your harddrive and then bootup into another os and overwrite it as you cannot overwrite your initrd.lz in your usb as its mounted as a cd.

PS: i would gladly upload the modified initrd.lz so you wont have to go through all this hassle, but im not sure if i can.



I think I could have accomplished the same thing by editing the initrd.lz that is on my USB stick directly. I *think* all of the information in /usr/share/initramfs-tools/scripts/casper-bottom is updated from the actual initrd.lz on the USB stck each time you reboot. If I'm wrong about that, please let me know.

I believe when Mint is installed directly onto a hard drive, the install script in /usr/share/ubiquity/install.py might do this same thing differently because I doubt if re-creating the initrd.gl file is part of the standard installation process.

All the best,
Roy


All times are GMT -5. The time now is 08:44 PM.