2009-12-08

Slitaz -- scrot

How to take screenshots with Scrot

scrot -d 5 -q 95 -t 30 screenshot.jpeg -b -s && gwenview screenshot.jpeg

If you wish to specify a window or part of a screen (use your mouse to draw out a selected area) then just append -s thus:

scrot desktop.png -s

and then use your cursor to draw out the area for your screenshot.

scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'

root@slitaz:~# cat /usr/share/applications/scrot.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Scrot screenshot
Name[fr]=Capture d'écran
Exec=scrot
Icon=/usr/share/icons/Tango/16x16/devices/camera-video.png
Type=Application
Terminal=false
Categories=Application;Graphics;
root@slitaz:~#

root@slitaz:~# cat /usr/bin/shot
#!/bin/sh

/usr/bin/scrot -d 6 `date +%Y%m%d%H%M%S`.jpg -s

root@slitaz:~# cat /usr/bin/shots
#!/bin/sh

/usr/bin/scrot -b -d 1 `date +%Y%m%d%H%M%S`.jpg
root@slitaz:~#
root@slitaz:~# date +%Y%m%d%H%M%S
20091208192942
root@slitaz:~# date
Tue Dec 8 19:29:47 UTC 2009

root@slitaz:~# scrot --help
Usage : scrot [OPTIONS]... [FILE]
Where FILE is the target file for the screenshot.
If FILE is not specified, a date-stamped file will be dropped in the
current directory.
See man scrot for more details
-h, --help display this help and exit
-v, --version output version information and exit
-b, --border When selecting a window, grab wm border too
-c, --count show a countdown before taking the shot
-d, --delay NUM wait NUM seconds before taking a shot
-e, --exec APP run APP on the resulting screenshot
-q, --quality NUM Image quality (1-100) high value means
high size, low compression. Default: 75.
For lossless compression formats, like png,
low quality means high compression.
-m, --multidisp For multiple heads, grab shot from each
and join them together.
-s, --select interactively choose a window or rectnagle
with the mouse
-t, --thumb NUM generate thumbnail too. NUM is the percentage
of the original size for the thumbnail to be,
or the geometry in percent, e.g. 50x60 or 80x20.

SPECIAL STRINGS
Both the --exec and filename parameters can take format specifiers
that are expanded by scrot when encountered.
There are two types of format specifier. Characters preceded by a '%'
are interpretted by strftime(2).
See man strftime for examples.
These options may be used to refer to the current date and time.
The second kind are internal to scrot and are prefixed by '$'
The following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$m thumbnail path/filename
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal '$'
\n prints a newline (ignored when used in the filename)
Example:
scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
Creates a file called something like 2000-10-30_2560x1024_scrot.png
and moves it to your images directory.

This program is free software see the file COPYING for licensing info.
Copyright Tom Gilbert 2000
Email bugs to
root@slitaz:~#

Extract From
http://aaron0117.blogspot.com/2008/08/strftime.html

時間格式化函數 strftime

strftime() 函數將時間格式化
......
函數strftime()的操作有些類似於sprintf():識別以百分號(%)開始的格式命令集合,格式化輸出結果放在一個字符串中。格式化命令說明串 strDest中各種日期和時間信息的確切表示方法。格式串中的其他字符原樣放進串中。格式命令列在下面,它們是區分大小寫的。
%a 星期幾的簡寫
%A 星期幾的全稱
%b 月分的簡寫
%B 月份的全稱
%c 標準的日期的時間串
%C 年份的後兩位數字
%d 十進製表示的每月的第幾天
%D 月/天/年
%e 在兩字符域中,十進製表示的每月的第幾天
%F 年-月-日
%g 年份的後兩位數字,使用基於周的年
%G 年分,使用基於周的年
%h 簡寫的月份名
%H 24小時制的小時
%I 12小時制的小時
%j 十進製表示的每年的第幾天
%m 十進製表示的月份
%M 十時製表示的分鐘數
%n 新行符
%p 本地的AM或PM的等價顯示
%r 12小時的時間
%R 顯示小時和分鐘:hh:mm
%S 十進制的秒數
%t 水平製表符
%T 顯示時分秒:hh:mm:ss
%u 每週的第幾天,星期一為第一天 (值從0到6,星期一為0)
%U 第年的第幾周,把星期日做為第一天(值從0到53)
%V 每年的第幾周,使用基於周的年
%w 十進製表示的星期幾(值從0到6,星期天為0)
%W 每年的第幾周,把星期一做為第一天(值從0到53)
%x 標準的日期串
%X 標準的時間串
%y 不帶世紀的十進制年份(值從0到99)
%Y 帶世紀部分的十制年份
%z,%Z 時區名稱,如果不能得到時區名稱則返回空字符。
%% 百分號

