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-25