Last active
August 27, 2017 17:06
Revisions
-
couto revised this gist
Dec 18, 2013 . 1 changed file with 1 addition and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -60,13 +60,7 @@ sudo pip2 install mitmproxy ## [Update the hostname](https://wiki.archlinux.org/index.php/Configuring_Network#Set_the_host_name) ``` hostnamectl set-hostname myhostname ``` ## [Add user](https://wiki.archlinux.org/index.php/Users_and_Groups) -
couto revised this gist
Dec 9, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ sudo diskutil unmount /dev/disk2s2 sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` ## Enable IPV6 Before booting the SD in the Raspberry Pi, let's check if `ipv6` is enabled, this was a source of troubles for me, specially when dealing with [ufw](https://help.ubuntu.com/community/UFW), so `cd` into the SD's root: -
couto revised this gist
Dec 9, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,8 @@ sudo diskutil unmount /dev/disk2s2 sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` # Enable IPV6 Before booting the SD in the Raspberry Pi, let's check if `ipv6` is enabled, this was a source of troubles for me, specially when dealing with [ufw](https://help.ubuntu.com/community/UFW), so `cd` into the SD's root: ``` -
couto revised this gist
Dec 9, 2013 . 1 changed file with 9 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,15 @@ sudo diskutil unmount /dev/disk2s2 sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` Before booting the SD in the Raspberry Pi, let's check if `ipv6` is enabled, this was a source of troubles for me, specially when dealing with [ufw](https://help.ubuntu.com/community/UFW), so `cd` into the SD's root: ``` nano /boot/cmdline.txt ``` make sure you have: `ipv6.disable=0` ## [Expand the SD partition](http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119#p18160) Foundation's changed the basic geometry to support the NOOBS install. @@ -30,16 +39,6 @@ If you worry of your's SD life, you should consider read this [answer](http://ra ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) ``` pacman -Syu pacman -S linux-raspberrypi-latest -
couto revised this gist
Dec 7, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,14 +30,16 @@ If you worry of your's SD life, you should consider read this [answer](http://ra ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) _Note_: First, check if `ipv6` is enabled, this was a source of troubles for me, specially when dealing with [ufw](https://help.ubuntu.com/community/UFW). ``` nano /boot/cmdline.txt ``` make sure you have: `ipv6.disable=0` After that: ``` pacman -Syu pacman -S linux-raspberrypi-latest -
couto revised this gist
Dec 7, 2013 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,14 @@ If you worry of your's SD life, you should consider read this [answer](http://ra ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) First, check if `ipv6` is enabled, this was a source of troubles for me, specially when dealing with [ufw](https://help.ubuntu.com/community/UFW). ``` nano /boot/cmdline.txt ``` make sure you have: `ipv6.disable=0` ``` pacman -Syu pacman -S linux-raspberrypi-latest -
couto revised this gist
Dec 7, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,8 @@ sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012. Foundation's changed the basic geometry to support the NOOBS install. For instructions on how to expand the partition please visit this [tutorial](http://jan.alphadev.net/post/53594241659/growing-the-rpi-root-partition) If you worry of your's SD life, you should consider read this [answer](http://raspberrypi.stackexchange.com/questions/169/how-can-i-extend-the-life-of-my-sd-card) on stackexchange, to know more about extending the life of your SD card. ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) ``` -
couto revised this gist
Nov 25, 2013 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -88,4 +88,9 @@ sudo make install ## Security Depending on the use you might want to consider some advice * [Ubuntu tips](http://coderwall.com/p/ybuilq) (ufw is quite useful) ## Other Resources * [Running A Microserver at Home with Raspberry Pi](http://people.virginia.edu/~ll2bf/docs/nix/rpi_server.html) -
couto revised this gist
Nov 23, 2013 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,10 @@ For instructions on how to expand the partition please visit this [tutorial](htt ``` pacman -Syu pacman -S linux-raspberrypi-latest ``` ``` pacman -Sy base-devel pacman -Sy core/dnsutils pacman -Sy extra/python2 -
couto revised this gist
Nov 23, 2013 . 1 changed file with 2 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,38 +23,8 @@ sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012. ## [Expand the SD partition](http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119#p18160) Foundation's changed the basic geometry to support the NOOBS install. For instructions on how to expand the partition please visit this [tutorial](http://jan.alphadev.net/post/53594241659/growing-the-rpi-root-partition) ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) -
couto revised this gist
Sep 16, 2012 . 1 changed file with 1 addition and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,14 +21,6 @@ sudo diskutil unmount /dev/disk2s2 sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` ## [Expand the SD partition](http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119#p18160) SSH into your raspberry pi and run @@ -75,7 +67,7 @@ pacman -Sy extra/python2-pip pacman -Sy extra/python2-lxml pacman -Sy sudo vim zsh sudo pip2 install mitmproxy ``` ## [Update the hostname](https://wiki.archlinux.org/index.php/Configuring_Network#Set_the_host_name) -
couto revised this gist
Sep 12, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,7 @@ sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012. ## [Set the Keyboard Layout](https://wiki.archlinux.org/index.php/KEYMAP) * Assuming you want to use the Portuguese Layout ``` setxkbmap pt ``` -
couto revised this gist
Sep 12, 2012 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,13 @@ sudo diskutil unmount /dev/disk2s2 sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` ## [Set the Keyboard Layout](https://wiki.archlinux.org/index.php/KEYMAP) * Assuming you want to use the Portuguese Layout ``` setxkbmap pt ``` ## [Expand the SD partition](http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119#p18160) SSH into your raspberry pi and run -
couto revised this gist
Sep 10, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -104,7 +104,7 @@ visudo ## Install [Nodejs](http://nodejs.org) from source ``` ln -s /usr/bin/python2 /usr/bin/python git clone git://github.com/joyent/node.git && cd node && git checkout v0.8.8 ./configure --shared-openssl --without-snapshot make -
couto revised this gist
Sep 10, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -104,6 +104,7 @@ visudo ## Install [Nodejs](http://nodejs.org) from source ``` ln -s /usr/bin/python2.7 /usr/bin/python git clone git://github.com/joyent/node.git && cd node && git checkout v0.8.8 ./configure --shared-openssl --without-snapshot make -
couto created this gist
Sep 10, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,116 @@ # ArchLinux on a Raspberry Pi ## [Install the system to the SD card](http://elinux.org/RPi_Easy_SD_Card_Setup#Copying_an_image_to_the_SD_Card_in_Mac_OS_X) Connect the SD card to your computer and open the terminal. * Find the disk id ``` df -h ``` * Unmount the disk ``` sudo diskutil unmount /dev/disk2s2 ``` * Replace `/dev/disk2s2/` with `/dev/rdisk2` (it might not be disk2s2, verify first!) ``` sudo dd bs=1m if=~/Downloads/archlinuxarm-13-06-2012\ 2/archlinuxarm-13-06-2012.img of=/dev/rdisk2 ``` ## [Expand the SD partition](http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119#p18160) SSH into your raspberry pi and run ``` fdisk /dev/mmcblk0 ``` * Delete the second partition ``` Press: d [Enter] 2 [Enter] ``` * Create a new partition and use the default sizes prompted ``` n [Enter] p [Enter] 2 [Enter] [Enter] [Enter] ``` * Save & Exit ``` w [Enter] shutdown -r now ``` * After reboot ``` resize2fs /dev/mmcblk0p2 ``` ## [Update the system & Install Packages](https://wiki.archlinux.org/index.php/Pacman) ``` pacman -Syu pacman -Sy base-devel pacman -Sy core/dnsutils pacman -Sy extra/python2 pacman -Sy extra/python2-pip pacman -Sy extra/python2-lxml pacman -Sy sudo vim zsh pip2 install mitmproxy ``` ## [Update the hostname](https://wiki.archlinux.org/index.php/Configuring_Network#Set_the_host_name) ``` touch /etc/hostname && echo "new-hostname" > /etc/hostname ``` ``` nano /etc/hosts 127.0.0.1 new-hostname.domain.org localhost.localdomain localhost new-hostname ::1 new-hostname.domain.org localhost.localdomain localhost new-hostname ``` ## [Add user](https://wiki.archlinux.org/index.php/Users_and_Groups) * Assuming the username is couto and it has `sudo` privileges [wheel](http://alien.slackbook.org/dokuwiki/doku.php?id=linux:admin#wheel) and uses the `/bin/zsh` shell instead of `/bin/bash` ``` useradd -m -g users -G wheel -s /bin/zsh couto chfn couto passwd couto ``` * to allow the wheel group to have `sudo` privileges: ``` visudo ``` ``` ## Uncomment to allow members of group wheel to execute any command %wheel ALL=(ALL) ALL ``` ## Install [Nodejs](http://nodejs.org) from source ``` git clone git://github.com/joyent/node.git && cd node && git checkout v0.8.8 ./configure --shared-openssl --without-snapshot make sudo make install ``` ## Security Depending on the use you might want to consider some advice * [Ubuntu tips](http://coderwall.com/p/ybuilq) (ufw is quite useful)