.......

2009-12-07

Slitaz -- cat

Part A: arramagong-livedvd-2.0.3-Final.iso.0 (1.9 GB) (md5sum)
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)

# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso

MS-Windows (cmd.exe)
copy /B image.iso.1 + image.iso.2 image.iso

Extract from
http://download.osgeo.org/livedvd/
.....
Arramagong GISVM

A 2.0 version has been developed for the FOSS4G 2009 conference. See the Quick Start page for guidance on downloading and running.
Arramagong GISVM and LiveDVD - 2.0.3 Final

30 September 2009
ISO Image (to be burned onto a DVD then run):

Torrent file now available, please remember to leave it open when you are done to help others.
Don't know what a torrent is or how to use one? See this: How to Torrent.

Torrent: arramagong-livedvd-2.0.3-Final.iso.torrent (final download 3.6 GB)
OR download the image directly from the OSGeo download server. Due to its size it has been split into two parts (.0 and .1) which will need to be put back together again. On a Mac or other UNIX this can be done using the cat utility from the Terminal prompt, as follows:
# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso

# check image integrity
md5sum arramagong-livedvd-2.0.3-Final.iso
MS-Windows users should see the Quick Start guide above for instructions.
Part A: arramagong-livedvd-2.0.3-Final.iso.0 (1.9 GB) (md5sum)
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)

Reconstituted ISO md5sum: arramagong-livedvd-2.0.3-Final.iso.md5
If the download is stopped for some reason part way through, continue without restarting from the beginning by making sure the filename is unaltered (rename if needed) and running "wget -c {URL}" from the directory that the partially downloaded file is in.

Virtual Machine

arramagong-gisvm-2.0.3-final.7z (1.9GB) (md5sum)

Notes about the Virtual Image. See Quick Start for more details.
Extracted image is 6.4GB
20 GB Disk, disk will grow as you add files up to this amount.
1 GB Ram, You can adjust this before booting the image, min recommended 512MB
1 Processor
NAT network connection, host computer acts as a router
800x600 Resolution Does not have VM Ware or Virtual Box Tools, you will need to install these for your respective tool in order to get higher resolutions.
Log Files

Package build logs
Image build_iso.log
.

2009-12-06

Slitaz -- pcmanfm-0.5.2





root@slitaz:/home/slitaz/wok# tazwok cook pcmanfm
.......
make[2]: Leaving directory `/home/slitaz/wok/pcmanfm/pcmanfm-0.5.2'
make[1]: Leaving directory `/home/slitaz/wok/pcmanfm/pcmanfm-0.5.2'
================================================================================
pcmanfm compiled on : 20091206 00:03:57


Building pcmanfm with the receipt...
================================================================================
Executing strip on all files... [ OK ]
Copying the receipt... [ OK ]
Creating the list of files... [ OK ]
Creating md5sum of files... [ OK ]
Compressing the fs... [ OK ]
Updating receipt sizes... [ OK ]
Creating full cpio archive... [ OK ]
Restoring original package tree... 1047 blocks
================================================================================
Package pcmanfm (0.5.2) generated.
Size : 184.0k /home/slitaz/packages/pcmanfm-0.5.2.tazpkg

root@slitaz:/home/slitaz/wok# ls -l ../packages/pcmanfm*
-rw-r--r-- 1 root root 183768 Dec 5 23:08 ../packages/pcmanfm-0.5.2-orig.tazpkg
-rw-r--r-- 1 root root 183988 Dec 6 00:03 ../packages/pcmanfm-0.5.2.tazpkg
root@slitaz:/home/slitaz/wok#

root@slitaz:/home/slitaz/wok# ls -l pcmanfm/stuff
drwxr-xr-x 2 root root 4096 Dec 2 09:17 applications
-r-xr-xr-x 1 root root 652 Dec 5 23:57 archiver-tazpkg-7z-rar.patch
-rw-r--r-- 1 root root 517 Dec 2 09:17 archiver-tazpkg-support.patch-orig
-rw-r--r-- 1 root root 270 Dec 2 09:17 ca.patch
-rw-r--r-- 1 root root 40854 Dec 2 09:17 fr.po
-rw-r--r-- 1 root root 1599 Dec 2 09:17 pcmanfm.png
root@slitaz:/home/slitaz/wok#

root@slitaz:/home/slitaz/wok# cat pcmanfm/stuff/archiver-tazpkg-support.patch-orig
--- src/ptk/ptk-file-archiver.c Sun May 25 14:59:12 2008
+++ src/ptk/ptk-file-archiver.c Thu Jun 25 23:28:10 2009
@@ -10,6 +10,8 @@
*
*/

+/* 06-25-2009 Erjo: Add support for tazpkg */
+
#include
#include

@@ -61,6 +63,12 @@
"tar -xvf",
".tar", TRUE
},
+ {
+ "application/x-tazpkg",
+ "tazpkg pack",
+ "tazpkg extract",
+ ".tazpkg", FALSE
+ }
/*
{
"application/x-rar",
root@slitaz:/home/slitaz/wok#

root@slitaz:/home/slitaz/wok# cat pcmanfm/stuff/archiver-tazpkg-7z-rar.patch
--- src/ptk/ptk-file-archiver.c Sun Jun 7 11:42:37 2009
+++ src/ptk/ptk-file-archiver.c Sat Dec 5 23:47:44 2009
@@ -61,14 +61,24 @@
"tar -xvf",
".tar", TRUE
},
- /*
+ {
+ "application/x-tazpkg",
+ "tazpkg pack",
+ "tazpkg extract",
+ ".tazpkg", FALSE
+ },
{
+ "application/x-7z-compressed",
+ "7zr a -bd -y",
+ "7zr x -bd -y",
+ ".7z", TRUE
+ },
+ {
"application/x-rar",
NULL,
"unrar -o- e",
".rar", TRUE
}
- */
};


root@slitaz:/home/slitaz/wok#


root@slitaz:/home/slitaz/wok# cat pcmanfm/pcmanfm-0.5.2/src/ptk/ptk-file-archiver.c | head -n 83 | tail -n 53

const ArchiveHandler handlers[]=
{
{
"application/x-bzip-compressed-tar",
"tar --bzip2 -cvf",
"tar --bzip2 -xvf",
".tar.bz2", TRUE
},
{
"application/x-compressed-tar",
"tar -czvf",
"tar -xzvf",
".tar.gz", TRUE
},
{
"application/x-gzip",
"gzip",
"gunzip",
".gz", TRUE
},
{
"application/zip",
"zip -r",
"unzip",
".zip", TRUE
},
{
"application/x-tar",
"tar -cvf",
"tar -xvf",
".tar", TRUE
},
{
"application/x-tazpkg",
"tazpkg pack",
"tazpkg extract",
".tazpkg", FALSE
},
{
"application/x-7z-compressed",
"7zr a -bd -y",
"7zr x -bd -y",
".7z", TRUE
},
{
"application/x-rar",
NULL,
"unrar -o- e",
".rar", TRUE
}
};

root@slitaz:/home/slitaz/wok# cat /var/lib/tazpkg/installed/pcmanfm


# SliTaz package receipt.

