Archive for

August, 2010

...

Screen cheat list

no comments

Found this cheatlist somewhere…

Credits to the one who uploaded it ..


+-------------------------------------------------------------------------------------------------+
| The formatting here is simple enough to understand (I would hope). ^ means ctrl+, so ^x is |
| ctrl+x. M- means meta (generally left-alt or escape)+, so M-x is left-alt+x |
|-------------------------------------------------------------------------------------------------|
| Action | tmux | screen |
|----------------------------------------------+-------------------------------+------------------|
| | tmux OR | |
| start a new session | tmux new OR | screen |
|----------------------------------------------+-------------------------------+------------------|
| re-attach a detached session | tmux attach OR | screen -r |
| | tmux new-session | |
| | tmux attach-session | |
|----------------------------------------------+-------------------------------+------------------|
| re-attach an attached session (detaching it | tmux attach -d OR | screen -dr |
| from elsewhere) | tmux attach-session -d | |
|----------------------------------------------+-------------------------------+------------------|
| re-attach an attached session (keeping it | tmux attach OR | screen -x |
| attached elsewhere) | tmux attach-session | |
|----------------------------------------------+-------------------------------+------------------|
| detach from currently attached session | ^b d OR | ^a ^d OR |
| | ^b :detach | ^a :detach |
|----------------------------------------------+-------------------------------+------------------|
| rename-window to newname | ^b , OR | ^a A |
| | ^b :rename-window | |
|----------------------------------------------+-------------------------------+------------------|
| list windows | ^b w | ^a w |
|----------------------------------------------+-------------------------------+------------------|
| list windows in chooseable menu | | ^a " |
|----------------------------------------------+-------------------------------+------------------|
| go to window # | ^b # | ^a # |
|----------------------------------------------+-------------------------------+------------------|
| go to last-active window | ^b l | ^a l |
|----------------------------------------------+-------------------------------+------------------|
| go to next window | ^b n | ^a n |
|----------------------------------------------+-------------------------------+------------------|
| go to previous window | ^b p | ^a p |
|----------------------------------------------+-------------------------------+------------------|
| see keybindings | ^b ? | ^a ? |
|----------------------------------------------+-------------------------------+------------------|
| | ^b s OR | |
| list sessions | tmux ls OR | screen -ls |
| | tmux list-sessions | |
|----------------------------------------------+-------------------------------+------------------|
| toggle visual bell | | ^a ^g |
|----------------------------------------------+-------------------------------+------------------|
| create another shell | ^b c | ^a c |
|----------------------------------------------+-------------------------------+------------------|
| exit current shell | ^d | ^d |
|----------------------------------------------+-------------------------------+------------------|
| split pane horizontally | ^b " | |
|----------------------------------------------+-------------------------------+------------------|
| split pane vertically | ^b % | |
|----------------------------------------------+-------------------------------+------------------|
| switch to another pane | ^b o | |
|----------------------------------------------+-------------------------------+------------------|
| kill the current pane | ^b x OR (logout/^D) | |
|----------------------------------------------+-------------------------------+------------------|
| close other panes except the current one | ^b ! | |
|----------------------------------------------+-------------------------------+------------------|
| swap location of panes | ^b ^o | |
|----------------------------------------------+-------------------------------+------------------|
| show time | ^b t | |
+-------------------------------------------------------------------------------------------------+

MoC theme

no comments

My MoC theme


#
# Theme: pieter_moc_theme
# Author: Pieter - pieter.blinkenshell.org
#

background = white black
frame = white black
window_title = green black bold

directory = white black
selected_directory = green black bold

playlist = white black
selected_playlist = cyan black dim,underline

file = white black
info = white black

selected_file = cyan black dim,underline
selected_info = cyan black dim,underline

marked_file = cyan black
marked_info = cyan black

marked_selected_file = cyan black underline
marked_selected_info = cyan black underline

status = red black bold
title = cyan black bold,underline
state = red black bold

current_time = green black bold
time_left = green black bold
total_time = green black bold
time_total_frames = green black bold

sound_parameters = white black bold
legend = white black

disabled = white black dim
enabled = red black bold

empty_mixer_bar = white black dim
filled_mixer_bar = black white
empty_time_bar = white black dim
filled_time_bar = white white dim

entry = white black
entry_title = magenta black bold
error = red black bold
message = green black bold
plist_time = green black bold

Newsbeuter 2.1 theme

no comments

Found a nice theme here in the comments: Newsbeuter 2.1 will contain support for 256-color terminals « Newsbeuter Development Blog.

# Generic Background
# First value is not used.
color background magenta color237

#Text/background when reading an article
color article color188 color237

#Color the listview items
color listnormal color188 color237

#Selected listveiew item.
color listfocus color108 color236

# info
color info color144 color234

Newsbeuter and Google Reader

no comments

I love those apps that work from a shell in linux.

One of my favs is Newsbeuter.

To make it work with Google Reader you need to create config file in:

.newsbeuter/config

In that file add these lines:

urls-source “googlereader”

googlereader-login “USERNAME@gmail.com”

googlereader-password “PASSWORD”

My config so far:

