Copy output from terminal directly to your clipboard! (Linux)

Copy output from terminal directly to your clipboard! (Linux)

PROBLEM: It is difficult to copy and past outputs from and to terminal SOLUTION: Use xclip! Install xclip To install xclip on Ubuntu just use apt get, on other use the equivalent command.

Basic commands To copy output to your clipboard, just simply use | xclip (| means, everything before pipe is input for command after pipe)like this:

And you have content of myfile in your clipboard! To paste from your clipboard, just use:

Advanced strategy! To work…

Read More Read More

Using Git with Gitlab and second factor auth

Using Git with Gitlab and second factor auth

PROBLEM: After 2nd factor activation on Gitlab, username and password auth is not working anymore SOLUTION: Generate API key and use modified url Generate your API key on Gitlab You can find this option in Preferences > Access Tokens Copy this token and note you will see it only once (you have to generate a new one if the old is lost) Create new URL

So if you would like to push or clone the repo using e.g. git…

Read More Read More

Working with Git on the command line (Linux)

Working with Git on the command line (Linux)

Git basics Simple instruction how to handle git on the command line Check if Git is installed and ready

If not, you can install git using (on Ubuntu)

Set username and email Every commit is marked with username and email to identify the autor

You can check the informations using

(1) Initialize a local directory for Git If you want to include your local directory to version control, use init to tell Git what to track…

Read More Read More

Change file ownership (Linux)

Change file ownership (Linux)

PROBLEM: I cannot open some folders or use them properly. SOLUTION: Change ownership of the file. For single files

For directory

For changing owner and group

or

DYI – Van de Graaff generator – cheap version? [in progress]

DYI – Van de Graaff generator – cheap version? [in progress]

continuously updated I hate long intros, but if you never heard about Van de Graaff generator (VdG), read/watch below: https://en.wikipedia.org/wiki/Van_de_Graaff_generator https://www.youtube.com/watch?v=im-PLK7ePhQ Special #kudos for this guy, I learned a lot from his tutorial https://www.instructables.com/id/900000-volt-Van-de-Graaff-Generator-using-cheap-p/ Part 0 – Part list I’ve decided to go as cheap as possible, so I ordered some parts from eBay and bought some things on sale. I will keep the list in the Google Sheet and update it accordingly. 🙂 Please note, I am from the…

Read More Read More

Duplicity backups to Backblaze B2 (Linux)

Duplicity backups to Backblaze B2 (Linux)

PROBLEM: I would like to backup files to the cloud. SOLUTION: Pick Backblaze B2 with awesome pricing. 1.0 Create Application Key Using official guide – https://help.backblaze.com/…Account-ID-and-Application-Key Backblaze has a very easy and intuitive interface, so I bet you don’t need any guide to do it 🙂 2.0 Connection String

You should substitute real keys with variables, just to make the string more flexible. E.g.:

3.0 – Duplicity 3.1 Backup Using Duplicity to Backblaze is very simple! You just need to generate…

Read More Read More

Import and Export GPG key pair (Linux)

Import and Export GPG key pair (Linux)

PROBLEM: Need to keep keys to be able restore backups later. SOLUTION: Simple export keys and save where you want to. 1.0 – Export Use gpg –list-keys to show all keys

My only key is myFavKey, so I will export this one using

And there you go! Yyou should both files export to same safe place 🙂 2.0 – Import Copy both files to server where you would like to restore files and import both keys.

And…

Read More Read More

Change root password Ubuntu (Linux)

Change root password Ubuntu (Linux)

PROBLEM: I would like to change root password on a fresh new install. SOLUTION: Simple one command! Run command below to switch to root:

Change password by typing:

And type new root password. Done!