PACKED_SIZE="192.0k"
UNPACKED_SIZE="624.0k"
PACKAGE="pcmanfm"
VERSION="0.5.2"
CATEGORY="system-tools"
SHORT_DESC="Light and easy to use file manager."
MAINTAINER="pankso@slitaz.org"
DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://pcmanfm.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
cd $src
for i in ../stuff/*.patch
do
if [ -f done.$(basename $i) ]; then
continue
else
patch -p0 < $i && touch done.$(basename $i) || exit 1
fi
done

cp ../stuff/fr.po $src/po

./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-hal \
$CONFIGURE_ARGS &&
make &&
make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/share
cp -a $_pkg/usr/bin $fs/usr
cp -a $_pkg/usr/share/mime $fs/usr/share
cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
rm -rf $fs/usr/share/pcmanfm/icons
}

post_install()
{
# update mime-cache
echo "Updating mime-types database"
update-mime-database $1/usr/share/mime
}

2009-12-03

Slitaz -- xf86-video-intel

http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/

xf86-video-intel-2.7.0/README
....
What is xf86-video-intel
------------------------
The xf86-video-intel module is an open-source 2D graphics driver for
the X Window System as implemented by X.org. It supports a variety of
Intel graphics chipsets including:

i810/i810e/i810-dc100,i815,
i830M,845G,852GM,855GM,865G,
915G/GM,945G/GM/GME,946GZ
G/GM/GME/Q965,
G/Q33,G/Q35,G41,G/Q43,G/GM/Q45

tazwok cook xorg-server
tazwok cook xorg-xf86-video-intel

xf86-video-intel-2.7.0 : configure
xf86-video-intel-2.7.1 : autogen.sh ---> configure
xf86-video-intel2.7.99.902 : Requested 'xorg-server >= 1.6'

autogen.sh

2009-12-03 14:12:24 - Installed - autoconf (2.63) - 9ef50f8247c03357f582d8a640592179
2009-12-03 14:15:10 - Installed - automake (1.11) - 60de160f50dffe51557a56a586c622ac
2009-12-03 14:16:17 - Installed - m4 (1.4.13) - 04508f2cfa7e9b8471ed66e7f134973d
2009-12-03 14:51:20 - Installed - xorg-x11-util-macros (1.1.6-2.fc10) - b821c4b0e161530a1b43f7f4d37d782f
2009-12-03 14:53:00 - Installed - libtool (2.2.2) - 2de86f535b6c8be3735fc0e4fe019cb7

.

2009-12-02

Slitaz -- init

Slitaz -- foxitreader & Terminal




root@slitaz:~# tazpkg info foxitreader

Tazpkg information
================================================================================
Package : foxitreader
Version : 1.0
Category : office
Short desc : FoxitReader是一款Win32下精巧的PDF阅读器,现在终于有了Linux版本了。
Maintainer : lufeng369@gmail.com
Depends : gtk+ zlib
Web site : http://www.foxitsoftware.com/
================================================================================

root@slitaz:~# fc-list
Fixed:style=SemiCondensed
micro.pcf:style=Regular
WenQuanYi Bitmap Song:style=Regular
cursor.pcf:style=Regular
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Sans Mono:style=Book
root@slitaz:~# fc-list :lang=zh
WenQuanYi Bitmap Song:style=Regular
root@slitaz:~#

root@slitaz:~# Terminal -v
Terminal 0.2.8.3 (Xfce 4.4.3)

Copyright (c) 2003-2007
os-cillation e.K. All rights reserved.

Written by Benedikt Meurer .

Built with Gtk+-2.14.7, running with Gtk+-2.14.7.

Please report bugs to .
root@slitaz:~# tazpkg info Terminal

Tazpkg information
================================================================================
Package : Terminal
Version : 0.2.8.3
Category : x-window
Short desc : Terminal emunaltor for Xfce Desktop Environment
Maintainer : erjo@slitaz.org
Depends : libexo vte startup-notification dbus ncurses xorg-libXdamage
Build deps : libexo-dev vte-dev dbus-dev startup-notification-dev
Web site : http://www.xfce.org/
================================================================================

root@slitaz:~#

.

2009-12-01

Slitaz -- G45 / ACPI

Boot failed!

root@slitaz:/home/tmp# cat /proc/cmdline
root=/dev/sda1 acpi=off

root@slitaz:/home/tmp# cp /proc/config.gz .
root@slitaz:/home/tmp# gzip -d config.gz
root@slitaz:/home/tmp# ls -l
-r--r--r-- 1 root root 65397 Dec 2 11:46 config
root@slitaz:/home/tmp#

root@slitaz:/home/tmp# cat config | grep ACPI
CONFIG_ACPI=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_DOCK=y
# CONFIG_ACPI_BAY is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_WMI=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_POWERNOW_K7_ACPI=y
CONFIG_X86_POWERNOW_K8_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
CONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not set
CONFIG_THINKPAD_ACPI_BAY=y
CONFIG_THINKPAD_ACPI_VIDEO=y
CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
# CONFIG_BLK_DEV_IDEACPI is not set
CONFIG_ATA_ACPI=y
# CONFIG_PATA_ACPI is not set
root@slitaz:/home/tmp#

Slitaz -- Terminal

Terminal.desktop

Icon=Terminal ---> Icon=terminal

root@slitaz:~# tazpkg list-files Terminal

Installed files with : Terminal
================================================================================
/usr/bin/Terminal
/usr/bin/terminal
/usr/share/applications/Terminal.desktop
/usr/share/locale/fr/LC_MESSAGES/Terminal.mo
/usr/share/pixmaps/terminal.xpm
================================================================================
5 files installed with Terminal.

root@slitaz:~# cat /usr/share/applications/Terminal.desktop | tail
GenericName[zh_CN]=终端模拟器
GenericName[zh_TW]=終端機程式
Exec=Terminal
#Icon=Terminal
Icon=terminal
Terminal=false
Type=Application
Categories=System;TerminalEmulator;Utility;
StartupNotify=true

# vi:set encoding=UTF-8:

Slitaz -- G45 / MS-7594 / MS-7428VH



root@slitaz:~# uname -a
Linux slitaz 2.6.25.5-slitaz #1 SMP Mon Aug 31 19:01:58 CEST 2009 i686 unknown
root@slitaz:~# lshw | head -n 30
slitaz
description: Space-saving Computer
product: ValueStar
vendor: NEC
serial: 123456789
width: 32 bits
capabilities: smbios-2.4 dmi-2.4 smp-1.4 smp
configuration: boot=normal chassis=space-saving cpus=2
*-core
description: Motherboard
product: MS-7428VH
vendor: NEC
physical id: 0
version: VH
*-firmware
description: BIOS
vendor: NEC
physical id: 0
version: 0001/466A0002 (11/17/2008)
size: 64KiB
capacity: 960KiB
capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect edd int13floppytoshiba int13floppy720 int5printscreen int9keyboard int10video acpi usb biosbootspecification netboot
*-cpu:0
description: CPU
product: Pentium(R) Dual-Core CPU E6300 @ 2.80GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.7.10
serial: 0001-067A-0000-0000-0000-0000
root@slitaz:~#

root@slitaz:~# lspci -v | head -n 40 | tail

00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
Subsystem: NEC Corporation Device 88f0
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at feaf4000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Mask- 64bit+ Count=1/1 Enable-
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel
root@slitaz:~#

root@slitaz:~# lspci -v | tail -n 12
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)
Subsystem: NEC Corporation Device 88f3
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Capabilities: [40] Vital Product Data
Capabilities: [60] Vendor Specific Information
Capabilities: [50] MSI: Mask- 64bit+ Count=1/1 Enable-
Capabilities: [cc] Express Endpoint, MSI 00
Kernel driver in use: tg3
Kernel modules: tg3

root@slitaz:~#

.

2009-11-29

Slitaz -- G45


Intel GMA X4500HD



SMSC-SCH5617c-NS


Slitaz Boot failed ??

.......
TCP: reno registered
Unpacking initramfs ...... <3> unexpacted EOF
Kernel panic - not syncing : junk in compressed archive.

.

2009-11-28

Slitaz -- tazusb LiveUSB

tazusb LiveUSB : Boot failed

Could not find kernel image: /boot/isolinux/ifmem.32

ISO image : packages-2.0.iso
OS : Slitaz-2.0

Copy ISO file to SliTaz LiveUSB media
===============================================================================

Mounting packages-2.0.iso...
Installing a new MBR to: /dev/sda [ OK ]
Mounting USB target device...
Copying needed files from cdrom... [ OK ]
Installing bootloader: extlinux
/media/flash/boot/extlinux is device /dev/sda1
===============================================================================

Do you want to exit Tazusb or reboot system (Exit/reboot) ?

root@slitaz:~#

root@slitaz:~# cat /media/TazUSB/boot/extlinux/extlinux.conf
display extlinux.msg
label slitaz
kernel /boot/isolinux/ifmem.c32 <========
append 160768 core loram home=686436ec-4e8f-4934-bd64-8b4551cd264c

label core
kernel /boot/bzImage
append initrd=/boot/rootfs.gz rw config=LABEL=packages-2.0,install.sh root=/dev/null vga=normal autologin home=686436ec-4e8f-4934-bd64-8b4551cd264c

label loram
kernel /boot/bzImage
append initrd=/boot/loram.gz rw config=LABEL=packages-2.0,install.sh root=/dev/null vga=normal autologin home=686436ec-4e8f-4934-bd64-8b4551cd264c

include common.cfg

root@slitaz:~#

2009-11-20

Slitaz -- module-diff



root@slitaz:~# ls /sys/module > module
root@slitaz:~# cat /proc/modules > modules

root@slitaz:~# cat modules0.diff
--- module-2 Sat Nov 21 07:46:57 2009
+++ module Sat Nov 21 06:40:33 2009
@@ -1,16 +1,42 @@
+8250
+acpi
agpgart
+ahci
cfg80211
crc_itu_t
+e1000e
+ehci_hcd
+hid_apple
hwmon
i2c_core
+i8042
+ide_cd_mod
+ide_gd_mod
+ide_pci_generic
input_polldev
+it821x
k8temp
+kernel
+keyboard
led_class
+libata
+lockd
mac80211
+mousedev
+natsemi
+nfs
nvidia
+printk
+processor
+psmouse
rt2x00lib
rt2x00usb
rt73usb
+sata_nv
+sata_sil
+scsi_mod
+sg
+sis900
snd
snd_hda_codec
snd_hda_codec_realtek
@@ -19,3 +45,13 @@
snd_pcm
snd_timer
soundcore
+spurious
+sr_mod
+sunrpc
+tcp_cubic
+thermal
+uhci_hcd
+usbcore
+usbhid
+usb_storage
+vt
root@slitaz:~#

2009-11-19

Slitaz -- openoffice-3.1.1



root@slitaz:~# time ./get-OpenOffice311
Downloading OppenOffice.org tarball (it's time to have a break)...
--2009-11-20 07:42:50-- http://ftp.isu.edu.tw/pub/OpenOffice/localized/zh-tw/3.1.1/OOo_3.1.1_LinuxIntel_install_zh-TW.tar.gz
Resolving ftp.isu.edu.tw (ftp.isu.edu.tw)... 140.127.177.17
Connecting to ftp.isu.edu.tw (ftp.isu.edu.tw)|140.127.177.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 154272741 (147M) [application/x-gzip]
Saving to: `/tmp/src.1038/OOo_3.1.1_LinuxIntel_install_zh-TW.tar.gz'

100%[======================================>] 154,272,741 729K/s in 3m 43s

2009-11-20 07:46:33 (674 KB/s) - `/tmp/src.1038/OOo_3.1.1_LinuxIntel_install_zh-TW.tar.gz' saved [154272741/154272741]

[ OK ]
Extract files from archive... [ OK ]

Packing : OpenOffice3-3.1.1
================================================================================
Creating the list of files... [ OK ]
Creating md5sum of files... [ OK ]
Compressing the fs... [ OK ]
Undating receipt sizes... [ OK ]
Creating full cpio archive... [ OK ]
Restoring original package tree... 725042 blocks
[ OK ]
================================================================================
Package OpenOffice3-3.1.1 compressed successfully.
Size : 147.7M OpenOffice3-3.1.1.tazpkg


Installation of : OpenOffice3-3.1.1
================================================================================
Copying OpenOffice3-3.1.1... [ OK ]
Extracting OpenOffice3-3.1.1... 302087 blocks
Extracting the pseudo fs... 725042 blocks
Installing OpenOffice3... [ OK ]
Removing all tmp files... [ OK ]
================================================================================
OpenOffice3 (3.1.1) is installed.

real 7m 25.77s
user 3m 13.63s
sys 0m 22.56s
root@slitaz:~#
root@slitaz:~# tazpkg info OpenOffice3

Tazpkg information
================================================================================
Package : OpenOffice3
Version : 3.1.1
Category : office
Short desc : Productivity suite.
Maintainer :
Web site : http://www.openoffice.org
================================================================================

root@slitaz:~# ps ax | tail
1011 root -sh
1019 root abiword
1029 root leafpad
1037 root time ./get-OpenOffice311
1038 root /bin/sh ./get-OpenOffice311
1048 root wget -c http://ftp.isu.edu.tw/pub/OpenOffice/localized/zh-tw/3.1.1/OOo_3.1.1_LinuxIntel_install_zh-TW.tar.gz -O /tmp/src.1038/OOo_3.1.1_LinuxIntel_install_zh-TW.tar.gz
1050 root xterm -ls
1051 root -sh
1058 root ps ax
1059 root tail
root@slitaz:~#


get-OpenOffice3
root@slitaz:~# ps ax | tail -n 11
1717 root /bin/sh /usr/bin/get-OpenOffice3
1718 root /bin/sh /usr/bin/get-OpenOffice3
1719 root /bin/sh /usr/bin/get-OpenOffice3
1720 root wget -O - http://openofficeorg.secsup.org/stable/
1721 root grep href="[0-9]
1722 root tail -1
1723 root sed s/.*href=\"\(.*\)\".*/\1/
1731 root xterm -ls
1732 root -sh
1744 root ps ax
1745 root tail -n 11
root@slitaz:~#

