yum list extras

yum list extras [glob_exp1] […]
List the packages installed on the system that are not available
in any yum repository listed in the config file.

gentoo installation to Stardom / Raidon SL3620-2S-LB2

System Information
Product Name SL3620-2S-LB2
Firmware Version 1.4B
Product Vendor Raidon

# emerge –info
Portage 2.1.6.13 (default/linux/arm/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.15 armv4l)
=================================================================
System uname: Linux-2.6.15-armv4l-FA526id-wb-_rev_1_-v4l-with-glibc2.0
Timestamp of tree: Fri, 21 Aug 2009 08:15:01 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.4-r6, 2.5.4-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.10.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS=”arm”
CBUILD=”armv4l-unknown-linux-gnu”
CFLAGS=”-O2 -pipe -mcpu=strongarm110″
CHOST=”armv4l-unknown-linux-gnu”
CONFIG_PROTECT=”/etc”
CONFIG_PROTECT_MASK=”/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d”
CXXFLAGS=”-O1 -pipe”
DISTDIR=”/usr/portage/distfiles”
FEATURES=”distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch”
GENTOO_MIRRORS=”http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo”
LDFLAGS=”-Wl,-O1″
PKGDIR=”/usr/portage/packages”
PORTAGE_CONFIGROOT=”/”
PORTAGE_RSYNC_OPTS=”–recursive –links –safe-links –perms –times –compress –force –whole-file –delete –stats –timeout=180 –exclude=/distfiles –exclude=/local –exclude=/packages”
PORTAGE_TMPDIR=”/var/tmp”
PORTDIR=”/usr/portage”
SYNC=”rsync://rsync.asia.gentoo.org/gentoo-portage”
USE=”acl arm berkdb bzip2 cli cracklib crypt cups fortran gdbm gpm iconv ipv6 isdnlog mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode xorg zlib” ALSA_PCM_PLUGINS=”adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol” APACHE2_MODULES=”actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias” ELIBC=”glibc” INPUT_DEVICES=”keyboard mouse evdev” KERNEL=”linux” LCD_DEVICES=”bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text” USERLAND=”GNU” VIDEO_CARDS=”fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident vga voodoo”
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

