Friday, November 25, 2005

lm-sensors


# sudo apt-get install lm-sensors ksensors
# sudo sensors-detect

- "yes" to all questions

# cat /etc/modules

# I2C adapter drivers
i2c-nforce2
i2c-isa
# I2C chip drivers
eeprom
it87

# sudo /etc/init.d/module-init-tools
# sensors

it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.39 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +0.00 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +6.53 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +5.00 V (min = +4.76 V, max = +5.24 V)
+12V: +11.97 V (min = +11.39 V, max = +12.61 V)
-12V: -4.29 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: -13.64 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +4.95 V (min = +4.76 V, max = +5.24 V)
VBat: +3.07 V
fan1: 0 RPM (min = 0 RPM, div = 8)
fan2: 0 RPM (min = 664 RPM, div = 8)
fan3: 5625 RPM (min = 664 RPM, div = 8)
M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor
CPU Temp: +41°C (low = +15°C, high = +45°C) sensor = thermistor
Temp3: +25°C (low = +15°C, high = +45°C) sensor = thermistor

- ALT+F2 in KDE -> 'ksensors'

Thursday, November 24, 2005

FreeNX server


# sudo vi /etc/apt/sources.list

deb http://seveas.ubuntulinux.nl/ breezy-seveas all

# sudo apt-get install freenx

- use NoMachine key for a simple setup or generate custom key /var/lib/nxserver/home/.ssh/client.id_dsa.key and import it to NX clients

# sudo nxserver --adduser username
# sudo nxserver --passwd username
# sudo vi /etc/ssh/sshd_config

AuthorizedKeysFile %h/.ssh/authorized_keys2

# sudo /etc/init.d/ssh restart

Wednesday, November 23, 2005

Firefox - user.js


//
// user.js
//
// for Mozilla Firefox 1.0.7+
//
// by Obi Bok
// ----------
// Gmail: obibok
// http://linuxtuneup.blogspot.com
//
// place in ~/.mozilla/firefox/xxxxxxxx.xxxx/
//

// set search from URL Bar using Google
user_pref("keyword.URL", "http://www.google.com/search?btnG=Google+Search&q=");

// display errors in web pages instead of dialog boxes
user_pref("browser.xul.error_pages.enabled", true);

// force frames to be resizable
user_pref("layout.frames.force_resizability", true);

// disable Find As You Type (Find must be invoked manually)
user_pref("accessibility.typeaheadfind", false);

// disable Find As You Type sound
user_pref("accessibility.typeaheadfind.enablesound", false);

// enable automatic highlight in Find As You Type while typing
user_pref("accessibility.typeaheadfind.autostart", true);

Tuesday, November 22, 2005

Firefox - userChrome.css


/*
* userChrome.css
*
* version 6.1.25
*
* for Mozilla Firefox 1.5+
* on Ubuntu 5.10 GNU/Linux
*
* by Obi Bok
* ----------
* Gmail: obibok
* http://linuxtuneup.blogspot.com
*
* place in ~/.mozilla/firefox/xxxxxxxx.xxxx/chrome/
*/

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");



/* --- TOOLBAR --- */

/* merge 'Stop' and 'Reload' buttons
* 'Stop' must be placed before 'Reload' on toolbar
*/
#stop-button[disabled="true"] { display: none; }
#stop-button:not([disabled="true"]) + #reload-button { display: none; }

/* set URL bar color for high security */
#urlbar[level="high"] > .autocomplete-textbox-container {
background-color: #99FF99 !important;
color: black !important;
}

/* set URL bar color for low security */
#urlbar[level="low"] > .autocomplete-textbox-container {
background-color: #FFFF99 !important;
color: black !important;
}

/* set URL bar color for broken security */
#urlbar[level="broken"] > .autocomplete-textbox-container {
background-color: #FF3366 !important;
color: black !important;
}

/* remove text from 'Go' button */
#go-button .toolbarbutton-text { display: none !important; }



/* --- MESSAGE BAR --- */
/* top bar activated by XPI installs, popups, etc. */

/* set browser message bar margins, padding and colors */
browsermessage {
background-color: #FF0000 !important;
color: #FFFFFF !important;
margin: 0px !important;
padding: 0px !important;
}

/* set browser message bar text margins */
browsermessage .messageText { margin: 0px !important; }

/* set browser message bar 'Options' button margins */
browsermessage .messageButton { margin: 0px -3px 0px 0px !important; }

