Monday, March 28, 2016

Type accent marks, diacritics and other characters online

If you need quickly diacritics or currency signs, typeit.org does it for you. Many languages supported.

Saturday, March 26, 2016

SSH port forwarding: bind: Cannot assign requested address

While trying to do a simple port forwarding to access a remote mysql server via a secured channel I was getting an annoying bind: Cannot assign requested address.

$ ssh -v user@host.biz -L5555:localhost:3306
debug1: Local forwarding listening on ::1 port 5555.
bind: Cannot assign requested address

So it must be the buggy IPv6, after adding -4, all worked like a charm.

$ ssh -4 -v user@host.biz -L5555:localhost:3306
debug1: Local forwarding listening on 127.0.0.1 port 5555.
debug1: channel 0: new [port listener]

Diacritics in a linux console for pico/nano/etc

I wanted to quickly edit a text file with pico and when I pasted a word, I noticed that all diacritics were replaced with some funny characters. A quick fix was to edit /etc/locale.gen and add my language like pl_PL.UTF-8 UTF-8 for Polish. Then run # locale-gen as root and all was working good. A list with all supported languages can be found in /usr/share/i18n/SUPPORTED