Results 1 to 10 of 10

Thread: How to change user from livecd

  1. #1
    Join Date
    Jun 2007
    Beans
    217

    How to change user from livecd

    I-m running the livecd, I open a terminal, it appears as user

    ubuntu@ubuntu

    I want to change to my Ubuntu user

    me@me-desktop

    so that i can upgrade a package that i broke via dpkg..

    how can I switch to my user??????

    Thx

  2. #2
    Join Date
    Dec 2008
    Beans
    294
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to change user from livecd

    are you trying to repair packages within your os installed on your hdd through a live session?
    as far as I know you cant login to your user account via a live cd
    Last edited by inso_741; May 26th, 2010 at 05:21 PM.
    | Dell XPS M1530 | C2D T8300 @2.4GHz | Nvidia GeForce 8600mGT 256MB GDDR3 | 2x2GB DDR2 @667MHz |
    | Desktop | Core i7 920 @ 2.67GHz | Nvidia GeForce GTX 260 Core 216 896MB GDDR3 | 3x2GB DDR3 @1333MHz |

  3. #3
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How to change user from livecd

    sure

    Code:
    sudo adduser me
    su me
    I don't think you could graphically login as me though.

    although that won't work for your purpose.

    You will need to mount your partitions and chroot into your environment.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  4. #4
    Join Date
    Apr 2009
    Location
    Tennessee, USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to change user from livecd

    What was broken that you can't log in to your normal boot to fix it that way?
    Help me out! Go make a dropbox account from this link to get me more space! https://www.dropbox.com/referrals/NTU2ODUyNDY5 (You get the bonus space too!)

  5. #5
    Join Date
    Jun 2007
    Beans
    217

    Re: How to change user from livecd

    I did

    dpkg -i


    to downgrade three libraries:

    udev-1.0-0_151-12 to udev-1.0-0_151-1
    libudev0-1.0-0_151-12 to libudev0-1.0-0_151-1
    libgudev-1.0-0_151-12 to libgudev-1.0-0_151-1

    and now I cannot start Ubuntu..how can I upgrade them again from the livecd ????? or somehow to boot to the terminal, recovery mode doesn-t work either..

    Thanks very much in advance!!!

  6. #6
    Join Date
    Dec 2008
    Beans
    294
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to change user from livecd

    don't start multiple threads for the same problem
    I found this one here!!!


    try this and you should be fine...
    Last edited by inso_741; May 25th, 2010 at 08:58 PM.
    | Dell XPS M1530 | C2D T8300 @2.4GHz | Nvidia GeForce 8600mGT 256MB GDDR3 | 2x2GB DDR2 @667MHz |
    | Desktop | Core i7 920 @ 2.67GHz | Nvidia GeForce GTX 260 Core 216 896MB GDDR3 | 3x2GB DDR3 @1333MHz |

  7. #7
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to change user from livecd

    What you want is possible, but a little bit more complicated than simply switching to another user.

    This post explains how to do it.

  8. #8
    Join Date
    Apr 2009
    Location
    Tennessee, USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to change user from livecd

    I have no idea if this will work or not, I've never actually tried it. I'm just inferring from what has been posted already and what all I know .

    Try booting to a liveCD and mounting your Linux partition use
    Code:
    sudo fdisk -l
    to find out the /dev/sd* name for it and use
    Code:
    sudo chroot /dev/sd*
    (Whatever you had found) then try
    Code:
    sudo aptitude install udev-1.0-0_151-12 libudev0-1.0-0_151-12 libgudev-1.0-0_151-12
    if it says they are already there, change install to reinstall.

    Like I said, I have no idea if this will work, but it's all I can offer.

    Edit: Well, apparently I had the general idea... Didn't think about /dev and /proc needing to be moved And I didn't know synaptic would need to have something done with it first.
    Last edited by Ozymandias_117; May 25th, 2010 at 08:53 PM.
    Help me out! Go make a dropbox account from this link to get me more space! https://www.dropbox.com/referrals/NTU2ODUyNDY5 (You get the bonus space too!)

  9. #9
    Join Date
    Nov 2009
    Location
    Lake Wales Florida
    Beans
    607
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to change user from livecd

    Quote Originally Posted by alejandro.mc View Post
    I did

    dpkg -i


    to downgrade three libraries:

    udev-1.0-0_151-12 to udev-1.0-0_151-1
    libudev0-1.0-0_151-12 to libudev0-1.0-0_151-1
    libgudev-1.0-0_151-12 to libgudev-1.0-0_151-1

    and now I cannot start Ubuntu..how can I upgrade them again from the livecd ????? or somehow to boot to the terminal, recovery mode doesn-t work either..

    Thanks very much in advance!!!
    Is this the same fellow that told me last night (and I quote) I KNOW when I gave my suggestion for your DVD/RW problem. Now you know why you should not downgrade as you put it a major operating system file unless you absolutely know how it will affect your system. As many posts have stated DO NOT BELIEVE everything you read.
    Good Luck with your problem.
    AMD FX-6200 - MSI 4.1Ghz- Nvidia GTX550Ti -12/GIG - 60GB-SSD/500 Sata - 12.04 - Gnome 3

  10. #10
    Join Date
    Jun 2007
    Beans
    217

    Re: How to change user from livecd

    Hey I wasn't trying to disturb anyone, sometimes my english is not great and people understand a bit different what I'm trying to say, sorry about that!! No harm intended!!

    Thanks to everyone for helping out!

    I followed this from a thread by AlexenderReez from 2007:



    "



    firstly....the originally howto can be found in tips and tutorials threat....i just forward this guide as i realized that this kind of guide doesn't exist in this section but it is really important . . .
    especially to those cases..
    if you are running an upgrade and you forgot to connect your laptop to power supply then when synaptic doesn't finish install software yet to your system...(after finished download)

    or

    your install software with command dpkg -i and that particular software doesn't have enough dependency then for sudden there will be broken software noticed by update manager ...for almost the time you can remove or reinstall it again using synaptic but how about when that particular broken installation broke your system and freeze your system

    or

    you shutdown your system and forgot that your software installation still running...

    ***for those all kind of situation or other situation that make you can't log on after restart even using 'safemode' ....so you need livecd to repair it...

    put you livecd in and restart...then just lo on to livecd....

    then open terminal

    type

    sudo mkdir /mnt/repair

    sudo mount /dev/?d?? /mnt/repair

    *noted that ?d? mean part of your ubuntu root partition....it might be sda1...or hdb1 or sdb or whatever...depend where you install your ubuntu....

    sudo chroot /mnt/repair su

    sudo apt-get update
    sudo apt-get upgrade
    sudo aptitude upgrade
    sudo apt-get -f install
    sudo dpkg --configure -a
    sudo apt-get upgrade


    exit
    sudo reboot

    take out your livecd...you should can run your ubuntu as usual .....





    "





    And TARAN!!!

    Thanks everyone for your patience!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •