Tab width
M-x set-variabletab-width 7
For this session, force Emacs to indent with spaces, never with TABs:
M-x set-variableindent-tabs-mode nil
http://www.student.northpark.edu/pemente/emacs_tabs.htm
M-x set-variabletab-width 7
For this session, force Emacs to indent with spaces, never with TABs:
M-x set-variableindent-tabs-mode nil
start -> Run... -> regedit2. Click the following registry hive: HKEY_CLASSES_ROOT
Click Advanced button -> Select Owner tab -> double click your account name to get ownership on your computer -> OK -> Apply5. cmd -> Services.msc -> Windows Installer -> Properties -> "Log On" tab -> check "allow service to interact with desktop" -> "General" tab -> Change "startup type" to automatic -> ok
$ sudo apt-get install subversion
$ svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
$ sudo apt-get build-essential
$ sudo apt-get kernel-headers
$ cd trunk
$ sudo make
$ vi Makefile
INSTALL_MOD_DIR := usb/media
to
INSTALL_MOD_DIR := kernel/ubuntu/media/usbvideo
$ make
$ sudo make install
$ sudo apt-get install timer-applet
$ sudo apt-get install libk3b2-mp3
1 - Unpack the image
bzcat olpc-redhat-stream-development-ext3.img.bz2 > laptop.img
2 - Obtain qemu
On Debian/Ubuntu, as root:
apt-get install qemu
On Fedora, as root:
yum install qemu
3 - Run qemu on the image
qemu -soundhw es1370 -serial `tty` -hda laptop.img
Then see Running for the first time.
4 - (optional, but recommended) Make qemu run faster
If you have an x86 or x86_64 cpu, you can use kqemu to speed up the emulation several 100%.
4 a - Obtain kqemu
On Debian/Ubuntu, as root, do one of:
apt-get install kqemu-modules-2.6-486 # if you have a 486/original Pentium
apt-get install kqemu-modules-2.6-686 # if you have a later Pentium
apt-get install kqemu-modules-2.6-k7 # if you have a 32-bit AMD Duron/Athlon/AthlonXP
Then
apt-get install kqemu-common
to add docs and have it auto-load at boot time.
In Ubuntu 7.04, you'll have to use module-assistant to compile kqemu.
Install the program:
sudo apt-get install module-assistant
Download the kernel headers:
sudo module-assistant prepare kqemu
Download, compile and install the kqemu module package:
sudo module-assistant auto-install kqemu
Due to an open bug in ubuntu's kqemu-source package, you'll need to do the following as well:
sudo nano /etc/modprobe.d/kqemu
Change the contents to be:
options kqemu major=0
Save the file and exit nano. Then do:
sudo nano /etc/udev/rules.d/60-kqemu.rules
Enter this text into the empty file:
KERNEL=="kqemu", NAME="%k", MODE="0666"
Save the file and exit nano.
On Fedora x86,
XXX please fill this in if you know
On Fedora x86_64,
4 b - Run modprobe
/sbin/modprobe kqemu major=0
This will need to be run again if the host computer is rebooted (unless noted above). If you forget, qemu will be slow again (and a one-line error message scroll by when you run qemu).
4 c - Run a qemu variant with the -kernel-kqemu option
On x86,
qemu -kernel-kqemu ...
On x86_64,
qemu-system-x86_64 -kernel-kqemu ...
If you forget and use just qemu instead, things will be slow again.
Reference: http://wiki.laptop.org/go/Emulating_the_XO/Quick_Start/Linux
$ vi ~/.Xmodmap2. write down below
! Switch caps lock and left control3. load .Xmodmap file
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
$ xmodmap ~/.Xmodmap4. next time you log in to your Gnome, it will detect .Xmodmap file automatically. Thus, next steps are not really necessary.