FDIV-Bug

Ubuntu Core Maker (INSIDE) - Alpha 1

Nov 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "Generating en_US.UTF-8 locale..."
  4. locale-gen en_US.UTF-8 > /dev/null
  5.  
  6. echo "Done!!!"
  7. sleep 1
  8.  
  9. echo "Installing Kernel..."
  10. dpkg -i INSTALL/linux-image-* &> /dev/null
  11.  
  12. echo "Done!!!"
  13. sleep 1
  14.  
  15. echo "Creating administrator user..."
  16. echo -n "Name: "
  17. read NAME
  18. adduser $NAME
  19. addgroup $NAME adm > /dev/null
  20. addgroup $NAME sudo > /dev/null
  21.  
  22. echo "Done!!!"
  23. sleep 1
  24.  
  25. echo "Updating package tree..."
  26. apt-get update > /dev/null
  27.  
  28. echo "Done!!!"
  29. sleep 1
  30.  
  31. echo "Installing GRUB2..."
  32. apt-get -y install grub-pc
  33. #echo -n "Device: "
  34. #read DEVICE
  35. #grub-install /dev/$DEVICE
  36. #grub-mkconfig -o /boot/grub/grub.conf
  37.  
  38. echo "Done!!!"
  39. sleep 1
  40.  
  41. echo "Enabling DHCP on eth0..."
  42. echo "auto eth0" >> /etc/network/interfaces
  43. echo "iface eth0 inet dhcp" >> /etc/network/interfaces
  44. echo "" >> /etc/network/interfaces
  45.  
  46. echo "Done!!!"
  47. sleep 1
  48.  
  49. echo "Setting static address for eth1..."
  50. echo "auto eth1" >> /etc/network/interfaces
  51. echo "iface eth1 inet static" >> /etc/network/interfaces
  52. echo "address 10.0.0.30" >> /etc/network/interfaces
  53. echo "netmask 255.255.224" >> /etc/network/interfaces
  54. echo "gateway 10.0.0.30" >> /etc/network/interfaces
  55. echo "" >> /etc/network/interfaces
  56.  
  57. echo "Done!!!"
  58. sleep 1
  59.  
  60. echo "Installing some other packages..."
  61. apt-get -y install nano
  62. sleep 1
  63.  
  64. echo "Done!!!"
  65. sleep 1
Advertisement
Add Comment
Please, Sign In to add comment