diff options
| author | tv <tv@nomic.retiolum> | 2013-12-18 22:16:34 +0100 | 
|---|---|---|
| committer | tv <tv@nomic.retiolum> | 2013-12-18 22:16:34 +0100 | 
| commit | b47a1471a74cc9d9b2951216d3558a829d8364f4 (patch) | |
| tree | bc47ae59efa77762193ed123fee89e1dc034be42 | |
| parent | e152f84b84b348070ca31e34c65bc54f07af8b8b (diff) | |
| parent | 3808b2300de3a1cfa25f0c878ce6ef25f96ff504 (diff) | |
Merge branch 'master' of https://github.com/krebscode/painload
| -rw-r--r-- | god/claws/Makefile | 2 | ||||
| -rw-r--r-- | ship/.gitignore | 1 | ||||
| -rwxr-xr-x | ship/src/arch_autoinstall | 44 | 
3 files changed, 34 insertions, 13 deletions
| diff --git a/god/claws/Makefile b/god/claws/Makefile index abfae5eb..5c9bb8e1 100644 --- a/god/claws/Makefile +++ b/god/claws/Makefile @@ -4,7 +4,7 @@  BINARY=./rcontrol  install: all -	ln -snf $$PWD/$(BINARY) ../bin/ +	ln -snf $$PWD/$(BINARY) ../../bin/  all:$(BINARY)  	chown root.root $(BINARY) diff --git a/ship/.gitignore b/ship/.gitignore new file mode 100644 index 00000000..89f9ac04 --- /dev/null +++ b/ship/.gitignore @@ -0,0 +1 @@ +out/ diff --git a/ship/src/arch_autoinstall b/ship/src/arch_autoinstall index 95a72e26..8b2d50a9 100755 --- a/ship/src/arch_autoinstall +++ b/ship/src/arch_autoinstall @@ -4,10 +4,11 @@  #@include color  #@include network  pass=shackit -extra_pkg="xorg vim xfce4 feh chromium zsh sudo git flashplugin alsa-oss alsa-lib alsa-utils grub-bios slim ntp tor network-manager-applet networkmanager openssh" +shack_printer_ip=10.42.0.135 +extra_pkg="xorg vim xfce4 feh chromium zsh sudo git flashplugin alsa-oss alsa-lib alsa-utils grub-bios slim ntp tor network-manager-applet networkmanager openssh cups cups-filters"  info "writing stdout to /tmp/install.log" -exec >>/tmp/install.log +exec | tee -a /tmp/install.log  if find /dev/disk/by-label/ -name ARCH_\* |xargs readlink |grep sda; then      if test -e /dev/sdb; then          #todo: retest or something @@ -75,7 +76,7 @@ info "generating configs"  genfstab -U -p /mnt > /mnt/etc/fstab  info "beginning chroot!" -arch-chroot /mnt >>/tmp/install.log  << EOF +arch-chroot /mnt | tee -a /tmp/install.log  << EOF  msg() { printf "\$*\n" >&2; }  info()  { msg "$green\$*$nc"; } @@ -101,16 +102,35 @@ printf "root ALL=(ALL) ALL\n%s ALL=(ALL) ALL\n" %wheel >> /etc/sudoers  info "configuring slim"  printf "default_user\tshack\nfocus_password\tyes\nauto_login\tyes\n" >> /etc/slim.conf  info "configuring .xinitrc" -printf "nm-applet&\nexec startxfce4\n" >> /home/shack/.xinitrc +printf "exec startxfce4\n" >> /home/shack/.xinitrc + +for i in slim NetworkManager ntpd tor cups; do +    info "enabling \$i" +    systemctl enable \$i +done + +### CUPS +mkdir -p /etc/cups +cat >>/etc/cups/printers.conf<<EOF +<Printer HP_LaserJet_5000_Series> +Info Shack Printer HP 5000 +Location lounge +MakeModel HP LaserJet Series PCL 6 CUPS +DeviceURI socket://$shack_printer_ip +State Idle +StateTime 1387400063 +Type 8400964 +Accepting Yes +Shared No +JobSheets none none +QuotaPeriod 0 +PageLimit 0 +KLimit 0 +OpPolicy default +ErrorPolicy stop-printer +</Printer> +EOF -info "enabling slim" -systemctl enable slim -info "enabling networkManager" -systemctl enable NetworkManager -info "enabling ntpd" -systemctl enable ntpd -info "enabling tor" -systemctl enable tor  info "installing grub"  grub-install ${rootdisk} 2>/dev/null  echo "GRUB_DISABLE_LINUX_UUID=true" >> /etc/default/grub | 
