mkdir $HOME/Gentoo
wget http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh?format=txt
mv bootstrap-prefix.sh?format=txt bootstrap-prefix.sh
chmod 755 bootstrap-prefix.sh
export EPREFIX="$HOME/Gentoo"
export CHOST="x86_64-pc-linux-gnu"
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"
./bootstrap-prefix.sh $EPREFIX tree
for cmd in make wget sed zlib python coreutils6 findutils tar15 patch9 grep gawk bash ; do ./bootstrap-prefix.sh $EPREFIX/tmp ${cmd}; done
./bootstrap-prefix.sh $EPREFIX portage
wget https://www.kernel.org/pub/linux/devel/binutils/binutils-2.21.51.0.7.tar.bz2
cp binutils-2.21.51.0.7.tar.bz2 $EPREFIX/usr/portage/distfiles
hash -r
emerge -1 sed byacc
emerge -1 --nodeps bash
emerge -1 pax-utils
emerge -1 --nodeps baselayout-prefix xz-utils m4 autoconf automake wget flex bison binutils-config
emerge -1 --nodeps binutils
emerge -1 --nodeps gcc-config
emerge -1 --nodeps =sys-devel/gcc-4.1.2
gcc --version
emerge -1 sandbox coreutils findutils tar grep patch gawk make
emerge -1 --nodeps file eselect
# emerge -1 libtool binutils
emerge -u gcc
# python-updater will fail in this stage. that's fine to ignore
env FEATURES="-collision-protect" emerge --oneshot portage
rm -Rf $EPREFIX/tmp/*
hash -r
emerge --sync
USE="-git" emerge -u system
emerge -C =sys-devel/gcc-4.1.2
echo 'USE="unicode nls"' > $EPREFIX/etc/make.conf
echo 'CFLAGS="-O2 -pipe -march=native"' >> $EPREFIX/etc/make.conf
echo 'CXXFLAGS="${CFLAGS}"' >> $EPREFIX/etc/make.conf
echo 'CHOST="x86_64-pc-linux-gnu"' >> $EPREFIX/etc/make.conf
# rebuild the main packages
emerge -e system
# Setup a start script
cd $EPREFIX/usr/portage/scripts
./bootstrap-prefix.sh $EPREFIX startscript
cp ./startprefix $HOME
You can now run $HOME/startscript to re-enter your gentoo prefix.
Added 20110908
audio_folders=Music/ folder_depth=2 output_formats=audio/ogg,audio/vorbis,audio/mpeg,audio/mp3,audio/x-aac,audio/flac cover_art_file_name=folder.jpg cover_art_file_type=jpeg cover_art_size=320
Added 20110115
#--- Load VirtualBox kernel modules /usr/bin/sudo modprobe vboxdrv /usr/bin/sudo modprobe vboxnetflt #--- Set up a VM VBoxManage createvm --name Ubuntu --register VBoxManage modifyvm "Ubuntu" --memory 512 --acpi on --boot1 dvd --nic1 nat --ostype Ubuntu VBoxManage modifyvm "Ubuntu" --hwvirtex on VBoxManage modifyvm "Ubuntu" --natpf1 "guestssh,tcp,,2222,,22" VBoxManage createhd -filename "Ubuntu.vdi" --size 4000 --register VBoxManage storagectl Ubuntu --name SATA --add sata VBoxManage storageattach Ubuntu --storagectl SATA --port 0 --device 0 --type hdd --medium "Ubuntu.vdi" VBoxManage storagectl Ubuntu --name IDE --add ide VBoxManage storageattach Ubuntu --storagectl IDE --port 0 --device 0 --type dvddrive --medium ISOs/ubuntu-9.04-desktop-amd64.iso #--- Start VM using <ctrl>+<alt> as the hotkey combination to get focus outside the VM VBoxSDL --startvm "Ubuntu" --hostkey 306 308 320 #--- INSTALL FROM DVD. When finshed: VBoxManage controlvm Ubuntu poweroff VBoxManage storageattach Ubuntu --storagectl "IDE" --port 0 --device 0 --medium none VBoxManage modifyvm "Ubuntu" --boot1 disk #--- Restart VM VBoxSDL --startvm "Ubuntu" --hostkey 306 308 320 On the vm: sudo apt-get install openssh-server To get to the VM from the host you can now: ssh -p 2222 localhost
Added 20100913
$ make -f ffelnxsdl.mak gcc -I. -Wall -D__FFELNXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wl,-Map,map.log -o linux/lnxconv linux/lnxconv.c linux/lnxconv ffe.asm linux/ffelnx.asm Reading file ffe.asm... Writing file linux/ffelnx.asm... numfuncs = 84, numcheck = 17733, numreplace = 503 nasm -f elf -i. -o linux/ffelnx.o linux/ffelnx.asm linux/ffelnx.asm:36497: error: invalid operand size specification linux/ffelnx.asm:36497: error: expression syntax error linux/ffelnx.asm:36502: error: invalid operand size specification linux/ffelnx.asm:36502: error: expression syntax error linux/ffelnx.asm:36507: error: invalid operand size specification linux/ffelnx.asm:36507: error: expression syntax error linux/ffelnx.asm:36894: error: invalid operand size specification linux/ffelnx.asm:36894: error: expression syntax error linux/ffelnx.asm:36899: error: invalid operand size specification linux/ffelnx.asm:36899: error: expression syntax error linux/ffelnx.asm:36904: error: invalid operand size specification linux/ffelnx.asm:36904: error: expression syntax error ( ... SNIP ... There are lots more of these ) linux/ffelnx.asm:131307: error: invalid operand size specification linux/ffelnx.asm:131307: error: expression syntax error linux/ffelnx.asm:131312: error: invalid operand size specification linux/ffelnx.asm:131312: error: expression syntax error make: *** [linux/ffelnx.o] Error 1Each line corresponds to a "call abs" line in ffelnx.asm. It seems as though at some point "abs" became a reserved word in nasm. There is documentation for this here: http://www.nasm.us/doc/nasmdoc3.html#section-3.3". To fix this, I wrote a small wrapper that put abs into a call called ffeabs. I then did a search/replace on 'abs' to 'ffeabs' in ffelnx.asm.
Added 20091230
$ emerge -uvpDN virtualbox-ose These are the packages that would be merged, in order: Calculating dependencies... done! !!! All ebuilds that could satisfy "~app-emulation/virtualbox-ose-additions-3.1.0" have been masked. !!! One of the following masked packages is required to complete your request: - app-emulation/virtualbox-ose-additions-3.1.0 (masked by: PUEL license(s)) A copy of the 'PUEL' license is located at '/usr/portage/licenses/PUEL'. (dependency required by "app-emulation/virtualbox-ose-3.1.0" [ebuild]) (dependency required by "virtualbox-ose" [argument]) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.To fix this you need to add the PUEL licence to the portage.license file:
echo "app-emulation/virtualbox-ose-additions PUEL" >> /etc/portage/package.licenseNow it will emerge. Except it won't due to this
Added 20091230
{ "Technika", 0x13d1, "MP-709", 0x7017, DEVICE_FLAG_UNLOAD_DRIVER },svn checkout http://amv-codec-tools.googlecode.com/svn/trunk/ amv-codec-tools-read-only cd amv-codec-tools-read-only/AMVMuxer/ffmpeg ./configure --enable-libfaac --enable-liba52 --enable-libmp3lame --enable-gpl --enable-libfaad --enable-shared make -j3The player has a resolution of 120x160, in portrait. As most films are in landscape its good to rotate the film before converting to amv:
mencoder -vf rotate=1 -ovc lavc -oac pcm source_film.mov -o rotated_film.aviFinally use the ffmpeg you built to convert the film, and upload to your MP-709:
LD_LIBRARY_PATH="./libavformat:./libavcodec:./libavutil" ./ffmpeg -i rotated_film.avi -f amv -s 120x160 -r 16 -ac 1 -ar 22050 -qmin 3 -qmax 3 film.amv mtp-sendfile film.amv film.amv
Added 20080826
Having seen a rather nice looking raytracer written in C#, I thought I'd
look at the code to learn some raytracing, and play around with getting it working in perl.
As it turns out perl is a comfortable language for this. Sprinkle with a touch
of SDL, and you get a perfect reproduction of the original render.
Code here
Added 20080826
<gtkfilechooser>
<location mode="filename-entry"/>
<show_hidden value="true"/>
<expand_folders value="true"/>
</gtkfilechooser>
To:
<gtkfilechooser>
<location mode="filename-entry"/>
<show_hidden value="false"/>
<expand_folders value="true"/>
</gtkfilechooser>
Update: Now you can right-click over the list of files, and tick/untick the "Show Hidden Files" box.
Added 20070514
cd /root wget http://distfiles.gentoo.org/distfiles/Python-2.4.3.tar.bz2 tar jxvf Python-2.4.3.tar.bz2 cd Python-2.4.3 ./configure make ./python emerge python cd /root rm -rf Python-2.4.3*You are now fixed.
Added: 20060912
dd if=/dev/zero of=test_fs bs=1024 count=10240 mkfs -t ext3 -q test_fs mkdir ~/mnt/test_fs sudo modprobe loop ext3 sudo mount -o loop ./test_fs ~/mnt/test_fs dd if=/dev/zero of=~/mnt/test_fs/abc bs=1024 count=8243
#!/usr/bin/perl
#
open (my $file, ">$ENV{HOME}/mnt/test_fs/def") or die "Can't open file: $!";
my $i = 0;
while (print $file "hello\n") {
print $i++, "\n";
}
print "print failed: $!";
It gets to 681 on my box before reporting:
print failed: No space left on device
Added: 20060912
Section "Monitor"
Identifier "Dell"
HorizSync 31-54
VertRefresh 50-120
EndSection
This finally lets you raise the screen resolution to 1024x768 from the default (and tiny) 800x600. This works for me - but please try at your own
risk. Changing scan rates can permenantly damage your monitor. I am not
responsible for any damage done.
Device Drivers->Network Device Support->Ethernet (10 or 100Mbit)->[*] Other ISA cards-><M> NE2000/NE1000 support
Make, and install your new kernel. You now have a kernel modules called "ne" that supports this card. Now you have to tell the kernel about the inner details. Create a file called (this is Gentoo specific) /etc/modules.d/net It should contain what you learned about the card earlier. Mine says this: alias eth0 neAdded: 20050204
(c) Jon Mitchell