Grub, USBboot, Root script

April 28, 2009 by naszodi

Grub Rescue
http://www.sorgonet.com/linux/grubrestore/
http://fedoranews.org/contributors/bob_kashani/grub/

Install from USB drive: works from Windows and linux
http://unetbootin.sourceforge.net/

How to run script with root privileges by normal user
C code:

    #include <stdlib.h>
    #include <sys/types.h>
    #include <unistd.h>
    //#include <iostream>
    //using namespace std;
    int main(int argc, char** argv) {
     system("echo 0 > /sys/devices/platform/acer-wmi/leds/acer-wmi::mail/brightness");
      return (EXIT_SUCCESS);
     }

then gcc this code as root, then set the SUID bit and the SGID bit to 1 of the executable.

Linux After Install

April 28, 2009 by naszodi

To fix widget problem in Firefox, Mozilla
It’s no Firefox bug but a KDE one. The fix that worked for me is to install the package “gtk2-engines-qtcurve”,
then open kcontrol and go to Appearance -> GTK Styles and change the GTK Styles to “QtCurve”.
http://blog.larsneumann.net/2008/09/firefox-3-annoying-shade-on-checkboxes-and-radio-buttons/

Firefox, Thunderbird

April 28, 2009 by naszodi

Firefox add-ons:
FireFTP
DownThemAll
FalshBlock
Web developer
flashblock
adblock plus

Thunderbird add-ons:
Minimize to tray (Windows)
FireTray (Linux)
SMTP select
Nostalgy

imap.gmail
imap.gmail.com
SSL, port 993
smtp.gmail.com
TSL 587
username@gmail.com

imap.math.ualberta.ca
mailbox.math.ualberta.ca
SSL
mailbox.math.ualberta.ca

To fix widget problem in Firefox, Mozilla
It’s no Firefox bug but a KDE one. The fix that worked for me is to install the package “gtk2-engines-qtcurve”,
then open kcontrol and go to Appearance -> GTK Styles and change the GTK Styles to “QtCurve”.
http://blog.larsneumann.net/2008/09/firefox-3-annoying-shade-on-checkboxes-and-radio-buttons/

Linux shell commands: diff

April 28, 2009 by naszodi

diff
to compare two files: diff -u foo bar

Check KDE version
konqueror –version

Check kernel version
short answer: uname -r
long answer: uname -a