2010-02-27

Slitaz -- dmidecode


tux@alanyih:~$ tazpkg info dmidecode

Tazpkg information
================================================================================
Package : dmidecode
Version : 2.10
Category : system-tools
Short desc : SMBIOS/DMI reports.
Maintainer : erjo@slitaz.org
Web site : http://www.nongnu.org/dmidecode/
================================================================================

tux@alanyih:~$ sudo dmidecode --type 0
# dmidecode 2.10
SMBIOS 2.4 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: NEC
Version: 0001/466A0002
Release Date: 11/17/2008
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 1024 kB
Characteristics:
ISA is supported
PCI is supported
PNP is supported
APM is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
Print screen service is supported (int 5h)
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
BIOS Revision: 1.1

tux@alanyih:~$

All DMI types you need to use with dmidecode --type {Number}:
# Type Short Description
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply

.

Slitaz -- sqlite


tux@alanyih:~$ tazpkg info sqlite

Tazpkg information
================================================================================
Package : sqlite
Version : 3.6.16
Category : office
Short desc : Small SQL database engine.
Maintainer : pankso@slitaz.org
Web site : http://www.sqlite.org/
================================================================================

tux@alanyih:~$ ls ~/.mozilla/firefox/7kdi32oc.default/*.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/content-prefs.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/cookies.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/downloads.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/formhistory.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/permissions.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/places.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/search.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/signons.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/urlclassifier3.sqlite
tux@alanyih:~$

Add-ons for Firefox
SQLite Manager 0.5.11
by Tarakant Tripathy, Mrinal Kant
https://addons.mozilla.org/en-US/firefox/addon/5817?from=%2Fzh-TW%2Ffirefox%2Faddon%2F5817

More about this add-on

Manage any SQLite database on your computer. An intuitive heirarchical tree showing database objects. Helpful dialogs to manage tables, indexes, views and triggers. You can browse and search the tables, as well as add, edit, delete and duplicate the records. Facility to execute any sql query. The views can be searched too. A dropdown menu helps with the sql syntax thus making writing sql easier. Easy access to common operations through menu, toolbars, buttons and context-menu. Export tables/views/database in csv/xml/sql format. Import from csv/xml/sql (both UTF-8 and UTF-16). Possible to execute multiple sql statements in Execute tab. You can save the queries. Support for ADS on Windows.

New issues, bugs, request for enhancements can be entered at:
http://code.google.com/p/sqlite-manager/issues/list.
.

2010-02-26

Slitaz -- iasl / ACPI

Package: iasl (20061109-0.1)
Intel ASL compiler/decompiler

iASL compiles ASL (ACPI Source Language) into AML (ACPI Machine Language). This AML is suitable for inclusion as a DSDT in sytem firmware. It also can disassemble AML, for debugging purposes.

root@slitaz:~# tazpkg info iasl

Tazpkg information
================================================================================
Package : iasl
Version : 20061109-0.1
Category : misc
Short desc : Intel ASL compiler/decompiler
Maintainer : nobody@slitaz.org
Web site : http://packages.debian.org/search?keywords=iasl
================================================================================

root@slitaz:~# ls -l /sys/firmware/acpi/tables/DSDT
-r--r--r-- 1 root root 0 Feb 26 20:51 /sys/firmware/acpi/tables/DSDT
root@slitaz:~# cat /sys/firmware/acpi/tables/DSDT > dsdt.aml
root@slitaz:~# iasl -d dsdt.aml

Intel ACPI Component Architecture
AML Disassembler version 20061109 [May 18 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

Loading Acpi table from file dsdt.aml
Acpi table [DSDT] successfully installed and loaded
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
...............................................................................................................................................................................................................................................................................................................................................................................................................................................
Parsing completed
Disassembly completed, written to "dsdt.dsl"
root@slitaz:~#

root@slitaz:~# head -20 dsdt.dsl
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20061109
*
* Disassembly of dsdt.aml, Fri Feb 26 21:54:17 2010
*
*
* Original Table Header:
* Signature "DSDT"
* Length 0x000059FB (23035)
* Revision 0x01
* OEM ID "A0074"
* OEM Table ID "A0074000"
* OEM Revision 0x00000000 (0)
* Creator ID "INTL"
* Creator Revision 0x02002026 (33562662)
*/
DefinitionBlock ("dsdt.aml", "DSDT", 1, "A0074", "A0074000", 0x00000000)
{
Name (IRID, 0x11F0A34D)
root@slitaz:~#

----
EVEREST v5.02.1789 Beta/tw

[ APIC: Multiple APIC Description Table ]

ACPI 表內容:
ACPI 簽署 APIC
表描述 Multiple APIC Description Table
記憶體位址 7FFA0390h
表長度 112 位元組
OEM ID A M I
OEM Table ID OEMAPIC
OEM Revision 08000511h
Creator ID MSFT
Creator Revision 00000097h
Local APIC Address FEE00000h

[ DSDT: Differentiated System Description Table ]

ACPI 表內容:
ACPI 簽署 DSDT
表描述 Differentiated System Description Table
記憶體位址 7FFA0400h
表長度 23035 位元組
OEM ID A0074
OEM Table ID A0074000
OEM Revision 00000000h
Creator ID INTL
Creator Revision 02002026h

.

Slitaz -- curlftpfs

tux@alanyih:~$ tazpkg info curlftpfs

Tazpkg information
================================================================================
Package : curlftpfs
Version : 0.9.2
Category : system-tools
Short desc : Using FUSE to access FTP servers.
Maintainer : erjo@slitaz.org
Depends : fuse curl glib zlib
Build deps : fuse fuse-dev curl curl-dev glib-dev
Web site : http://curlftpfs.sourceforge.net/
================================================================================

tux@alanyih:~$ ls -l ftpfs
drwxrwxr-x 7 root root 18 Feb 20 17:38 boot/
lrwxrwxrwx 1 root root 17 Dec 19 01:20 cgi-bin -> /var/www/cgi-bin/
drwxrwxr-x 3 root root 5 Nov 25 12:42 css/
drwxrwxr-x 2 root root 28 Feb 25 22:36 floppies/
drwxrwxr-x 7 root root 9 Dec 27 22:32 iso/
-rw-rw-r-- 1 root root 534 Oct 13 11:38 mirrors
drwxrwxr-x 7 root root 9 Oct 26 10:30 packages/
drwxrwxr-x 7 root root 23 Dec 27 22:37 pxe/
-rw-rw-r-- 1 root root 1512 Jul 24 2009 README
drwxrwxr-x 15 root root 16 Jan 17 18:04 sources/
tux@alanyih:~$ ls -l ftpfs/iso
drwxrwxr-x 3 root root 9 Jul 24 2009 1.0/
drwxrwxr-x 3 root root 8 Oct 10 07:57 2.0/
drwxrwxr-x 3 root root 10 Feb 21 19:51 cooking/
drwxrwxr-x 2 root root 13 Dec 29 00:19 cooking-snow/
lrwxrwxrwx 1 root root 5 Dec 18 01:20 stable -> ./2.0/
drwxrwxr-x 2 root root 5 Dec 24 17:25 undigest/
tux@alanyih:~$
.

2010-02-25

Slitaz -- hexdump / dd



tux@alanyih:~$ sudo dd if=/dev/sda of=pt.img skip=446 bs=1 count=64
64+0 records in
64+0 records out
tux@alanyih:~$ ls -l *.img
-rw-r--r-- 1 root root 446 Feb 25 16:24 mbr.img
-rw-r--r-- 1 root root 512 Feb 25 18:31 mbr-pb.img
-rw-r--r-- 1 root root 32256 Feb 25 18:46 partition.img
-rw-r--r-- 1 root root 64 Feb 25 18:54 pt.img

tux@alanyih:~$ hexdump -C pt.img | cut -d ' ' -f 2-20
00 01 01 00 83 fe ff 95 3f 00 00 00 d7 07 e1 00
80 00 c1 96 07 fe ff ff 16 08 e1 00 6e 67 26 04
00 00 c1 ff 07 fe ff ff bf fa 3f 06 02 dc 02 1f
00 fe ff ff 83 fe ff ff 84 6f 07 05 3b 8b 38 01

tux@alanyih:~$

tux@alanyih:~$ sudo cfdisk -P r /dev/sda | tail -6
0x1B0: 00 00 00 00 00 00 00 00 B0 EB B1 F0 00 00 00 01
0x1C0: 01 00 83 FE FF 95 3F 00 00 00 D7 07 E1 00 80 00
0x1D0: C1 96 07 FE FF FF 16 08 E1 00 6E 67 26 04 00 FE
0x1E0: FF FF 07 FE FF FF BF FA 3F 06 02 DC 02 1F 00 FE
0x1F0: FF FF 83 FE FF FF 84 6F 07 05 3B 8B 38 01 55 AA

tux@alanyih:~$ sudo cfdisk -P t /dev/sda
Partition Table for /dev/sda

---Starting---- ----Ending----- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ----- ---- ---- ---- ----- ----------- -----------
1 0x00 1 1 0 0x83 254 63 917 63 14747607
2 0x80 0 1 918 0x07 254 63 5251 14747670 69625710
3 0x00 0 1 6527 0x07 254 63 38912 104856255 520281090
4 0x00 0 1 5252 0x83 254 63 6526 84373380 20482875
tux@alanyih:~$ sudo cfdisk -P s /dev/sda
Partition Table for /dev/sda

First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
1 Primary 0 14747669 63 14747670 Linux (83) None
2 Primary 14747670 84373379 0 69625710 HPFS/NTFS (07) Boot
4 Primary 84373380 104856254 0 20482875 Linux (83) None
3 Primary 104856255 625137344 0 520281090 HPFS/NTFS (07) None

.

2010-02-24

Slitaz -- chroot


tux@alanyih:~$ sudo /root/chroot.sh
Chrooting into /media/Slitaz...
root@alanyih:/# tazpkg | head -2
SliTaz package manager - Version: 3.1

root@alanyih:/# ls -l /
drwxr-xr-x 2 root root 4096 Dec 8 05:42 Recycled
drwxr-xr-x 2 root root 4096 Dec 2 16:01 bin
drwxr-xr-x 4 root root 4096 Feb 24 07:27 boot
drwxr-xr-x 13 root root 12288 Feb 24 15:37 dev
drwxr-xr-x 37 root root 4096 Feb 24 07:11 etc
drwxr-xr-x 6 root root 4096 Jan 29 08:23 home
-rwxr-xr-x 1 root root 735 Dec 2 00:48 init
drwxr-xr-x 6 root root 4096 Feb 5 11:14 lib
drwx------ 2 root root 4096 Dec 2 00:47 lost+found
drwxr-xr-x 6 root root 4096 Feb 24 07:56 media
drwxr-xr-x 6 root root 4096 Jan 29 10:27 mnt
dr-xr-xr-x 94 root root 0 Feb 25 06:55 proc
drwxr-x--- 23 root root 4096 Feb 24 15:37 root
drwxr-xr-x 2 root root 4096 Feb 24 07:11 sbin
drwxr-xr-x 12 root root 0 Feb 25 06:55 sys
drwxrwxrwt 5 root root 4096 Feb 25 13:57 tmp
drwxr-xr-x 10 root root 4096 Feb 24 14:45 usr
drwxr-xr-x 12 root root 4096 Feb 5 17:07 var
root@alanyih:/# exit
Exiting /media/Slitaz chroot environment...

tux@alanyih:~$ tazpkg | head -2
SliTaz package manager - Version: 3.2.1

tux@alanyih:~$ ls -l /
drwxr-xr-x 2 root root 4096 Feb 24 16:22 bin/
drwxr-xr-x 4 root root 4096 Feb 24 18:12 boot/
drwxr-xr-x 12 root root 4096 Feb 25 06:55 dev/
drwxr-xr-x 23 root root 4096 Feb 25 09:29 etc/
drwxr-xr-x 3 root root 4096 Feb 24 16:31 home/
-rwxr-xr-x 1 root root 3162 Feb 24 16:22 init
drwxr-xr-x 5 root root 4096 Feb 24 16:22 lib/
drwx------ 2 root root 16384 Feb 24 16:22 lost+found/
drwxr-xr-x 6 root root 4096 Feb 25 13:02 media/
drwxr-xr-x 5 root root 4096 Feb 24 16:44 mnt/
dr-xr-xr-x 92 root root 0 Feb 25 06:55 proc/
drwxr-xr-x 8 tux tux 4096 Feb 25 13:04 root/
drwxr-xr-x 2 root root 4096 Feb 24 16:34 sbin/
drwxr-xr-x 12 root root 0 Feb 25 06:55 sys/
drwxrwxrwt 5 root root 4096 Feb 25 14:16 tmp/
drwxr-xr-x 9 root root 4096 Feb 25 14:07 usr/
drwxr-xr-x 10 root root 4096 Feb 24 16:22 var/
tux@alanyih:~$

checklist

ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so: undefined symbol: gtk_entry_set_icon_from_icon_name

AttributeError: 'module' object has no attribute 'inotify'

1.
tux@alanyih:~$ python
Python 2.5.1 (r251:54863, Jan 17 2010, 07:02:56)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>>

2.
>>> help('modules')

3.
tux@alanyih:~$ nm -D /usr/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so | grep gtk_entry_set_icon_from_icon_name
U gtk_entry_set_icon_from_icon_name

tux@alanyih:~$ nm --help | tail -3

nm: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 efi-bsdrv-ia32 efi-rtdrv-ia32 elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core
Report bugs to .

tux@alanyih:~$
.

Slitaz -- bootchart


20100306 http://doc.slitaz.org/en:guides:boottime
/etc/rcS.conf :
FAST_BOOT_X="yes"

Env:
SliTaz GNU/Linux cooking-firefox-20100221 (29 Mb) - slitaz-cooking-firefox.iso

root@alanyih:~# uname -a
Linux alanyih 2.6.30.6-slitaz #1 SMP Sun Jan 3 20:16:03 CET 2010 i686 unknown
root@alanyih:~# ls -l /var/log | head -2
-rw-r--r-- 1 root root 80894 Feb 24 17:03 bootchart.png
-rw-r--r-- 1 root root 9770 Feb 24 17:03 bootchart.tgz
root@alanyih:~# tar tzvf /var/log/bootchart.tgz
-rw-r--r-- 0/0 354 2010-02-24 17:03:17 header
-rw-r--r-- 0/0 13022 2010-02-24 17:03:15 proc_diskstats.log
-rw-r--r-- 0/0 257499 2010-02-24 17:03:15 proc_ps.log
-rw-r--r-- 0/0 12143 2010-02-24 17:03:15 proc_stat.log

root@alanyih:~# tazpkg info pybootchartgui

Tazpkg information
================================================================================
Package : pybootchartgui
Version : r124
Category : misc
Short desc : bootchart GUI in python
Maintainer : jozee@slitaz.org
Depends : python pygtk bootchart
Web site : http://pybootchartgui.googlecode.com/
================================================================================

root@alanyih:~# tazpkg info bootchart

Tazpkg information
================================================================================
Package : bootchart
Version : 0.9
Category : misc
Short desc : boot process performance analyzer (add init=/sbin/bootchartd to boot options)
Maintainer : jozee@slitaz.org
Suggested : pybootchartgui
Web site : http://www.bootchart.org/
================================================================================

root@alanyih:~# head -24 /sbin/bootchartd
#!/bin/sh
#
# Bootchart logger script
# Ziga Mahkovec
#
# This script is used for data collection for the bootchart
# boot performance visualization tool (http://www.bootchart.org).
#
# To profile the boot process, bootchartd should be called instead of
# /sbin/init. Modify the kernel command line to include:
# init=/sbin/bootchartd
#
# bootchartd will then start itself in background and exec /sbin/init
# (or an alternative init process if specified using bootchart_init=)
#
# To profile a running system, run:
# $ /sbin/bootchartd start; sleep 30; /sbin/bootchartd stop
#

PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"
VERSION="0.8"

# Read configuration.
CONF="/etc/bootchartd.conf"
root@alanyih:~# pybootchartgui /var/log
warning: no parent for pid '2' with ppid '0'
Merged 30 logger processes
Pruned 39 processes
Pruned 0 exploders
Pruned 101 threads
Pruned 1 runs

2010-02-23

Slitaz -- google-chrome


root@slitaz:~# tazpkg info google-chrome-unstable

Tazpkg information
================================================================================
Package : google-chrome-unstable
Version : 5.0.322.2-r38810
Category : non-free
Short desc : The web browser from Google.
Maintainer :
Depends : gtk+ GConf lzma flash-plugin
Web site : http://www.google.com/chrome/
================================================================================

root@slitaz:~# head /usr/bin/google-chrome
#!/bin/bash
#
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Let the wrapped binary know that it has been run through the wrapper
export CHROME_WRAPPER="`readlink -f "$0"`"

PROGDIR="`dirname "$CHROME_WRAPPER"`"
root@slitaz:~#

.

2010-02-21

Slitaz -- tazpkg-web


root@slitaz:~# tail -5 /var/log/lighttpd/alanyih.org-access.log
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:06:43 +0000] "GET /cooking/development.html HTTP/1.1" 200 429024 "http://www.alanyih.org/cooking/x-window.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:23 +0000] "GET /cooking/misc.html HTTP/1.1" 200 43727 "http://www.alanyih.org/cooking/development.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:28 +0000] "GET /cooking/non-free.html HTTP/1.1" 200 17516 "http://www.alanyih.org/cooking/misc.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:53 +0000] "GET /cooking/multimedia.html HTTP/1.1" 200 85275 "http://www.alanyih.org/cooking/non-free.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:08:00 +0000] "GET /cooking/office.html HTTP/1.1" 200 32689 "http://www.alanyih.org/cooking/multimedia.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
root@slitaz:~#

1. COOKING="/home/slitaz/cooking" ===> COOKING="/home/slitaz"
root@slitaz:~# head -13 /etc/slitaz/tazpkg-web.conf
# tazpkg-web.conf: SliTaz packages Web interface configuration file.
#

# Path to the Web interface.
WEB_INTERFACE="/var/www/vhosts/pkgs"

# Path to xHTML and XML templates.
LIB_DIR="/var/lib/tazpkg-web"

# Path to each version.
STABLE="/home/slitaz/stable"
#COOKING="/home/slitaz/cooking"
COOKING="/home/slitaz"

root@slitaz:~# ls -l /home/slitaz
lrwxrwxrwx 1 root root 16 Feb 21 07:56 src -> /media/cdrom/src
lrwxrwxrwx 1 root root 16 Feb 21 07:56 wok -> /media/cdrom/wok
root@slitaz:~#

2. /etc/lighttpd/lighttpd.conf
line 146
server.document-root = "/var/www/vhosts/pkgs" <====
# server.document-root = "/var/www/vhost/example.com/html"
.

2010-02-19

Slitaz -- xarchive / slitaz-warp.sh

http://hg.slitaz.org/wok/file/a93b9fa277ad/xarchive/stuff/slitaz-wrap.sh

wok
view xarchive/stuff/slitaz-wrap.sh @ 4955:a93b9fa277ad
xarchive: fix lrzip suffix
author Pascal Bellard
date Wed Feb 17 17:30:41 2010 +0100 (2 days ago)
parents ac195e0fe6bf
children
line source
1 #!/bin/sh
2 #
3 # slitaz-wrap.sh - slitaz core wrapper for xarchive frontend
4 # Copyright (C) 2005 Lee Bigelow
5 # Copyright (C) 2010 Pascal Bellard
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21 UNSUPPORTED=65
22
23 GZIP_EXTS="tar.gz tgz cpio.gz"
24 LZMA_EXTS="tar.lz tar.lzma tlz"
25 BZIP2_EXTS="tar.bz tbz tar.bz2 tbz2"
26 COMPRESS_EXTS="tar.z tar.Z"
27 TAR_EXTS="tar tar.gz tgz $LZMA_EXTS $BZIP2_EXTS $COMPRESS_EXTS"
28 XZ_EXTS="tar.xz txz"
29 LRZIP_EXTS="tar.lrz tlrz"
30 IPK_EXTS="ipk"
31 CPIO_EXTS="cpio cpio.gz"
32 CPIOXZ_EXTS="cpio.xz"
33 CPIOLRZIP_EXTS="cpio.lrz"
34 ZIP_EXTS="zip cbz jar"
35 RPM_EXTS="rpm"
36 DEB_EXTS="deb udeb"
37 TAZPKG_EXTS="tazpkg spkg"
38 ISO_EXTS="iso"
39 SQUASHFS_EXTS="sfs sqfs squashfs"
40 CROMFS_EXTS="cfs cromfs"
41 FS_EXTS="ext2 ext3 dos fat vfat xfs fd fs loop"
42 CLOOP_EXTS="cloop"
43 RAR_EXTS="rar cbr"
44 LHA_EXTS="lha lzh lzs"
45 LZO_EXTS="lzo"
46 ARJ_EXTS="arj pak arc j uc2 zoo"
47 _7Z_EXTS="7z bcj bcj2"
48
....

2010-02-12

Slitaz -- tazpack

http://spicytunalabs.dyndns.org/wiki/slitaz/
....

Extract files from tazpack file:

$ tazpack extract (packfile)


$ file=(pack name)-pack-(ver).tazpack
$ dd if=$file of=info.txt bs=1 count=2048
$ dd if=$file of=archive.tar.gz bs=2048 skip=1
$ sed -i '/^$/d' info.txt


root@slitaz:/tmp# head -17 /usr/bin/tazpack
#! /bin/sh
#
# tazpack - SliTaz group package management system
#
# author: hottunalabs@gmail.com

VERSION="0.1.1"

# default urls & dirs
#
checksum1_url="http://spicytunalabs.dyndns.org/slitaz/tazpack/sha1sum/"
checksum2_url=""
pack_dir=/var/lib/tazpack/
pack_url="http://greencomputing.sakuraweb.com/slitaz/tazpack/"
cache=/var/cache/tazpack/
config=/etc/tazpack.conf
pkglist="installed_pkglist.txt"

root@slitaz:/tmp# tazpack list-mirror

List of available packs on the mirror
--------------------------------------------------------------------------------
audio 2.2 multimedia
banshee 2.3 multimedia
extra-fonts 2.0 x-window
extra-locale 2.0 i18n
google-chrome 0.1 non-free
gstreamer 2.4 multimedia
mono 2.2 development
mplayer 2.4 multimedia
nvidia-driver-kver2.6.30.6-r190.53 2.0 non-free
opengl 2.2 x-window
printing 0.1 document
python2.6 2.0 development
python2.6-binding 2.1 development
qt 2.1 x-window
qt-dev 2.0 development
screensaver 2.1 x-window
video-codecs 2.2 multimedia
viewer 2.0 document
--------------------------------------------------------------------------------
18 available packs

root@slitaz:/tmp# tazpack get-install extra-locale
SliTaz unofficial group package manager - Version: 0.1.1

Usage: tazpack [command] [package1 package2 ...] [option]

Commands:
check Verify SHA1 checksums of a pack.
clean-cache Clean all packs downloaded in cache directory.
extract Extract a (*.tazpack) pack into a directory.
get Download a pack into the current directory.
get-install Download and install a pack from the mirror.
info Print information about a pack.
install Install a pack (--forced ignores SHA1 check).
list List installed packs on the system by category or all.
list-mirror List all available packs on the mirror.
reinstall Reinstall a pack (--forced ignores SHA1 check).
remove Remove the specified pack and all installed packages.
show-pkglist List of the packages in a pack.
show-installed-pkglist
List of the installed packages in a pack.
update Update list of available packs
usage Print this short usage.

root@slitaz:/tmp# tazpack get extra-locale

Connecting to greencomputing.sakuraweb.com (219.94.163.231:80)
extra-locale-2.0.taz 100% |*******************************| 4984k 00:00:00 ETA

root@slitaz:/tmp# dd if=extra-locale-2.0.tazpack of=info.txt bs=1 count=2048
2048+0 records in
2048+0 records out
root@slitaz:/tmp# dd if=extra-locale-2.0.tazpack of=extra-locale.tar.gz bs=2048
skip=1
2491+1 records in
2491+1 records out
root@slitaz:/tmp# ls -l
-rw-r--r-- 1 root root 5104107 Feb 11 09:55 extra-locale-2.0.tazpack
-rw-r--r-- 1 root root 5102059 Feb 11 11:47 extra-locale.tar.gz
-rw-r--r-- 1 root root 2048 Feb 11 11:45 info.txt
drwx------ 2 root root 60 Feb 11 08:56 keyring-SX6FZV
-rw-r--r-- 1 root root 667385 Feb 11 09:21 list
drwx------ 2 root root 100 Feb 11 08:56 orbit-root

====
http://spicytunalabs.dyndns.org/wiki/slitaz/#TOOL%3A%3Atazpack

TOOL::tazpack
YourName, 5 March 2010 (created 27 January 2010)

* not tagging

* tags:
* SliTaz flavor

tazpkg is a official package manager. tazpack is a unofficial group package manager.

Tazpack group package system
Tazpack package system is a unoffcial package system which is solved complicated
dependencies. Using tazpack is much easier than using tazpkg.

1. Install tazpack
Note: tazpack is included in latest asimo flavor.

* Download tazpack
* Extract and cpoy to /usr/bin: cp tazpack /usr/bin


2. Basic usage

tazpack usage Short help
tazpack update Update
tazpack clean-cache Clean cache
tazpack list-mirror Available packs
tazpack list Installed packs
tazpack install pack1 pack2 Install pack
tazpack install pack1.tazpack... Install pack(local files)
tazpack remove pack1 pack2... Uninstall pack


3. Tazpack archives
4. About Tazpack System

Tazpack List

* Tazpack List

closeclose othersviewmorefieldssyncingpermalinkreferencesjump
Tazpack List
YourName, 25 March 2010 (created 4 March 2010)

* not tagging

* no tags

* audio pack - sound drivers and simple client(ncmpc, ncmpcpp, sonata) & audio server(mpd)
* audio tools pack - Various audio tools
* banshee pack - multimedia player
* Chrome pack - Google Chrome pack; download Chrome and the related packages
* extra local pack - over 50 extra UTF-8 locales
* extra fonts pack - TTF font pack: CJK, Thai, Tibetan, Indic, Arabic, farsi, Amharic and many more
* GNU commands & others - Replace busybox commands
* gstreamer & ffmpeg pack - ffmpeg, gsteramer and the plugins
* mplayer pack - video player(mplayer and smplayer)
* OpenGL pack - Mesa OpenGL modules and utilities
* mono pack - mono and the bindings
* nvidia driver pack - Linux-2.26.30.6 nvidia proprietary dirver
* printing pack - cups server
* Python2.6 & bindings pack - Python-2.6 and the bindings
* qt pack & qt devel pack - qt runtime modules and development
* screensaver pack - Xscreensaver and rss-glx
* Science, Mathematics and Graphics pack - clisp, maxima, structuresynth, stellarium and graphviz
* video codecs pack - video codecs and related files
* viewer pack - evince viewer and ghostscript
* xorg patch pack - Mesa related patch



closeclose othersviewmorefieldssyncingpermalinkreferencesjump
tazpack system
YourName, 11 February 2010 (created 14 November 2009)

* not tagging

* no tags

Structure of tazpack file
First part(2kB) is tazpack info data and the latter part is a tar archive.

structure of pack file
start content end
0Byte -------- info.txt ----------- 2048 (2048B)
2049 -------- tar archive -------- EOF


Directory tree

(pack name)/pkgs/_control
/pkgs/_control/select.txt
/pkgs/_control/filelist.txt
/pkgs/_control/info.txt
/pkgs/_control/install.sh
/pkgs/_control/configure.sh
/pkgs/_control/uninstall.sh
/pkgs/_control/pkglist.txt
/pkgs/(tazpkg files)


Extract files from tazpack file:

$ tazpack extract (packfile)


$ file=(pack name)-pack-(ver).tazpack
$ dd if=$file of=info.txt bs=1 count=2048
$ dd if=$file of=archive.tar.gz bs=2048 skip=1
$ sed -i '/^$/d' info.txt

2010-02-07

Slitaz -- modules_install


make INSTALL_MOD_PATH=/home/module modules_install

make mrproper
make gconfig
ls drivers/i2c/
ls drivers/hwmon/
make drivers/i2c/
make drivers/i2c/i2c-dev.ko
make drivers/hwmon/
make drivers/hwmon/coretemp.ko
make INSTALL_MOD_PATH=/home/module modules_install