/* set browser message bar close button margins and padding */
browsermessage .tabs-closebutton {
margin: 0px 0px 0px 0px !important;
padding: 0px !important;
}



/* --- TAB BAR --- */

/* set tab bar margins and padding */
.tabbrowser-tabs {
height: 26px !important; /* set tab height when tab close button is disabled */
margin: 0px 0px -2px 0px !important;
padding: 0px !important;
}

/* set tab borders, margins and padding */
tab {
border: 2px inset !important;
border-color: inherit !important;
margin: 0px !important;
padding: 0px 0px 1px 2px !important; /* set favicon and text placement; must be set the same for active tab */
}

/* disable theme support in tabs to set their background colors */
tab { -moz-appearance: none !important; }

/* set unread tab color
* must be defined before active and visited
*/
tab:not([selected="true"]) { color: #0000FF !important; }

/* set active tab colors, margins and padding */
tab[selected="true"] {
margin: 0px !important;
padding: 0px 0px 1px 2px !important; /* same as set for inactive tab */
background-color: #000000 !important;
color: #FFFFFF !important;
}

/* set visited tab color */
tab[selected="false"] { color: #000000 !important; }

/* set busy tab color */
tab[busy] { color: #808080 !important; }

/* set inactive tab hover backround color */
tab:not([selected="true"]):hover { background-color: #FFFFFF !important; }

/* set tab colors for errors 404 and 403 */
.tab-text[value="404 Not Found"], .tab-text[value="403 Access Denied"] {
background-color: #FF0000 !important;
color: #FFFFFF !important;
}

/* disable theme support in tab progress bar to set its background color */
tab progressmeter, .progress-bar { -moz-appearance: none !important; }

/* set tab progress bar color in unread tabs */
tab:not([selected="true"]) .progress-bar { background-color: #0000FF !important; }

/* set tab progress bar color in active tabs */
tab[selected="true"] .progress-bar { background-color: #000000 !important; }

/* set tab progress bar color in visited tabs */
tab[selected="false"] .progress-bar { background-color: #FFFFFF !important; }

/* set tab bar (and message bar) close button color */
.tabs-closebutton { background-color: inherit !important; }



/* --- FIND TOOLBAR --- */

/* set find toolbar size */
#find-field-container, #find-field { -moz-box-flex: 1 !important; } /* any value >0 works */

/* remove text from 'Find Next' and 'Find Previous' buttons */
#find-next .toolbarbutton-text, #find-previous .toolbarbutton-text { display: none !important; }

/* remove status text from find toolbar */
#find-status { display: none !important; }

/* set find toolbar close button color */
#find-closebutton { background-color: inherit !important; }



/* --- STATUS BAR --- */

/* remove security info button from status bar */
#security-button { display: none !important; }



/* --- FULL SCREEN --- */

/* show menu bar in full screen mode
* useful when navigation buttons are on menu bar
*/
#toolbar-menubar { visibility: visible !important; }

/* show status bar in full screen mode */
#status-bar { visibility: visible !important; }



/* --- OTHER --- */

/* remove 'Show Password' button from Password Manager */
#togglePasswords { display: none; }

Monday, November 21, 2005

Keyboard - Win-keys start menu


KDE Control Center->Regional & Accessibility->Xkb Options

[X] Enable xkb options
- Third level choosers
* Press any of the Win-keys to choose 3rd level

KDE Control Center->Regional & Accessibility->Keyboard Shortcuts
Shortcut Schemes->Global Shortcuts


- Panel
* Popup Launch Menu

Shortcut for Selected Action

(O) Custom

[Advanced]

(O) Alternate shortcut

- press the Win-key (ISO_Level3_Shift)

***

- alternatively, when using custom .Xmodmap, substitute

keycode 115 = ISO_Level3_Shift
keycode 116 = ISO_Level3_Shift

Sunday, November 20, 2005

Kernel - CPU optimized


# sudo apt-get install linux-k7
# AMD Duron, Athlon (32-bit Linux distros only)

linux-686 # Intel Celeron, Pentium I, II, III, IV
linux-smp # multi CPUs and dual core CPUs
linux-386 # max compatibility, older systems (non-optimized default)

# sudo apt-get install linux-restricted-modules-x.x.xx-x-arch-nvidia-legacy
# NVIDIA legacy kernel driver supporting TNT, TNT2, GeForce and GeForce2 chips