LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-01-2015, 09:40 AM   #1
meddyliol
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.

Brian
 
Old 04-01-2015, 09:58 AM   #2
elija
Member
 
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.

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

Rep: Reputation: 25
meddyliol,
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:

Quote:
## 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.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

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

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
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, 10:20 AM   #4
meddyliol
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 12:25 PM.
 
  


Reply


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 05:03 PM
Fedora 18 mate and compiz fusion ms_chevis Linux - Desktop 3 04-26-2013 06:23 PM
Fedora 18 and mate ms_chevis Linux - General 3 03-26-2013 02:44 PM
Mate on Fedora 16/17? franta Fedora 1 07-24-2012 03:46 PM


All times are GMT -5. The time now is 09:42 AM.

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