LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
Search this Thread
Old 04-17-2010, 08:40 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 266

Rep: Reputation: 32
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

Last edited by rrrssssss; 04-20-2010 at 02:15 PM.
 
Old 04-17-2010, 08:33 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
Maybe try deleting the user 'mint'
 
Old 04-18-2010, 02:58 PM   #3
rrrssssss
Member
 
Registered: Mar 2005
Posts: 266

Original Poster
Rep: Reputation: 32
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

Last edited by rrrssssss; 04-18-2010 at 04:27 PM.
 
Old 04-20-2010, 02:14 PM   #4
rrrssssss
Member
 
Registered: Mar 2005
Posts: 266

Original Poster
Rep: Reputation: 32
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

Last edited by rrrssssss; 04-20-2010 at 03:04 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 08:32 AM
cannot login as newly created user in terminal linoops Linux - Newbie 1 06-04-2004 08:07 PM
Nothing inside X Window for newly created User ID benny Linux - Newbie 6 04-10-2004 12:03 AM
Is there a way to custiomize newly created user profiles? pandersson61 Linux - General 3 01-17-2004 02:12 AM
Newly created user can't run kde neeyo Linux - General 4 04-11-2002 03:29 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration