Saturday, December 14, 2013

chroot-photography

7 comments:

  1. $ cat chroot.sh
    #!/bin/bash

    [ "$UID" -ne "0" ] && { echo "ERROR: debe ejecutarse como root" ; exit 1 ; }

    BASE=$(cd $(dirname $0); pwd)

    /bin/cp -f /etc/resolv.conf $BASE/etc/resolv.conf

    BIND_DIRS="/proc /sys /dev /run /tmp"

    for dir in $BIND_DIRS ; do
    DEST="${BASE}${dir}"
    mount | grep -q $DEST
    if [ "$?" -ne "0" ] ; then
    echo " - Montando $DEST"
    mount --rbind $dir $DEST
    fi
    done

    ReplyDelete
  2. $ cat etc/apt/sources.list
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy main restricted
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates main restricted
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy universe
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates universe
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy multiverse
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates multiverse
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-backports main restricted universe multiverse
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security main restricted
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security universe
    deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security multiverse
    deb http://archive.canonical.com/ubuntu saucy partner
    deb http://extras.ubuntu.com/ubuntu saucy main

    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy main restricted
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates main restricted
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy universe
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates universe
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy multiverse
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates multiverse
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-backports main restricted universe multiverse
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security main restricted
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security universe
    deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security multiverse
    deb-src http://archive.canonical.com/ubuntu saucy partner
    deb-src http://extras.ubuntu.com/ubuntu saucy main

    ReplyDelete
  3. $ apt-get install aptitude
    $ aptitude install language-pack-en
    $ locale-gen en_US.UTF-8
    $ aptitude install ubuntu-minimal

    ReplyDelete
  4. $ export INSTALL_PREFIX=/opt/gimp
    $ export PATH=$INSTALL_PREFIX/bin:$PATH
    $ export PKG_CONFIG_PATH=$INSTALL_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
    $ export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib:$LD_LIBRARY_PATH
    $ cd gimp
    $ ./autogen.sh --prefix=/opt/gimp

    ReplyDelete
  5. https://help.ubuntu.com/community/UpdatingADeb

    ReplyDelete
  6. $ vim /etc/apt/apt-build.conf
    $ rm -rf /var/cache/apt-build && mkdir -p /var/cache/apt-build/build /var/cache/apt-build/repository
    $ apt-build build-source libfftw3-3

    ReplyDelete

Note: Only a member of this blog may post a comment.