Skip to content

Instantly share code, notes, and snippets.

@cdown
Last active October 30, 2024 15:12
Show Gist options
  • Select an option

  • Save cdown/5c5b53e1855d7812dfbc to your computer and use it in GitHub Desktop.

Select an option

Save cdown/5c5b53e1855d7812dfbc to your computer and use it in GitHub Desktop.

Revisions

  1. cdown revised this gist Aug 4, 2014. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -42,8 +42,17 @@ apt-get install curl sudo ncurses-term

    groupadd sudo
    useradd -m -G sudo -s /bin/bash chris
    passwd chris

    cat > /etc/sudoers << 'EOF'
    root ALL=(ALL) ALL
    %sudo ALL=(ALL) ALL
    EOF
    EOF

    sudo -iu chris

    apt-get install git

    mkdir ~/git
    git clone git://github.com/cdown/dotfiles.git ~/git/dotfiles
    (cd ~/git/dotfiles && ./setup)
  2. cdown revised this gist Aug 4, 2014. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -38,4 +38,12 @@ dpkg-reconfigure locales

    # optional

    apt-get install curl sudo ncurses-term
    apt-get install curl sudo ncurses-term

    groupadd sudo
    useradd -m -G sudo -s /bin/bash chris

    cat > /etc/sudoers << 'EOF'
    root ALL=(ALL) ALL
    %sudo ALL=(ALL) ALL
    EOF
  3. cdown revised this gist Aug 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -38,4 +38,4 @@ dpkg-reconfigure locales

    # optional

    apt-get install curl sudo
    apt-get install curl sudo ncurses-term
  4. cdown revised this gist Aug 4, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,8 @@ apt-get update && apt-get dist-upgrade
    apt-get install locales
    dpkg-reconfigure locales

    # add name to /etc/hosts

    # optional

    apt-get install curl sudo
    apt-get install curl sudo
  5. cdown revised this gist Aug 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -36,4 +36,4 @@ dpkg-reconfigure locales

    # optional

    apt-get install wget sudo
    apt-get install curl sudo
  6. cdown revised this gist Aug 4, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,8 @@ chroot /opt/debian /bin/bash

    apt-get update && apt-get dist-upgrade
    apt-get install locales
    dpkg-reconfigure locales
    dpkg-reconfigure locales

    # optional

    apt-get install wget sudo
  7. cdown revised this gist Aug 4, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@ DEBOOTSTRAP_DIR=/opt/debootstrap/usr/share/debootstrap /opt/debootstrap/usr/sbin
    mount -t proc proc /opt/debian/proc/
    mount -t sysfs sys /opt/debian/sys/
    mount -o bind /dev /opt/debian/dev/
    mount -o bind /dev/pts /opt/debian/dev/pts/

    cat > /opt/debian/etc/apt/sources.list << 'EOF'
    deb http://ftp.uk.debian.org/debian/ wheezy main non-free contrib
  8. cdown revised this gist Aug 4, 2014. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,12 @@ deb-src http://security.debian.org/ wheezy/updates main non-free contrib

    deb http://ftp.uk.debian.org/debian/ wheezy-updates main non-free contrib
    deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main non-free contrib
    EOF
    EOF

    chroot /opt/debian /bin/bash

    # inside chroot

    apt-get update && apt-get dist-upgrade
    apt-get install locales
    dpkg-reconfigure locales
  9. cdown revised this gist Aug 4, 2014. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,15 @@ DEBOOTSTRAP_DIR=/opt/debootstrap/usr/share/debootstrap /opt/debootstrap/usr/sbin

    mount -t proc proc /opt/debian/proc/
    mount -t sysfs sys /opt/debian/sys/
    mount -o bind /dev /opt/debian/dev
    mount -o bind /dev /opt/debian/dev/

    cat > /opt/debian/etc/apt/sources.list << 'EOF'
    deb http://ftp.uk.debian.org/debian/ wheezy main non-free contrib
    deb-src http://ftp.uk.debian.org/debian/ wheezy main non-free contrib

    deb http://security.debian.org/ wheezy/updates main non-free contrib
    deb-src http://security.debian.org/ wheezy/updates main non-free contrib

    deb http://ftp.uk.debian.org/debian/ wheezy-updates main non-free contrib
    deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main non-free contrib
    EOF
  10. cdown revised this gist Aug 4, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,3 +9,7 @@ tar xf data.tar.gz
    mkdir /opt/debian

    DEBOOTSTRAP_DIR=/opt/debootstrap/usr/share/debootstrap /opt/debootstrap/usr/sbin/debootstrap --arch amd64 wheezy /opt/debian/ http://ftp.uk.debian.org/debian/

    mount -t proc proc /opt/debian/proc/
    mount -t sysfs sys /opt/debian/sys/
    mount -o bind /dev /opt/debian/dev
  11. cdown revised this gist Aug 4, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    pacman -S wget # needed for debootstrap

    curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb
    mkdir /opt/debootstrap
    cd /opt/debootstrap
  12. cdown revised this gist Aug 4, 2014. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,8 @@ curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/deboots
    mkdir /opt/debootstrap
    cd /opt/debootstrap
    ar x /tmp/db.deb
    tar xf data.tar.gz

    mkdir /opt/debian

    DEBOOTSTRAP_DIR=/opt/debootstrap/usr/share/debootstrap /opt/debootstrap/usr/sbin/debootstrap --arch amd64 wheezy /opt/debian/ http://ftp.uk.debian.org/debian/
  13. cdown created this gist Aug 4, 2014.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb
    mkdir /opt/debootstrap
    cd /opt/debootstrap
    ar x /tmp/db.deb