Remove note about sudo that appears when opening the terminal


The sudo command, short for “superuser do,” is the most powerful command prefix you can use in Terminal. It elevates your account privileges temporarily, allowing you to run commands that would typically be prohibited. With this power, you can do serious damage to your system if you’re not careful. Always exercise due caution before using sudo, and make sure you know exactly what will happen when you press Enter.

Authenticate sudo Commands with Touch ID

If you have a newer MacBook Pro, you may have gotten used to authenticating with Touch ID. But by default, Touch ID is not set up to authenticate sudo commands. These commands, which allow for a broader range of power in the command line, have to be authenticated by a password. If you’re a developer or power user on macOS, you might use sudo frequently. It can be extremely useful to authenticate sudo commands with Touch ID.

With a little bit of text file editing, we can access and edit the list...

0 0
0 0

I tried instaling ROOT by CERN by following steps described by certain people. But although that was unsuccessful, I keep getting the following line when I open a new terminal.

bash: /home/USER/bin/ No such file or directory

How can I remove that? EDIT- Please note, for those who have raised the doubts, that I have redacted my true username. And I wrote USER in that place.

There's probably an alias on your .bashrc or .bash_profile calling that file, so it tries to load it everytime you get a new prompt.

Try editing them with one of these commands:

gedit $HOME/.bashrc gedit $HOME/.bash_profile gedit $HOME/.profile

Look for any line loading '' and comment it (write a # character at the begining of those lines). If you see after saving and opening a terminal that all works well, you can go ahead and directly deleting those lines.

Also, the way the script is being called sounds wrong, shouldn't it be...

0 0

I was trying to edit my host file with the command

sudo /Applications/ /etc/hosts

I got the following error:

Sending synchronize message : 0 "CFPreferencesOperation" =: 1 "CFPreferencesIsManaged" =: true "CFPreferencesPropertyList" =: null-object "CFPreferencesShouldWriteSynchronously" =: false "CFPreferencesIsPerUser" =: true "CFPreferencesContainer" =: null-object "CFPreferencesGeneration" =: -1 "CFPreferencesIsByHost" =: false } got error reply: : true } ######################################## clBuildProgram() failed (-11) for kernel smallBlur. // OpenCL FP 1.0 __kernel void program(write_only image2d_t dest, int flipped, int4 dim, float2 st_origin, float4 st_delta, float4 l0, float4 l1, read_only image2d_t t0, sampler_t t_sampler0) { const float4 p0 = (float4)( -0x1p-1, -0x1p-1, 0x0p+0, 0x0p+0 ); const float4 p1 = (float4)( -0x1p-1, 0x1p-1, 0x0p+0, 0x0p+0 ); const float4 p2 = (float4)( 0x1p-1, 0x1p-1, 0x0p+0,...
0 0

Hmm... maybe I am giving you all the wrong information.

as an example of what is occurring, if I open up the system menu, go to administration, and click Synaptic Package Manager I get what CRF gets:

synaptic/administrative tools still run very sporadically... Occasionally will get dialog to enter password, other times nothing (when running from system -> administration menu). Also will run sporadically from terminal, sometimes yes, sometimes no...

I have this happen too, on occasion, with synaptic and system monitor. They'll do nothing when selected and no password prompt is brought up (sometimes "starting administrative application" can be seen in the bottom panel, but no dialog comes up).

If I try to run any other program under the administrative tools menu, example: Login Window, all I see is the same thing - a bar in the bottom panel, but no dialog. The bar disappears after a few seconds.

If I try to run any administrative program from the...

0 0

Another tiny new feature landed in elementary OS Freya. Now when pasting a new “sudo” command in Pantheon Terminal it will display a warning message saying that running commands as administrator can be dangerous. Whatever sudo command is used the warning message will be shown (even when you only paste sudo apt-get update). Of course when you type the command manually then you won’t get a warning, it only displays when pasting.

What do you think about this new feature? Do you think it’s a good idea to have because new users will be aware of the risks, or does it rather frustrates you?

You don’t like this new feature? Don’t worry, it can be easily turned off through gsettings or dconf at org.pantheon.terminal.settings.unsafe-paste-alert.

My personal opinion is that the idea is good, but it could have been implemented differently, without having to have an extra click. For example when the user pastes a sudo command, it would show a red coloured warning message...

0 0

This is a quickie on how install, uninstall, and search for applications/packages in Ubuntu Linux from the Terminal window.

Searching for Packages / Applications from Terminal

1. Open the Terminal window (Applications > Accessories > Terminal).

2. at the commandline, type:
apt-cache search xxyyzz

xxyyzz being the full or partial name of the package/application

Installing Packages / Applications from Terminal

1. Open the Terminal window.

2. at the commandline, type:

sudo apt-get install xxxxxxx
(xxxxxx = name of pacakge to install, ie wacom-tools )

you will then be prompted for your password or the admin password; enter it and hit enter.

3. the terminal session will now go and check the source locations for the package, if it exists, it will then download and install it. If its already installed, it will give a message saying 0 installed 1 already installed type of message.

4. type:

0 0

When you run a command started with sudo in Ubuntu terminal, it asks you to insert the password for your user with no visual feedback as you type.

For beginners who feel uncomfortable with this terminal feature, below will teach you how to tweak your Ubuntu so that Gnome terminal (and TTY console) displays asterisks when you type in your password.

Terminal with password feedback by displaying asterisks

1. Press Ctrl+Alt+T on keyboard to open a terminal window. Or open terminal from Unity Dash.

2. Paste the below command in terminal and hit enter. Type in your password when prompt.

sudo visudo

It will open the configuration file “/etc/sudoers” in terminal with nano editor.

3. Make a new line:

Defaults pwfeedback

under the line:

Defaults env_reset

So it looks like this: (NOTE that the space between Defaults and pwfeedback should be a tab)

4. Now save the changes. Press...

0 0