Mageia 1 Terminal Commands

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

Mageia 1 Terminal Commands

Postby Bokonism101 » Jun 28th, '11, 04:55

Hey all, new user just installed today.

I'm relatively new to GNU/Linux, and have been using Ubuntu for about a year. After 11.04 was a huge disappointment, I tried a bunch of other distros, and decided to switch to Mageia 1 with Gnome as I am running a slower and older laptop and every distro I have tried with KDE seemed to overtax it and was very buggy. The largest factor in me sticking with GNU/Linux is my utter love of using the command line terminal. However, every distro I have used thoroughly has used the "sudo" and "apt-get" command lines, and Mageia doesn't seem to recognize it.

I was wondering if anyone could help me out with listing/linking to some of the basic commands to help me get started, or is there (fingers crossed) perhaps a way to set up Mageia to run the commands I am used to?

Thanks in advance.
Bokonism101
 
Posts: 2
Joined: Jun 28th, '11, 04:43

Re: Mageia 1 Terminal Commands

Postby jmjlinux586 » Jun 28th, '11, 07:02

Hello Bokonism101,
welcome to the forum.
You have chosen a great distro.
In Mageia type su
then it will ask for a root password
and your prompt will look like this:
[root@localhost]#
notice the # sign as root and not the $ for user.
This will stay as root until you close the terminal or type exit.
It is a good idea to close or exit after you are done with your
root commands.



There are some other things in Mageia that might be different from the 'bunto distros.
One is the repositories, check out this excellent tutorial https://forums.mageia.org/en/viewtopic.php?f=11&t=528&p=3498#p3498.
Then to install packages, check out rpmdrake, Mageia's package management tool.
You can also install packages with urpmi, from the command line. Check out this urpmi tutorial: https://forums.mageia.org/en/viewtopic.php?f=11&t=528&p=3498#p3498

Also check out the control center where you can change your system settings.
It will prompt you for a root password.

Hope this helps.

Enjoy Mageia

If you need any help, you know where to come. :)
User avatar
jmjlinux586
 
Posts: 15
Joined: Jun 5th, '11, 07:29

Re: Mageia 1 Terminal Commands

Postby djennings » Jun 28th, '11, 10:54

is there (fingers crossed) perhaps a way to set up Mageia to run the commands I am used to?

sudo is available in Mageia but is not installed as standard and would have to be configured once installed see http://linux.die.net/man/5/sudoers

The use of sudo seems to be frowned upon in Mageia/Mandriva circles I think because of security concerns. Maybe someone who understands it better could elaborate.
What I do know is having to prefix every command with 'sudo' is a pain in the rear end when as jmjlinux586 says you can just become root user with the su command.

Tip: If you add a '-' to the end of the su command as in :
Code: Select all
su -
Then you can start up graphical applications as root user, so for example
Code: Select all
su -
dolphin
will start up a copy of dolphin file manager as root so you can edit system files easily.

As for apt-get and aptitude, sorry, but they are not available for Mageia. Apt-get is for .deb packages while Mageia uses the .rpm package format. Urpmi is just as easy to use as apt-get enter 'man urpmi' in a terminal to read the manual.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Mageia 1 Terminal Commands

Postby Bokonism101 » Jun 28th, '11, 15:55

Thanks so much for the info guys. I'm looking forward to playing around and exploring this new Linux experience. It's good to know I'll have some support along the way. Absolutely loving Mageia so far. The same processes that took 5 minutes on my outdated laptop with Ubuntu seems to take about 30 seconds.
Bokonism101
 
Posts: 2
Joined: Jun 28th, '11, 04:43

Re: Mageia 1 Terminal Commands

Postby jmjlinux586 » Jun 28th, '11, 18:55

Hello,
Here is an "edit" to my previous post.
I posted the wrong link in the "check out this urpmi tutorial".
It should be: http://wiki.mandriva.com/en/Tools/urpmi.
Sorry for the wrong link. :oops:
User avatar
jmjlinux586
 
Posts: 15
Joined: Jun 5th, '11, 07:29

Re: Mageia 1 Terminal Commands

Postby kraynowitz » Jun 30th, '11, 13:18

Hey there, the guys answered your question pretty well, but I'd like to throw in something that I learned from when I used Fedora

Code: Select all
su -c 'blahblahblah'


which I use somewhat in Mageia. It allows you to perform a task as root with one line entry. I'm not too advanced with the terminal though, so I don't know of any quirks with this method. :-\
Linux: To each their own.
kraynowitz
 
Posts: 3
Joined: Jun 25th, '11, 07:27

Re: Mageia 1 Terminal Commands

Postby wobo » Jun 30th, '11, 14:21

kraynowitz wrote:Hey there, the guys answered your question pretty well, but I'd like to throw in something that I learned from when I used Fedora
Code: Select all
su -c 'blahblahblah'

which I use somewhat in Mageia. It allows you to perform a task as root with one line entry. I'm not too advanced with the terminal though, so I don't know of any quirks with this method. :-\

There are no quirks that I know of (as long as you place the ESC chars proper in your command line when needed. But actually you do not save any key strokes, you add 3 more instead :)
Code: Select all
su - [Enter]  ---> 5 (all lines including the Enter key)
geheim [Enter] ---> 7
foo [Enter] 4
and
Code: Select all
su -c 'foo' [Enter] ---> 12
geheim [Enter] ---> 7


PS: Pls don't take this serious, everybody is free to do it the way he wants!
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: Mageia 1 Terminal Commands

Postby kraynowitz » Jun 30th, '11, 14:57

Haha no offense taken at all. To each their own, that is the saying, right?
Linux: To each their own.
kraynowitz
 
Posts: 3
Joined: Jun 25th, '11, 07:27

Re: Mageia 1 Terminal Commands

Postby jmjlinux586 » Jun 30th, '11, 19:05

Hello,
Here is a super fast su command
User avatar
jmjlinux586
 
Posts: 15
Joined: Jun 5th, '11, 07:29

Re: Mageia 1 Terminal Commands

Postby wobo » Jul 1st, '11, 00:04

jmjlinux586 wrote:Hello,
Here is a super fast su command

Ok, this is almost the same as the way we talked about in the previous 2 posts!
I went to YouTube and watched a video where somebody uses minutes to explain something which is as well explained in 1 line of text.

See! I make mistakes, too! I'm just too curious :)
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: Mageia 1 Terminal Commands

Postby doktor5000 » Jul 1st, '11, 00:27

wobo wrote:But actually you do not save any key strokes, you add 3 more instead :)
Code: Select all
su - [Enter]  ---> 5 (all lines including the Enter key)
geheim [Enter] ---> 7
foo [Enter] 4
and
Code: Select all
su -c 'foo' [Enter] ---> 12
geheim [Enter] ---> 7


PS: Pls don't take this serious, everybody is free to do it the way he wants!

/me uses
Code: Select all
sudo foo
and uses only 9 strokes at all, without a password. Don't get a stroke from that! (pun intendend) ;)
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: 18049
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 1 Terminal Commands

Postby wobo » Jul 1st, '11, 00:32

doktor5000 wrote:/me uses
Code: Select all
sudo foo
and uses only 8 strokes, without a password. Don't get a stroke from that! (pun intendend) ;)

Ah, of course that works for all commands because you have setup sudo accordingly for you on your machine.
I'm constantly using different machines, so I prefer not to get accustomed to sudo which would only be available on my own machine. But if you stick with one machine all the time it's an enhancement, sure.
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest