Tag Archives: text editor

“Username is not in the sudoers file. This incident will be reported…” How to add a specific user to sudoers on Linux

Sooner or later, if you use Linux and you prefer Terminal to GUI you will stumble on this message:

Username is not in the sudoers file. This incident will be reported

The first thing to clarify is that the “incident” will never be reported outside your computer but in the auth.log file. But if you have previously configured your Linux OS to send these kind of logs to you by email, you receive an alert about.. your own activity with sudo…

In any case, to solve the above mentioned specific sudo matter, use Terminal and type:

sudo gedit /etc/sudoers

At this point the text file “sudoers” will be opened and you will be able to modify it using e.g. gedit.

Obviously you can use another text editor you prefer as, for example, nano. In this case the command will be:

sudo nano /etc/sudoers

Now you have to peer into the text and find the “#User privilege Specification” section and add the command:

your-username ALL=(ALL:ALL) ALL

where ALL=(ALL:ALL) ALL stands for: allow the specific user (your-username) to access all the terminals, as if he/she were any other user, and allow him/her to execute the full range of commands.

And you will obtain something similar to this:

# User privilege specification
root ALL=(ALL:ALL) ALL
your-username ALL=(ALL:ALL) ALL

Try it! (..if you need…)

——————-

References:

https://help.ubuntu.com/community/RootSudo

Changing the default text editor on Ubuntu

There is a few software that will use the editor command to find out what text editor to use. Example commands will be dch to add a new .deb changelog entry, revision control softwares when prompting for commit a message …
There is basically 2 ways for changing the default editor:

1. System Wide
Run Terminal and type:
$ sudo update-alternatives –config editor
And then choose whichever editor you want to be default.

2. User Level
As a user, you cannot change the setting for the whole system, but you can add an alias for editor to let say vim.
Open and edit ~/.bashrc and add:
alias editor=vim
Next time you will open a bash prompt, your default editor will be vim. AddThis

How to share notes and images using thepiratebay.org satellite websites: PasteBay and bayimg

Today, in our Freeware Page, we added a brief review about two, multiplatform free services offered by th piratebay.org. The first one is PasteBay which allows you to quickly create, save and protect (in a basic way) your own notes when browsing on internet. PasteBay is very intuitive, quick to use and effective. The only “trouble” could be the simple http connection (instead of https) and the password you choose that could be weak if you do not choose it in a proper way. The second online service offered by thepiratebay.org is bayimg which allows you to store images for your websites in 140 different formats. Each image could be uploaded till 100MB so it is possible to save online also high resolution images. We have spent five days testing the features offered by these two websites and we have really not found any problem or bug. Recommended! AddThis mp3 link

Three interesting extensions to enjoy a real Web 2.0 experience with OpenOffice 3.0

After more or less a month from its release, the new OpenOffice 3.0 is receiving tons of positive comments. Anyway, this week, in our Freeware page, we have posted some brief notes abut three different extensions which are able to improve your effectivenss in office routines. First of all we have ooo2gd a simple menu bar which allows you to directly upload or download all kind of documents from Google Documents and Zoho. The second one is the Sun PDF Import Extension which has been created to allow minimal but useful changes to PDF documents. After few minutes we were able to make some interesting changes to a complex PDF documents with just a couple of clicks and export the result “into a hybrid PDF file, which is a PDF with the embedded source file asODF “. Last but not least we tested Sun Presentation Minimizer: an effective extensions which cuts the size of presentations reducing, for example, the image sizes. Using Sun Presentation Minimizer you will be able to simply and freely decide what kind of changes you want to make to your multimedia files contained in the presentations. To conclude it is necessary to focus your attention on the feature that also allows Sun Presentation Minimizer to work on Microsoft PowerPoint presentations.  In few words we think that these extensions are guaranteed to be 100% satisfactory!! AddThis mp3 link