Linux Wine Install... HELP!

tkdragon

Registered
I got so fed up with windows, I decided one day, to trash everything and install Linux, in hopes it would be better (not hard to be better than Windows). Anyway, I jumped headlong into this Linux mess being an average OS X user with NO knowledge of UNIX commands or the like. So, not long after I installed it, I read about WINE (http://www.winehq.com) and thought I should give it a shot for my games (D2LOD (http://www.latte.ca/D2LOD). I read a couple of tutorials but I got stuck, not because of the nature of the tutorials, but of my own syntax problems.
When I start out trying to install WINE (I'm on Mandrake 10 BTW) in the Terminal:
Code:
rpm -iv wine-20040505-mdk1.i586.rpm
I get:
Code:
error: cannot open lock file ///var/lib/rpm/RPMLOCK in exclusive mode
error: cannot open Packages database in /var/lib/rpm
So, I try the same command with sudo but then I get:
Code:
sendmail: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
USER is not in the sudoers file.  This incident will be reported.

So then I try to edit the sudoers file using:
Code:
vi /etc/sudoers
and I get a [Permission Denied] screen with a bunch of squiggles on it (~).

So, now that I've tried all that, I'm at a loss as to what to do. I just want to install WINE (then I'll stop whining about it:D)
 
I know I need to run rpm using the root acount. However, being my machine, with me having the only account on it, I thought I would, then, be the root account, right? Apparently this is not so. How, then do I become a root user?
 
you should never be running your normal day-to-day system as root for security reasons. that said, you probably set yourself a root password during the mandrake install.

at the terminal type su and hit enter
it will as for your password. give it the ROOT password. you are now in the termial as root. run that rpm command again. it should work now. when you type exit you will exit out of root and back to your normal user mode.

oh, the reason you couldn't edit the sudoers file is because you tried to access it as a normal user. anyway. try it all out and let us know if its still broke. you may have to visit some mandrake or wine forums.
 
Wow, I feel stupid. All I needed was a su command.
Thank you very, very much. Everything is working great :D
 
OS X uses (in my opinion) the much cleaner solution of setting up admin accounts as being able to sudo anything as root. Most Linux distros just use su.

If you want to move toward the OS X way, which I usually do, you have to su to root, run visudo (you're not supposed to edit /etc/sudoers directly - I think visudo tries to make sure sudoers doesn't get corrupted) and add yourself to the list...
 
Back
Top