pastebin - collaborative debugging tool
sammicat.kpaste.net RSS


netset
Posted by Anonymous on Fri 13th Sep 2013 00:56
raw | new post

  1.                                        File: freebsdsetup-OVH.sh
  2.  
  3. #!/bin/sh
  4. ## THIS SCRIPT WAS WRITTEN BY SAMANTHA MICHELLE SMITH. IT MAY BE REDISTRIBUTED TO ANYONE USING FREEBSD AND MODIFIED AT WILL.
  5. ## GODDAMN OVH VERSION WHICH INCLUDES EPIC SEXYTIME SCRIPT FIXING!
  6. echo Welcome to my FreeBSD setup script It's something I wrote to get my environment to what I like after a fresh install. Edit at will
  7. echo First it's time to set up networking because OVH is not metal, they are dildos.
  8. echo;echo -n "  Enter The IP Address: ";read IPADDRCONF
  9. echo;echo -n "  Enter The Gateway: ";read IPGATEWAYCONF
  10. echo;echo -n "  Enter The interface from ifconfig: ";read GODDAMNNETWORKDRIVER
  11. echo;echo -n "  Enter the username you created during install: ";read GODDAMNUSERNAME
  12. echo ifconfig_$GODDAMNNETWORKDRIVER="inet $IPADDRCONF netmask 255.255.255.255 broadcast "$IPADDRCONF" >> /etc/rc.conf
  13. echo static_routes="net1 net2" >> /etc/rc.conf
  14. echo route_net1="-net $IPGATEWAYCONF/32 $IPADDRCONF" >> /etc/rc.conf
  15. echo route_net2="default $IPGATEWAYCONF" >> /etc/rc.conf
  16. echo "nameserver 8.8.8.8" >> /etc/resolv.conf
  17. echo restarting network stack
  18. service network restart
  19. echo Now we're going to get pkgng installed!
  20. pkg
  21. echo Updating pkg and config to PC-BSD repos
  22. cd /usr/local/etc/
  23. fetch http://smsittech.com/scripts/pkg.conf
  24. fetch http://trac.pcbsd.org/export/780f3da562b72643c04b47a59d277102a09abbca/src-sh/pc-extractoverlay/desktop-overlay/usr/local/etc/pkg-pubkey.cert
  25. pkg upgrade -fy
  26. echo Done updating!
  27. echo .................
  28. echo Time to install some shit!
  29. echo installing sudo
  30. pkg install sudo
  31. echo configuring sudo for use by group wheel. Run visudo as root to add more
  32. echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
  33. echo now installing the fish shell
  34. pkg install fish
  35. echo now setting fish as default shell for user $GODDAMNUSERNAME Remove these two lines for other users
  36. chsh -s /usr/local/bin/fish $GODDAMNUSERNAME
  37. echo changing to user $GODDAMNUSERNAME and running environment setup commands
  38. cd /home/$GODDAMNUSERNAME
  39. fetch http://smsittech.com/scripts/fishsetup.sh
  40. fetch http://smsittech.com/scripts/systemupdate.sh
  41. fetch http://smsittech.com/scripts/fullupdatexen.sh
  42. chmod 777 ./fullupdate.sh
  43. chmod 777 ./fishsetup.sh
  44. chmod 777 ./systemupdate.sh
  45. exit

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at