urls-source “googlereader”
googlereader-login “USERNAME@gmail.com”
googlereader-password “PASWORD”
googlereader-show-special-feeds yes
show-read-feeds  no
refresh-on-startup yes
notify-beep yes
notify-xterm yes
auto-reload yes
reload-time 120

To make it show up in Conky I added this to the config:

News:${alignr}${execpi 600 newsbeuter -x reload print-unread}

Conky examples

no comments

This guy has some great examples for the conky script:

The Peachy Blog: Index. Start Here!.

Resize Linux Terminator how you want it.

no comments

If you use terminator but want it to startup with the size you want then run it like this:

terminator –geometry=800×400+150+150

800×400 is the size ot the screen and 150+150 the position where it should popup.

!# crunchbang

no comments

So I was really happy with sabayon running on my machines but somehow I didnt get that linux feeling (or kinda lost it).

So I searched furter and stumbled on cruchnbang.

crunchbang

You need to change loads of stuff but thatsthe great thing about this distro.

There is a great community behind crunchbang and they have some amazing suggestions, tips, hints and solutions for you.

Like this conky script I am running on it instead of the default one.

Installing Sabayon Linux (gentoo flavor).

no comments

Finally I got Sabayon Linux working on my Asus EeeTop PC ET2002T.

Thing was,  I upgraded the windows version to windows 7 ultimate and enabled Dynamic Disks.

More about those here:

windows.microsoft.com::What-are-basic-and-dynamic-disks

Anyway, no partition editor was able to change this back  (like gparted, fdisk, partition magic etc etc). So I was rather frustrated about this because I wanted multiboot but I didnt want to destroy my windows (and all work stuff on it).

Called a  friend of mine who is more into these kinda things and (after a backup!!!)  he used Partition Wizzard on my machine and converted the dynamic disk back to basic. After making room on my HD for the linux partition I fired up the Sabayon LiveCD and installed it without any problems next to my Windows & Ultimate.

Still need to do some more things like getting touchscreen to work  and stuff.. But its cool. Sabayon is based on Gentoo so I expect things to go smooth.

Related links:

Sabayon Linux Five Oh!.

pisg (an IRC channel statics generator)

no comments

I wanted to create statistics for an IRC channel I am in.

Here is how i did it for Blinkeshell:
pisg -ch \#blinkenshell -f irssi -l /home/USERNAME/irclogs/Blinkenshell/#blinkenshell.log -ne BlinkenShell -o /home/USERNAME/public_html/blinkenshell.htm -co /home/pieter/pisg.cfg -nf 1 -maintainer=USERNAME
Here some more info:

Usage: pisg [-ch channel] [-l logfile] [-o outputfile] [-ma maintainer]
[-f format] [-ne network] [-d logdir] [-mo moduledir] [-s] [-v] [-h]
-ch –channel=xxx      : Set channel name
-cc –cchannels=xxx    : Only do this channel from cfg file, give multiple
times to do multiple channels
-l  –logfile=xxx      : Log file to parse, give multiple times to use
multiple log files.
-o  –outfile=xxx      : Name of HTML file to create
-t  –tag=xxx          : Replace %t in –outfile by xxx
-ma –maintainer=xxx   : Channel/statistics maintainer
-f  –format=xxx       : Logfile format [see FORMATS file]
-ne –network=xxx      : IRC network for the channel
-d  –dir=xxx          : Analyze all files in this dir. Ignores logfile.
Give multiple times to use multiple directories.
-nf –nfiles=xxx       : Analyze the last xxx files if used with –dir
-p  –prefix=xxx       : Analyze only files prefixed by xxx in dir
Only works with –dir
-cf –cfg opt=value    : Specify configuration options, eg. -cf ShowWpl=1
-co –configfile=xxx   : Configuration file
-mo –moduledir=xxx    : Directory containing pisg modules
-s  –silent           : Suppress output (except error messages)
-v  –version          : Show version
-h  –help             : Output this message and exit.
Example:
$ pisg -ne IRCnet -f xchat -o suid.html -ch \#channel -l logfile.log
All options may also be defined by editing the configuration file and
calling pisg without arguments.

Here is my pisg.cfg:

<set Format=”irssi”>
<set DailyActivity=”31″>
<set ShowActiveTimes=”1″>
<set ShowActiveNicks=”1″>
<set ShowBigNumbers=”1″>
<set ShowKarma=”1″>
<set ShowTopics=”1″>
<set ShowLines=”1″>
<set ShowWpl=”1″>
<set ShowCpl=”1″>
<set ShowWords=”1″>
<set ShowLastSeen=”1″>
<set ShowTime=”1″>
<set ShowRandQuote=”1″>
<set FoulWords=”ass fuck bitch whore shit pimp”>
<set ShowFoulLine=”1″>
<set ShowVoices=”1″>
<set ShowMostNicks=”1″>
<set ShowSmileys=”1″>
<set ShowMostActiveByHour=”1″>
<set ShowOnlyTop=”1″>
<set NickTracking=”0″>
<set Maintainer=”USERNAME”>
<set CacheDir=”/var/cache/pisg”>
<set PicLocation=”gfx/”>

More info: http://pisg.sourceforge.net/