2009-11-17

Slitaz -- googleearth



root@slitaz:~# tazpkg list | grep google-earth
get-google-earth 1.00 non-free
google-earth 5.1.3509.4636 non-free
root@slitaz:~# ls -l /tmp/get-google-earth-2338-19811
drwxr-xr-x 3 root root 4096 Nov 17 16:39 google-earth-5.1.3509.4636
-rwxrwxrwx 1 root root 26733068 Nov 17 16:39 google-earth-5.1.3509.4636.tazpkg
-rwxrwxrwx 1 root root 25988326 Nov 17 15:40 GoogleEarthLinux.bin
root@slitaz:~#

root@slitaz:~# /usr/local/google-earth/libQtCore.so.4
This is the QtCore library version 4.5.2
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
Contact: Nokia Corporation (qt-info@nokia.com)

Build key: i386 linux g++-4 full-config no-stl
Installation prefix: /usr/local/Trolltech/Qt-4.5.2
Library path: /usr/local/Trolltech/Qt-4.5.2/lib
Include path: /usr/local/Trolltech/Qt-4.5.2/include

root@slitaz:~# /usr/lib/libQtCore.so.4.5.0
This is the QtCore library version 4.5.0
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
Contact: Qt Software Information (qt-info@nokia.com)
javascript:void(0)
Build key: i386 linux g++-4 full-config
Installation prefix: /usr
Library path: /usr/lib
Include path: /usr/include
root@slitaz:~#

