Skip to content

Instantly share code, notes, and snippets.

View chattama's full-sized avatar

chattama chattama

View GitHub Profile
@chattama
chattama / gist:3508370
Created August 29, 2012 08:12
archlinux makepkg on ubuntu
sudo aptitude install libarchive-dev bsdtar
git clone git://projects.archlinux.org/pacman.git
cd pacman
./autogen.sh
./configure --disable-doc
make
sudo make install
@chattama
chattama / gist:3443835
Created August 24, 2012 00:11
raspberry pi cross compile (kernel build)
cd ~/raspi
git clone https://github.com/raspberrypi/linux.git
wget http://xecdesign.com/downloads/linux-qemu/linux-arm.patch
patch -p1 -d linux/ < linux-arm.patch
cd ~/raspi/linux
make ARCH=arm versatile_defconfig
@chattama
chattama / gist:3433882
Created August 23, 2012 07:40
raspberry pi cross compile (setup)
sudo aptitude install python-software-properties bison flex texinfo libtool automake libncurses5-dev git subversion gcc gcc-4.6 g++ g++-4.6 make gperf gawk
sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo aptitude update
==============================================================
mkdir ~/raspi
mkdir ~/raspi/cross
@chattama
chattama / .tmux.conf
Created August 13, 2012 02:21
.tmux.conf
# status
set -g status-fg cyan
set -g status-bg black
set -g status-left-length 30
set -g status-left '#[fg=white,bg=black]#H#[fg=white]:#[fg=white][#S#[fg=white]][#[default]'
set -g status-right '#[fg=black,bg=cyan,bold] [%Y-%m-%d(%a) %H:%M]#[default]'
# window-status-current
setw -g window-status-current-fg black
@chattama
chattama / gist:3293085
Created August 8, 2012 07:19
QEMU SystemRescueCd

QEMUでSystemRescueCdを起動

最初のメニューを飛ばして起動

  • standard 32bit kernel
  • "SystemRescueCd with a standard VGA console (no KMS)"
  • keymap=jp

ISOの中からisolinuxフォルダを取り出しておく

@chattama
chattama / gist:3272339
Created August 6, 2012 08:47
QEMU ArchLinuxARM (RaspberryPi)