Category Archives: Linux

Link

“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

Online Speech to Text Recognition

radio64It’s fast, it’s immediate and it lets you to write an email or a text in a while, anywhere you are. When you use a mobile, you need to find the right app. For my experience the universal app for this doesn’t exist. It depends on the model of the mobile in general and in particular on the type of the installed microphone. This means you need to test different apps to fins a suitable solution for your specific needs. But usually it doesn’t keep much time.

When you are at home or for more complex works that need to be directly edited on a PC, you usually cannot use any Android app and so you need a similar tool. This is my case.

If you google it, you will find different solutions. Some of them are desktop software that can be installed and settled up in a reasonable time (usually few hours). These software are really accurate and have many tools that allow you to develop complex texts typing just few keys to refine some inaccuracies. The “problem” is represented by their cost that, for some products, is high (… certainly, we are talking about few bucks…). 

Instead, a good solution could be the online -speech to text- tools offered by different websites. They are usually free but you need to be obviously connected to the web if you want to use them. 

Furthermore the text results generated by these on line tools are connected with the particular model of microphone you installed into your PC. Also in this situation you can find enthusiastic reviews for an on line tool that is completely ineffective for you. And as for Android apps you need to spend some hours to discover what is the best online tool for your needs. Last but not least to use them you need to authorized Flash (sic! yes the nosey Flash…) for managing your audio hardware.

In my experience, after some tests, the best sites offering  -speech to text- tools are four:

  • Speechlogger that is really simple to use and the most versatile as for exporting the “written” text but it works just on the Chrome Browser (version 25 or later) and this is a big limitation when you are fond of Firefox:
  • TalkTyper that is also complete and it is supported by different browser (Firefox included);
  • Dictation that is very minimalist as web graphics but it really does what it promises in every browser…;
  • SpeechPad that  is very complete but it requires a free registration to use the -speech to text- feature. There are two big features offered by this website. The first is about that it has a good grade of recognition for speeches in Russian. The second feature is represented by the possibility of using an audio file or an url redirecting to audio files and/or video (but only for YouTube or HTML5audio/video).

Some of the above described websites have a large selection of different languages you can be interested to use. Others have a narrow choice of languages but for the accuracy of the -speech to text- work, could really be what you are looking for.

So, to conclude, if you need a -speech to text- online tool, you have just to invest some hours to find the right website for your needs. When you will start to use these kind of online tools you save a lot of time that before you spent for typing.

If you liked YUMEX, don’t miss YUM EXTENDER (DNF) for Fedora 22

If you are one of them (like me) that prefer to manage and/or install software through an easy to use GUI, don’t forget to migrate to the new version of the “old” YUMEX.
Open your favourite Terminal and type:
su
dnf install yumex-dnf

Follow the instructions that appear on the screen and enjoy the new DNF GUI manager for Fedora 22.

A small collection of Firefox add-ons that you can install to improve (a little bit) your privacy

When I read news and reports about modern spyware I am a little bit discouraged about  my privacy. But I also think that something can always be done to improve privacy levels.

This time I don’t want to talk about password strength but I will try to focus your attention on some Firefox add-ons can could positively impact on your privacy.

The first is about Random Agent Spoofer that is able to obfuscate your computer configuration (better: identity) when you connect to a remote server = Internet.

This add-on is really flexible and you will spend just a couple of minutes to decide what  configuration can be useful for you. In particular you can decide how often you desire to change your agent profile and if you prefer to use just desktop agents or to appear as if you were connected through a mobile device. 

Moreover, you can choose if you want to:

  • Send spoofed ‘If-None_Match’ headers (ETags)
  • Send spoofed ‘X-Forwarded-For’ headers                         
  • Send spoofed ‘Via’ headers                                                                     
  • Accept headers match the selected browser profile
  • Spoof accepted documents
  • Spoof accepted encoding
  • Spoof accepted language (US English)

And if you have time you can also play with the many extras as:

  • Use standard font set
  • Disable local dom storage
  • Limit tab history to 2
  • Disable browsing and download history
  • Disable browser cache
  • Disable geolocation
  • Disable link prefetching 
  • Disable dns prefetching
  • Disable webgl

If you prefer a less complex agent spoofer or you are planning to use it seldom, you can use User-Agent Switcher that contains fewer features and needs to be manually configured but it’s intuitive and equally effective.

The second add-on I suggest to install is TrackMeNot that will help to defend your privacy contrasting web search engines profilation with a (huge,-if you want-) number of false queries from your browser. The (huge) number of queries about general topics will obfuscate search engines’ profile about your personal preference. Also in this case this add-on allows you to decide what kind of false queries you want to submit and how often TrackMeNot will “search” the web.

The third recommended add-on is ZenMate, a free VPN service that has obtained positive reviews by the Electronic Frontier Foundation (EFF) also because ZenMate is “based in Berlin and operates under strict German data protection laws”. ZenMate is free, easy to use and let you choose between four different exit node also if using the free base version:

– Germany 

– Romania

– Hong Kong

– USA

