[SOLVED] quick questions about sudo and urpmi

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] quick questions about sudo and urpmi

Postby brian » Aug 18th, '11, 10:49

I've just installed mageia, and I like it. I've started using libreoffice (first time) and it seems fine, except that when in writer (I don't know about the other apps) it happens that as I'm writing, occasionally the file tab (upper left corner) lights, and I have to deactivate it in order to continue writing.

Since this continues to happen, I'm thinking that it is either a bug in the app, or something in my keyboard that isn't working.

So I decided to uninstall libreoffice and install openoffice to see if the problem persists. But when I opened Konsole and started, here's what I got:

[brian@localhost ~]$ sudo apt-get remove --purge libreoffice*

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for brian:
brian is not in the sudoers file. This incident will be reported.
[brian@localhost ~]$



What's up with this?

Thanks in advance...
Brian

PS. I've noted that youtube (flash?) doesn't work now, either. Only a black screen. Do I have a virus?
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: Hi all and quick question

Postby doktor5000 » Aug 18th, '11, 11:01

A warm welcome to you!

At first, the commands you entered are meant for Debian/*buntu. sudo is not setup by default,
if you want to use it you need to add the user to the /etc/sudoers, preferably with the visudo command.
Else, you can issue su - and your root password and you have a root shell login.

Also apt-get/dpkg is debian package management. On Mageia/Mandriva there is urmi and rpm.
http://wiki.mandriva.com/en/Tools/urpmi
So if you want to remove all libreoffice package, you do
Code: Select all
urpme -a libreoffice
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Hi all and quick question

Postby brian » Aug 18th, '11, 11:23

Hi doktor5000,

wow, I didn't realize that mandriva is a whole new "language" compared to Ubuntu/Debian. (I only have experience with Ubuntu/Xubuntu.)

So if I put

urpme -a libreoffice

then to add open office? Is it with the same "urpme" command?

Lastly, any thoughts why youtube is no longer working? I only get black screens.

Thanks much in advance for your time,
brian
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: Hi all and quick question

Postby doktor5000 » Aug 18th, '11, 11:58

Yes, it's a whole new language, but it's really exciting, you know ;)

urpme is for removing packages, -a is for -all, to remove all packages with the following name.
urpmi is for installing packages.
urpmq/urpmf is for querying packages in the repositories, which file is in which package and such stuff.

You can find out by looking at the man-pages, try this out:
man urpme
man urpmi
man urpmq
man urpmf

For the youtube problem, please look in one of the Flash player threads,
or if necessary, open up a new thread. You know, only one problem per thread to keep
up clarity.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Hi all and quick question

Postby djennings » Aug 18th, '11, 13:11

brian wrote:wow, I didn't realize that mandriva is a whole new "language" compared to Ubuntu/Debian. (I only have experience with Ubuntu/Xubuntu.)


Off topic: This graphic http://upload.wikimedia.org/wikipedia/commons/f/f6/Gldt1106.svg shows how Linux distros are related to each other. Mageia descends from Mandriva/Mandrake/Redhat so it inherits characteristics like the .rpm package format, Mandrakes package tools (urpmi), and a de-emphasis of sudo.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Hi all and quick question

Postby doktor5000 » Aug 18th, '11, 13:40

djennings wrote:Mandriva/Mandrake/Redhat so it inherits characteristics like [...] a de-emphasis of sudo.


Umm, for the record, why do you think so?
sudo has always been available, and i like it. This is more a matter of personal taste and setup, no?

Or maybe my english is just not good enough to get your point.
Did you mean that sudo is not a key aspect for Mageia/Mandriva? Then i'd agree with you.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Hi all and quick question

Postby brian » Aug 18th, '11, 18:38

Hi guys,
thanks again for your time. (Youtube works now... go figure...)

So, I gather that since Mageia derives from Mandrake/Mandriva/Redhat, then if I should want to download an app (like Skype) then I should use a version made for one of these three? In fact, I did download the skype app for Fedora because it was .rpm, but it didn't install correctly. Seems that there is a file missing or in conflict. Ugh.

Also, am I supposed to choose a repository where I get updates and new apps? If so, where do I find them?

Thanks again..

Brian

PS. Thanks for the tree! It explains a lot! :)
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: Hi all and quick question

Postby brian » Aug 18th, '11, 18:52

I'm trying to use the urpme and urpmi commands, but it always gives me a "command not found" response... :(

Brian
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: Hi all and quick question

Postby zugunder » Aug 18th, '11, 21:08

You should run these commands as a superuser.
Type su, then your root password.
Sudo is a "restricted" (typically, time-limited) version of su.
And I guess you know that you can do everything being root, including making all kinds of damage to your system.
Alternatively, you can try Mageia Control Center (MCC) with GUI, which is safer for a beginner I think...

As for the repos, go to MCC -> Software Management -> Configure media sources for install and update -> have checked Core Release and Updates, Nonfree Release and Updates, Tainted Release and Updates. There you also will find the list of packages for installation/deinstallation with search options and descriptions.
Do you have a 32- or 64-bit system?
Last edited by zugunder on Aug 18th, '11, 22:57, edited 3 times in total.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

Re: Hi all and quick question

Postby djennings » Aug 18th, '11, 21:14

doktor5000 wrote:Did you mean that sudo is not a key aspect for Mageia/Mandriva? Then i'd agree with you.

Yes, that is exactly what I mean.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Hi all and quick question

Postby brian » Aug 20th, '11, 11:10

Thanks everyone for the great help. I think I'm getting the hang of it. I'll be back soon with another thread!

Brian
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: Hi all and quick question

Postby brian » Aug 20th, '11, 18:07

zugunder wrote:You should run these commands as a superuser.
Type su, then your root password.
Sudo is a "restricted" (typically, time-limited) version of su.
And I guess you know that you can do everything being root, including making all kinds of damage to your system.
Alternatively, you can try Mageia Control Center (MCC) with GUI, which is safer for a beginner I think...

As for the repos, go to MCC -> Software Management -> Configure media sources for install and update -> have checked Core Release and Updates, Nonfree Release and Updates, Tainted Release and Updates. There you also will find the list of packages for installation/deinstallation with search options and descriptions.
Do you have a 32- or 64-bit system?


32-bit. Will that affect my updates?

Brian
brian
 
Posts: 20
Joined: Aug 15th, '11, 19:05

Re: [SOLVED] quick questions about sudo and urpmi

Postby doktor5000 » Aug 20th, '11, 23:02

No, it's only if you have a 64bit system, you also need the 32bit core release and updates sources for a few packages if you have a default install.
But if you set up the sources with MCC, than it doesn't matter. Don't know why zugunder asked.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: daniewicz and 1 guest

cron