Howto fbterm ============ 1. Config: ---------- .fbtermrc: # Configuration for FbTerm # Lines starting with '#' are ignored. # Note that end-of-line comments are NOT supported, comments must be on a line of their own. # font family names/pixelsize used by fbterm, multiple font family names must be seperated by ',' # and using a fixed width font as the first is strongly recommended # font-names=mono # font.names=FreeMono font.names=Monospace # font-names=TimesNewRoman font-size=32 # fbterm --font-names=LiberationMono --font-size=48 # font-names=Inconsolata,Symbola # font-size=28 # force font width (and/or height), usually for non-fixed width fonts # legal value format: n (fw_new = n), +n (fw_new = fw_old + n), -n (fw_new = fw_old - n) #font-width= #font-height= # default color of foreground/background text # available colors: 0 = black, 1 = red, 2 = green, 3 = brown, 4 = blue, 5 = magenta, 6 = cyan, 7 = white color-foreground=7 color-background=0 # max scroll-back history lines of every window, value must be [0 - 65535], 0 means disable it history-lines=1000 # up to 5 additional text encodings, multiple encodings must be seperated by ',' # run 'iconv --list' to get available encodings. text-encodings= # cursor shape: 0 = underline, 1 = block # cursor flash interval in milliseconds, 0 means disable flashing cursor-shape=0 cursor-interval=500 # additional ascii chars considered as part of a word while auto-selecting text, except ' ', 0-9, a-z, A-Z word-chars=._- # change the clockwise orientation angle of screen display # available values: 0 = 0 degree, 1 = 90 degrees, 2 = 180 degrees, 3 = 270 degrees screen-rotate=0 # specify the favorite input method program to run input-method= # treat ambiguous width characters as wide # ambiguous-wide=yes # exec screen 2. Error message "can't chage kernle keymap table" -------------------------------------------------- sudo chmod u+s usr/bin/fbterm 3. Add your user to the video group so you can access the device frame buffer /dev/fb0 -------------------------------------------------------------------------------------- https://gist.github.com/zellio/5809852 usermod -aG video USERNAME 4. Login hacks -------------- https://gist.github.com/zellio/5809852 * Add the (following) code in profile to the end of /etc/profile it sets a flag so you can wrangle your \$TERM variable later, executes fbterm for you and injects a few color codes so that everything will render properly. vi ~/.profile: # hack for 256 color depth with fbterm if [ "$TERM" = "linux" ]; then echo -en "\e]P0222222" #black echo -en "\e]P8222222" #darkgrey echo -en "\e]P1803232" #darkred echo -en "\e]P9982b2b" #red echo -en "\e]P25b762f" #darkgreen echo -en "\e]PA89b83f" #green echo -en "\e]P3aa9943" #brown echo -en "\e]PBefef60" #yellow echo -en "\e]P4324c80" #darkblue echo -en "\e]PC2b4f98" #blue echo -en "\e]P5706c9a" #darkmagenta echo -en "\e]PD826ab1" #magenta echo -en "\e]P692b19e" #darkcyan echo -en "\e]PEa1cdcd" #cyan echo -en "\e]P7ffffff" #lightgrey echo -en "\e]PFdedede" #white FBTERM=1 exec fbterm fi * Next add the code in shellrc to your shell configurations somewhere. It will help to auto-dectect and set your $TERM variable properly. If $TERM is wrong, your colors won't work. vi ~/.kshrc: case "$TERM" in xterm*) if [ -e /usr/share/terminfo/x/xterm-256color ]; then export TERM=xterm-256color elif [ -e /usr/share/terminfo/x/xterm-color ]; then export TERM=xterm-color; else export TERM=xterm fi ;; linux) [ -n "$FBTERM" ] && export TERM=fbterm ;; esac