All posts by Don Matteo

Use the PrtScn button to open screen snipping

How to use the Windows 10 Print Screen button to open the screen snipping feature

Windows 10 version 1903 allows you to use the screen snipping feature to quickly snip and share a screenshot. You can use the Print Screen key to launch screen snipping. Until now, you had to be satisfied to use additional tools, such as the free Greenshot tool. Here is come now the Windows 10 Print Screen shortcut.

How the Print Screen Button works

How the Print Screen Button works

Using the new print screen button, you can capture a rectangle, snip a freeform area, or take a full screen capture, and copy it directly to the clipboard.

Enable Print Screen Key to Launch Screen Snipping in Windows 10

  1. Open the Settings
  2. Go to Ease of access -> Keyboard
  3. On the right, scroll down to the Print Screen shortcut section
  4. Activate with the slider – Use the PrtScn button to open screen snipping
Enable Print Screen Key to Launch Screen Snipping in Windows 10, use the prtscn button to open screen snipping

After activating the print screen shortcut, it is possible to snip and share a screenshot via the print button (prt sc).

https://youtu.be/zucMFaGBHOk

How to extend sudo Password Timeout

sudo password timeout extend

System administrators also authenticate as normal users and use sudo when administrative tasks are performed. The first time sudo run they asks for the password, after which sudo is active for some time.

The default password timeout is 15 minutes. Therefore, if sudo is run again within 15 minutes (900 seconds), the prompt to re-enter the password will not occur.

Extend Timestamp Timeout

The timestamp_timeout defines the number of minutes that elapse before sudo should ask for the password again. Edit the /etc/sudoers file to change the timestamp_timeout.

I recommend using command visudo to edit the /etc/sudoers file. Add the value timestamp_timeout on the line after “Defaults”, in the /etc/sudoers file.

$ sudo su

A grep shows the searched lines, here a sudoers at Linux Mint.

$ grep Defaults /etc/sudoers
sudoers timestamp_timeout

The default setting is Defaults env_reset

$ sudo visudo 

Edit sudoers so that the Defaults line looks like this:

Defaults    env_reset,timestamp_timeout=-0

timestamp_timeout=-1 (minus one) causes the sudo password to never expire.

  For Debian/Ubuntu distributions, the -0 option did not work. A higher value e.g. 60 is accepted.

timestamp_timeout=0 (zero) causes the sudo password to expire every 0 (zero) seconds. This means that each time sudo is called, the password is asked.