"I got it up, but cant get in!
I want to play with Linux, starting with Mandrake 9.2. I played with Mandrake move and I like it a lot. So I downloaded all three ISO images, burned to disc, installed and get stuck at the log in screen. I get an invalid name/password message. I installed 3 times thinking I missed an entry, misspelled, etc., any ideas? “I want to divorce Bill!"
Comments
Did you try logging on root?
and try with no password.
Also, a point i have noticed. Linux at first is not for the feint of heart. I had a difficult time getting it down. I took me several weeks just to be able to install a usb device. Raid was nearly impossible. Make sure you have an MS installation with one partition formatted in fat so you can download all the driver files you will need
Worst case scenario (short of blowing the install away) is try the Ultimate Boot CD - from memory there is a utility there.
FIM website of the year 2007
Last time i installed redhat, I think there was an option to add additional accounts during install
linux needs patience. i didn't have either it or time to look at it. there is a version of linux that will run from a bootable cd, if you want to know what it looks like. otherwise, i would suggest, like i intend to do sometime, buy one of those big books with the free distro (usually redhat), that will guide you. i tried to install a version of mandrake that was probably requiring better hardware than i had, and have set it aside for another day.
If you can turn on a computer you should be able to follow the step by step prompts to install. And don't use mandrake... it has a setup.exe file and autrorun incase you are stupid enough to try to run it in windows! wtf?? Anyone that dumb should be shot anyway. (this is just my opinion of course. if you are this dumb, i'm sorry for stating the obvious and most likely offending you)
If that doesn't work, and you need to login to your computer and fix it through root, theres a few things you can do:
If your boot loader is LILO, you can simply type the kernel name followed by some other stuff, like so:
LILO: Linux-24 root=/dev/hda1 init=/bin/sh
That'll drop you to a nice pretty prompt in which you can do system recovery with.
If you've forgotten your root password:
Boot using that method, or using a fancy-dancy recovery or installation CD ~ (Like knoppix, gentoo, slackwares' CD, redhat recovery...)
Open up /etc/passwd with an editor (vi is installed on nearly every system, instructions at the end)
The top line is usually root, if not, find it. If it's not named root, look for the username and in the third column the ID will be zero. Remove the "x" and make that column blank.
Then, open /etc/shadow.
Make the second column blank, for a null password.
Reboot the computer and let it boot as normal. When it prompts you for a username, just type root with no password, and it should let you log in.
*immediately* afterward, issue the "passwd" command to change the root password.
VI instructions for opening and editing a file:
To open a file: vi (or vim) <filename>
*all commands are case sensitive"
There are three modes in VI/VIM:
Command mode
Edit mode
Insert/Append mode
To exit to edit mode, just press 'esc' a few times.
To enter command mode, press ":", and one should appear.
To enter insert/append mode, just press a corresponding character.
To insert text, press "i"
To append text, press "a"
To delete a line of text, press 'd' twice. 'dd'
To undo, press 'u'
To delete a single character, press the delete button if your keyboard has one, if not, press 'x'
Page up/page down scrolls up and down pages, as well as the cursor keys.
To save your file, enter command mode, and issue the command "w"
If it's read-only, (/etc/shadow is) issue "w!" - The ! overrides the command.
To exit vi/vim, press "q"
You can combine commands, like "wq!"
Enjoy
Other editors that might be included that are slightly more intuitive:
nano/pico -- operates with on-screen instructions, self-explanatory.
emacs -- menu-based, function keys do specific things
joe -- CTRL-K, H for help.
CCNP R&S - In Progress...
CCIE Security - Future...
I've been thrown in to a job with the military as a HP-UX Systems Admin (the whole "Your a computer guy, you can do it") and have had a really "crash" course with UNIX. I can say this only once
I HATE VI!!!!!!!!!!!!!!!!
Sorry I just had to get it out.
Huge thanks to Sartan... had an old SuSE 8 intallation that I thought was going to be a reinstall because I couldn't remember the root password and so had been sitting idle for nearly a year...
And although I had to mount my root partition, after using my recovery CD, prior to editing the passwd and shadow files, you saved me a whole heap of time buddy!!! Huge Thanks for your detailed (and educated) reply.
Now... to the patching 8^)
Oh and writing this note using Konqueror 3.0.1 (on SuSE
i must say one thing though- I LOVE VI!!!!!!!!!!!!
If you hate it, there's only one reason for it: You DIDN'T do the tutorial that comes with vim. Do it and you'll never look back!
Henk Kleynhans
Vi is awesome once you spend a bit of time learning how to use it. Its probably my favourite text editor; and i use it for pretty much everything :]
(id be tempted to suggest trying Emacs; but its my most hated app ever ever ever ><)
Seems a bit strange getting stuck at that point. With Mandrake 9.2 you set a root password originally, then it makes you also create an extra user account. Make sure your not trying the root password on the user account, or vise versa.
With mandrake the root user doesnt appear at the login screen does it? (So you have to Su - into it from a terminal instead) So just make sure your entering the right one! (and check for things like caps lock being left on)
Isnt there an option in the Mandrake installation that lets it login automatically as the main user account (not root, just a user account) as soon as you startup? I think thats actually what iv done on my laptop, since im the only user on it atm
And for the record : I don't like Vi either.
Slackware still is and always has been broke. The only people that ever
seem to be interested in it are the ones who are trying to feed their egos thinking they have instaled a hard distro themselves they are installing a tuff distro. And your condecending post only seems to only backs this belief up.
Any reason why you didn't try gentoo?
And LOL @ Disley's solution :