http://www.google.com/support/forum/p/earth/thread?tid=656ef9a98bc427dd&hl=en

2009-11-06

slitaz -- nvidia-190.42




root@slitaz:~# uname -a
Linux slitaz 2.6.30.6-slitaz #1 SMP Fri Sep 25 23:24:33 CEST 2009 i686 unknown
root@slitaz:~# date
Fri Nov 6 17:03:48 UTC 2009
root@slitaz:~# lsmod |grep nvidia
nvidia 8862484 28
agpgart 25980 1 nvidia
i2c_core 17468 1 nvidia
root@slitaz:~# modinfo nvidia
filename: /lib/modules/2.6.30.6-slitaz/kernel/drivers/video/nvidia.ko
license: NVIDIA
vermagic: 2.6.30.6-slitaz SMP mod_unload 386
root@slitaz:~# dmesg | tail
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
Linux agpgart interface v0.103
nvidia: module license 'NVIDIA' taints kernel.
Disabling lock debugging due to kernel taint
ACPI: PCI Interrupt Link [LNEC] enabled at IRQ 10
nvidia 0000:00:05.0: PCI INT A -> Link[LNEC] -> GSI 10 (level, low) -> IRQ 10
nvidia 0000:00:05.0: setting latency timer to 64
NVRM: loading NVIDIA UNIX x86 Kernel Module 190.42 Tue Oct 20 20:18:32 PDT 2009

