How to uninstall NVidia driver from Linux

This only applies for drivers that have been installed using the .run file.

./NVidiaxxxx.run --uninstall

Source: Red Hat Documentation which they deny access to except if you pay! Idiots!

Advertisements
Posted in Linux | Tagged , , , | Leave a comment

How to to prevent the screen from turning off when locked with gnome-shell on Ubuntu 18.04

This annoys me a lot, as whenever I lock the screen, my big screen turns off and it is an old slow screen that takes a few seconds to turn on again.

To disable this behavior, do the following:

  1. Download this extension: https://www.dropbox.com/s/5owr2bxhbijdino/no-screen-blank%40example.com.zip?dl=1
  2. Extract the file and edit the metadata.json file, adding “3.28” to the list of supported shell-version
  3. Place the folder inside ~/.local/share/gnome-shell/extensions/
  4. Open gnome-tweaks (install it first by apt install gnome-tweaks if you don’t have it already)
  5. Go to Extensions and turn “No screen blank” extension on.
  6. Enjoy!

Note: I have uploaded the modified version to support Gnome 3.28 here.

Tested on Ubuntu 18.04 with Gnome 3.28.

Thanks go to the anonymous developer here, who did quite a good job!

Posted in Linux | Tagged , , , , , , | Leave a comment

Use 7z to compress & encrypt zip files

7z a -tzip -mem=AES128 -bd -y -pPASSWORD -mx=0 -- OUTPUT_FILE.zip file1 file2 file3 file3

This uses AES128 encryption and uses a compression rate of 0 (archive mode). You can pick a number up to 9 (highest compression rate)

Enjoy!

Posted in Linux | Tagged , , , , , | Leave a comment

A tiny script to replace all occurrences of a string in a file with another string

sed -i 's/original/new/g' filename.txt

This basically replaces every occurrence of the “original” string with the “new” string in the file named “filename.txt”

e.g.

sed -i 's/192.168.0.1/192.168.1.1/g' /etc/fstab

Will replace all occurrences of the IP “192.168.0.1” with the IP “192.168.1.1” in the “/etc/fstab” file.

That’s it, Enjoy!

Sources: 

Posted in Linux | Tagged , , , | 1 Comment

My favorite drop-down terminal for Linux

It’s Tilda! My previous best was Guake, but it’s having compatibility issues and not maintained frequently like this one.

sudo apt install tilda

Very customizable and has a lot of options, including position, colors, scroll bars and transparency.

Tested on Ubuntu 17.10 (Works ONLY on Xorg, not Wayland).

Screenshot from 2018-03-29 10-30-17

Tilda on Ubuntu 17.10

Posted in Linux | Tagged , , , , , , | 1 Comment

How to connect to your MS Exchange Account (Mail, Contacts, Calendar…etc) from Linux

Just go to Online Accounts -> Microsoft Exchange -> Type your e-mail and password!

Screenshot from 2018-03-28 09-36-37

This basically connects using Exchange Web Services (EWS).

If this doesn’t work out with you, click on custom and enter your username and server. I had to do that in my case, since my mail server’s address was different from the mail address.

That’s it! Enjoy! Here are some screenshots showing the results :))

Screenshot from 2018-03-28 09-51-42

Evolution Contacts

Screenshot from 2018-03-28 09-47-12

Evolution Calendar

Screenshot from 2018-03-28 09-43-46

Evolution Mail

Note: Tested and worked perfectly in Ubuntu 17.10 (Gnome 3.26).

Sources:

Posted in Linux | Tagged , , , , , , , , , , | Leave a comment

How to cut first x seconds of a video using ffmpeg

ffmpeg -i source_video.mp4 -t 50 -c copy output_video.mp4

This cuts the first 50 seconds of the video named source_video.mp4 and outputs them without any re-encoding to output_video.mp4

Source: https://ubuntuforums.org/showthread.php?t=2027333

Posted in Linux | Tagged , , , | Leave a comment