Enter file in which to save the key (/home/petr/.ssh/id_rsa): /home/petr/my.key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/petr/my.key.
Your public key has been saved in /home/petr/my.key.pub.
The key fingerprint is:
The key's randomart image is:
| . .o... .|
| . o...+oo o.|
| + o.. *+o.o|
| . + + O E* .|
| = S @ o o |
| . O B = . |
| = O = |
| = o |
| o. |
To use this key you have 2 choices: run command
ssh -i ~/my.key posvic.eu
or edit SSH config file and specify IndetityFile for host. Then is no need to use parameter -i.
# Resize to width 480 and keep aspect ratio, crop 480x100 from 0 left and 20 top
convert in.png -resize 480x -crop 480x100+0+20 "out.png"
During Windows 10 update some restarts are necessary. Today first update restart broke my Grub and computer refused to boot. I went to BIOS and changed bootloader from Grub to Windows loader. Then Windows update proceed correctly.
Offlineimap is tool for syncing mails. But if you delete remote folder after sync it appears again on remote account. I wrote small bash script what solves this problem.
In previous post I wrote about file manager Ranger. In Ranger there is keyboard shortcut Shift + S to execute shell (Bash in my case). You can modify /etc/ranger/config/rc.conf (or your local ~/.config/ranger/rc.conf) and add this line:
map S shell bash --rcfile <(cat ~/.bashrc; echo 'PS1="(ranger) $PS1"')
Then you get your prompt prefixed by (ranger) and always know you are in shell of Ranger.
Ranger is advanced file manager (like mc, Nautilus, Total Commander, …) but it uses key bindings and shortcuts like vim. It is in Debian’s repositories.
fzf (command-line fuzzy finder) is tool for searching files and directories. You can download it from github.com/junegunn/fzf