Wednesday, January 06, 2010

Random Ubuntu console notes

 

Turn off beeps: http://www.cyberciti.biz/faq/how-to-linux-disable-or-turn-off-beep-sound-for-terminal/

Framebuffer

http://tldp.org/HOWTO/Framebuffer-HOWTO.html

http://www.mat.univie.ac.at/~gerald/laptop/vesafb.txt

 

Change resolution: http://ubuntuforums.org/showthread.php?t=215566
http://www.mepis.org/node/2992
http://en.wikipedia.org/wiki/VESA_BIOS_Extensions#Linux_video_mode_numbers
http://www.linuxquestions.org/questions/ubuntu-63/console-session-very-large-text-font-598857/
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/246269
http://ubuntuforums.org/showthread.php?p=5400183

vga=ask   to ask the user to choose mode


Solution: http://ubuntuforums.org/showthread.php?p=3826742

Setup console: http://ubuntuforums.org/showthread.php?t=329369&highlight=boot+console+font

console-setup

Install fonts, script and services

fonts are installed to /usr/share/consolefonts/
script: /bin/setupconm /usr/bin/ckbcomp
services: /etc/init.d/console-setup, /etc/init.d/keyboard-setup (they are installed to rcS.d)

Configuration:
1) $HOME/console-setup
2) /etc/default/console-setup
Note: if 1) exists, 2) will not be executed at all!!!

console-tools vs. kbd

console-tools provides consolechars. However consolechars cannot recognize some fontfaces provided by console-setup.
console-tools installs service console-screen.sh, makes dumpkeys process file /etc/console-tools/remap
update-rc.d console-screen remove
For example, I tried
consolechars –v –f /usr/share/consolefonts/Uni3-Terminus20x10.psf.gz --tty=/dev/tty5

It gives error

Cannot (yet) load a non-seekable RAW file
read_simple_font(): Invalid argument

I found this post http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg154310.html

I installed kbd (sudo apt-get install kbd). console-tools is automatically removed when you install kbd. Then I tried

setfont –v /usr/share/consolefonts/Uni3-Terminus20x10.psf.gz

It works!!.

kbd installs bunch of commands,

configuration: /etc/kbd/config, /etc/kbd/remap
kbd installs service console-screen.kbd.sh (installed to rcS.d)

Note: for both of console-tools and kbd, the installed services won’t be run if setupcon is present. In other words, if console-setup is installed, services installed by console-tools or kbd don’t run.

So, usually you should edit file /etc/default/console-setup to change configuration!!! Or copy it to your home directory.
Then use command
setupcon
to make it take effect immediately.

http://www.robodesign.ro/mihai/blog/customize-your-linux-terminal

apt-get install hwinfo 
sudo dpkg-reconfigure console-setup
consolechars
setupcon

 

apt-get remove pkgname

dpkg –purge pkgname

apt-get purge pkgname

No comments: