Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-01-2015, 10:40 AM   #1
LQ Newbie
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Question Fedora Mate terminal

I have installed Berryboot on a Raspberry Pi and at present am running Fedora 21 Mate. I opened the Mate terminal but cannot seem to do anything with it. I tried running 'sudo apt-get update' and keep getting the message ''myname' is not in the sudoers file This incident will be reported'. I have no idea what to do.
Any help would be appreciated.

Old 04-01-2015, 10:58 AM   #2
Registered: Jul 2008
Location: The garden of England. Technically, the compost heap.
Distribution: openSUSE Tumbleweed
Posts: 60

Rep: Reputation: 21
When you installed did you also set up a root (or administrator password)? If so use su rather than sudo. Also, Fedora uses yum instead of apt.

<enter the root password>
yum update
Old 04-01-2015, 11:18 AM   #3
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
The user "myname" (whatever your logonid really is) needs to be placed in the /etc/sudoers file in order to install packages. To edit the file, you have to su to root and type "visudo" (without the quotation marks). That will open your /etc/sudoers file. Scroll through the file, once opened for editing, until you see a section that looks like this:

## Allow root to run any commands anywhere
root ALL=(ALL) ALL
myname ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

## Same thing without a password
See the line that begins with "myname"? Put a line in that location that looks just like it, only substitute your logonid for "myname". Then do a SHIFT - colon (, and type "wq" (without the question marks) to write the changes and exit visudo.

Now you can do your "sudo apt-get update", if you have installed the Debian tools. For Fedora and other Red Hat derivatives, though, normally you would do a "sudo yum update". Either way, when you use sudo to execute a command with root privilege, you will be asked for your password (the password for your logonid; not for the root password). Enter the password. Your package manager should complete the update.
1 members found this post helpful.
Old 04-01-2015, 11:20 AM   #4
LQ Newbie
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks very much for your prompt replies. I will have a go at what you both suggest.

I have just edited the file but am not sure what you mean by Shift Colon followed by wq. When I did that all it did was put :wq inthe line. I have obviously missed something somewhere.
I just did a search and found that before putting :wq I should have pressed esc to exit edit mode.

Last edited by meddyliol; 04-01-2015 at 01:25 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mate-terminal haunsdoger Linux - Newbie 5 08-07-2014 06:03 PM
Fedora 18 mate and compiz fusion ms_chevis Linux - Desktop 3 04-26-2013 07:23 PM
Fedora 18 and mate ms_chevis Linux - General 3 03-26-2013 03:44 PM
Mate on Fedora 16/17? franta Fedora 1 07-24-2012 04:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration