Ubuntu is composed of many software packages, the vast majority of which are distributed under a free software license. The only exceptions are some proprietary hardware drivers.The main license used is the GNU General Public License (GNU GPL) which, along with the GNU Lesser General Public License (GNU LGPL), explicitly declares that users are free to run, copy, distribute, study, change, develop and improve the software. On the other hand, there is also proprietary software available that can run on Ubuntu. Ubuntu focuses on usability, security and stability. The Ubiquity installer allows Ubuntu to be installed to the hard disk from within the Live CD environment, without the need for restarting the computer prior to installation. Ubuntu also emphasizes accessibility and internationalization to reach as many people as possible.
Custom Search

DebootStrap is a tool which will install a Debian base system into a subdirectory of another, already installed system.

Wednesday, July 20, 2011

DebootStrap is a tool which will install a Debian base system into a subdirectory of another, already installed system.


It doesn't require an installation CD, just access to a Debian repository. It can also be installed and run from another operating system, so, for instance, you can use debootstrap to install Debian onto an unused partition from a running Gentoo system. It can also be used to create a rootfs for a machine of a different architecture.


This is "cross-debootstrapping". There is also a largely equivalent version written in C: cdebootstrap, which is smaller, and thus used in debian-installer.

If you are interested in setting up a chroot for building Debian packages, look at pbuilder.
Debootstrap can only use one repository for its packages. If you need to merge packages from different repositories (the way apt does) to make a rootfs, or you need to automatically customise the rootfs, then use Multistrap.

Since DebianTesting and DebianUnstable change rapidly, if you are going to attempt to install DebianTesting or DebianUnstable, it is recommended that you download the latest version of debootstrap from the package page and use that. Normally it would not be wise to install a package from unstable onto stable, but in this case it's safe, since debootstrap is really just a shell script and its dependencies are minimal.

This article shows you how to use debootstrap to build a chroot environment that you can use for various needs, from trying out the latest (or even oldest) Ubuntu releases, or even working with Debian releases, to utilizing the chroot as a package building environment.

You can work anywhere - this Howto will assume you're using /var/chroot and gives a target system of HardyHeron. For other target versions replace hardy below with the first part of the release code name, dapper for DapperDrake or lucid for LucidLynx for example.

Getting and installing debootstrap.

For the least pain and gnashing of teeth, please get the Ubuntu binary packages manually by downloading from the following links with the 'wget' command which is demonstrated below:
Example: Terminal session wget-ing and installing the latest hardy debootstrap:
<span class="anchor" id="line-1"></span><i> wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.9~hardy1_all.deb
<span class="anchor" id="line-2"></span> sudo dpkg --install debootstrap_1.0.9~hardy1_all.deb</i>

Installing and configuring schroot.

schroot is a convenient means of managing chroot environments; with this tool you can have both Dapper, Feisty and even Debian Sid chroots in your Ubuntu install, and using a chroot environment is a simple as schroot -c dapper -d Wink ;)
To get schroot working in your system, just do the following in a Terminal:
<span class="anchor" id="line-1-1"></span> <i>sudo apt-get install schroot
<span class="anchor" id="line-2-1"></span> sudo mkdir /var/chroot # Remember, we assume our chroot is here
<span class="anchor" id="line-3"></span> sudo editor /etc/schroot/schroot.conf</i>
Then append this line in /etc/schroot/schroot.conf:
<span class="anchor" id="line-1-2"></span><i>[hardy]
<span class="anchor" id="line-2-2"></span>description=Ubuntu hardy
<span class="anchor" id="line-3-1"></span>location=/var/chroot/hardy
<span class="anchor" id="line-4"></span>priority=3
<span class="anchor" id="line-5"></span>users=doko
<span class="anchor" id="line-6"></span>groups=sbuild
<span class="anchor" id="line-7"></span>root-groups=root</i>

Additional steps for 64-bit systems.

If you are running a 64bit kernel and install a 32bit chroot (architectures i386, lpia on amd64, sparc, powerpc), add the line:
<span class="anchor" id="line-1-3"></span><i> personality=linux32</i>
and install the linux32 package. This avoids prefixing each schroot command with the linux32 command.
<span class="anchor" id="line-1-4"></span> <i>aliases=dokochroot,default</i>
default is very useful as are aliases.

Setting up your chroot with debootstrap.

If you want a 32-bit chroot on amd64 add --arch i386 to this command line. If you use the chroot to build packages add --variant=buildd . Change hardy to according to your needs to dapper, edgy, feisty or leave as is for hardy chroot.
To actually install the base chroot, open a Terminal and do:
<span class="anchor" id="line-1-5"></span><i> sudo debootstrap --variant=buildd --arch i386 hardy /var/chroot/hardy http://archive.ubuntu.com/ubuntu/</i>
debootstrap will then build a HardyHeron chroot in /var/chroot/, getting the base packages in http://archive.ubuntu.com/ubuntu/, and, depending on the given additional options (in square brackets,) debootstrap will build a chroot for the given architecture and variant.
If debootstrap finishes successfully, you'll be left with a base chroot in /var/chroot, which is not suitable for nearly anything. To actually get our chroot to work and be able to, say, grab packages from the network, do the following right after debootstrap:
<span class="anchor" id="line-1-6"></span> sudo cp /etc/resolv.conf /var/chroot/hardy/etc/resolv.conf
<span class="anchor" id="line-2-3"></span> sudo cp /etc/apt/sources.list /var/chroot/hardy/etc/apt/
<span class="anchor" id="line-3-2"></span> sudo editor /var/chroot/hardy/etc/apt/sources.list
If your current distribution is different than your target distribution (i.e. you use Hardy and want a Gutsy chroot), change all of the occurrences of Hardy/Gutsy/Feisty/Edgy etc. to your target distribution.
<span class="anchor" id="line-1-7"></span><i> sudo chroot /var/chroot/hardy
<span class="anchor" id="line-2-4"></span> apt-get update
<span class="anchor" id="line-3-3"></span> apt-get --no-install-recommends install wget debconf devscripts gnupg nano  #For package-building
<span class="anchor" id="line-4-1"></span> apt-get update  #clean the gpg error message
<span class="anchor" id="line-5-1"></span> apt-get install locales dialog  #If you don't talk en_US
<span class="anchor" id="line-6-1"></span> locale-gen en_GB.UTF-8  # or your preferred locale
<span class="anchor" id="line-7-1"></span> tzselect; TZ='Continent/Country'; export TZ  #Configure and use our local time instead of UTC; save in .profile
<span class="anchor" id="line-8"></span> exit</i>
If you dont want the locale warnings in your chroot, add this to your ~/.bashrc file.
<span class="anchor" id="line-1-8"></span><i>export LANG=C </i>
You can stop here if you want a simple chroot that you use as root (sudo chroot /var/chroot). If you want to use your chroot as another user and have access to your normal /home and other directories inside the chroot, continue.

Note for Debian chroot on Ubuntu.

If you want to build a Debian chroot on an Ubuntu system you need to point it at a Debian archive:
<i><span class="anchor" id="line-1-9"></span> sudo debootstrap --arch i386 sid sid/ http://ftp.uk.debian.org/debian/</i>

Getting stuff(X/ssh-agent/ect,dbus,mounting removables,modprobe,err stuff) working automagically.


Append these lines to /etc/fstab:
<span class="anchor" id="line-1-10"></span><i>/proc /var/chroot/hardy/proc none rbind 0 0 # Can just be mounted, comments?
<span class="anchor" id="line-2-5"></span>/dev /var/chroot/hardy/dev none rbind 0 0 # Good thing to do, but not secure.
<span class="anchor" id="line-3-4"></span>/sys /var/chroot/hardy/sys none rbind 0 0 # Same as proc?
<span class="anchor" id="line-4-2"></span>/tmp /var/chroot/hardy/tmp none rbind 0 0 # This opens a lot of doors, namly X sockets are here... DRI should work assuming bits match.
<span class="anchor" id="line-5-2"></span>/home /var/chroot/hardy/home none rbind 0 0 # This is optional.  As are the others, but this is more so.
<span class="anchor" id="line-6-2"></span>/media /var/chroot/hardy/media none rbind 0 0 # Your USB stick.
<span class="anchor" id="line-7-2"></span>/lib/modules /var/chroot/hardy/lib/modules none rbind 0 0 # You may need to load modules??  Think binfmt_misc.
<span class="anchor" id="line-8-1"></span>/var/run/dbus/ /var/chroot/hardy/var/run/dbus/ none rbind 0 0 # Gnome likes this.
<span class="anchor" id="line-9"></span># Others??  /etc?</i>
Note: fstype is none options are rbind.

Loading cron/apache/daemons.

Add this(or something like it) to /etc/rc.local or your startup wherever you like:
<span class="anchor" id="line-1-11"></span><i>schroot --all -- su -c /etc/init.d/rc\ 2 -</i>

Setting up a dchroot (non-root) environment.

