Linux Mint This forum is for the discussion of Linux Mint. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-17-2010, 09:40 AM
|
#1
|
Member
Registered: Mar 2005
Posts: 288
Rep:
|
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 03:15 PM.
|
|
|
04-17-2010, 09:33 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Rep: 
|
Maybe try deleting the user 'mint'
|
|
|
04-18-2010, 03:58 PM
|
#3
|
Member
Registered: Mar 2005
Posts: 288
Original Poster
Rep:
|
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 05:27 PM.
|
|
|
04-20-2010, 03:14 PM
|
#4
|
Member
Registered: Mar 2005
Posts: 288
Original Poster
Rep:
|
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 04:04 PM.
|
|
|
All times are GMT -5. The time now is 10:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|