2009-11-04

Slitaz -- New Cooking 20091104

http://www.slitaz.org/en/

# 4 November 2009 - New Cooking 20091104

SliTaz contributors are proud to announce the availability of a new Cooking ISO image based on over 2100 packages available in the SliTaz repository. The full system has been rebuilt with a new toolchain using Glibc 2.10.1 and GCC 4.4.1. This new Cooking uses the Linux kernel 2.6.30.6 with better hardware support and more built-in modules. The boot process has been further improved and the boot time is now faster than ever. Major packages found on the LiveCD such as Firefox have been updated to the current stable version. Home-made GUI boxes have been enhanced. Tazpkg packages manager supports new features including the conversion of deb/rpm/arch/slackware/ipk packages to Slitaz native format. The ISO image includes a new Openbox, GTK and icons theme for an elegant and more beautiful desktop. We have also removed ePDFview and switched to an online PDF viewer. This ISO image, however, is a bit bigger than 30 Mb (31.5) due to a bigger Kernel and many new dependencies.

We would also like to announce that SliTaz project has a new support forum and a new community platform where everyone is welcome to share and to get involved! This new Cooking ISO is as always downloadable from the website download section: Get SliTaz Cooking

2009-11-01

Slitaz -- rt73usb

Slitaz 2.0

Add
/lib/modules/2.6.25.5-slitaz/kernel/net/rfkill/rfkill.ko.gz
/lib/modules/2.6.25.5-slitaz/kernel/lib/crc-itu-t.ko.gz
root@slitaz:~# ls -l /lib/firmware
-r-xr-xr-x 1 root root 2048 Apr 2 2009 rt73.bin

