Wednesday, July 01, 2009

eeepc kde4 UXA finally working fast

1. Install jaunty and change to UXA as shown in http://biocrystallography.blogspot.com/2009/05/reverting-jaunty-xorg-intel-driver-to.html

2. Add the repositories from eeebuntu, array and statux
deb http://repos.eeebuntu.org eb3 main non-free contrib
deb http://www.array.org/ubuntu jaunty main
deb http://www.statux.org/ubuntu jaunty main

apt-get install linux-kernel-eb netbook-dkms eeepc-acpi-utilities eeepc-tray

This is supposed to install the latest netbook kernel.
linux-headers-2.6.29-1-netbook
linux-image-2.6.29-1-netbook

3. For some ridiculous reason it fails. You have to run:
sudo apt-get install --reinstall libgtk2.0-cil libmono-addins-gui0.2-cil

4. Restart

5. Install latest KDE from ppa

6. Desktop effects like these:


7. List of packages
http://docs.google.com/View?id=ddsf8993_39284qnxgs

8. xorg.conf

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "intel"
BusID "PCI:0:2:0"
Option "AccelMethod" "UXA"
Option "HWCursor" "False"
Option "MigrationHeuristic" "greedy"
Option "XAANoOffscreenPixmaps" "true"
Option "XaaNoPixmapCache"
Option "DRI" "true"
Option "XvMCSurfaces" "6"
Option "May_Need_ForceBIOS" "1"

EndSection

Section "ServerFlags"
Option "DontZap" "True"
EndSection

Monday, June 29, 2009

eeepc

libgl1-mesa-dri

kde4 eeepc

<object width="425" height="344"><param name="movie"
value="http://www.youtube.com/v/Wedw701Gy8s&hl=en&fs=1&"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube.com/v/Wedw701Gy8s&hl=en&fs=1&"
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="425" height="344"></embed></object>

Thursday, June 25, 2009

tar ssh copy files rapid fast quick data transfer restore backup

user@old_computer:> cd /oldplace
user@old_computer:> tar cf - name_old_directory | ssh destination_machine "cd /home/ ; tar xvf -"

Sunday, June 21, 2009

gfxboot for ubuntu

gfx boot for ubuntu

1. Add the repository from sidux

deb http://debian.tu-bs.de/project/sidux/debian/ sid main contrib non-free fix.main fix.contrib fix.non-free

apt-get install grub-gfxboot gfxboot
(This will install an additional package called grub-common)
apt-cache policy grub-gfxboot
grub-gfxboot:
  Installed: 0.97-42
  Candidate: 0.97-42
  Version table:
 *** 0.97-42 0
        100 /var/lib/dpkg/status

apt-cache policy gfxboot
gfxboot:
  Installed: 3.3.39-0ubuntu2
  Candidate: 3.3.39-0ubuntu2
  Version table:
 *** 3.3.39-0ubuntu2 0
        500 http://mirror.ox.ac.uk intrepid/main Packages
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

apt-cache policy grub-common
grub-common:
  Installed: 1.96+20080512-1ubuntu2
  Candidate: 1.96+20080512-1ubuntu2
  Version table:
 *** 1.96+20080512-1ubuntu2 0
        500 http://mirror.ox.ac.uk intrepid/universe Packages
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

2. Note that grub-gfxboot is from sidux whereas gfxboot is from ubuntu repository.

cd /usr/share/gfxboot-theme-suse

Since there are some compilation errors in finding {panim,panim_a}.jpg
change the line PIC_COMMON in Makefile
PIC_COMMON   = timer_a.jpg pback.jpg phead.jpg panim.jpg panim_a.jpg pabout.txt gfxboot.cfg

Edit /usr/share/gfxboot-theme-suse/gfxboot.cfg
to change to the following:
# penguin theme likelihood in percent; -1 = auto
penguin=100
welcome=1

make bootdir

This compilation should create a file message inside
/usr/share/gfxboot-theme-suse/boot/

cp /usr/share/gfxboot-theme-suse/boot/message to your boot_directory example: /boot/

Edit /boot/grub/menu.lst
gfxmenu (hd0,5)/boot/message

3. Run
update-grub
You may want to edit the string "Debian" to "Ubuntu" inside the script update-grub

