neurotrigger

Tag: usability

GNU Screen scroll fix

by mmnicolas on Nov.08, 2009, under gnu/linux

The GNU Screen manual tells you that to use scrolling, you must first enter “Copy mode” with C-a [.

You can easily fix this and use regular PgUp/PgDn by simply adding a line to your ~/.screenrc. I really don’t know why this isn’t a default setting except that it seems to mess with Vim scrollback.

Here’s the line:

termcapinfo xterm ti@:te@

Enjoy.

Leave a Comment :, , more...

Useful and nice looking shell with GNU Screen

by mmnicolas on Jul.28, 2009, under gnu/linux

This is how i got my linux shell looking so wonderful, using GNU Screen of course and its famous ~/.screenrc configuration file.

Let’s create it and paste this into it:

#hardstatus string ” %wb%-w%wr%n %t%-%+w %=%D %d %M %y %c”
#hardstatus string “%r%c%k | %w% ? (%h)% ?”
#hardstatus string “%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]“
hardstatus string ‘%{= c}[ %{W}%H %{c}][%= %{= w}%?%-Lw%?%{c}(%{W}%n*%f%t%?(%u)%?%{c})%{w}%?%+Lw%?%?%= %{c}][%{W} %d/%m %{W}%c %{c}]‘

bindkey -k F1 prev
bindkey -k F2 next

screen -t irssi 1 irssi -c irc.freenode.net
screen -t mutt 2 mutt
screen -t monitor 0 lwatch -i /dev/xconsole

hardstatus alwaysignore hardstatus alwayslastline

The whole aesthetic thing reside in the first uncommented line, this is where it sets what is displayed in the hardstatus line which is always the last line. You can find documentation about the variables that can be used to display different types of information in the screen man page. ($ man screen).

As for the bindkey, you’ve guessed they bind keys to go forward and backward in your terminal tabs, and yes F1 means F11, don’t ask me why. I use F11 and F12 because i intend to use F9 and F10 in irssi to move between windows.

1 Comment :, , , , more...

Keyboard layout configuration without desktop environments tools

by mmnicolas on Jul.27, 2009, under gnu/linux

My home file server used to be headless, but i thought it deserves a head even if it’s only a PIII 300mhz/256mb of ram, no video accel. So i installed a minimal Xorg server with openbox as a window manager. Then i remembered, maybe 10 years ago when i was using WindowMaker and/or Blackbox i had to fiddle with xmodmaps and xkeycaps to get french accents working. Now i realize there is a much more simpler way to do it through the Xorg config file /etc/X11/xorg.conf.

Section “InputDevice” Identifier “keyboard”
Option “XkbRules” “xorg”
Option “XkbLayout” “ca”
Option “XkbVariant” “fr”
EndSection

Just modify your keyboard section with the above Xkb options.

And there you are, with a french canadian keyboard layout! Now i can watch pictures with french accents in the filename…

Leave a Comment :, , , more...

Passwordless ssh login

by mmnicolas on Jun.22, 2009, under gnu/linux

Authenticating with regular mechanisms even with ssh always sends your password in clear text, using the RSAAuthentication requires you use a pair of files known as public/private key pair. You can use a passphrase on them for even more security (eg.: let’s say someone gets his hands on these files, without the passphrase there is still no chance to use the key) or use them without passphrase, resulting in a passwordless, automatic login, which is very nice but you have to take care of your precious keys.

Here’s how to generate your pair of keys:

(continue reading…)

Leave a Comment :, , , , , more...

Looking for something?

Use the form below to search the site:

Visit my idols!

Those who gave us tools to play with...

    Archives

    All entries, chronologically...