2010-02-24

Slitaz -- chroot


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

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

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

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

checklist

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

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

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

2.
>>> help('modules')

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

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

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

tux@alanyih:~$
.