3. Very important: Reinstall grub
grub-install /dev/sda
(or whatever. You have to reinstall the master-boot-record before rebooting the system otherwise it is a huge problem).

update usplash script ubuntu kubuntu bootsplash tuxonice

#!/bin/bash


# Lots of changes
#


if [ -z "$1" ]; then
        echo $0 " full path file name at 1024x768 to use for splash screen"
        exit 1
fi
cd /usr/share/doc/libusplash-dev/examples
datadir=$(date +%d-%m-%Y-%H-%M-%S)
cp eft_1024_768.png "eft_1024_768_${datadir}.png"

cp "$1" /usr/share/doc/libusplash-dev/examples/eft_1024_768.png

sleep 1
make clean
make
cp eft-theme.so /usr/lib/usplash/
sleep 1
update-alternatives --list usplash-artwork.so
sleep 1
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/eft-theme.so 10
sleep 1
update-alternatives --list usplash-artwork.so
sleep 1
update-usplash-theme eft-theme

echo "For testing:"
echo "usplash -c -x 1024 -y 768 "
echo "usplash -c -x 1024 -y 768 "
echo "usplash -c -x 1024 -y 768 "
echo "usplash -c -x 1024 -y 768 "
echo "Both tuxonice and boot splash updated"

Friday, June 19, 2009

Angstrom symbol use \cE xmgrace

xmgrace
Fonts
Changing fonts within a string
To change fonts within a string precede the font number listed below
by a backslash. To turn subscripting or superscripting on or off use
\s for subscripts and \S for superscripting. Font selection is current
for the remainder of the string or until the next font change.
Subscripts and superscripts remain for the remainder of the string or
until \N is seen. To print a backslash use \\. To backspace use \b. To
begin underlining use \u, to stop underlining use \U. \+ increases the
size of the characters and \- decreases the size of the characters.

To obtain the Angstrom symbol use \cE .

xmgr uses the Hershey fonts to draw text on the screen, but PostScript
fonts for hardcopy. There are discrepancies between the two sets of
fonts and of this writing, there are problems with the mapping of
Greek and special characters.

Font # Font

* 0 .... Complex Roman on screen, maps to Times-Roman.
* 1 .... Triplex Roman on screen, maps to Times-Bold.
* 2 .... Complex Italic on screen, maps to Times-Italic.
* 3 .... Triplex Italic on screen, maps to Times-BoldItalic.
* 4 .... Simplex on screen, maps to Helvetica.
* 5 .... Duplex on screen, maps to Helvetica-Bold
* 6 .... Complex Italic on screen, maps to Helvetica-Oblique.
* 7 .... Triplex Italic on screen, maps to Helvetica-BoldOblique.
* 8 .... Simplex Greek on screen, maps to the lower 128 characters
of the Symbol font.
* 9 .... Symbols on screen, maps to the upper 128 characters of
the Symbol font.
* x .... Special symbols

Summary of other special commands

* + .... increase size
* - .... decrease size
* b .... backspace length of previous character
* c .... begin using upper 128 characters of set
* C .... stop using upper 128 characters of set
* s .... begin subscripting
* S .... begin superscripting
* u .... begin underline
* U .... stop underline
* N .... return to normal

Example:

\0F\sX\N(\8e\0) = sin(\8e\0)*e\S(-X)\N*cos(\8e\0)

prints roughly FX(e) = sin(e)*e -X*cos(e)

using font 0 and e prints as epsilon from the Simplex Greek font.

Use the upper 128 characters for accented characters. The upper
character set not display on the screen correctly but will print.

NOTE: Special characters are mapped to the keyboard, the present
mapping is not very well organized and may change.

Friday, June 05, 2009

svn

svn update -r 970241

Saturday, May 23, 2009

grub mbr reinstall

Assuming that the "failed" system has / partition at sda1

1. mount /dev/sda1 /mnt/sda1
2. mount -o bind /dev /mnt/sda1/dev
3. chroot /mnt/sda1


(if necessary)
1. chroot /mnt/sda1 bash
2. grub-install /dev/sda1


Since UUID of partition _may_ have changed when you formatted it: edit

1. /etc/fstab
2. /boot/grub/menu.lst

Find the UUID
vol_id -u device