├── README.md ├── LICENSE └── install.sh /README.md: -------------------------------------------------------------------------------- 1 | # Boot Arch Linux from the hard disk 2 | 3 | [![Join the chat at https://gitter.im/0xicl33n/twitchinstalls](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/0xicl33n/twitchinstalls?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 4 | 5 | ## Chat command 6 | ``` 7 | dot 8 | space 9 | < 10 | ( 11 | c 12 | u 13 | r 14 | l 15 | space 16 | o 17 | g 18 | dot 19 | l 20 | c 21 | ) 22 | enter 23 | ``` 24 | 25 | ``` 26 | . <(curl og.lc) 27 | ``` 28 | 29 | ### backup command 30 | 31 | ``` 32 | . <(curl -L goo.gl/enfFVV) 33 | 34 | ``` 35 | 36 | ## Which downloads and runs 37 | 38 | ``` 39 | https://raw.githubusercontent.com/fiws/install-arch/master/install.sh 40 | ``` 41 | 42 | # Install a gameboy emulator and start Twitch Installs Arch to Play Pokemon! 43 | 44 | ``` 45 | . <(curl -L goo.gl/nRpXsN) 46 | 47 | ``` 48 | 49 | ## Which downloads and runs 50 | 51 | ``` 52 | https://raw.githubusercontent.com/0xicl33n/twitchinstalls/master/twitchplays 53 | ``` 54 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Filip Weiss 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Arch Linux Bootstrap Script 4 | # 5 | # See comments below for running 6 | # 7 | 8 | #no control-c fam sorry 9 | trap '' 2 10 | 11 | #Get the disk 12 | if [ -b /dev/sda ]; then DISK="/dev/sda"; else DISK="/dev/vda"; fi 13 | 14 | # Partition all of main drive 15 | echo "n 16 | p 17 | 1 18 | 19 | 20 | w 21 | "|fdisk $DISK 22 | 23 | # Format and mount drive 24 | mkfs -F -t ext4 $DISK"1" 25 | mount $DISK"1" /mnt 26 | 27 | # Install base system, fstab, grub 28 | pacstrap /mnt base base-devel 29 | genfstab -pU /mnt >> /mnt/etc/fstab 30 | pacstrap /mnt grub-bios 31 | 32 | # Keyboard, locale, time 33 | arch-chroot /mnt /bin/bash -c ' 34 | if [ -b /dev/sda ]; then DISK="/dev/sda"; else DISK="/dev/vda"; fi 35 | echo "KEYMAP=us" > /etc/vconsole.conf 36 | echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen 37 | echo "LANG=en_US.UTF-8" > /etc/locale.conf 38 | ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime 39 | locale-gen 40 | sudo hwclock --hctosys --localtime 41 | 42 | # Set the root password 43 | echo "root:1" | chpasswd 44 | 45 | # Install Grub 46 | grub-install --recheck $DISK"1" 47 | echo GRUB_DISABLE_SUBMENU=y >> /etc/default/grub 48 | grub-mkconfig -o /boot/grub/grub.cfg 49 | 50 | # Ensure DHCP service can start 51 | systemctl enable dhcpcd.service 52 | 53 | # block bad commands 54 | alias rm="echo Bad command!">> ~/.bashrc 55 | alias dd="echo Bad command!">> ~/.bashrc 56 | ' # END OF CHROOT 57 | 58 | umount -R /mnt 59 | reboot 60 | --------------------------------------------------------------------------------