dchroot makes it possible to use your newly-built chroot even as a non-root user. Hence, you can configure your chroot environment in such a way that you can even use your existing /home as the chroot's /home, thereby saving you some expensive moving in between homes, as well as making package building/testing a LOT more convenient.
To do this, first fix the user and root password:
<span class="anchor" id="line-1-12"></span><i> sudo cp /etc/passwd /var/chroot/hardy/etc/
<span class="anchor" id="line-2-6"></span> sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow | sudo tee /var/chroot/hardy/etc/shadow
<span class="anchor" id="line-3-5"></span> sudo cp /etc/group /var/chroot/hardy/etc/
<span class="anchor" id="line-4-3"></span> sudo cp /etc/hosts /var/chroot/hardy/etc/ # avoid sudo warnings when it tries to resolve the chroot's hostname</i>
For a debian chroot, I also had to do:
<span class="anchor" id="line-1-13"></span><i>sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/gshadow | sudo tee /var/chroot/hardy/etc/gshadow</i>
Then enable sudo and setup your passwords for root and the first sudo user in the admin group:
<span class="anchor" id="line-1-14"></span><i> sudo cp /etc/sudoers /var/chroot/hardy/etc/
<span class="anchor" id="line-2-7"></span> sudo chroot /var/chroot/hardy/
<span class="anchor" id="line-3-6"></span> dpkg-reconfigure passwd
<span class="anchor" id="line-4-4"></span> passwd <username of your first ubuntu user in the admin group></i>
Next, install the sudo package to be able to use it being in chroot:
<span class="anchor" id="line-1-15"></span><i> apt-get install sudo
<span class="anchor" id="line-2-8"></span> exit</i>
Finish things up:
<span class="anchor" id="line-1-16"></span><i> sudo editor / etc/fstab</i>
This is like the previous instructions, but different. Add these lines: (/media/cdrom is optional, of course, and you might have to create the dir in the chroot)
<span class="anchor" id="line-1-17"></span> /home           /var/chroot/hardy/home        none    bind            0       0
<span class="anchor" id="line-2-9"></span> /tmp            /var/chroot/hardy/tmp         none    bind            0       0
<span class="anchor" id="line-3-7"></span> /media/cdrom    /var/chroot/hardy/media/cdrom none    bind            0       0
<span class="anchor" id="line-4-5"></span> /dev            /var/chroot/hardy/dev         none    bind            0       0
<span class="anchor" id="line-5-3"></span> proc-chroot     /var/chroot/hardy/proc        proc    defaults        0       0
<span class="anchor" id="line-6-3"></span> devpts-chroot   /var/chroot/hardy/dev/pts     devpts  defaults        0       0
and delete these lines from before:
<span class="anchor" id="line-1-18"></span> /proc /var/chroot/hardy/proc none rbind 0 0 # Can just be mounted, comments?
<span class="anchor" id="line-2-10"></span> /dev /var/chroot/hardy/dev none rbind 0 0 # Good thing to do, but not secure.
<span class="anchor" id="line-3-8"></span> /sys /var/chroot/hardy/sys none rbind 0 0 # Same as proc?
<span class="anchor" id="line-4-6"></span> /tmp /var/chroot/hardy/tmp none rbind 0 0 # This opens a lot of doors, namly X sockets are here... DRI should work assuming bits match.
<span class="anchor" id="line-5-4"></span> /home /var/chroot/hardy/home none rbind 0 0 # This is optional.  As are the others, but this is more so.
<span class="anchor" id="line-6-4"></span> /media /var/chroot/hardy/media none rbind 0 0 # Your USB stick.
<span class="anchor" id="line-7-3"></span> /lib/modules /var/chroot/hardy/lib/modules none rbind 0 0 # You may need to load modules??  Think binfmt_misc.
<span class="anchor" id="line-8-2"></span> /var/run/dbus/ /var/chroot/hardy/var/run/dbus/ none rbind 0 0 # Gnome likes this.
Mount them:
<span class="anchor" id="line-1-19"></span><i>sudo mount -a</i>
The default bash path includes chroot information. To make this visible:
<span class="anchor" id="line-1-20"></span><i>sudo chroot /var/chroot/hardy/
<span class="anchor" id="line-2-11"></span>echo mychroot > etc/debian_chroot
<span class="anchor" id="line-3-9"></span>exit</i>
Set the chroot you just created in the dchroot.conf file
<span class="anchor" id="line-1-21"></span><i>sudo editor /etc/dchroot.conf</i>
Add the following to this file (if this is your first "dchroot" it will be a new, empty file; if there is more than one, the first item listed will be the default):
<span class="anchor" id="line-1-22"></span><i>mychroot /var/chroot/hardy/</i>
Now when you want to use your chroot (you may omit the -c mychroot if there's only one, or you just want the first one in the file). The -d parameter means that your environment will be preserved, this is generally useful if you want chrooted applications to seamlessly use your X server, your session manager, etc.
<span class="anchor" id="line-1-23"></span><i> dchroot -c mychroot -d</i>
Tada! Now you can switch to and from your main / and /var/chroot/, without even becoming root!

Shortcuts / Usage.

you can type dchroot -d "command" and it executes that command in the chroot.
I have this script do_chroot in /usr/local/bin:
<span class="anchor" id="line-1-24"></span><i>/usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"</i>
I had trouble with quoting in the above script. This one works better for me. ~JPKotta
<span class="anchor" id="line-1-25"></span><i>args=""
<span class="anchor" id="line-2-12"></span>for i in "$@" ; do
<span class="anchor" id="line-3-10"></span>    args="$args '$i'"
<span class="anchor" id="line-4-7"></span>    #echo $args
<span class="anchor" id="line-5-5"></span>done
<span class="anchor" id="line-6-5"></span>
<span class="anchor" id="line-7-4"></span>/usr/bin/dchroot -d -- "$0" $args</i>
Then I create a symbolic link from that to the command I want to execute in the chroot, e.g.:
<span class="anchor" id="line-1-26"></span><i>ln -s /usr/local/bin/do_chroot /usr/local/bin/firefox</i>
which will execute firefox in the chroot environment when I launch it in my normal 64 bit environment. To launch my amd64 firefox I can type /usr/bin/firefox.
Instead if you want you can just create a script for launching the 32bit firefox e.g.:
<span class="anchor" id="line-1-27"></span>dchroot -d "firefox"
put it in /usr/local/bin and add it to the gnome menu.
If you're going to start a program that only works in 32bit, first type dchroot -d and you'll be in the 32 bit environment.

Notes.

Some missing points are covered on this external article: http://ornellas.apanela.com/dokuwiki/pub:multiarch.
From unknown Sun Apr 17 05:43:14 +0100 2005 From: Date: Sun, 17 Apr 2005 05:43:14 +0100 Subject: Using symlinks for passwd, groups, shadow, etc..? Message-ID: <20050417054314+0100@https://www.ubuntulinux.org>
Wouldn't it be possible to use symlinks for the files that get copied into the chroot? Like /etc/hosts? Would it work with /etc/passwd and the like?
<span class="anchor" id="line-1-28"></span>  Re: You can link into, but not outof a chroot.
<span class="anchor" id="line-2-13"></span>mv /etc/hosts /chroot/etc/hosts
<span class="anchor" id="line-3-11"></span>ln -s ../chroot/etc/hosts /etc
<span class="anchor" id="line-4-8"></span>... Using hardlinks is better.
From MichaelShigorin Sun Apr 17 13:42:38 +0100 2005 From: Michael Shigorin Date: Sun, 17 Apr 2005 13:42:38 +0100 Subject: nope Message-ID: <20050417134238+0100@https://www.ubuntulinux.org>
...but you can mount --bind them one be one. Smile :)
From goofrider Thu May 12 19:26:45 +0100 2005 From: goofrider Date: Thu, 12 May 2005 19:26:45 +0100 Subject: chroot and symlinks Message-ID: <20050512192645+0100@https://www.ubuntulinux.org>
You can't symlinks from inside the chroot to somewhere outside of it, because once you chroot into it, the new chroot will becomes /, and all symlinks will be resolved relative to this new /. Use mount --bind instead (though hard links should work too). --GoofRider 2005-05-12
From Sam Fri May 13 09:22:44 +0100 2005 From: Sam Date: Fri, 13 May 2005 09:22:44 +0100 Subject: mount -a Message-ID: <20050513092244+0100@www.ubuntulinux.org>
You can use $ sudo mount -a for mounting all the entries in fstab instead of mounting them one by one.
From LukaszStelmach Sun May 15 00:06:59 +0100 2005 From: Lukasz Stelmach Date: Sun, 15 May 2005 00:06:59 +0100 Subject: Using symlinks Message-ID: <20050515000659+0100@www.ubuntulinux.org>
You can make hardlink to files (but only when your chroot dir is on te same partition):
ln /etc/passwd /var/chroot/etc/
From: Elmo, 21.12.05 Does anyone know howto enable DRI from inside a 32bit chroot, 'cause if I mount --bind /dev/dri chroot/dev/dri I get the following error: "DDX driver parameter mismatch: got 848 bytes, but expected 840 bytes. libGL error: InitDriver failed" (glxinfo) I'd really like to get doom3 working on my amd64 install.
26.12.05, Elmo: I know, it should work natively, but I have problems with other games aswell, so getting dri working from a chroot would be great=)
26.12.05, Elmo: At debian-amd64 list(http://lists.debian.org/debian-amd64/2005/02/msg00807.html), around February 05, is said that it's not possible at the moment. Got to find another way around my problem, will propably post to ubuntu forums.
10.06.06 Just a note from a person who ruined his system: After all this is done do not go and delete things from /var/chroot willy-nilly as it will delete the files from the linked directory as well. I found this out only after my entire /home directory was wiped out when I tried to free up some disk space by deleting the files from the chroot directory. Thanks to my foolishness I emptied root's trash before I realized what I'd done. It's been a while since my last backup so I lost everything from Documents, etc for the last year or so.
From: Murray Cumming 06.10.05: I had to do "apt-get install language-pack-en" to avoid the "Locale not supported by C library." warnings. Even "sudo dpkg-reconfigure locales" gave a "perl: warning: Setting locale failed." error until I did this. And that was even after I did a whole "sudo apt-get ubuntu-desktop" in the chroot.
Almost all the schroot config is unhelpful and irrelevant - Adding three lines to schroot.conf completely removes the need to copy anything from/to /etc:
<span class="anchor" id="line-1-29"></span><i>run-setup-scripts=true
<span class="anchor" id="line-2-14"></span>run-exec-scripts=true
<span class="anchor" id="line-3-12"></span>type=directory</i>
these will cause schroot itself to copy the latest versions of the required files every time, and do all required mounting to get /proc and /home working. Removes a LOT of effort and worry. And removes the risk of deleting your own home area due to stray bind mounts. -- directhex, 2007-09-21
<span class="anchor" id="line-1-30"></span> Re: This is the best method.
<span class="anchor" id="line-2-15"></span>I see there are a few things missing from these scripts, the rbind(bind) stuff, ect.  We should identify what is missing and try and get setup scripts to cover these areas.
The dchroot stuff here is practically obsolete. I found that it is completely possible to create a working schroot environment that does not make an individual root. Also the default setup appears to work. I tried it out when I messed up my ubuntu server install. Now my setup is relatively safe. None of the fstab stuff is required at all. I may actually create a wiki page to help out for schroot in non-root setups.

Installing and configuring dchroot (deprecated).

This section formerly appeared before the debootstrap section above. The following is here merely for reference. This use of dchroot is deprecated (no longer preferred), so you should probably use schroot as described above.
dchroot is a convenient means of managing chroot environments; with this tool you can have both Dapper, Feisty and even Debian Sid chroots in your Ubuntu install, and using a chroot environment is a simple as dchroot -c dapper -d Wink ;)
To get it dchroot working in your system, just do the following in a Terminal:
<span class="anchor" id="line-1-31"></span><i> sudo apt-get install dchroot
<span class="anchor" id="line-2-16"></span> sudo mkdir -p /var/chroot/hardy # Remember, we assume our chroot is here
<span class="anchor" id="line-3-13"></span> sudo editor /etc/dchroot.conf</i>
Then append this line in /etc/dchroot.conf:
mychroot /var/chroot/hardy

Custom Search
Adserver           610x250

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

eFTE is an advanced programmers editor with goals of being lightweight, yet totally configurable.

eFTE is an advanced programmers editor with goals of being lightweight, yet totally configurable. support for user defined programming languages, menu systems and key bindings are provided with many common defaults already defined.


eFTE is still a new project, however, extended from the fte editor which was first released in 1995, so efte is tried and true with many features for the programmer/text editor.



Current Release: 2009-10-11 - 1.1 released, see Download for Binaries and Sources.



Features:

Portability:

  • Multiple platform (Unixes, Mac OS X, Win32, OS/2 and others)
  • Multiple interfaces (X11, console, Windows console, OS/2 console and PM, Mac OS X console and GUI under development)

Standard features:

  • Multiple mode
  • User defined syntax highlighting
  • Split screen

less common features:

  • 100% configurable right down to every single key and menu. Multiple named keymaps for simple switching between mapping sets.
  • Advanced folding system
  • Gather all backups in one single place - or keep them in the same dir, as you prefer
  • Easily create new programming modes with syntax highlighting and auto indentation
  • Advanced templates activated by menu entry, hot key or abbreviation
Once you have acquired the source code via the SvnRepository or the Download page, installed a C++ compiler, and installed CMake you are ready to build eFTE. 


Linux, Mac OS X and other unix based systems.

$ cd efte
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make install
That's it. You can see, we first changed to the efte directory, then made a new directory to house our build environment, build, then generated native Makefiles, cmake ..
Note: If you have problems with cmake reporting X11 not found, Xpm not found or use BUILD_CONSOLE=OFF, please ensure you have the development headers installed for X11, Xpm and ncurses. On Debian, this can be done as:
$ sudo apt-get install libX11-dev libXpm-dev libncurses-dev<br />

Custom Search
Adserver           610x250

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


rss_trappola




Using Pathogen for your Vim config files: easy manipulation of 'runtimepath', 'path', 'tags', etc.

If you are an avid Vim user, you know that the one thing that is lacking is a good plugin management system.

With the default vim installation, plugins are scattered through various folders in your .vim folder and its a nightmare to enable/disable or remove plugins once you have installed them.

There are numerous tools out there that claim to make plugin management easier, but frankly, I haven’t tried any of them since they all seem to involve having to install a separate tool to do the task.

But this neat plugin by Tim Pope called Pathogen, is a little different. It uses vim itself to mange the plugins properly. With Pathogen, plugin management is now a breeze.
Using Pathogen.

Pathogen basically modifies the vim runtime paths which tell vim where to find plugins. The standard directory used by Pathogen to install vim plugins is “.vim/bundle”.

When used appropriately (with the correct line of code in your vimrc) Pathogen looks for a “bundle” folder in “.vim” and adds the subdirectories of it to the runtime path. This essentially means each subdirectory of “bundle” looks like a “.vim/” folder to vim.


Taking the plugin fuzzyfinder as an example, the following table shows the path translations

    .vim/bundle/fuzzyfinder/doc  -> .vim/doc/

    .vim/bundle/fuzzyfinder/plugin -> .vim/plugin

    .vim/bundle/fuzzyfinder/autoload -> .vim/autoload

This makes using Pathogen and Vim plugins really easy.  All you have to do to install a plugin is to get the plugin from wherever, and put it in its own folder in “.vim/bundle”. 

To remove the plugin, just delete the folder from “.vim/bundle”.  You can even use symlinking techniques as used in many Linux programs to mange their configuration files. 

Create a “.vim/bundle-available” folder, put all the plugins in there and create symlinks from “.vim/bundle” pointing to the corresponding plugin in “.vim/bundle-available”.

There are a few things to note for the proper operation of Pathogen. The folder that you create inside “.vim/bundle” would need to have the proper subdirectory organization depending on what types of files the plugin contains.   That is, you can’t just drop the .vim file in the main folder of the plugin. 

If the file a is a plugin type, it needs to go to the “plugin” folder, if its an autoload type, it needs to go the “autoload” folder. 

continue with our fuzzyfinder example, this plugin has a file called “fuf.vim” in its “plugin”(.vim/bundle/fuzzyfinder/plugin/fuf.vim) folder. 

If we placed this fuf.vim file in the main fuzzyfinder folder (.vim/bundle/fuzzyfinder/fuf.vim) , the plugin will not work properly since it will look just like “.vim/fuf.vim” to Vim. 

Moreover, don’t make the mistake I made and name the “bundle” folder “bundles”, it won’t work.

The proper usage instructions for Pathogen can be found on the plugin’s page  http://www.vim.org/scripts/script.php?script_id=2332

But to summarize:

    1. Install Pathogen by putting “pathogen.vim” in “.vim/autoload” folder.

    2. Add “call pathogen#runtime_append_all_bundles()” without the quotes to your .vimrc

    3. Create a “.vim/bundle” and put your plugins it.  Each plugin needs its own folder.

Custom Search
Adserver           610x250

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


rss_trappola

PsychoPy is an open-source package for creating psychology stimuli in Python.

Tuesday, July 19, 2011

PsychoPy is an open-source package for running experiments in Python (a real and free alternative to Matlab).

PsychoPy combines the graphical strengths of OpenGL with the easy Python syntax to give scientists a free and simple stimulus presentation and control package.

It is used by many labs worldwide for psychophysics, cognitive neuroscience and experimental psychology.

Because it’s open source, you can download it and modify the package if you don’t like it. And if you make changes that others might use then please consider giving them back to the community via the mailing list. PsychoPy has been written and provided to you absolutely for free. For it to get better it needs as much input from everyone as possible.

Features.

There are many advantages to using PsychoPy, but here are some of the key ones
  • Simple install process

  • Huge variety of stimuli (see screenshots) generated in real-time:
    • linear gratings, bitmaps constantly updating
    • radial gratings
    • random dots
    • movies (DivX, mov, mpg...)
    • text (unicode in any truetype font)
    • shapes
    • sounds (tones, numpy arrays, wav, ogg...)







  • Platform independent - run the same script on Win, OS X or Linux






  • Flexible stimulus units (degrees, cm, or pixels)






  • Coder interface for those that like to program






  • Builder interface for those that don’t






  • Input from keyboard, mouse or button boxes






  • Multi-monitor support






  • Automated monitor calibration (requires PR650 or Minolta LS110)





Hardware Integration.

PsychoPy supports communication via serial ports, parallel ports and compiled drivers (dlls and dylibs), so it can talk to any hardware that your computer can! Interfaces are prebuilt for;
  • Spectrascan PR650
  • Minolta LS110
  • Cambridge Research Systems Bits++
  • Cedrus response boxes (RB7xx series)
To Install.
  • I'm new to python and use Windows Download the StandalonePsychoPy.xxx.win32.exe file on the right and double click it to install. If there's an update that's more recent than the latest Standalone verion the software will automatically fetch and install a patch for this on first run.
  • I'm new to python and have an intel mac. Download the Standalone distributions for OS X (the version for 10.6 also runs on 10.5, but probably not 10.4). This includes a complete python installation so just drag it to your applications folder and double-click. If there's an update that's more recent than the latest Standalone version the software will automatically fetch and install this on first run.
  • I'm experienced with python and already have the dependencies. Go to your terminal or command window and type sudo easy_install -U psychopy and the latest version will be fetched automatically (skip the sudo part to do this from a win32 command window).
Some deprecated versions of PsychoPy (pre v0.97) are available at sourceforge

Installing dependencies.

If you use the Standalone versions for Win32 or OS X then these are automatically included.
PsychoPy requires python 2.4 or 2.5 and numpy, scipy, matplotlib, pyglet, pygame, pyOpenGL, Python Imaging Library, wxPython, setuptools and pywin32 (windows only).

pyserial is also needed if you wish to use serial ports.

The Enthought Python Distribution contains all the dependencies that PsychoPyß needs except for Pygame. So the easiest way to install is to fetch that and then the latest pygame for python 2.5


Screenshots.
The following screenshots give you an idea of the stimuli and controls in PsychoPy and how to use them. Click on the screenshot to see the code that created it.

For more complete demos of full experimental and analysis code see the experiment templates

  

 


Custom Search
Adserver           610x250

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


rss_trappola

BibleTime, a bible study tool for Qt.

Sunday, July 17, 2011

BibleTime is a free and easy to use bible study tool. It uses the Qt and SWORD software libraries.

BibleTime provides easy handling of digitized texts (Bibles, commentaries and lexicons) and powerful features to work with these texts (search in texts, write own notes, save, print etc.) in the SWORD module format.

Download:

This is a short list of available download locations. Please see below for detailed download and installation instructions.
  • Sourcecode can be downloaded from Gitorious.
  • Windows releases can be downloaded from SourceForge.
  • Ubuntu packages are available in the repository and here. Updated packages for Ubuntu 8.04 (Hardy Heron) and 7.10 (Gutsy Gibbon) are offered here.
  • Debian packages are available in the repository and here.
  • Gentoo packages are in Portage. Just call "emerge bibletime".
  • OpenSuse packages can be downloaded from PackMan, here.
  • A FreeBSD application port of BibleTime can be found at www.freebsd.org.
  • PC-BSD packages are available here.

F.A.Q.:

1. Installation problems


1.1. Why is the toolbar missing?

1.1.
Why is the toolbar missing?

Please run configure with the parameter --prefix=<your KDE directory>. Then run make and make install as usual. The KDE directories for the widely used Linux distributions are:
  1. RedHat: /usr
  2. SuSE: /opt/kde3
  3. Mandrake: /usr
Alternatively you can run the command "kde-config --prefix" to get your KDE directory. The commands are:
  1. ./configure --prefix=<your KDE directory>
  2. make
  3. make install

2. Usage problems


2.1. Is it possible to search for a specific Strong number?
2.2. Why do I see only question marks instead of Unicode text?

2.1.
Is it possible to search for a specific Strong number?

The search interface now offers to set the type of your search. You can choose between headings, footnotes, Strongs numbers and morphological codes.

2.2.
Why do I see only question marks instead of Unicode text?

First make sure you have the latest version of the module which has the problems! Check www.crosswire.org/sword for this.
You have to install an unicode font like Code2000, Arial Unicode MS or Bitstream Cyberbit to display the special unicode characters. Check the section "Configuring BibleTime->Options Dialog->Fonts" in the handbook of BibleTime how to setup Unicode fonts under Linux.

3. Modules


3.1. The KJV shows no Strong numbers in the NT
3.2. Where can I write down my personal notes?
3.3. Why is one of the two testaments of a Bible module empty?

3.1.
The KJV shows no Strong numbers in the NT

You're probably using an outdated version of the KJV module. Please update the module.

3.2.
Where can I write down my personal notes?

You have to install the module "Personal", which is available as a commentary on Crosswire. Please refer to BibleTime's handbook for more information about the personal commentary.

3.3.
Why is one of the two testaments of a Bible module empty?

Some modules only contain the text of the old or new testament. Recent versions of BibleTime should only offer the testament which has some content in it.

4. Translations


4.1. Is BibleTime available in my native language?

4.1.
Is BibleTime available in my native language?

BibleTime is available in several languages, which are all listed on our translations page.
If a translation in your language is not available, please consider to help to make it available. More information is available on out translations page.


The main window. 
Here you can see a typical BibleTime session. On the left pane, you see the "bookshelf" which offers quick access to all installed electronic works as well as facilities to create and manage your own bookmarks. Below is the "mag(nifying glass)", which can display additional information about a word or piece of text. In this example it shows a cross reference, with scripture to Psalms 10:6. The main part of the BibleTime window (called "desk") offers space to read works such as Bibles, commentaries, lexicons or other books.
The Bookshelf Manager. 
BibleTime offers a dialog to automatically download and manage electronic works. You simply define a library (a remote collection of works, such as Crosswire), and then you can transfer works from this library to your local bookshelf to use them. Easy, huh?
The search dialog. 
BibleTime offers a powerful search dialog. You can search in several works at a time, limit your search to text scopes or also to certain kinds of text, such as footnotes.

Custom Search
Adserver           610x250

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


rss_trappola

Security Updates and Patches in Ubuntu 11.04 Natty Narwhal.

Friday, July 15, 2011

Summary of Security Items in Ubuntu 11.04 "Natty Narwhal":

  • Version of "host" bundled with bind 9.X
  •  Chromium Browser
  •  Page Inspector for the Chromium Browser
  • Chromium Browser Language Packages
  •  Free Ffmpeg Codecs for Chromium Browser
  • Clients provided with BIND
  • Adobe Flash Player Plugin Installer  - transitional package -

Version of "host" bundled with bind 9.X:

Version 1:9.7.3.dfsg-1ubuntu2.2:

  * SECURITY UPDATE: denial of service via specially crafted packet
    - lib/dns/include/dns/rdataset.h, lib/dns/{masterdump,message,ncache,
      nsec3,rbtdb,rdataset,resolver,validator}.c: Use an rdataset attribute
      flag to indicate negative-cache records rather than using rrtype 0.
    - Patch backported from 9.7.3-P3.
    - CVE-2011-2464

This package provides the 'host' program in the form that is bundled with the BIND 9.X sources.


Chromium Browser:

Updates for versions:

12.0.742.91~r87961-0ubuntu0.11.04.1
12.0.742.112~r90304-0ubuntu0.11.04.1