Last but not least, keep attention on Flash Files. Do they are so essential for you? You have to keep in mind that sometimes, also if you use a VPN as Zen Zone, you can be betrayed by Flash files. In fact, videos based on Flash can potentially leak your identity also if you try to hide your IP behind a VPN or a proxy.

Precious Web reference to configure Ubuntu and mount Pogoplug as “local”disk

It’s a pity that Pogoplug dismissed its official application for Linux some years ago. It was really useful and easy to install. But, as usual, Linux geeks discovered how to solve the matter and mount Pogoplug drives as “local” disks on Linux. I already wrote about this topic in a previous post in 2012.

But recently, after I installed Ubuntu 14.04 LTS,  I had some problems with Pogoplug and I realized that the way I previously adopted was not able to mount Pogoplug as local disk. I searched on Internet and I found a good post  that is really self explicative about this topic. With a bunch of minutes I was able to connect again Pogoplug to my computer as local disk and, after some tests, I must say that the solution described by Linerd its really effective and stable. 

Good work Linerd!

References:

https://tuxtweaks.com/2013/06/mount-your-pogoplug-on-linux/

Hibernate for Ubuntu

Since the Ubuntu 12.04 LTS the hibernate icon disappeared as possible option at the shutdown. It is not a big loss if you are not used to use (or overuse) it as I often do. Personally I think that the hibernate feature is really useful when you want to freeze your computer maintaining all the windows -and the work- you are working on at a precise moment. 

Ubuntu decided to “cut” this particular command from its GUI because it registered a remarkable number of problems caused by hardware conflicts in modern computers. 

If you use Ubuntu and you think that hibernate could till be useful for you (especially during busy working days), it is possible to insert again this specific feature as GUI on your Desktop.

First of all you have to test if your computer contains the right hardware for “hibernate” so open Terminal and type:

sudo pm-hibernate

The computer will hibernate itself but you have to reboot it to understand if hibernate worked properly in your case.

I hope (as it was for my PC) that all has gone well. In this case you can start to create the dedicated icon on your upper bar.

Before of starting it’s necessary to understand that the hibernate command will use the SWAP partition to save your temporarily data. Usually it is recommended to have a SWAP partition with, at least, the double of space of your RAM.

So I suggest to install Gparted to check the SWAP space and, only if necessary, increase your SWAP partition reducing the primary partition. Please, do this only after you safely backup all the data in your computer because this procedure could be risky if you are doing it for the first time and you have not enough experience:

sudo apt-get install gparted

Open a Terminal and install gedit and gksu (if you don’t have them already installed on your machine) typing:

sudo apt-get install gksu && sudo apt-get install gedit
Then type:
sudo gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Now a blank gedit document, named enable-hibernate.pkla will appear on your screen.

Copy and paste the following text to “compile” it:

[Enable Hibernate]

Identity=unix-user:*

Action=org.freedesktop.upower.hibernate

ResultActive=yes

Save it and reboot your computer.

A new icon will appear on the right corner of the upper bar. When you click on it, a Terminal window will appear asking for the system password. Type it and click on Return and your PC will immediately hibernate. 

Good busy working days!

Blogilo: the Linux blog client to create new posts on your local computer

Yes, I know! Talking about Blogilo is not an hot news but the “recent” version 1.1 (according to the Help Menu in Blogilo software) has added some new features and something has changed. Some years ago, when I tested Blogilo, I thought that this software was a good “concept” but it lacked of too many features as compared with e.g. online WordPress.com platform. With version 1.1 these lacks have been reduced and now Blogilo becomes interesting if you are looking for a software that could be used daily for offline posting.
Blogilo now has less bugs than in the past and it is possible to write posts with just few seldom crashes. The user interface is intuitive and after the installation you spend just few minutes for adding and setting your blog. The positive thing is that Blogilo works with all the main blog platforms and it could be considered as one of the most complete blog client for Linux.
The matter is that blog platforms evolve quickly and Blogilo, as all its competitors, seems to be slower than many of them. In fact, it could happen that some up-to-date features are immediately not supported and you have to manually modify your post and adding them directly through the host website (e.g. WordPress). 
One of the most annoying problems I continue to have with Blogilo is about wrapping text around the image/picture I am used to put at the beginning of every post I write. It is a simple matter to solve but at every post I have to manually change the html code. 
As for my experience you have two different ways to solve this isssue.
The first is to edit the image/picture after you inserted it into the post and add the value “allign” selecting the right options in the Advanced Menu (why the Advanced Menu is not available when you insert a new image/picture?).
The second (faster) is to go to the Html Editor tag into Blogilo and add this code at the end of the image <img> tag:
align="left"
For example writing this post I added:
<img src="http://i119.photobucket.com/albums/o158/galigio/blogilo_logo_zps3pmqrnq1.png" align="left" width="160" height="105">
Simple to solve but really annoying when you have so little time to dedicate to your blog….
To sum up it is possible to affirm that Blogilo really contains all the features to write a blog but if you need something more professional you have to spend some hours, after the installation, to learn how to find the right solutions for your specific needs. 
———–
References: