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:~#

2009-09-29

Slitaz / W3V - SDHC

root@slitaz:~# dmesg | grep sdhci
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci: SDHCI controller found at 0000:03:01.2 [1180:0822] (rev 17)
sdhci: module is already loaded

root@slitaz:~# dmesg | grep mmc
mmc0: SDHCI at 0xfbffb800 irq 18 DMA
ricoh-mmc: Ricoh MMC Controller disabling driver
ricoh-mmc: Copyright(c) Philip Langdale
mmc0: new SDHC card at address b368
mmcblk0: mmc0:b368 SDC 7830016KiB
mmcblk0: p1
mmc_core: module is already loaded

root@slitaz:~# fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 8017 MB, 8017936384 bytes
202 heads, 59 sectors/track, 1313 cylinders
Units = cylinders of 11918 * 512 = 6102016 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1 1314 7825920 b Win95 FAT32

root@slitaz:~# mount /dev/mmcblk0p1 /mnt/mmc
root@slitaz:~# ls -l /mnt/mmc
drwxr-xr-x 3 root root 32768 Jun 22 07:40 dcim
drwxr-xr-x 2 root root 32768 Sep 3 21:03 misc

root@slitaz:~# ls -l /dev/mmc*
brw-rw---- 1 root root 179, 0 Oct 3 10:58 /dev/mmcblk0
brw-rw---- 1 root root 179, 1 Oct 3 10:58 /dev/mmcblk0p1
brw-rw---- 1 root root 179, 8 Jan 13 2009 /dev/mmcblk1
brw-rw---- 1 root root 179, 9 Jan 13 2009 /dev/mmcblk1p1

===========

Reproduced

http://www.antifart.com/2007/12/31/panasonic-sdhc-driver.html

Panasonic SDHC Driver
December 31st, 2007

Here is the driver for the Panasonic CF-51 laptop SD Host Controller. This will allow the built-in SD card reader to work with SDHC flash cards. These are the bare drivers and require you to manually update them from the Device Manager. If you want the full installation file, then you can download it here.

I found this driver when I was working on a similar problem with my Dell Vostro 1000. It appears that both these laptops have the same Ricoh R5C8xx controller.

Use these drivers at your own risk. Here is my original post.

-------

D:\tools\w3v\sdhc\SD 的目錄

2006/12/21 下午 09:38 8,070 risdptsk.cat
2006/12/19 下午 10:27 2,773 Risdptsk.inf
2006/12/19 下午 10:26 38,912 risdptsk.sys
3 個檔案 49,755 位元組

2009-09-02

Slitaz - virtualbox

virtualbox-3.0.4

http://mirror.switch.ch/ftp/mirror/slitaz/packages/cooking/get-virtualbox-1.00.tazpkg

get-virtualbox-1.00.tazpkg 31-Aug-2009 20:02 2.5K

Package virtualbox-3.0.4-50677 compressed successfully.
Size : 48.6M virtualbox-3.0.4-50677.tazpkg

Installation of : virtualbox-3.0.4-50677
================================================================================
Copying virtualbox-3.0.4-50677... [ OK ]
Extracting virtualbox-3.0.4-50677... 99407 blocks
Extracting the pseudo fs... 200284 blocks
Installing virtualbox... [ OK ]
Removing all tmp files... [ OK ]
================================================================================
virtualbox (3.0.4-50677_2.6.25.5) is installed.

root@slitaz:~# ps ax | grep Virtual
4924 root /usr/share/VirtualBox/VirtualBox
4942 root /usr/share/VirtualBox/VBoxXPCOMIPCD
4955 root /usr/share/VirtualBox/VBoxSVC --automate
4975 root grep Virtual

root@slitaz:~# lsmod | grep vbox
vboxnetadp 68528 0
vboxnetflt 74200 0
vboxdrv 104136 1 vboxnetflt

root@slitaz:~# ls -l /dev/vboxdrv
crw------- 1 root vboxuser 10, 60 Sep 2 22:11 /dev/vboxdrv

2009-08-06

Slitaz - make xconfig




packages: libqt3-headers libqt3-compat-headers libqt3-mt libqt3-mt-dev qt3-dev-tools libaudio2

libqt3-headers_3.3.8b-5+b1_i386.deb
libqt3-compat-headers_3.3.8b-5+b1_i386.deb
libqt3-mt_3.3.8b-5+b1_i386.deb
libqt3-mt-dev_3.3.8b-5+b1_i386.deb
qt3-dev-tools_3.3.8b-5+b1_i386.deb
libaudio2_1.9.1-5_i386.deb

slitaz-2.0
root@slitaz:~# ls -l *.tazpkg
-rw-r--r-- 1 root root 80584 Aug 7 09:10 libaudio2-1.9.1-5.tazpkg
-rw-r--r-- 1 root root 83380 Aug 7 08:24 libqt3-compat-headers-3.3.8b-5+b1.tazpkg
-rw-r--r-- 1 root root 386320 Aug 7 08:24 libqt3-headers-3.3.8b-5+b1.tazpkg
-rw-r--r-- 1 root root 3255876 Aug 7 08:25 libqt3-mt-3.3.8b-5+b1.tazpkg
-rw-r--r-- 1 root root 48228 Aug 7 08:25 libqt3-mt-dev-3.3.8b-5+b1.tazpkg
-rw-r--r-- 1 root root 1348296 Aug 7 08:34 qt3-dev-tools-3.3.8b-5+b1.tazpkg
root@slitaz:~#


root@slitaz:/usr/src/linux-2.6.25.5-slitaz# make xconfig
HOSTLD scripts/kconfig/qconf
scripts/kconfig/qconf arch/x86/Kconfig

2009-08-04

Slitaz - make gconfig




slitaz-2.0
# pkg-config-0.21.tazpkg
# gtk+-dev-2.14.7.tazpkg
# glib-dev-2.18.3.tazpkg
# libglade-dev-2.6.2.tazpkg
# libxml2-dev-2.7.2.tazpkg

root@slitaz:~# pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
root@slitaz:~# pkg-config --libs glib-2.0
-lglib-2.0
root@slitaz:~# pkg-config --libs libglade-2.0
-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

root@slitaz:~# cd /usr/src/linux
root@slitaz:/usr/src/linux-2.6.25.5-slitaz# make gconfig
HOSTCC scripts/kconfig/gconf.o
In file included from /usr/include/gtk-2.0/gtk/gtk.h:224,
from scripts/kconfig/gconf.c:17:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isnât a prototype
scripts/kconfig/images.c:6: warning: â defined but not used
scripts/kconfig/images.c:36: warning: â defined but not used
scripts/kconfig/images.c:66: warning: â defined but not used
scripts/kconfig/images.c:175: warning: â defined but not used
scripts/kconfig/images.c:192: warning: â defined but not used
scripts/kconfig/images.c:209: warning: â defined but not used
scripts/kconfig/images.c:226: warning: â defined but not used
scripts/kconfig/images.c:243: warning: â defined but not used
scripts/kconfig/images.c:277: warning: â defined but not used
scripts/kconfig/images.c:294: warning: â defined but not used
scripts/kconfig/gconf.c:959: warning: â defined but not used
HOSTLD scripts/kconfig/gconf
scripts/kconfig/gconf arch/x86/Kconfig
....

Reprinted
http://r40eubuntu.blogspot.com/2008/08/gtk2.html

pkg-config and PKG_CONFIG_PATH
作GTK+2.0 練習時,follow instruction 安裝了 libgtk+2.0-dev

之後 run

$pkg-config --libs gtk+-2.0

卻出現 message 說找不到:

Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

所以 找一下 gtk+-2.0.pc:

$sudo find /usr | grep gtk+-2.0.pc

找到在 /usr/lib/pkgconfig。
所以加入..

$export PKG_CONFIG_PATH=/usr/lib/pkgconfig

重新login 後再run pkg-config --libs gtk+-2.0,變成出現:

Perhaps you should add the directory containing `pthread-stubs.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pthread-stubs', required by 'XCB', not found

所以....又要再找 pthread-stubs.pc 了...結果在 /usr/share/pkgconfig,所以 改成:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig

重新login 後,就OK了...

$ pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

這樣順便解決了一個問題... kernel build - make gconfig 結果一直說我沒有install gtk+-2.0,但是我明明有install。

http://wiki.linux.org.hk/w/Compile_Linux_kernel

64-bit Firefox and 64-bit Flash plugin

Extra from
https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins

1. Remove currently installed versions of Flash.

sudo apt-get purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash nspluginwrapper swfdec-mozilla

1. Visit http://labs.adobe.com/downloads/flashplayer10.html to update the filename given under if necessary.
2. Download the 64-bit Flash plugin and extract it:

wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz && tar xvfz libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz

1. Move the file in /usr/lib/mozilla/plugins for a site-wide install (or in ~/.mozilla/plugins for a single-user install):

sudo mv libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so

2009-08-03

Slitaz - Nvidia

nvidia-185.18.14

nvidia-190.18

nvidia-190.18-glx

nvidia-190.18-dfp


slitaz-2.0
# tazpkg list | grep nvidia
nvidia 185.18.14_2.6.25. non-free
nvidia-glx 185.18.14 non-free
nvidia-settings 185.18.14 non-free

2009-07-25

Slitaz - lcdproc / lirc

http://mirror.slitaz.org/packages/cooking/
http://mirror.slitaz.org/packages/cooking/lirc-0.8.5_2.6.25.5.tazpkg
http://mirror.slitaz.org/packages/cooking/lirc-dev-0.8.5.tazpkg

lirc-0.8.5_2.6.25.5.tazpkg 2009-Jul-22 00:54:21 357.0K application/x-tazpkg
lirc-dev-0.8.5.tazpkg 2009-Jul-21 20:03:53 14.0K application/x-tazpkg

http://sourceforge.net/projects/lcdproc/files/lcdproc/0.5.3/lcdproc-0.5.3.tar.gz/download

Browse Files for LCDproc
File/Folder Name Platform Size Date Downloads Notes/Subscribe
Newest Files
lcdproc-0.5.3.tar.gz Any 869.3 KiB Sun Jun 21 2009 17:44 59 Release Notes
lcdproc-0-5-3-user-html.tar.gz Platform-Independent 92.9 KiB Sun Jun 21 2009 17:44 14 Release Notes
lcdproc-0-5-3-dev-html.tar.gz Platform-Independent 37.1 KiB Sun Jun 21 2009 17:43 12 Release Notes

http://www.mythtv.org/wiki/Futaba
.....
Futaba dm-140gink Demo

The Futaba DM-140GINK Demo is an OEM device from Futaba.

The following machines have the DM-140GINK built in:

* MSI_Media_Live, Hiper HMC-2K53A, FIC Spectra....(please add)

The DM-140GINK includes is a combined device with the following functions:

* a VFD
* a Wireless Network Interface (801.11 B/G usb device Ralink chipset RT2571WF )
* Front Panel Keys

The module is a controlled by a Weltrend WT65F5 USB Micro controller.

VFD

The current LCDproc 0.5.2 does not have support for the dm140 in the package. Henrik Larsson created this rpm with a driver for the dm140.

Henlar: Here is a LCDproc working with dm140 v0.2 have the dm140_char() fixed. It is not bug free but it works.

LCDProc 0.5.2 version with Henlar dm140 driver v0.2
https://zeb.slsp.se/daylight/lcdproc-0.5.2-henlar-v0.2.tar.gz

Quick howto:

tar xvf lcdproc-0.5.2-henlar-v0.2.tar.gz
cd lcdprov-0.5.2/
./configure --enable-drivers=dm140
make
sudo make install
edit /usr/local/etc/LCDd.conf

http://ppa.launchpad.net/pavkamlc/ubuntu/pool/main/l/lcdproc/
http://ppa.launchpad.net/pavkamlc/ubuntu/pool/main/l/lcdproc/lcdproc_0.5.2-0ubuntu2pavka5.diff.gz

Index of /pavkamlc/ubuntu/pool/main/l/lcdproc
[ICO] Name Last modified Size
[DIR] Parent Directory -
[ ] lcdproc_0.5.2-0ubuntu2pavka5.diff.gz 30-Mar-2009 16:40 26K
[ ] lcdproc_0.5.2-0ubuntu2pavka5.dsc 30-Mar-2009 16:40 1.2K
[ ] lcdproc_0.5.2-0ubuntu2pavka5_amd64.deb 30-Mar-2009 17:00 369K
[ ] lcdproc_0.5.2-0ubuntu2pavka5_i386.deb 30-Mar-2009 17:00 332K
[ ] lcdproc_0.5.2.orig.tar.gz 23-Sep-2008 22:20 803K
Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g Server at ppa.launchpad.net Port 80

2009-07-08

Slitaz - VirtualBox / NAT / VRDP

C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxSDL.exe" --startvm slitaz-2 --vrdp 3398


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 22
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/Protocol" TCP
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/GuestPort" 80
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator>"C:\Program Files\xVM VirtualBox\VBoxManage" setextradata "slitaz-2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/HostPort" 80
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.


C:\Documents and Settings\Administrator\.VirtualBox\Machines\slitaz-2\slitaz-2.xml
.......

"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" value="TCP"/>
"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" value="22"/>
"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" value="22"/>
"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/Protocol" value="TCP"/>
"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/GuestPort" value="80"/>
"<"ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestwww/HostPort" value="80"/>
"<"/ExtraData>

Slitaz - Conspy / VNC / Xephyr


Xephyr

http://wiki.slitaz.org/doku.php?id=quickstart:conspy

Conspy : tiny screen or VNC

Slitaz core provides the 10Kb conspy to get remote control of Linux virtual consoles. See http://ace-host.stuart.id.au/russell/files/conspy/
....

conspy as screen (session manager)
Example:

home$ ssh tux@slitazbox
box$ su
box# openvt -c 28 /bin/ash
box# conspy 28
# some commands
...
#
box# exit
box$ exit

Later:

home$ ssh tux@slitazbox
box$ su
box# conspy 28
# more commands
...
#
box# exit
box$ exit

To close the session

home$ ssh tux@slitazbox
box$ su
box# conspy 28
# exit

box# deallocvt 28
box# exit
box$ exit

If you prefer to use screen, see http://www.gnu.org/software/screen:

# tazpkg get-install screen
$ screen -S MySession

If you prefer to share the X11 display, install x11vnc (VNC server) and x11vnc-extra (java VNC client) see http://www.karlrunge.com/x11vnc/ :

SlitazBox# tazpkg get-install x11vnc
SlitazBox# tazpkg get-install x11vnc-extra
SlitazBox# /etc/init.d/x11vnc start

home$ firefox http://SlitazBox:5800/ultrasigned.vnc


http://wiki.slitaz.org/doku.php?id=lang:en:xephyr

Xephyr
Introduction

Xephyr allows you to 「run」 a X window from a chroot environment into a host environment. Then you can run a Slitaz X window into a Slitaz… I still don't know if it's really useful, but at least it's fun LOL . Actually it's a kind of virtualbox.

You need a chroot environment. Check in the handbook how to do so : http://www.slitaz.org/en/doc/handbook/chroot-env.html
Using Xephyr

First install, enter the following in a shell :

# tazpkg get-install xorg-server-Xephyr

Then in a shell from the host environment, enter :

# Xephyr -pn -ac :1.0

It'll make a new 「X window」.
Then, in a chroot shell, enter :

# export DISPLAY=:1.0

Voila ! Easy and fun isn't it?

Now you can run graphical applications from the chroot environment as :

# openbox &
# lxpanel &
# leafpad &
... and whatever you want


http://puppy.cnbits.com/node/678

遠程登錄
SliTaz已經自帶了dropbear,一個輕量級的ssh服務器,不需要怎麼配置就能用。如果希望啟動電腦時就啟動dropbear,則將其加入/etc/rcS.conf文件中的RUN_DAEMONS變量中,其他服務程序也是同樣的做法。另外在X環境下也可以用tazctrlbox來完成。dropbear和emacs的TRAMP兼容得不好,列目錄時會出現ANSI Color Codes,原因不詳,不過架個FTP服務器就行了,也不一定非要scp來傳文件的。

SliTaz的源裡也有x11-vnc,可以提供X界面的遠程VNC訪問。但我更喜歡ssh的X11 forwarding一點。下面是我從Ubuntu中訪問那台Web服務器桌面所用的腳本,需要安裝Xephyr,這樣可以不干擾本地的桌面管理器。

1. Xephyr -ac -screen 1024x768 :5 2>/dev/null &
2. DISPLAY=:5.0 ssh -X -l tux test.cnbits.co.cc openbox-session

Xephyr -ac -screen 1024x768 :5 2>/dev/null &
DISPLAY=:5.0 ssh -X -l tux test.cnbits.co.cc openbox-session

FTP
安裝pure-ftpd。之後我修改了/etc/init.d/pure-ftpd,去掉了OPTIONS中的-A參數,這樣用普通權限用戶如tux登錄後也能訪問到除$HOME以外的目錄。

2009-06-05

Virtualbox guest additions

Shared folders

Seamless windows/Mouse pointer integration




VirtualBox Guest Additions

Host: WINXP
Guest: Slitaz-2.0

1. tazpkg get-install slitaz-toolchain

2. tazpkg get-install linux-source
Build your own custom Linux Kernel for SliTaz

3. install Xorg server
The Xorg server

4. Sun VirtualBox®
User Manual Version 2.2.2 Edition
4.3.1. Installing the Linux Guest Additions
Linux Guest Additions

5. Howto: Install Linux Guest Additions + Xorg config

6. HOWTO: Use Shared Folders

root@slitaz:~# /etc/init.d/vboxadd start
Starting VirtualBox Additions ...done.
root@slitaz:~# lsmod | grep vbox
vboxvfs 37484 0
vboxadd 60340 1 vboxvfs
root@slitaz:~# ls -al /home/xp-share/
drwxr-xr-x 2 root root 4096 Jun 5 22:45 .
drwxr-xr-x 6 root root 4096 Jun 5 22:45 ..
root@slitaz:~# mount.vboxsf slitaz /home/xp-share
root@slitaz:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 10321136 4474260 5322592 46% /
/dev/root 10321136 4474260 5322592 46% /
tmpfs 387240 0 387240 0% /dev/shm
none 260140544 246246888 13893656 95% /home/xp-share
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /home/xp-share type vboxsf (rw,nodev)
root@slitaz:~#
root@slitaz:~# tail -n 12 /var/log/vboxadd-install.log
Installing the Guest Additions kernel module system service.
Installing the shared folder system service.
Installing the time synchronisation system service.
Installing the VBoxControl command line interface.
Installing the X Window System user service.
install_x11_startup_app(): dest is vboxclient.desktop
Creating udev rule for the Guest Additions kernel module.
Installing the X Window System drivers
Installing Xorg 7.1 modules

Successfully completed.

root@slitaz:~# ls -l /lib/modules/2.6.25.5-slitaz/misc/
-rw-rw-r-- 1 root root 56708 Jun 5 13:38 vboxadd.ko
-rw-rw-r-- 1 root root 45300 Jun 5 13:39 vboxvfs.ko
-rw-rw-r-- 1 root root 2641 Jun 5 13:39 vboxvideo.ko
root@slitaz:~#

....
root@slitaz:~# tail -n 7 /usr/bin/98vboxadd-xclient
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#

/usr/bin/VBoxClient --clipboard
/usr/bin/VBoxClient --autoresize
/usr/bin/VBoxClient --seamless
root@slitaz:~# ps ax | grep VBox
1716 root /usr/bin/VBoxClient --clipboard
1731 root /usr/bin/VBoxClient --seamless
1764 root grep VBox
root@slitaz:~# lsmod | grep vbox
vboxvideo 1792 0
vboxvfs 37484 1
vboxadd 60340 4 vboxvfs
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /home/xp-share type vboxsf (rw,nodev)
root@slitaz:~#
root@slitaz:~# ls /home/xp-share
0523-mirror.txt
0528-dmesg.txt
0528-slitaz-cn.txt
0528-slitaz-cn.txt.bak
0602-vbox.txt
2
big1
Bootable_NoEmulation.img
boot-grub.iso
boot-usb.iso
bzImage
chinese-pack-0.1.tazpkg
chinese-pack-0.2.tazpkg
chinese-pack.tar.gz
chinese_pack_total-4.1.0.11.pet
cn
coolpc.pdf
deb2tazpkg
gcin
get
....

slitaz-2.xml

2009-04-16

Release SliTaz GNU/linux 2.0

16 april 2009 - Release SliTaz GNU/linux 2.0

The SliTaz project are proud to announce the release of the new stable version of the distribution - SliTaz GNU/Linux 2.0. This new version is the result of one year of community work and provides an ultra lightweight, fast, scalable and stable operating system. SliTaz provides a complete graphical desktop in less than 30MB, applications required for a reliable and robust server environment and 1400 easily installable software packages in a few clicks of the mouse. This new version offers the automounting of partitions (NTFS compliant), wifi support, an office respecting the Freedesktop.org standards (drag and drop), network booting with gPXE and boot.slitaz.org, automatic detection of USB and PCI devices, a GUI package manager and control center, and various graphical tools to manage the distribution. The creation of USB media and bootable LiveCD flavors is also simplified and greatly improved. The core LiveCD includes Firefox 3.0.8, gFTP, LostIRC, ePDFView, mtPaint, Transmission, Osmo and Alsaplayer. The site documentation is updated and you can read the release notes included in the distribution for more details on this stable version. SliTaz GNU/Linux 2.0 is now downloadable from the official mirrors of the project.

http://www.slitaz.org/en/doc/releases/2.0/relnotes.en.html

SliTaz GNU/Linux 2.0 (29 MB) - slitaz-2.0.iso

2009-01-14

Slitaz - wifi / cooking-20081231

SliTaz GNU/Linux cooking-20081231 (28,3 Mb) - slitaz-cooking.iso

root@slitaz:~# dmesg | tail
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:03:02.0[A] -> GSI 17 (level, low) -> IRQ 17
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw2200-bss.fw request_firmware failed: Reason -2
ipw2200: Unable to load firmware: -2
ipw2200: failed to register network device
ACPI: PCI interrupt for device 0000:03:02.0 disabled
ipw2200: probe of 0000:03:02.0 failed with error -5


cp /lib/udev/rules.d/50-udev-default.rules /etc/udev/rules.d
http://forum.slitaz.org/viewtopic.php?id=1306


root@slitaz:~# cp /lib/udev/rules.d/50-udev-default.rules /etc/udev/rules.d
root@slitaz:~# modprobe ipw2200
root@slitaz:~# dmesg | tail -n5
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kmprq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:03:02.0[A] -> GSI 17 (level, low) -> IRQ 17
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Detected geography ZZM (11 802.11bg channels, 0 802.11a channels)

root@slitaz:~# lspci -v | tail
Capabilities: [80] Power Management version 2

03:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
Subsystem: Intel Corporation Device 2701
Flags: bus master, medium devsel, latency 64, IRQ 17
Memory at fbffa000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: ipw2200
Kernel modules: ipw2200


http://hg.slitaz.org/wok/rev/8535947fa8a6

changeset: Fix: udev rules missing in /etc/ude/rules.d
changeset 1988: 8535947fa8a6
parent 1987: ebca32bb916e
child 1989: 86ac7ab8775c
author: Eric Joseph-Alexandre
date: Tue Jan 06 13:01:01 2009 +0100 (8 days ago)
files: udev/receipt
description: Fix: udev rules missing in /etc/ude/rules.d

--- a/udev/receipt Mon Jan 05 23:57:02 2009 +0100
+++ b/udev/receipt Tue Jan 06 13:01:01 2009 +0100
@@ -37,6 +37,9 @@ genpkg_rules()
[ -f $fs/lib/$i ] || ( cd $fs/lib ; ln -s $i.*.* $i)
done

+ # Copy rules files to udev conf dir
+ cp -a $src/rules/rules.d/* $fs/etc/udev/rules.d
+
# Default config files in /lib/udev/rules.d and custom on in
# /etc/udev/rules.d.
cp stuff/udev.conf $fs/etc/udev

2008-12-04

Slitaz - gpxe / qemu

http://mirror.slitaz.org/

gpxe - qemu

http://192.168.1.32/

http://mirror.slitaz.org/boot/slitaz-boot.iso

slitaz-boot.iso 2008-Jul-28 14:34:27 734.0K
slitaz-boot.md5 2008-Jul-28 14:34:27 0.1K

http://wiki.slitaz.org/doku.php?id=quickstart:pxe

2008-11-27

Slitaz - vbox / gftp

vbox-nat-gftp


User Manual
Version 2.0.2 Edition

6.4.1. Configuring port forwarding with NAT
As the virtual machine is connected to a private network internal to VirtualBox and invisible to the host, network services on the guest are not accessible to the host machine or to other computers on the same network. However, VirtualBox can make given services available outside of the guest by using port forwarding. This means that VirtualBox listens to certain ports on the host and resends all packages which arrive on them to the guest on the ports used by the services being forwarded.
To an application on the host or other physical (or virtual) machines on the network, it looks as though the service being proxied is actually running on the host (note that this also means that you cannot run the same service on the same ports on the host). However, you still gain the advantages of running the service in a virtual machine -- for example, services on the host machine or on other virtual machines cannot be compromised or crashed by a vulnerability or a bug in the service, and the service can run in a different operating system to the host system.
You can set up a guest service which you wish to proxy using the command line tool VBoxManage. You will need to know which ports on the guest the service uses and to decide which ports to use on the host (often but not always you will want to use the same ports on the guest and on the host). You can use any ports on the host which are not already in use by a service. An example of how to set up incoming NAT connections to a ssh server on the guest requires the following three commands:
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222
The above example assumes a PCNet virtual network card; if you have configured the guest to use the Intel PRO/1000, replace "pcnet" with "e1000" in the above commands.
The name guestssh is an arbitrary one chosen for this particular forwarding configuration. With that configuration in place, all TCP connections to port 2222 on the host will be forwarded to port 22 on the guest. Protocol can be either of TCP or UDP (these are case insensitive). To remove a mapping again, use the same commands, but leaving out the values (in this case TCP, 22 and 2222).

-------
VBoxManage clonevdi srv1.vdi srv2.vdi

-------
Extract from

http://eoffice.im.fju.edu.tw/phpbb/viewtopic.php?t=4486&start=0&postdays=0&postorder=asc&highlight=

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!

也許正應了列在她上面那一段來自George Ankner睿智的話…

我的一個解讀是:
「假如你理解得像你想像中那樣剔透的話,那麼你終將會體認到:
原先你以為你懂,其實不然!」 ^o^

2008-11-24

Slitaz - cups - samba

URI: usb

URI: smb

cups-pdf

cups-smaba

2008-11-20

Slitaz - ISO

http://forum.slitaz.org/viewtopic.php?pid=5028#p5028

* » CD-label for Slitaz live-CD please?

2008-11-16 03:03:17

bellard Contributor

Re: CD-label for Slitaz live-CD please?

Hi,

Please note you can burn http://mirror.slitaz.org/iso/1.0/packages-1.0.iso (255Mb) instead of http://mirror.slitaz.org/iso/1.0/slitaz-1.0.iso (25.Mb).

You will be able to install anything offline with:
Code:

# mount /dev/cdrom /mnt
# /mnt/install.sh

-pascal

NB: for slitaz cooking http://mirror.slitaz.org/iso/cooking/pa … ooking.iso (692Mb) is built every night.

Offline


#4 2008-11-16 20:14:10

oui Contributor

Re: CD-label for Slitaz live-CD please?

sevala offers more labels:

http://forum.slitaz.org/viewtopic.php?pid=4863#p4863

Offline


#5 Yesterday 16:23:45

alanyih Member

Re: CD-label for Slitaz live-CD please?

bellard wrote:

NB: for slitaz cooking http://mirror.slitaz.org/iso/cooking/pa … ooking.iso (692Mb) is built every night.

can't display phpinfo!

Menu --> Development --> PHP info

root@slitaz:~# cat /mnt/iso/install.sh
#!/bin/sh
#

DIR=$(cd $(dirname $0); pwd)

[ -d /var/cache/tazpkg ] || mkdir -p /var/cache/tazpkg
ls -d $DIR/packages/* > /var/lib/tazpkg/mirror
ln -fs $DIR/packages/*/*.tazpkg /var/cache/tazpkg/
ln -fs $DIR/packages/*/packages.* /var/lib/tazpkg
ln -fs $DIR/packages/*/files.list.lzma /var/lib/tazpkg
ln -s $DIR/website /var/www

root@slitaz:~# cat /usr/share/applications/php.desktop
[Desktop Entry]
Encoding=UTF-8
Name=PHP info
GenericName=PHP informations
GenericName[fr]=Informations sur PHP
Comment=PHP configuration informations
Comment[fr]=Informations de configuration de PHP
Exec=firefox http://localhost/phpinfo/
Icon=php.png
Type=Application
Categories=Development;

root@slitaz:~# tazpkg get-install lighttpd
lighttpd-1.4.20 already in the cache : /var/cache/tazpkg
Tracking dependencies for : lighttpd-1.4.20
============================================================================
Missing : pcre
......
Installation of : lighttpd-1.4.20
============================================================================
Copying lighttpd-1.4.20... [ OK ]
Extracting lighttpd-1.4.20... 247 blocks
Extracting the pseudo fs... 545 blocks
Processing pre-install commands...
Installing lighttpd... cp: target '/var/www' is not a directory
[ Faile]

Removing all tmp files... [ OK ]
Processing post-install commands...
Starting web server: LightTPD... [ OK ]
============================================================================
lighttpd (1.4.20) is installed.

Online


#6 Yesterday 22:02:08

bellard Contributor

Re: CD-label for Slitaz live-CD please?

Can you reboot and do this test:
Code:

# mkdir /var/www
# /mnt/iso/install.sh

Thanks,

-pascal

Offline


#7 Today 16:07:55

alanyih Member

Re: CD-label for Slitaz live-CD please?

bellard wrote:
Code:

# mkdir /var/www
# /mnt/iso/install.sh

Well run!

Thankx!


#8 2008-11-20 10:42:06

bellard Contributor

Re: CD-label for Slitaz live-CD please?

FYI http://mirror.slitaz.org/iso/1.0/packages-1.0.iso and http://mirror.slitaz.org/iso/cooking/pa … ooking.iso are fixed now.

-pascal


----------

+case " $OPTIONS " in
+*\ --website\ *)
+ if [ -d /slitaz/home/slitaz/hg/website ]; then
+ echo -n "Adding web site"
+ mkdir $TEMP_DIR/website
+ cp -a /slitaz/home/slitaz/hg/website/* $TEMP_DIR/website
+ cat >>$TEMP_DIR/install.sh<< \ EOF
+[ -d /var/www ] || mkdir -p /var/www
+ln -s \$DIR/website /var/www
+EOF
+ status
+ echo "$(du -hs $TEMP_DIR/website | awk '{ print $1 }') used by web site."
+ fi;;
+esac

-

2008-11-14

Slitaz - autologin

Extract from

http://forum.slitaz.org/viewtopic.php?id=238

Step one - disable Slim:
Remove Slim from RUN_DAEMONS in /etc/rcS.conf

Step two - create an executable login script:
Create /usr/bin/loginscript file with the following content:

Code:

#!/bin/sh
/bin/login -f root

Step three - amend /etc/inittab

Code:

tty1::respawn:/sbin/getty -n -l /usr/bin/loginscript 38400 tty1

Step four - create /root/.profile (if you don't have one)

Code:

if [ -z "$SCREEN" ] && [ $(tty) = /dev/tty1 ]; then
while true
do
startx --
sleep 10
done
fi

Note: '[' is a command so make sure there are spaces before and after it.

Step five - reboot



http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/2008/04/msg00012.html

http://www.shallowsky.com/blog/linux/autologin-upstart.html


--------
description: Up slim 1.3.1 (automatic login + more customizations)

http://hg.slitaz.org/wok/file/f25290110550/slim/receipt

slim/receipt
changeset 1424: f25290110550
parent: 302fa891a6d2
child: 2a0038b01ed7
author: Pascal Bellard
date: Fri Sep 26 13:16:44 2008 +0000 (6 weeks ago)
permissions: -rw-r--r--
description: Up slim 1.3.1 (automatic login + more customizations)

# SliTaz package receipt.

PACKAGE="slim"
VERSION="1.3.1"
CATEGORY="x-window"
SHORT_DESC="Desktop-independent graphical login manager for X11."
MAINTAINER="pankso@slitaz.org"
DEPENDS="jpeg libpng slitaz-configs"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://slim.berlios.de"
WGET_URL="http://download.berlios.de/slim/$TARBALL"
CONFIG_FILES="/etc/slim.conf"
BUGS="Sometime needs more thant 10 seconds to start (since HAL/DCOP addition). Why ?"


-------------
http://hg.slitaz.org/slitaz-boot-scripts/rev/06dffda5c2ce
changeset: bootopts.sh: autologin support (need slim 1.3.1)
changeset 117: 06dffda5c2ce
parent 116: 36274d47502f
child 118: b648ffc81f2e
tag: 2.5.2
author: Pascal Bellard
date: Sun Sep 28 23:09:36 2008 +0200 (7 weeks ago)
files: etc/init.d/bootopts.sh
description: bootopts.sh: autologin support (need slim 1.3.1)

--- a/etc/init.d/bootopts.sh Wed Sep 24 22:18:30 2008 +0200
+++ b/etc/init.d/bootopts.sh Sun Sep 28 23:09:36 2008 +0200
@@ -112,6 +112,11 @@ if ! grep -q "1000:1000" /etc/passwd; th
fi
fi

+# Autologin option to skip first graphic login prompt.
+if grep -q "autologin" /proc/cmdline; then
+ echo "auto_login yes" >> /etc/slim.conf
+fi
+
# Check for a specified home directory on cmdline (home=*).
#
if grep -q "home=usb" /proc/cmdline; then


----------
2008-11-21

slim-1.3.1.tazpkg 2008-Oct-31 09:02:50 78.5K

slitaz-boot-scripts-2.5.2.tazpkg 2008-Oct-15 22:47:57 13.5K

/etc/init.d/bootopts.sh
#!/bin/sh
# /etc/init.d/bootopts.sh - SliTaz boot options from the cmdline.
#
. /etc/init.d/rc.functions

# Autologin option to skip first graphic login prompt.
if grep -q "autologin" /proc/cmdline; then
echo "auto_login yes" >> /etc/slim.conf
fi


---------
ChangeLog
1.3.1 - 2008.09.26
* Added focus_password config option for focusing password
automatically when default_user is enabled
* Added auto_login option
* Fixed uninitialized daemonmode, see
http://www.freebsd.org/cgi/query-pr.cgi?pr=114366
* Fixed maximum length for password
* Introduced customization options for session text:
font, colors, position, shadows.

-

2008-10-19

Slitaz - slim

#1 2008-10-20 06:32:30

alanyih Member

PLS check! slim-1.3.1

PLS check! slim-default_user

Thanks!

root@slitaz:~# ls -l /var/cache/tazpkg/slim*
-rw-r--r-- 1 root root 80384 Oct 20 12:00 /var/cache/tazpkg/slim-1.3.1.tazpkg

root@slitaz:~# cat /etc/slim.conf | grep default
default_path ./:/bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/Xvesa
# Available sessions (first one is the default).
# default user, leave blank or remove this line
default_user hacker

root@slitaz:~# cat /etc/passwd
root:x:0:0:Root Administrator:/root:/bin/sh
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
www:x:80:80:Web Server User:/var/www:/bin/false
messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false
haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false
tux:x:1000:1000:SliTaz User,,,:/home/tux:/bin/sh


2008-10-30 06:09:47 #2

alanyih Member

Re: PLS check! slim-1.3.1

http://mirror.slitaz.org/packages/cooki … 3.1.tazpkg
slim-1.3.1.tazpkg 2008-Oct-14 15:00:34 78.5K



http://hg.slitaz.org/wok/diff/9733af969 … /slim.conf

diff: slim/stuff/etc/slim.conf
revision 1588: 9733af969c86
parent 656: 3c4e0201ce56

--- a/slim/stuff/etc/slim.conf Tue Apr 22 22:44:49 2008 +0200
+++ b/slim/stuff/etc/slim.conf Thu Oct 16 20:07:39 2008 +0000
@@ -62,7 +62,7 @@ reboot_msg The system is rebooti

# default user, leave blank or remove this line
# for avoid pre-loading the username.
-default_user hacker
+default_user tux
# current theme, use comma separated list to specify a set to
# randomly choose from

Last edited by alanyih (2008-10-30 06:13:09)

-

2008-10-17

Slitaz - java6-jre

java test

java6-jre

java-fallback


PLS check! get-java6-jre

http://forum.slitaz.org/viewtopic.php?id=926

2008-10-17 13:53:22 #1

alanyih Member

PLS check! get-java6-jre

Processing post install commands...
/usr/bin/tazpkg: cd: line 28: can't cd to /plugins


get-java6-jre-1.0.tazpkg 2008-Oct-14 06:40:01 2.5K application/x-tazpkg

get-java6-jre.sh
.......
Packing : java6-jre-1.6.0_07
================================================================================
Creating the list of files... [ OK ]
Compressing the fs...
Creating full cpio archive...
Restoring original package tree... 197967 blocks
================================================================================
Package java6-jre-1.6.0_07 compressed successfully.
Size : 33.1M java6-jre-1.6.0_07.tazpkg


Installation of : java6-jre-1.6.0_07
================================================================================
Copying java6-jre-1.6.0_07... [ OK ]
Extracting java6-jre-1.6.0_07... 67640 blocks
Extracting the pseudo fs... 197967 blocks
Installing java6-jre... [ OK ]
Removing all tmp files... [ OK ]
Processing post install commands...
/usr/bin/tazpkg: cd: line 28: can't cd to /plugins
================================================================================
java6-jre (1.6.0_07) is installed.


root@slitaz:~# ls -l /usr/lib/firefox-3.0.1/plugins
-rwxr-xr-x 1 root root 15512 Sep 21 08:23 libnullplugin.so



2008-10-17 15:49:34 #2

bellard Contributor

Re: PLS check! get-java6-jre

The fix : http://hg.slitaz.org/wok/rev/c1b4ae2bdeca
Please reload http://mirror.slitaz.org/packages/cooki … 1.0.tazpkg

-pascal



http://hg.slitaz.org/wok/rev/c1b4ae2bdeca


changeset: get-java6-jre: typos
changeset 1595: c1b4ae2bdeca
parent 1594: 713badbd8ef9
child 1596: 270174cf554e
author: Pascal Bellard
date: Fri Oct 17 13:29:48 2008 +0000 (110 minutes ago)
files: get-java6-jre/stuff/get-java6-jre.sh
description: get-java6-jre: typos

--- a/get-java6-jre/stuff/get-java6-jre.sh Fri Oct 17 13:11:57 2008 +0000
+++ b/get-java6-jre/stuff/get-java6-jre.sh Fri Oct 17 13:29:48 2008 +0000
@@ -62,8 +62,8 @@ post_install()
{
echo "Processing post install commands..."
for i in /usr/lib/firefox*; do
- [ -d $i ] || continue
- cd $i/plugins
+ [ -d \$i ] || continue
+ cd \$i/plugins
ln -s /usr/lib/java/jre\$VERSION/plugin/i386/ns7/libjavaplugin_oji.so
done


2008-10-20 08:45:36

alanyih Member

Re: PLS check! get-java6-jre

Thankx!

But have some squares in chart!

java6-jre.png



2008-11-03-21:04

http://www.cnetnews.com.cn/2008/0618/934811.shtml


Linux操作系統JDK中文字體設置方法介紹

  首先來說說產生這個問題的原因。java程序啟動的時候會去在$JAVA_HOME/jre/lib /fonts目錄下尋找相應的字體來顯示。由於 JDK默認沒有中文字體,所以我們需要手工的來設置一下,讓java應用程序能夠找到相應的中文字體。這樣就能夠解決問題了。

 ln -s $FONTS_PATH/FONT_DIR $JAVA_HOME/jre/lib/fonts/fallback



2008-11-05-13:05
http://wiki.eeeuser.com/howto:javachinesefonts_zh

root@slitaz:~# mkdir /usr/lib/java/jre1.6.0_07/lib/fonts/fallback
root@slitaz:~# ln -s /usr/share/fonts/truetype/uming.ttf /usr/lib/java/jre1.6.0_07/lib/fonts/fallback/.
root@slitaz:~# ls -l /usr/lib/java/jre1.6.0_07/lib/fonts/fallback
lrwxrwxrwx 1 root root 35 Nov 5 10:57 uming.ttf -> /usr/share/fonts/truetype/uming.ttf
root@slitaz:~#



(2008-11-05) Yesterday 06:01:33 #4
alanyih Member

Re: PLS check! get-java6-jre

alanyih wrote:

But have some squares in chart!

http://wiki.eeeuser.com/howto:javachinesefonts_zh

java-fallback.png

Last edited by alanyih (Yesterday 06:09:56)

2008-10-11

Slitaz - Vmware






http://www.vmware.com/download/ws/

VMware Workstation 6.5 for Linux

Latest Version: 6.5 | 09/23/08 | Build: 118166 | Release Notes