Version12.0.742.112~r90304-0ubuntu0.11.04.1:

  [ Fabien Tassin <fta@ubuntu.com> ]
  * New Minor upstream release from the Stable Channel (LP: #803107)
    This release fixes the following security issues:
    + WebKit issues:
      - [84355] High, CVE-2011-2346: Use-after-free in SVG font handling.
        Credit to miaubiz.
      - [85003] High, CVE-2011-2347: Memory corruption in CSS parsing. Credit
        to miaubiz.
      - [85102] High, CVE-2011-2350: Lifetime and re-entrancy issues in the
        HTML parser. Credit to miaubiz.
      - [85211] High, CVE-2011-2351: Use-after-free with SVG use element.
        Credit to miaubiz.
      - [85418] High, CVE-2011-2349: Use-after-free in text selection. Credit
        to miaubiz.
    + Chromium issues:
      - [77493] Medium, CVE-2011-2345: Out-of-bounds read in NPAPI string
        handling. Credit to Philippe Arteau.
      - [85177] High, CVE-2011-2348: Bad bounds check in v8. Credit to Aki
        Helin of OUSPG.


Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.

Chromium serves as a base for Google Chrome, which is Chromium rebranded (name and logo) with very few additions such as usage tracking and an auto-updater system.

This package contains the Chromium browser.


Page Inspector for the Chromium Browser transitional package.

Versione 12.0.742.112~r90304-0ubuntu0.11.04.1:

  [ Fabien Tassin <fta@ubuntu.com> ]
  * New Minor upstream release from the Stable Channel (LP: #803107)
    This release fixes the following security issues:
    + WebKit issues:
      - [84355] High, CVE-2011-2346: Use-after-free in SVG font handling.
        Credit to miaubiz.
      - [85003] High, CVE-2011-2347: Memory corruption in CSS parsing. Credit
        to miaubiz.
      - [85102] High, CVE-2011-2350: Lifetime and re-entrancy issues in the
        HTML parser. Credit to miaubiz.
      - [85211] High, CVE-2011-2351: Use-after-free with SVG use element.
        Credit to miaubiz.
      - [85418] High, CVE-2011-2349: Use-after-free in text selection. Credit
        to miaubiz.
    + Chromium issues:
      - [77493] Medium, CVE-2011-2345: Out-of-bounds read in NPAPI string
        handling. Credit to Philippe Arteau.
      - [85177] High, CVE-2011-2348: Bad bounds check in v8. Credit to Aki
        Helin of OUSPG.

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.

This package is safe to remove as the inspector has moved into the main chromium-browser package.


Chromium Browser Language Packages:

Versione 12.0.742.112~r90304-0ubuntu0.11.04.1:

  [ Fabien Tassin <fta@ubuntu.com> ]
  * New Minor upstream release from the Stable Channel (LP: #803107)
    This release fixes the following security issues:
    + WebKit issues:
      - [84355] High, CVE-2011-2346: Use-after-free in SVG font handling.
        Credit to miaubiz.
      - [85003] High, CVE-2011-2347: Memory corruption in CSS parsing. Credit
        to miaubiz.
      - [85102] High, CVE-2011-2350: Lifetime and re-entrancy issues in the
        HTML parser. Credit to miaubiz.
      - [85211] High, CVE-2011-2351: Use-after-free with SVG use element.
        Credit to miaubiz.

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.

This package contains language packages for 54 languages: am, ar, bg, bn, ca, cs, da, de, el, en-GB, es, es-419, et, eu, fa, fi, fil, fr, gl, gu, he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, nb, nl, pl, pt-BR, pt-PT, ro, ru, sk, sl, sr, sv, sw, ta, te, th, tr, ug, uk, vi, zh-CN, zh-TW



Free Ffmpeg Codecs for Chromium Browser:

Versione 12.0.742.112~r90304-0ubuntu0.11.04.1:

  [ Fabien Tassin <fta@ubuntu.com> ]
  * New Minor upstream release from the Stable Channel (LP: #803107)
    This release fixes the following security issues:
    + WebKit issues:
      - [84355] High, CVE-2011-2346: Use-after-free in SVG font handling.
        Credit to miaubiz.
      - [85003] High, CVE-2011-2347: Memory corruption in CSS parsing. Credit
        to miaubiz.
      - [85102] High, CVE-2011-2350: Lifetime and re-entrancy issues in the
        HTML parser. Credit to miaubiz.
      - [85211] High, CVE-2011-2351: Use-after-free with SVG use element.
        Credit to miaubiz.
      - [85418] High, CVE-2011-2349: Use-after-free in text selection. Credit
        to miaubiz.
    + Chromium issues:
      - [77493] Medium, CVE-2011-2345: Out-of-bounds read in NPAPI string
        handling. Credit to Philippe Arteau.
      - [85177] High, CVE-2011-2348: Bad bounds check in v8. Credit to Aki
        Helin of OUSPG.



Clients provided with BIND:

Versione 1:9.7.3.dfsg-1ubuntu2.2:

  * SECURITY UPDATE: denial of service via specially crafted packet
    - lib/dns/include/dns/rdataset.h, lib/dns/{masterdump,message,ncache,
      nsec3,rbtdb,rdataset,resolver,validator}.c: Use an rdataset attribute
      flag to indicate negative-cache records rather than using rrtype 0.
    - Patch backported from 9.7.3-P3.
    - CVE-2011-2464

The Berkeley Internet Name Domain (BIND) implements an Internet domain name server.

BIND is the most widely-used name server software on the Internet, and is supported by the Internet Software Consortium, www.isc.org. This package delivers various client programs related to DNS that are derived from the BIND source tree.

* dig - query the DNS in various ways
* nslookup - the older way to do it
* nsupdate - perform dynamic updates (See RFC2136)



Adobe Flash Player Plugin Installer - transitional package - :

  Versione 10.3.181.34ubuntu0.11.04.1:

  * New upstream release 10.3.181.34 (LP: #803761)
    - debian/config, debian/postinst: Updated sha256sums and path.

Downloads and Installs the Adobe Flash Player plugin. The Adobe Flash Player plugin supports playing of media and other dynamic content online.

The Adobe Flash Player plugin will work with a range of web-browsers including, limited to:

* Firefox
* Chromium
* SeaMonkey
* Iceweasel
* Iceape
* Galeon
* Epiphany
* Konqueror WARNING: Installing this Ubuntu package causes the Adobe Flash

Player plugin to be downloaded from www.adobe.com. The distribution license of the Adobe Flash Player plugin is available at www.adobe.com. Installing this Ubuntu package implies that you have accepted the terms of that license.


Custom Search

Adserver           610x250


If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


rss_trappola

My Favorites

Finance

Logo IWBank gif120x60 banner 9

Antipixel & Counters

Dr.5z5 Open Feed Directory BlogESfera Directorio de Blogs Hispanos - Agrega tu Blog BlogItalia.it - La directory italiana dei blog Software blogs Computers blogs Il Bloggatore Add to Technorati Favorites diigo it Peru Blogs Programming Blogs - Blog Catalog Blog Directory AddThis Social Bookmark Button Find the best blogs at Blogs.com. website counter
Social Bookmarking
Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Linkarena Add to: Favoriten Add to: Seekxl Add to: Kledy.de Add to: Social Bookmarking Tool Add to: BoniTrust Add to: Power Oldie Add to: Bookmarks.cc Add to: Favit Add to: Newskick Add to: Newsider Add to: Linksilo Add to: Readster Add to: Folkd Add to: Yigg Add to: Digg Add to: Del.icio.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Spurl Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Information

Recent Posts