root@slitaz:/usr/src/linux-2.6.25.5-slitaz# ls -R /home/module/lib/
/home/module/lib/:
modules

/home/module/lib/modules:
2.6.25.5

/home/module/lib/modules/2.6.25.5:
build modules.ieee1394map modules.seriomap
kernel modules.inputmap modules.symbols
modules.alias modules.isapnpmap modules.usbmap
modules.ccwmap modules.order source
modules.dep modules.pcimap

/home/module/lib/modules/2.6.25.5/kernel:
drivers

/home/module/lib/modules/2.6.25.5/kernel/drivers:
hwmon i2c input leds scsi

/home/module/lib/modules/2.6.25.5/kernel/drivers/hwmon:
abituguru3.ko asb100.ko hdaps.ko lm87.ko via686a.ko
abituguru.ko atxp1.ko hwmon.ko lm90.ko vt1211.ko
ad7418.ko coretemp.ko hwmon-vid.ko lm92.ko vt8231.ko
adm1021.ko dme1737.ko i5k_amb.ko lm93.ko w83627ehf.ko
adm1025.ko ds1621.ko it87.ko max1619.ko w83627hf.ko
adm1026.ko f71805f.ko k8temp.ko max6650.ko w83781d.ko
adm1029.ko f71882fg.ko lm63.ko pc87360.ko w83791d.ko
adm1031.ko f75375s.ko lm75.ko pc87427.ko w83792d.ko
adm9240.ko fscher.ko lm77.ko sis5595.ko w83793.ko
ads7828.ko fschmd.ko lm78.ko smsc47b397.ko w83l785ts.ko
adt7470.ko fscpos.ko lm80.ko smsc47m192.ko w83l786ng.ko
adt7473.ko gl518sm.ko lm83.ko smsc47m1.ko
applesmc.ko gl520sm.ko lm85.ko thmc50.ko

/home/module/lib/modules/2.6.25.5/kernel/drivers/i2c:
algos busses chips i2c-core.ko i2c-dev.ko

/home/module/lib/modules/2.6.25.5/kernel/drivers/i2c/algos:
i2c-algo-bit.ko i2c-algo-pca.ko i2c-algo-pcf.ko

/home/module/lib/modules/2.6.25.5/kernel/drivers/i2c/busses:
i2c-ali1535.ko i2c-ocores.ko i2c-stub.ko
i2c-ali1563.ko i2c-parport-light.ko i2c-taos-evm.ko
i2c-ali15x3.ko i2c-piix4.ko i2c-tiny-usb.ko
i2c-amd756.ko i2c-prosavage.ko i2c-via.ko
i2c-amd756-s4882.ko i2c-savage4.ko i2c-viapro.ko
i2c-amd8111.ko i2c-simtec.ko i2c-voodoo3.ko
i2c-i801.ko i2c-sis5595.ko scx200_acb.ko
i2c-i810.ko i2c-sis630.ko
i2c-nforce2.ko i2c-sis96x.ko

/home/module/lib/modules/2.6.25.5/kernel/drivers/i2c/chips:
ds1682.ko max6875.ko pcf8575.ko tps65010.ko
eeprom.ko pcf8574.ko pcf8591.ko tsl2550.ko

====
20100306
http://blog.chinaunix.net/u1/52215/showart_1217522.html

1) complile a modules:
make -C /usr/src/linux/ M=`pwd` modules
-C: the source code dirctory
M=: the modules source and makefile directory.

2)confile (hd0,1)/boot/grub/menu.lst

2010-02-06

Slitaz -- firefox / seamonkey



root@slitaz:~# tazpkg info seamonkey

Tazpkg information
================================================================================
Package : seamonkey
Version : 2.0.2
Category : network
Short desc : Seamonkey suite (browser, mail, news reader).
Maintainer : pankso@slitaz.org
Depends : gtk+ glib jpeg xorg-libX11 libIDL
Build deps : xorg-dev gtk+-dev zip libIDL coreutils xorg-libXft-dev perl alsa-lib-dev findutils
Web site : http://www.seamonkey-project.org/
================================================================================

root@slitaz:~# tazpkg info firefox

Tazpkg information
================================================================================
Package : firefox
Version : 3.5.7
Category : network
Short desc : User friendly, secure and fast web browser.
Maintainer : pankso@slitaz.org
Depends : gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib
Build deps : xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev dbus-dev dbus-glib-dev alsa-lib-dev
Web site : http://www.mozilla.org/
================================================================================

root@slitaz:~#
.

Slitaz -- tazpkg-web



root@slitaz:~# tazpkg info tazpkg-web
Tazpkg information
================================================================================
Package : tazpkg-web
Version : 1.1
Category : network
Short desc : SliTaz packages Web interfaces (http://pkgs.slitaz.org/).
Maintainer : pankso@slitaz.org
Depends : lighttpd
Web site : http://www.slitaz.org/
================================================================================

root@slitaz:~#


To have a Tazpkg-web interface on your local system, you can add a vhost
to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also
copy files from: /var/lib/tazpkg-web. Example:

# mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web
# cp -a search.cgi style/* /var/www/vhosts/pkgs
# tazpkg-web cooking

Slitaz -- applications

/root/.config/slitaz/applications.conf
# SliTaz default applications configuration file. Thes apps can be
# started throught wrappers: browser, editor and terminal.
#

# File manager.
FILE_MANAGER="pcmanfm"

# Web browser.
BROWSER="netsurf"

# Text editor.
EDITOR="leafpad"

# X terminal.
TERMINAL="xterm"

# Window manager.
WINDOW_MANAGER="openbox-session"

-----
/etc/skel/.local/share/applications/defaults.list

[Default Applications]
application/ogg=alsaplayer.desktop
image/png=gpicview.desktop
application/pdf=epdfview.desktop
image/jpeg=gpicview.desktop
application/x-shellscript=geany.desktop
application/x-desktop=leafpad.desktop
text/plain=leafpad.desktop
application/xml=geany.desktop
audio/mpeg=alsaplayer.desktop
text/html=firefox.desktop
application/x-php=geany.desktop
application/x-cd-image=isomaster.desktop
image/x-ico=gpicview.desktop

-----
root@slitaz:~# ls ~/.local/share/applications
defaults.list xarchive-usercustom-0.desktop
mimeinfo.cache
root@slitaz:~# cat ~/.local/share/applications/defaults.list

[Default Applications]
application/x-compressed-tar=xarchive.desktop
application/x-deb=xarchive-usercustom-0.desktop
root@slitaz:~#

.