Part 2, Post-install Mandriva::2010 setup ‘sudo’ 

<< Go back to Part 1

or proceed to set up sudo >>

Applications > Tools > Terminal.

Right-click > add launcher to panel.

Open the terminal now.

[username@localhost ~] $

You are in normal user mode.
enter this

$ su

[enter]

Password:

Enter your root/admin password
(for security reasons, there is no “print to screen” during this operation so you will not see anything as you enter the password. After the password) now hit

[enter]

[root@localhost adelie]#

You are logged in with root/admin control, hence the

#

symbol instead of the

$

symbol.

Set up sudo

This step allows you to perform management/administration operations without logging in as “root”.
Now enter this command at the terminal

visudo

[enter]

Use the arrow key to scroll until you find these lines

#%wheel ALL=(ALL)ALL
#%wheel ALL=(ALL) NOPASSWD:ALL

Hit the ‘i’ key and delete the # symbol at the beginning of those two lines. Doing this causes the line to become an active command instead of a comment.

Be careful to NOT do anything else in this file. Only delete those symbols. It should only be one click for each # symbol!
After this, hit the
[ Esc] key
(this is one step that had me confused.. the Esc key must preceed your command to insert “i”, save (write) and quit “:wq” ).
Now do this command to write and quit
Type

:wq

[enter]

In your terminal, type

exit

hit [enter]

This returns you to normal user mode.

[username@localhost ~] $

One more step.

Add yourself to the “wheel” group.

Go to System > Administration > Configure Computer [enter root password] > System > Administration Tools – Manage users on system

Highlight your username and right-click > Edit > Groups > scroll down to the word “wheel” check the box to the left of this group name. A yellow check symbol now appears to the left of the group “wheel”. Hit “Ok. Ctrl+Q and Ctrl+Q ends this section.

Congratulations. You are now ready to use the “sudo” command whenever you install anything from the terminal or start any program with administration privileges.

That’s really the end of this section concerning Mandriva 2010.0 post installation ..

But, before doing anything else, by now you have been offered to “upgrade to a new distribution version mandriva 2009.1”.

Fix the Mandriva Applet Upgrade Bug

Because of the naming of the current version, you will receive a notification asking you if you want to “upgrade to version 2009.1”. We want to disable this notification for now. Find the blue arrow icon in the top right corner of the top panel. Right-click it and then select ‘quit’.

In your terminal,

sudo gedit /etc/sysconfig/mdkapplet

[enter]

the text editor called gedit will now open the file named “mdkapplet”
you need to scroll until you find the line

DO_NOT_ASK_FOR_DISTRO=false

edit this line to read as follows

DO_NOT_ASK_FOR_DISTRO=true

save [Ctrl+s] and quit [Ctrl+q]
Now you won’t get that notification. Just remember that when a new version is really released, you will not be informed automatically. In any case, it is far better to download your new version, burn to disc and install that way (IMHO). The automatic upgrade often ends in a small or large disaster.

Now, I invite you to use the link below to read the next section
Part 3, Post-install Mandriva::2010 Add sources & sauces >>
*The ‘upgrade bug’ has been fixed in a subsequent update. I still find it useful to disable this “convenience” on a system used by someone who is not very familiar with Linux because an upgrade needs to be handled with necessary care. Upgrade is not the same as a simple update of a few packages. The upgrade is as easy to do – one simple click – but the implications are quite different.