2011-04-28

Slitaz -- Tazpanel




root@slitaz:~# tazpkg info tazpanel

Tazpkg information
================================================================================
Package : tazpanel
Version : 1.0
Category : system-tools
Short desc : SliTaz administration and configuration panel.
Maintainer : pankso@slitaz.org
Depends : busybox
Web site : http://www.slitaz.org/
================================================================================

root@slitaz:~#

English Help

TazPanel is the SliTaz administration and settings center from where you can control your entire system such as package management, adding or removing users, creating Live systems and much more. Navigation is done with the toolbar at the top of the application window and in some cases with a submenu.

In most cases you will get a description and useful information with the section concerned. TazPanel uses the latest XHTML 5 and CSS 3 technology to provide a clean and easy to use frontend for all administration tasks you can do on SliTaz. TazPanel has also been coded from the beginning with speed and quality in mind and it also supports full internationalization.
Support

You can get support on the Slitaz forum, the mailing list or the IRC channel.
Get involved

If you want to help and get involved in SliTaz, TazPanel maybe for you! We need help in translating, styling, documentation and coding. If you need more information or want to publish a new graphical style, you can go to the SliTaz Community and post on the Devel forum or post an update with a PM to a SliTaz contributor so that we can get in touch and include your work in TazPanel or in an extra styles package.
Bugs and features

TazPanel is a young application which will be improved and polished in time. If you find a bug, please post on the SliTaz tracker: bugs.slitaz.org

2011-04-26

Slitaz -- Virtualbox-OSE-4.0.4



root@slitaz:~# tazpkg info virtualbox-ose

Tazpkg information
================================================================================
Package : virtualbox-ose
Version : 4.0.4_2.6.37
Category : misc
Short desc : Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)
Maintainer : slaxemulator@gmail.com
Depends : libxml2 xorg-libXcursor libIDL xorg-libXinerama libsdl xorg-libXmu curl libvncserver libpng jpeg mesa libglu-mesa qt4 vde2
Build deps : bin86 dev86 iasl libxslt-dev Qt4-dev libsdl-ttf-dev alsa-lib-dev hal-dev xorg-libXtst-dev xorg-libXrandr-dev python python-dev xalan-c xalan-c-dev xerces-c-dev openssl-dev zlib-dev libcap-dev glib-dev pam pam-dev bzip2 linux-module-headers pkg-config tar wget
Web site : http://virtualbox.org/
================================================================================

root@slitaz:~# dmesg
[..]
vboxdrv: Found 2 processor cores.
vboxdrv: fAsync=0 offMin=0x2ca offMax=0x157e
BUG: unable to handle kernel NULL pointer dereference at 00000008
IP: [] platform_device_add+0x67/0x12a
*pde = 00000000
Oops: 0000 [#1] SMP
last sysfs file:
Modules linked in: vboxdrv(+)

Pid: 647, comm: modprobe Not tainted 2.6.37-slitaz #4 MS-7428VH/ValueStar
EIP: 0060:[] EFLAGS: 00010246 CPU: 0
EIP is at platform_device_add+0x67/0x12a
EAX: 00000000 EBX: f8066a14 ECX: f4cc3589 EDX: 00000000
ESI: 00000000 EDI: ffffffea EBP: f4d65f04 ESP: f4d65ef4
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process modprobe (pid: 647, ti=f4d64000 task=f552e7c0 task.ti=f4d64000)
Stack:
f8066a1c f8066a14 f8068d38 00000000 f4d65f10 c11d0833 00000000 f4d65f1c
f8072071 f8068d38 f4d65f38 c1001128 00000000 f8072000 f8068d38 f8068d38
00000000 f4d65fac c104b905 00000021 000004f5 f8068e70 f4c67480 00000001
Call Trace:
[] ? platform_device_register+0x15/0x18
[] ? VBoxDrvLinuxInit+0x71/0xcc [vboxdrv]
[] ? do_one_initcall+0x71/0x11d
[] ? VBoxDrvLinuxInit+0x0/0xcc [vboxdrv]
[] ? sys_init_module+0x1278/0x1419
[] ? sysenter_do_call+0x12/0x2c
Code: b5 42 c1 50 e8 f3 c6 ff ff 83 c4 10 eb 10 ff 33 68 2c 3a 44 c1 50 e8 e1 c6 ff ff 83 c4 0c 31 f6 eb 75 6b d6 1c 03 93 d4 00 00 00 <83> 7a 08 00 75 0d 8b 43 34 85 c0 75 03 8b 43 10 89 42 08 8b 42
EIP: [] platform_device_add+0x67/0x12a SS:ESP 0068:f4d65ef4
CR2: 0000000000000008
---[ end trace 9986efb8cdcf5cdf ]---
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTR0Init (err -16)
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTErrConvertFromErrno (err -16)
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTErrConvertToErrno (err -16)
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTStrToUInt32 (err -16)
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTLogRelDefaultInstance (err -16)
vboxnetadp: gave up waiting for init of module vboxdrv.
vboxnetadp: Unknown symbol RTR0Term (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemFastMutexCreate (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTR0Init (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol SUPDrvLinuxIDC (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemEventDestroy (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTUuidFromStr (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemEventSignal (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTErrConvertFromErrno (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemEventWait (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSpinlockReleaseNoInts (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTErrConvertToErrno (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemFastMutexRequest (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSpinlockCreate (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTNetIPv4PseudoChecksum (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTLogRelDefaultInstance (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTMemFree (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemFastMutexRelease (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTNetIPv4FinalizeChecksum (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTTimeNanoTS (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTNetIPv4HdrChecksum (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTMemAllocZTag (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSpinlockDestroy (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemEventCreate (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTNetIPv6PseudoChecksumEx (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTR0Term (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTUuidCompareStr (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTThreadPreemptIsEnabled (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSemFastMutexDestroy (err -16)
vboxnetflt: gave up waiting for init of module vboxdrv.
vboxnetflt: Unknown symbol RTSpinlockAcquireNoInts (err -16)
.

2011-04-25

Slitaz -- Android-x86




Android-x86 Project - Run Android on Your PC

http://www.android-x86.org/

This is a project to port Android open source project to x86 platform, formerly known as "patch hosting for android x86 support". The original plan is to host different patches for android x86 support from open source community. A few months after we created the project, we found out that we could do much more than just hosting patches. So we decide to create our code base to provide support on different x86 platforms, and set up a git server to host it.


QemuHowTo
http://www.android-x86.org/documents/qemuhowto

# qemu howto
Introduction

This article describes how to run eeepc.iso inside Qemu, a generic and open source machine emulator and virtualizer. The tested version is 0.10.5 on Fedora 11, and 0.9.1 on Debian 5.0.

Workable features:

* Internet access (DHCP mode).
* Audio, playing music.

Details

Create a script qemu-android like

#!/bin/sh
qemu-kvm -soundhw es1370 -net nic -net user -cdrom \
${@:-out/target/product/eeepc/eeepc.iso}

Run it by

$ qemu-android

The script configures the qemu machine to have a sound card es1370, and a network card rtl8139 (the default one), and use the user mode network stack.

Note the script runs qemu in KVM mode. You must have kvm module (kvm-intel or kvm-amd) installed for your kernel, and the permission of /dev/kvm is set to allow your user to access it. Otherwise the KVM support will be disabled and it may run very slow. If you don't have qemu-kvm in your distribution, use qemu.

Advanced

Like Virtual Box, you can save data to a qemu virtual disk.

* First, create a qemu virtual disk (size 1GB) by

$ qemu-img create -f qcow2 android.img 1G

* Run

$ qemu-android eeepc.iso -hda android.img -boot d

Then follow the VirtualBoxHowTo for how to mount user data and sdcard on the virtual disk. You can also follow that article to upload music files and play them. (Use wget to pull file from the host. Adb push may not work)

Known bugs

If the Android inside Qemu enters suspend mode, it cannot wake up. So it is better to set the Screen timeout to be Never (Setting -> Sound & display -> Screen timeout).

Slitaz -- yocto - distcc

root@slitaz:~# tazpkg info distcc

Tazpkg information
================================================================================
Package : distcc
Version : 3.1
Category : development
Short desc : Distributed compilation for C/C++
Maintainer : erjo@slitaz.org
Depends : popt lzo
Build deps : popt-dev lzo-dev
Web site : http://distcc.org
================================================================================

1.
root@slitaz:~# tazpkg get-install libglu-mesa
root@slitaz:~# tazpkg get-install bash
root@slitaz:~# tazpkg get-install sudo
root@slitaz:~# tazpkg get-install iptables
root@slitaz:~# tazpkg get-install distcc

2.
root@slitaz:~# visudo
tux ALL=NOPASSWD: ALL

3.
root@slitaz:~# /etc/init.d/distccd start
Starting Distcc daemon: Distccd... distccd[3082] (dcc_discard_root) discarded root privileges, changed to uid=100 gid=101

4.
root@slitaz:~# . /opt/poky/1.0/environment-setup-i586-poky-linux
root@slitaz:~# export LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/lib
root@slitaz:~# netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3632 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory

5.
root@slitaz:/media/Audio1/slitaz/cook/yocto# poky-qemu qemuarm zImage-2.6.37-qemuarm-1.0.bin yocto-image-lsb-sdk-qemuarm-1.0.rootfs.ext3 &
root@slitaz:/media/Audio1/slitaz/cook/yocto#
Continuing with the following parameters:
KERNEL: [zImage-2.6.37-qemuarm-1.0.bin]
ROOTFS: [yocto-image-lsb-sdk-qemuarm-1.0.rootfs.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Starting distccd...
Running qemu-system-arm...
/opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/qemu-system-arm -kernel zImage-2.6.37-qemuarm-1.0.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda yocto-image-lsb-sdk-qemuarm-1.0.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot --append "root=/dev/sda console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off "

6.
root@slitaz:/media/Audio1/slitaz/cook/yocto# ps ax | tail -11
3083 distcc 0:00 /usr/bin/distccd --daemon --verbose -j 4 --allow 127.0.0.1 --pid-file /var/run/distccd/distccd.pid --log-file /var/log/distccd/distccd.log
3084 distcc 0:00 /usr/bin/distccd --daemon --verbose -j 4 --allow 127.0.0.1 --pid-file /var/run/distccd/distccd.pid --log-file /var/log/distccd/distccd.log
3085 distcc 0:00 /usr/bin/distccd --daemon --verbose -j 4 --allow 127.0.0.1 --pid-file /var/run/distccd/distccd.pid --log-file /var/log/distccd/distccd.log
3086 distcc 0:00 /usr/bin/distccd --daemon --verbose -j 4 --allow 127.0.0.1 --pid-file /var/run/distccd/distccd.pid --log-file /var/log/distccd/distccd.log
3087 distcc 0:00 /usr/bin/distccd --daemon --verbose -j 4 --allow 127.0.0.1 --pid-file /var/run/distccd/distccd.pid --log-file /var/log/distccd/distccd.log
3100 tux 0:00 xterm
3101 tux 0:00 sh
3103 root 0:00 /bin/bash /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/poky-qemu qemuarm zImage-2.6.37-qemuarm-1.0.bin yocto-image-lsb-sdk-qemuarm-1.0.rootfs.ext3
3203 root 0:58 /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/qemu-system-arm -kernel zImage-2.6.37-qemuarm-1.0.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda yocto-image-lsb-sdk-qemuarm-1.0.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot --append root=/dev/sda console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off
3232 root 0:00 ps ax
3233 root 0:00 tail -11
root@slitaz:/media/Audio1/slitaz/cook/yocto#


7.
http://www.yoctoproject.org/docs/poky-ref-manual/poky-ref-manual.html#platdev-appdev-qemu
5.1.3. Developing Externally in QEMU

Running Poky QEMU images is covered in the Yocto Project Quick Start in the "A Quick Test Run" section.

Poky's QEMU images contain a complete native toolchain. This means you can develop applications within QEMU similar to the way you would in a normal system. Using qemux86 on an x86 machine is fast since the guest and host architectures match. On the other hand, using qemuarm can be slower but gives faithful emulation of ARM-specific issues. To speed things up, these images support using "distcc" to call a cross-compiler outside the emulated system. If "runqemu" was used to start QEMU, and "distccd" is present on the host system, any Bitbake cross-compiling toolchain available from the build system is automatically used from within QEMU simply by calling "distcc". You can accomplish this by defining the cross-compiler variable (e.g. export CC="distcc"). Alternatively, if a suitable SDK/toolchain is present in /opt/poky it is also automatically be used.

There are several options for connecting into the emulated system. QEMU provides a framebuffer interface that has standard consoles available. There is also a serial connection available that has a console to the system running on it and uses standard IP networking. The images have a dropbear ssh server running with the root password disabled to allow standard ssh and scp commands to work. The images also contain an NFS server that exports the guest's root filesystem, which allows it to be made available to the host.

Slitaz -- qemulator



tux@slitaz:~$ tazpkg info qemulator

Tazpkg information
================================================================================
Package : qemulator
Version : 0.5
Category : misc
Short desc : The full featured qemu emulation suite.
Maintainer : pankso@slitaz.org
Depends : python pygtk qemu
Suggested : kqemu
Web site : http://qemulator.createweb.de/
================================================================================

tux@slitaz:~$ ps ax | tail
6705 root 0:00 /sbin/udevd --daemon
8477 root 0:00 sudo qemulator
8478 root 0:08 python /usr/bin/qemulator
8483 root 0:00 [sh]
8539 root 0:00 /bin/sh -c qemu -M pc -hda /media/Audio1/slitaz/iso/slitaz-cooking.iso -m 256 -enable-kvm -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot c
8542 root 0:36 qemu -M pc -hda /media/Audio1/slitaz/iso/slitaz-cooking.iso -m 256 -enable-kvm -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot c
9157 root 0:00 [flush-8:0]
10696 root 0:00 beaver /media/Audio1/slitaz/doc/20110425-qemulator.txt
10793 tux 0:00 ps ax
10794 tux 0:00 tail
tux@slitaz:~$ lsmod | head -3
Module Size Used by Not tainted
kvm_intel 32751 3
kvm 154497 1 kvm_intel
tux@slitaz:~$ cat /usr/share/applications/qemulator.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Qemulator Virtual Engines
Name[fr]=Machines virtuelle Qemulator
Icon=qemulator
Exec=sudo qemulator
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;Emulator;Utility
tux@slitaz:~$


http://virtualbricks.eu/
Qemulator becomes Virtualbricks!
The VNM Team and the developer of Qemulator decided to merge these projects in order to build Virtualbricks, an all in one Virtualisation solution available for the Linux desktop. So the active development of Qemulator will be discontinued, instead all it's nice features will be part of the new project.

2011-04-22

Slitaz -- yocto



About the Yocto Project

It's not an embedded Linux distribution – it creates a custom one for you.

The Yocto Project™ is an open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded products regardless of the hardware architecture.


http://www.yoctoproject.org/docs/yocto-quick-start/yocto-project-qs.html
[..]
Using Pre-Built Binaries and QEMU

If hardware, libraries and services are stable you can get started by using a pre-built binary of the image, kernel and toolchain and run it using the emulator QEMU. This scenario is useful for developing application software.

Using a Pre-Built Image

For this scenario you need to do several things:

  • Install the stand-alone Yocto toolchain tarball.
  • Download the pre-built kernel that will boot with QEMU. You need to be sure to get the QEMU image that matches your target machine’s architecture (e.g. x86, ARM, etc.).
  • Download the filesystem image for your target machine's architecture.
  • Set up the environment to emulate the hardware and then start the QEMU emulator.

Slitaz - Full Circle



Full Circle
ISSUE #44 - December 2010

LINUX LAB
Written by Nikos Karagiannakis

An old laptop with no networking/wifi. Can Slitaz Linux save the day?

http://dl.fullcirclemagazine.org/issue44_en.pdf


http://fullcirclemagazine.org/

About

Full Circle is a free, independent, magazine dedicated to the Ubuntu family of Linux operating systems. Each month, it contains helpful how-to articles and reader submitted stories.

Full Circle also features a companion podcast, the Full Circle Podcast which covers the magazine, along with other news of interest.

2011-04-15

Slitaz -- firefox 4.0 / langpack -2

refer to:
http://alanyih.blogspot.com/2011/04/slitaz-firefox-40-langpack.html

1.

http://labs.slitaz.org/issues/480
Bug #480

[cooking] firefox-langpack-zh_TW (4.0) install fails!
Added by alanyih lin 4 days ago.

Status: New Start date: 04/11/2011
Priority: Normal Due date:
Assignee: - % Done:
0%
Category: -
Target version: -
Description

firefox-langpack* (4.0)
Use the code below to change locale of firefox in shell:
sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js

(1).
root@slitaz:~# sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js
sed: /etc/firefox/pref/firefox-l10n.js: No such file or directory

(2).
root@slitaz:~# cat /var/lib/tazpkg/installed/firefox-langpack-zh_TW/files.list | head -2
/usr/lib/-4.0/extensions/langpack-zh-TW@firefox.mozilla.org/chrome.manifest
/usr/lib/-4.0/extensions/langpack-zh-TW@firefox.mozilla.org/chrome/zh-TW/locale/browser-region
root@slitaz:~#

(3).
root@slitaz:~# tazpkg get-install firefox-langpack-zh_TW
firefox-langpack-zh_TW-4.0 already in the cache : /var/cache/tazpkg/cooking/packages

Installation of : firefox-langpack-zh_TW ================================================================================
Copying firefox-langpack-zh_TW... [ OK ]
Extracting firefox-langpack-zh_TW... [ OK ]
Extracting the pseudo fs... (lzma) [ OK ]
Installing firefox-langpack-zh_TW... [ OK ]
Removing all tmp files... [ OK ]

Use the code below to change locale of firefox in shell:
sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js

================================================================================
firefox-langpack-zh_TW (4.0) is installed.

root@slitaz:~# sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js
sed: /etc/firefox/pref/firefox-l10n.js: No such file or directory

(4).
http://hg.slitaz.org/wok/rev/c8159297fa54

wok changeset 9386:c8159297fa54
Up firefox-langpack* (4.0)
author Pascal Bellard
date Sat Mar 26 11:12:45 2011 +0100 (2 weeks ago ago)
parents 5ab5ab1b7f51
children ac317c95f39c
files firefox-langpack-fr/receipt firefox-langpack-zh_CN/receipt firefox-langpack-zh_TW/receipt


----

2.

http://hg.slitaz.org/wok/
wok log
rev 9609: (0) -3000 -1000 -300 -100 -60 tip
age author description
5 hours ago Christophe Lincoln Up tazweb (1.2) - New URL entry and handle personal/bookmarks pagedefault tip
12 hours ago Pascal Bellard busybox: fix french translation for top and pcan desktop files
14 hours ago Christophe Lincoln Up slitaz-mercurial-style (1.1.2) to have updated likns to bugs tracker (Thank Claudinei)
23 hours ago Pascal Bellard nanochess: add title
24 hours ago Pascal Bellard urxvt: update depends
32 hours ago Christopher Rogers busybox: Added french translate for top and pcan desktop files. Fixed bug #475.
34 hours ago Christopher Rogers firefox: Added firefox-l10n.js to stuff folder so its copyed into package. Update prefs.js file. Fixed bug #480.
34 hours ago Christopher Rogers Fixed firefox-langpack-zh_TW install path. SOURCE is not needed anyway with this receipt.
[..]


----

3.

http://hg.slitaz.org/wok/rev/d7fc7a8fb846
wok changeset 9602:d7fc7a8fb846
Fixed firefox-langpack-zh_TW install path. SOURCE is not needed anyway with this receipt.
author Christopher Rogers
date Wed Apr 13 22:40:14 2011 +0000 (34 hours ago ago)
parents 1e023dcbed0e
children 2e0f0123456b
files firefox-langpack-zh_TW/receipt
line diff
1.1 --- a/firefox-langpack-zh_TW/receipt Wed Apr 13 10:50:54 2011 +0000
1.2 +++ b/firefox-langpack-zh_TW/receipt Wed Apr 13 22:40:14 2011 +0000
1.3 @@ -15,7 +15,7 @@
1.4 # Rules to gen a SliTaz package suitable for Tazpkg.
1.5 genpkg_rules()
1.6 {
1.7 - EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR"
1.8 + EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR"
1.9 mkdir -p $EXTDIR
1.10 cp -a $src/* $EXTDIR
1.11 }


----

4.

http://hg.slitaz.org/wok/rev/2e0f0123456b
wok changeset 9603:2e0f0123456b
firefox: Added firefox-l10n.js to stuff folder so its copyed into package. Update prefs.js file. Fixed bug #480.
author Christopher Rogers
date Wed Apr 13 22:53:13 2011 +0000 (34 hours ago ago)
parents d7fc7a8fb846
children 2aea8b0a4873
files firefox/receipt firefox/stuff/firefox-l10n.js firefox/stuff/prefs.js
line diff
1.1 --- a/firefox/receipt Wed Apr 13 22:40:14 2011 +0000
1.2 +++ b/firefox/receipt Wed Apr 13 22:53:13 2011 +0000
1.3 @@ -34,7 +34,6 @@
1.4 # Rules to gen a SliTaz package suitable for Tazpkg.
1.5 genpkg_rules()
1.6 {
1.7 - i=$src
1.8 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome $fs/usr/share $fs/etc
1.9 cp -a $_pkg/usr/bin $fs/usr
1.10 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
1.11 @@ -56,6 +55,9 @@
1.12 mv -f $fs/usr/lib/$PACKAGE-$VERSION/$i $fs/etc/$PACKAGE
1.13 done
1.14
1.15 + # added firefox-l10n.js to stuff to make sure its copyed for langpacks
1.16 + cp -a $stuff/firefox-l10n.js \
1.17 + $fs/etc/firefox/pref/firefox-l10n.js
1.18
1.19 ln -s /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
1.20 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/firefox/stuff/firefox-l10n.js Wed Apr 13 22:53:13 2011 +0000
2.3 @@ -0,0 +1,5 @@
2.4 +//@line 36 "/home/slitaz/experimental/wok/firefox/firefox-4.0/browser/locales/en-US/firefox-l10n.js"
2.5 +
2.6 +//@line 38 "/home/slitaz/experimental/wok/firefox/firefox-4.0/browser/locales/en-US/firefox-l10n.js"
2.7 +
2.8 +pref("general.useragent.locale", "en-US");
3.1 --- a/firefox/stuff/prefs.js Wed Apr 13 22:40:14 2011 +0000
3.2 +++ b/firefox/stuff/prefs.js Wed Apr 13 22:53:13 2011 +0000
3.3 @@ -9,6 +9,6 @@
3.4 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
3.5 */
3.6
3.7 -user_pref("general.useragent.extra.firefox", "Firefox/3.5 (SliTaz GNU/Linux)");
3.8 +user_pref("general.useragent.extra.firefox", "Firefox/4.0 (SliTaz GNU/Linux)");
3.9 user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1, UTF-8");
3.10 user_pref("font.name.serif.x-western", "DejaVu Sans");

Slitaz -- smplayer - Enter the MPlayer version


SMPlayer couldn't identify the MPlayer version you're using.

smplayer (0.6.9) - 8eead9b09025ae59d051cc266577122e

dialogue box
SMPlayer - Enter the MPlayer version

SMPlayer couldn't identify the MPlayer version you're using.

Version reported by MPlayer:
MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team

Please. select the correct version:


refer to:

http://alanyih.blogspot.com/2011/03/slitaz-smplayer-qt-472.html

[..]
tux@slitaz:~$ cat /home/tux/.config/smplayer/smplayer.ini
[..]
[mplayer_info]
mplayer_detected_version=0
mplayer_user_supplied_version=29073
.

2011-04-11

Slitaz -- tazweb



root@slitaz:~# tazpkg info tazweb

Tazpkg information
================================================================================
Package : tazweb
Version : 1.1
Category : network
Short desc : SliTaz simple and small Web Browser
Maintainer : pankso@slitaz.org
Depends : gtk+ libwebkit
Build deps : gtk+-dev libwebkit-dev
Web site : http://www.slitaz.org/
================================================================================

root@slitaz:~# tazpkg list-files tazweb

Installed files with: tazweb
================================================================================
/usr/bin/tazweb
/usr/share/applications/tazweb.desktop
/usr/share/doc/tazweb/tazweb.en.html
/usr/share/doc/tazweb/tazweb.html
/usr/share/pixmaps/tazweb.png
================================================================================
5 files installed with tazweb.


http://people.slitaz.org/~pankso/packages/tazweb-1.1.tazpkg
tazweb-1.1.tazpkg 2011-Apr-04 21:14:24 9.4K

2011-04-06

Slitaz -- hwclock / busybox

-s Set system time from hardware clock
-w Set hardware clock to system time


Env: slitaz-cooking-firefox.iso


tux@slitaz:~$ hwclock --help

Command line: hwclock --help

BusyBox v1.18.4 (2011-04-01 15:57:02 CEST) multi-call binary.

Usage: hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc] [-f FILE]

Query and set hardware clock (RTC)

Options:
-r Show hardware clock time
-s Set system time from hardware clock
-w Set hardware clock to system time
-u Hardware clock is in UTC
-l Hardware clock is in local time
-f FILE Use specified device (e.g. /dev/rtc2)

tux@slitaz:~$

2011-04-05

Slitaz -- tazwikiss / httpd


Tazwikiss

Env:slitaz-cooking.iso 2011-Mar-28 22:03:50 31.0M
Application --> Office --> Wiki

1.
root@slitaz:~# cat /usr/share/applications/tazwikiss.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Wiki
Icon=html.png
Exec=browser http://localhost/wiki/index.sh
Type=Application
Categories=Office;

2.
root@slitaz:~# netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory

3.
root@slitaz:~# cat /etc/rcS.conf | tail -4
RUN_DAEMONS="dbus hald firewall httpd slim"

# Pre login bold message.
MESSAGE="Welcome to your box."

4.
root@slitaz:~# which httpd
/usr/sbin/httpd
root@slitaz:~# ls -l /usr/sbin/httpd
lrwxrwxrwx 1 root root 17 Apr 5 2011 /usr/sbin/httpd -> ../../bin/busybox

5.
root@slitaz:~# tazpkg list | grep httpd
root@slitaz:~#

2011-04-04

Slitaz -- qemu:Segmentation fault


qemu:Segmentation fault

Env:slitaz-cooking.iso 2011-Mar-28 22:03:50 31.0M
root@slitaz:~# tazpkg info qemu

Tazpkg information
================================================================================
Package : qemu
Version : 0.14.0
Category : misc
Short desc : General-purpose full virtualizer for x86 hardware.
Maintainer : pascal.bellard@slitaz.org
Depends : alsa-lib gnutls libsdl zlib bluez libtasn1 libsasl vde2
Build deps : gettext perl
Web site : http://www.nongnu.org/qemu/
================================================================================

UPDATE:20110407

qemu -enable-kvm

1.
root@slitaz:~# tazpkg get-install linux-kvm

2.
root@slitaz:~# modprobe kvm-intel
root@slitaz:~# lsmod | head -3
Module Size Used by Not tainted
kvm_intel 32751 0
kvm 154497 1 kvm_intel

3.
root@slitaz:~# qemu -enable-kvm -m 512 -cdrom /home/tux/slitaz-cooking.iso


----

1.
root@slitaz:~# qemu -m 512 -cdrom /boot/slitaz-cooking.iso
Segmentation fault

2.
root@slitaz:~# dmesg| tail
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
tg3 0000:02:00.0: eth0: Link is up at 100 Mbps, full duplex
tg3 0000:02:00.0: eth0: Flow control is on for TX and on for RX
EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
qemu[3781]: segfault at bfd49f90 ip 08178901 sp bfd430e0 error 6 in qemu[8048000+26d000]
qemu[3997]: segfault at bff5d2b0 ip 08178901 sp bff56400 error 6 in qemu[8048000+26d000]

3.
root@slitaz:~# free -m
total used free shared buffers
Mem: 3210 233 2977 0 1
-/+ buffers: 231 2978
Swap: 0 0 0

4.
root@slitaz:~# cat /var/log/tazpkg.log
2011-04-04 18:14:34 - Installed - gnutls (2.10.5) - 8a9b01ae1350d0d5cf843f36cd8410be
71ebe79246e15e35ce7cf630c276bf94
2011-04-04 18:14:37 - Installed - libsdl (1.2.14) - 77fcbfa47409228d10938be5877ab75b
2011-04-04 18:14:43 - Installed - linux-bluetooth (2.6.37) - ac7211094d71316940c5e145e8b91813
2011-04-04 18:15:08 - Installed - openssl (1.0.0d) - a38886cf3768a14829e4d688d0208fbb
2011-04-04 18:15:09 - Installed - python (2.7.1) - aa4d9c14f341d4c8c5be66ef603a1e89
2011-04-04 18:15:10 - Installed - pycairo (1.8.10) - 9d6b07f0537a31ab719faa75388311c8
2011-04-04 18:15:12 - Installed - libffi (3.0.9) - dcade6e441148d4b1e6dbbb4a49b5cf7
2011-04-04 18:15:15 - Installed - gobject-introspection (0.10.0) - 300042fb717dbc572510b0a1e4d872cb
2011-04-04 18:15:15 - Installed - pygobject (2.26.0) - 6fdea63eae2d9f2f65bfbbb861288023
2011-04-04 18:15:18 - Installed - dbus-python (0.83.1) - ee8b5573889dc9f11405ef491145caa0
2011-04-04 18:15:18 - Installed - bluez (4.90) - fcc277e185df848df88f6962607f0c36
2011-04-04 18:15:20 - Installed - libsasl (2.1.23) - 4518125b22ea37c9eab896d227c77c5f
2011-04-04 18:15:23 - Installed - vde2 (2.3.1) - 7167c9e6be926263c268b12a277fea42
2011-04-04 18:15:23 - Installed - qemu (0.14.0) - 0de21af39e9950f9d8feb9bb5cb19310
root@slitaz:~#
.

Slitaz -- tazpkg-doc.desktop


Tazpkg manual, Tazwok manual
URL cannot be shown

Env:slitaz-cooking.iso 2011-Mar-28 22:03:50 31.0M
Applications --> Documentation --> Tazpkg manual

1.
tux@slitaz:~$ ps ax | tail
11067 root 0:00 [flush-8:0]
11082 root 0:00 [kworker/1:2]
11357 tux 0:00 GtkLauncher /usr/share/doc/tazpkg/tazpkg.html
11786 root 0:00 [kworker/0:1]
12061 root 0:00 [kworker/1:1]
12166 tux 0:00 GtkLauncher file:///usr/share/doc/tazlito/tazlito.html
12196 tux 0:00 GtkLauncher /usr/share/doc/tazpkg/tazpkg.html
12361 tux 0:00 GtkLauncher /usr/share/doc/tazwok/tazwok.html

12539 tux 0:00 ps ax
12540 tux 0:00 tail

2.
tux@slitaz:~$ cat /usr/share/applications/tazlito-doc.desktop
[Desktop Entry]
Name=Tazlito manual
Name[fr]=Manuel de Tazlito
Exec=browser file:///usr/share/doc/tazlito/tazlito.html
Icon=text-html
Type=Application
Categories=Documentation;

3.
tux@slitaz:~$ cat /usr/share/applications/tazpkg-doc.desktop
[Desktop Entry]
Name=Tazpkg manual
Name[fr]=Manuel de Tazpkg
Comment=SliTaz packages manager manual
Comment[fr]=Manuel du gestionnaire de paquets SliTaz
Exec=browser /usr/share/doc/tazpkg/tazpkg.html
Icon=text-html
Type=Application
Categories=Documentation;

4.
tux@slitaz:~$ cat /usr/share/applications/tazwok-doc.desktop
[Desktop Entry]
Name=Tazwok manual
Name[fr]=Manuel de Tazwok
Comment=SliTaz packages builder manual
Comment[fr]=Manuel du générateur de paquets SliTaz
Exec=browser /usr/share/doc/tazwok/tazwok.html
Icon=text-html
Type=Application
Categories=Documentation;
tux@slitaz:~$
.

xconfig: Change the titlebar if using Qt3


Extract from;
[PATCH] xconfig: Change the titlebar if using Qt3
http://us.generation-nt.com/patch-xconfig-change-titlebar-using-qt3-help-200147811.html
September 01st, 2010 - 11:50 am ET by Michal Marek | Report spam
Help Create a new topic
Qt4 is now used by default and will get more testing. In case someone
still uses Qt3 and reports a bug, make it easy to recognize that this is
Qt3.

Cc: Alexander Stein
Signed-off-by: Michal Marek

scripts/kconfig/qconf.cc | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 88d3874..a04e451 100644
a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1274,8 +1274,14 @@ ConfigMainWindow::ConfigMainWindow(void)
char title[256];

QDesktopWidget *d = configApp->desktop();
- snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"),
- getenv("KERNELVERSION"));
+ snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration%s"),
+ getenv("KERNELVERSION"),
+#if QT_VERSION < 0x040000
+ " (Qt3)"
+#else
+ ""
+#endif
+ );
setCaption(title);

width = configSettings->readNumEntry("/window width", d->width() - 64);
1.7.1

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


Extract from:
http://git.buildroot.net/buildroot/plain/CHANGES?id=2011.02_rc2

[..]
Kconfig infrastructure rebased against 2.6.38-rc3, bringing
misc fixes. 'xconfig' now uses Qt4 rather than Qt3.

2011-04-03

Slitaz -- tazpkg

tazpkg: remove trailing / in package name ??

Env: slitaz-cooking.iso 2011-Mar-28 22:03:50
http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso

UPDATA:20110411
http://scn.slitaz.org/2011/04/tazpkg-release-4-6/
Tazpkg release 4.6

18:58 in Devel News by pankso

Here at SliTaz we always working on improving and fixing existing tools as well as inovative applications. Today we release our package manager stamped with 4.6.*, we will probably have minor bug since we made some big changes.
[..]


http://pkgs.slitaz.org/cooking/base-system.html#tazpkg
[..]
tazpkg

Version : 4.6.1
Short desc : SliTaz packages manager.
Web site : http://www.slitaz.org/

Depends : busybox gettext-base libtaz
====

UPDATE:20110407

http://labs.slitaz.org/issues/472
Bug #472
[cooking] Tazpkg integration with PCManFM

Added by Eric Joseph-Alexandre 7 days ago.
[..]

Description

Unpack and repack commands don't work any more with PCManFM.


http://labs.slitaz.org/issues/471
Bug #471
[cooking] tazpkg-install failed

Added by Eric Joseph-Alexandre 7 days ago.

[..]
Description

Same issue then #461

http://labs.slitaz.org/issues/461
Feature #461
tazpkg recompress bug on absolute/relative path

Added by Frederic Guilbault about 1 month ago. Updated 7 days ago.
[..]

Description

hi,

i was testing tazpkg on the experiental slitaz and i have found that

root@slitaz:/home# tazpkg recompress /root/apache-2.2.17
Unable to find: /home//root/apache-2.2.17

"tazpkg recompress" shoud read the path as absolute but "Unable to find" is locking for a relative path



----

1.
root@slitaz:~# tazpkg extract /tmp/xz-5.0.1.tazpkg

Unable to find: /root//tmp/xz-5.0.1.tazpkg

2.
root@slitaz:~# tazpkg list | grep tazpkg
tazpkg 4.2.5 base-system

3.
update tazpkg-4.2.6.tazpkg 2011-Apr-01 16:04:57
root@slitaz:~# tazpkg extract /tmp/xz-5.0.1.tazpkg

Unable to find: /root//tmp/xz-5.0.1.tazpkg

4.
http://hg.slitaz.org/tazpkg/rev/87e87b5ee7e2
tazpkg changeset 427:87e87b5ee7e2
tazpkg: remove trailing / in package name
author Pascal Bellard
date Tue Mar 01 22:24:48 2011 +0100 (4 weeks ago ago)
parents 3a8fccb4e5f7
children 0bc0cd627417
files tazpkg
line diff

1.1 --- a/tazpkg Tue Mar 01 18:42:38 2011 +0100
1.2 +++ b/tazpkg Tue Mar 01 22:24:48 2011 +0100
1.3 @@ -41,14 +41,15 @@
1.4 # Initialize some variables to use words rather than numbers for functions
1.5 # and actions.
1.6 COMMAND=$1
1.7 -if [ -f "$2" ]; then
1.8 +PACKAGE=${2%/}
1.9 +PACKAGE_FILE="$PWD/$PACKAGE"
1.10 +if [ -f "$PACKAGE" ]; then
1.11 # Set pkg basename for install, extract
1.12 - PACKAGE=$(basename ${2%.tazpkg} 2>/dev/null)
1.13 + PACKAGE=$(basename ${PACKAGE%.tazpkg} 2>/dev/null)
1.14 else
1.15 # Pkg name for remove, search and all other cmds
1.16 - PACKAGE=${2%.tazpkg}
1.17 + PACKAGE=${PACKAGE%.tazpkg}
1.18 fi
1.19 -PACKAGE_FILE="$PWD/$2"
1.20 TARGET_DIR=$3
1.21 TOP_DIR=`pwd`
1.22 TMP_DIR=$tmp/$RANDOM

.

2011-04-02

Slitaz -- firefox 4.0 / langpack



Env:slitaz-cooking-firefox.iso
http://mirror.slitaz.org/iso/cooking/flavors/slitaz-cooking-firefox.iso 2011-Apr-02 14:04:07

UPDATE:20110407

Use the code below to change locale of firefox in shell:
sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js

VS.

tux@slitaz:~$ sed -i s'/'"en-US"'/'"zh-TW"'/' .mozilla/firefox/*.default/prefs.js
tux@slitaz:~$ grep '"zh-TW"' .mozilla/firefox/*.default/prefs.js
user_pref("general.useragent.locale", "zh-TW");
tux@slitaz:~$


----
root@slitaz:~# cat /etc/firefox/pref/firefox-l10n.js
cat: can't open '/etc/firefox/pref/firefox-l10n.js': No such file or directory
root@slitaz:~# ls -l /etc/firefox/pref/
total 8
-rw-r--r-- 1 root root 133 Apr 3 2011 channel-prefs.js
-rw-r--r-- 1 root root 868 Apr 3 2011 firefox.js
root@slitaz:~# cat /var/lib/tazpkg/installed/firefox-langpack-zh_TW/receipt
# SliTaz package receipt.

PACKED_SIZE="180.0K"
UNPACKED_SIZE="1.3M"
PACKAGE="firefox-langpack-zh_TW"
VERSION="4.0"
CATEGORY="network"
SHORT_DESC="Chinese Language Package for firefox"
MAINTAINER="lufeng369@gmail.com"
DEPENDS="firefox"
WEB_SITE="http://www.mozilla.com"
LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
LANG_DIR="langpack-$LANG@firefox.mozilla.org"
TARBALL="$LANG.xpi"
WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR"
mkdir -p $EXTDIR
cp -a $src/* $EXTDIR
}

post_install()
{
echo ""
echo "Use the code below to change locale of firefox in shell:"
echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js"
echo ""
}

# md5sum of cooking stuff :
# d1bbb9e1b4b50202224805d1c56a0828 receipt
root@slitaz:~#
.