gentoo in stardom SL3620-2S-LB2

  1. setup nfs mount in stardom
  2. download stage3-armv4l-2008.0.tar.bz2
  3. mv the above to nfs mounted directory and tar -xjvpf it.
  4. ignore the error that it can’t create /dev/*
  5. enable telnet with http:///cgi/telnet/telnet.cgi
  6. telnet to the stardom and locate the stage3 bz2 above. tar -xjvpf again but to different directory
  7. remove incomplete /dev/* in step 3 and replace it with the directory created in step 6.
  8. Now you have the directory for chroot

create a chroot.sh in ~/admin/bin/ as below:

#!/bin/sh
CWD=`pwd`

cd /mnt/ide3/public/gentoo

mount -t proc none ./proc
mount -o bind /dev ./dev
mount -t sysfs none ./sys
mount -t usbfs none ./proc/bus/usb
bin/chroot . /bin/bash

cd $CWD

  1. ~/admin/bin/chroot.sh (keep chroot.sh in admin’s home instead of /root so that it will be kept after reboot)
  2. env-update
  3. source /etc/profile
  4. export PS1=”(chroot) $PS1″
  5. Inside chroot, we can tar -xjvpf the stage3 bz2 again without error. Exit this chroot and chroot to the new clean extract.
  6. emerge –sync
  7. optional when you are warned for new Portage version emerge –oneshot portage
  8. it hangs at emerge –sync. kill it and restart
  9. it suggests ’emerge portage’
  10. after ’emerge portage’, it has:

* Messages for package sys-apps/portage-2.1.6.13: * *
In portage-2.1.6, the default behavior has changed for `emerge world`

* and `emerge system` commands. These commands will reinstall all

* packages from the given set unless an option such as –noreplace,
* –update, or –newuse is specified.

* * File collision protection is now enabled by default via make.globals
* with FEATURES=protect-owned. If you want to disable collision
* protection completely (not recommended), then you need to ensure
* that neither protect-owned nor collision-protect are enabled.

* * GNU info directory index is up-to-date.
* IMPORTANT: 2 config files in ‘/etc’ need updating.

* See the CONFIGURATION FILES section of the emerge

* man page to learn how to update config files.

Problem 1 – come across blocked portage when:

  • emerge –update –deep –newuse world

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

Problem 2 – try revdep-rebuild but get the errors:

usr/bin/revdep-rebuild: line 661: /dev/fd/62: No such file or directory

* Dynamic linking on your system is consistent… All done. root@raidon_nas etc # gawk: cmd. line:6: fatal: cannot open file `3_errors.rr’ for reading (No such file or directory) gawk: cmd. line:6: fatal: cannot open file `3_errors.rr’ for reading (No such file or directory)

Attempts to solve the problems:

check other linux and find /dev/fd is symbolic link to /proc/self/fd

  • emerge –unmerge man-pages

it seems fixed.

re-issue:

  • emerge –update –deep –newuse world

Some messages during 10+ hours updates….

>>> Installing (4 of 75) dev-libs/expat-2.0.1-r1
* Please note that the soname of the library changed!

* If you are upgrading from a previous version you need

* to fix dynamic linking inconsistencies by executing:

* revdep-rebuild –library libexpat.so.0
* QA Notice: The following files contain writable and executable sections
* Files with such sections will not work properly (or at all!) on some

* architectures/operating systems. A bug should be filed at
* http://bugs.gentoo.org/ to make sure the issue is fixed.
* For more information, see http://hardened.gentoo.org/gnu-stack.xml
* Please include the following list of files in your report:

* Note: Bugs should be filed for the respective maintainers

* of the package in question and not hardened@g.o.

* !WX — — usr/lib/libbz2.a:blocksort.o

* !WX — — usr/lib/libbz2.a:huffman.o

* !WX — — usr/lib/libbz2.a:crctable.o
* !WX — — usr/lib/libbz2.a:randtable.o
* !WX — — usr/lib/libbz2.a:compress.o
* !WX — — usr/lib/libbz2.a:decompress.o
* !WX — — usr/lib/libbz2.a:bzlib.o

Oh! Another error at perl updates:

Reading MacJapanese (MacJapanese) Writing compiled form Not a HASH reference at ../bin/enc2xs line 661, line 7399. make[2]:
*** [ma_05_t.c] Error 9
make[2]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.8.8-r5/work/perl-5.8.8/ext/Encode/JP’ make[1]:
*** [subdirs] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.8.8-r5/work/perl-5.8.8/ext/Encode’ make:
*** [lib/auto/Encode/Encode.so] Error 2

*
* ERROR: dev-lang/perl-5.8.8-r5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile
* environment, line 2567: Called die
Find the below and run man emerge and fix it. Also find my change to locale.gen. Since perl fail at locale compilation, guess it may be related. Run locale-gen again to regenerate the locale file.

drwxr-xr-x 33 root root 4096 Aug 21 17:10 .
drwxr-xr-x 17 root root 4096 Aug 21 00:24 ..

-rw-r–r– 1 root root 1215 Aug 20 17:24 ._cfg0000_dispatch-conf.conf

-rw-r–r– 1 root root 2689 Aug 21 09:30 ._cfg0000_gai.conf

-rw-r–r– 1 root root 875 Aug 21 09:30 ._cfg0000_locale.gen

-rw-r–r– 1 root root 4630 Aug 21 03:03 ._cfg0000_man.conf

Now it is re-compiling the perl and get through the error during the compilation of MacJapanese. Looking good.

Flash for Fedora 11 x86_64

1. Download http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
2. gunzip the file libflashplayer.so inside
3. copy libflashplayer.so to ~/.mozilla/plugins/

How vmnet is used in VMware Server

Bridged networking on /dev/vmnet0 [ OK ]
Host-only networking on /dev/vmnet1 (background) [ OK ]
DHCP server on /dev/vmnet1 [ OK ]
Host-only networking on /dev/vmnet8 (background) [ OK ]
DHCP server on /dev/vmnet8 [ OK ]
NAT service on /dev/vmnet8 [ OK ]

Configuring an AppleTalk Server in Linux

http://book.chinaunix.net/special/ebook/RedHat_Linux_Bible/8140final/LiB0228.html

Note 
In general, AppleTalk should be used on trusted networks. If you are running a firewall on your netatalk server, however, you must open access to several ports for netatalk to work. In particular, you may need to open ports 548 (AFP over TCP/IP), 201 (AppleTalk routing), 202 (AppleTalk name binding), 204 (AppleTalk echo), and 206 (AppleTalk zones).