fixes for web compatibility

This commit is contained in:
Luke 2017-11-24 10:08:29 -07:00
parent 1889c2a2fb
commit 778e9e4706
11 changed files with 98 additions and 15 deletions

View File

@ -42,7 +42,7 @@ Blender, etc.).
This is just as easy. Log in as the root user and run the following.
```sh
curl -O http://larbs.xyz/larbs.sh #Downloads the script.
curl -LO http://larbs.xyz/larbs.sh #Downloads the script.
bash larbs.sh #Runs it.
```

View File

@ -59,7 +59,7 @@ pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab
curl http://lukesmith.xyz/larbs/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
curl https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/src/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
cat comp > /mnt/etc/hostname && rm comp

View File

@ -17,5 +17,5 @@ systemctl start NetworkManager
pacman --noconfirm --needed -S grub && grub-install --target=i386-pc /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg
pacman --noconfirm --needed -S dialog
larbs() { curl -O http://larbs.xyz/larbs.sh && bash larbs.sh ;}
larbs() { curl -LO http://larbs.xyz/larbs.sh && bash larbs.sh ;}
dialog --title "Install Luke's Rice" --yesno "This install script will easily let you access Luke's Auto-Rice Boostrapping Scripts (LARBS) which automatically install a full Arch Linux i3-gaps desktop environment.\n\nIf you'd like to install this, select yes, otherwise select no.\n\nLuke" 15 60 && larbs

View File

@ -1,11 +0,0 @@
cat << "EOF"
#" m " " m " m"" " "#
# mmm m m mm#mm mmm mmm mmmmm mmm m mm mm#mm mmm m mm mmm mmm mm#mm mmm mmm mmm #
# " # # # # # # " # # # # #" # # #" # #" # # " # # # #" # # " #
# m"""# # # # # """m # # # # # # # #"""" # # """m # # # #"""" """m #
# "mm"# "mm"# "mm mm#mm "mmm" # # # mm#mm # # "mm "#mm" # # "mmm" mm#mm # mm#mm "#mm" "mmm" #
"" ""
EOF

21
src/todo/chrootp.sh Executable file
View File

@ -0,0 +1,21 @@
#Potential variables: timezone, lang and local
passwd
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock --systohc
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "en_US ISO-8859-1" >> /etc/locale.gen
locale-gen
pacman --noconfirm --needed -S networkmanager
systemctl enable NetworkManager
systemctl start NetworkManager
pacman --noconfirm --needed -S grub && grub-install --target=i386-pc /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg
pacman --noconfirm --needed -S dialog
larbs() { curl -O http://larbs.xyz/larbs.sh && bash larbs.sh ;}
dialog --title "Install Luke's Rice" --yesno "This install script will easily let you access Luke's Auto-Rice Boostrapping Scripts (LARBS) which automatically install a full Arch Linux i3-gaps desktop environment.\n\nIf you'd like to install this, select yes, otherwise select no.\n\nLuke" 15 60 && larbs

69
src/todo/parabola.sh Executable file
View File

@ -0,0 +1,69 @@
#!/bin/bash
#This is a lazy script I have for auto-installing Parabola.
#It's not officially part of LARBS, but I use it for testing.
#DO NOT RUN THIS YOURSELF because Step 1 is it reformatting /dev/sda WITHOUT confirmation,
#which means RIP in peace qq your data unless you've already backed up all of your drive.
pacman -S --noconfirm dialog || (echo "Error at script start: Are you sure you're running this as the root user? Are you sure you have an internet connection?" && exit)
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "This is an Parabola install script that is very rough around the edges.\n\nOnly run this script if you're a big-brane who doesn't mind deleting your entire /dev/sda drive.\n\nThis script is only really for me so I can autoinstall Parabola.\n\nt. Luke" 15 60 || exit
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Parabola.\n\nTo stop this script, press no." 10 60 || exit
dialog --no-cancel --inputbox "Enter a name for your computer." 10 60 2> comp
timedatectl set-ntp true
cat <<EOF | fdisk /dev/sda
o
n
p
+200M
n
p
+12G
n
p
+25G
n
p
w
EOF
partprobe
mkfs.ext4 /dev/sda4
mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
mkdir /mnt/home
mount /dev/sda4 /mnt/home
pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab
curl http://lukesmith.xyz/larbs/chrootp.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
cat comp > /mnt/etc/hostname && rm comp
dialog --defaultno --title "Final Qs" --yesno "Eject CD/ROM (if any)?" 5 30 && eject
dialog --defaultno --title "Final Qs" --yesno "Reboot computer?" 5 30 && reboot
dialog --defaultno --title "Final Qs" --yesno "Return to chroot environment?" 6 30 && arch-chroot /mnt
clear

4
www/.htaccess Normal file
View File

@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Redirect /larbs.sh https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/rc/larbs.sh

View File

@ -29,7 +29,7 @@
<p>In any install of Arch Linux, simply log in as the root user and run the following in the terminal:</p>
<code>
curl -O larbs.xyz/larbs.sh</br>
curl -LO larbs.xyz/larbs.sh</br>
bash larbs.sh