root@slitaz:~# lsmod
Module Size Used by Tainted: P
arc4 2688 2
ecb 3456 2
rt73usb 19456 0
rt2x00usb 8576 1 rt73usb
rt2x00lib 20864 2 rt73usb,rt2x00usb
rfkill 5780 1 rt2x00lib
crc_itu_t 2688 1 rt73usb
nvidia 8930608 26
agpgart 25268 1 nvidia
firmware_class 7296 1 rt2x00lib
mac80211 136224 2 rt2x00usb,rt2x00lib
cfg80211 23688 2 rt2x00lib,mac80211

----------
root@slitaz:~# modprobe rt73usb
insmod: cannot insert '/lib/modules/2.6.25.5-slitaz/kernel/lib/crc-itu-t.ko.gz': Cannot allocate memory
insmod: cannot insert '/lib/modules/2.6.25.5-slitaz/kernel/net/rfkill/rfkill.ko.gz': Cannot allocate memory
insmod: cannot insert '/lib/modules/2.6.25.5-slitaz/extra/drivers/net/wireless/rt2x00/rt2x00lib.ko.gz': unknown symbol in module
insmod: cannot insert '/lib/modules/2.6.25.5-slitaz/extra/drivers/net/wireless/rt2x00/rt2x00usb.ko.gz': unknown symbol in module
insmod: cannot insert '/lib/modules/2.6.25.5-slitaz/extra/drivers/net/wireless/rt2x00/rt73usb.ko.gz': unknown symbol in module
modprobe: failed to load module rt73usb: No such file or directory
root@slitaz:~# dmesg
.......
rt2x00lib: Unknown symbol rfkill_unregister <=========
rt2x00lib: Unknown symbol rfkill_free
rt2x00lib: Unknown symbol rfkill_allocate
rt2x00lib: Unknown symbol rfkill_register
rt2x00usb: Unknown symbol rt2x00lib_suspend
rt2x00usb: Unknown symbol rt2x00lib_probe_dev
rt2x00usb: Unknown symbol rt2x00lib_rxdone
rt2x00usb: Unknown symbol rt2x00lib_remove_dev
rt2x00usb: Unknown symbol rt2x00lib_txdone
rt2x00usb: Unknown symbol rt2x00queue_get_queue
rt2x00usb: Unknown symbol rt2x00lib_resume
rt73usb: Unknown symbol rt2x00mac_add_interface
rt73usb: Unknown symbol crc_itu_t_table <==========
rt73usb: Unknown symbol rt2x00mac_get_stats
.....

2009-10-22

Slitaz -- ttf-droid




root@slitaz:~# fc-list :lang=zh
Droid Sans Fallback:style=Regular

root@slitaz:~# fc-list
Droid Sans:style=Regular
Droid Serif:style=Bold
Droid Sans Fallback:style=Regular
Droid Sans:style=Bold
Droid Sans Mono:style=Regular
Fixed:style=SemiCondensed
micro.pcf:style=Regular
Droid Serif:style=Italic
Droid Serif:style=Bold Italic
Ahem:style=Regular
Droid Serif:style=Regular
cursor.pcf:style=Regular
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Sans Mono:style=Book
root@slitaz:~#

ttf-droid-20090405.tar.gz

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD

2009-10-09

轉載

http://slitaz-cn.5d6d.com/thread-23-1-1.html
lufeng369 發表於 2009-5-29 20:38

手動漢化Firefox界面
下載並安裝此Firefox語言包
http://releases.mozilla.org/pub/ ... -i686/xpi/zh-CN.xpi

裝完後修改以下文件。
/usr/lib/firefox-3.0.10/defaults/pref/firefox-l10n.js
把相關內容修改為:
pref("general.useragent.locale", "zh-CN");

之後保存,並重啟Firefox,就變成中文菜單了。

或者你可以安裝我打包的Firefox簡體中文語言包 For Slitaz

....
天使界主 發表於 2009-5-29 22:25

我以前的locale-zh_CN包也弄過
不過我是用往firefox/chrome 添加zh_CN.jar,再改firefox-l10n.js的方法

2009-10-01

Slitaz - unfs3

root@slitaz:~# showmount -e 192.168.1.31
Export list for 192.168.1.31:
/mnt/iso
/tmp 192.168.1.0/24
root@slitaz:~# netstat -nltu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:2049 0.0.0.0:*
udp 0 0 0.0.0.0:800 0.0.0.0:*
udp 0 0 0.0.0.0:38067 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
root@slitaz:~#