July 8, 2010

 

Clipboard copy/paste in gnome terminal as in putty: solution parcellite

I don't know the formal side, but it seems that Gnome has two clipboards. One is for edit-copy/paste actions and another for mouse-select to copy and middle-mouse-click to paste.
Found today solution for this thing (which is not actually problem, of course. formally): The solution is Parcellite (to install type sudo aptitude install parcellite in term).
Of course (it's opensource, dude!) program does not have any adequate docs (just a man page there, f..k...). So one more action is required: when you run it (to run Accessories->Parcellite) from tray (it has standard windows 3.11 clipboard icon for those who remember) open Preferences, change options "Use primary selection" (turn it on) and "Synchronize clipboards" (turn on). That's all, now you have only one clipboard (But lots of items in clipboard history, so when you copy-paste your password... you understand me ;-) ).
By the way, parcellite 0.9.2 has bug (ha-ha, thought opensource could be without bugs?!): you cannot change option "Items in history" to 1. It just does not save option value "1". Silently. In the best tradition of opensource geek apps. Open options again - you see default 25 there.
You can also even disable "Save history" option. But it saves multiple items anyway. Opensource, dude...

Labels: , , , , , , , ,

February 2, 2009

 

облагораживание solaris: прокрутка построчно в man вверх и вниз

по умолчанию используется more, вверх не прокрутишь
надо добавить в /etc/profile:
PAGER="less -iMsq"; export PAGER

Labels: , , ,

January 7, 2009

 

[home], [end] в командной строке солярки и линукса

Часто после инсталляции солярки не работают такие человеческие клавиши, как HOME, END в командной строке bash. Вот как это лечится:
(взято с блога)
1) Open your bash global profile file:
# vi /etc/profile
2) Add following line to it:
export INPUTRC=/usr/local/etc/inputrc

3) Close and save the file

4) Open the file /usr/local/etc/inputrc and define / modify key binding:
# vi /usr/local/etc/inputrc

5) Append following config data:

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word

Labels: , , , , , ,

This page is powered by Blogger. Isn't yours?