Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. username: vm
  2. password: vm
  3. ---------------------------------------------
  4. create new nat-network.
  5. set port forwarding, the the ip the client (vm) uses.
  6.  
  7.  
  8.  
  9. sudo apt-get update
  10. build-essential dkms linux-headers-$(uname -r) openssh-server putty kuser python2.7 python-pip
  11.  
  12. sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
  13.  
  14. sudo EDITOR=gedit visudo
  15.  
  16. vm ALL=(ALL) NOPASSWD: ALL
  17.  
  18.  
  19.  
  20.  
  21. sudo apt-get install ubuntu-dev-tools
  22. sudo apt-get install openssh
  23. sudo apt-get install openssh-server
  24.  
  25. sudo apt-get purge -y libreoffice* thunderbird* pidgin* xchat transmission* totem*
  26.  
  27. sudo apt-get install --assume-yes build-essential dkms linux-headers-generic linux-headers-$(uname -r)
  28. sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
  29.  
  30. sudo apt-get install --assume-yes build-essential dkms linux-headers-$(uname -r) linux-headers-generic
  31. sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h will sure help – Elad Karako 1
  32.  
  33.  
  34. sudo apt-get update
  35. sudo apt-get upgrade
  36. sudo apt-get install
  37.  
  38. sudo apt-get remove openjdk*
  39. sudo apt-get autoremove
  40. sudo apt-get clean
  41.  
  42. sudo add-apt-repository --yes ppa:webupd8team/java
  43. sudo apt-get -y update
  44. sudo apt-get install --assume-yes oracle-java7-installer
  45.  
  46. sudo apt-get install apache2
  47. sudo apt-get install php5 libapache2-mod-php5
  48. sudo sed -i '$s/$/\n&\n&ServerName localhost/' /etc/apache2/apache2.conf
  49. sudo /etc/init.d/apache2 restart
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. First though, lets remove all the old kernels we dont need otherwise the tweaks below will take forever to complete (copy and paste this into a terminal):
  66.  
  67. sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
  68.  
  69. Now lets hide the attempt to load the kernel module causing the TTY switch
  70.  
  71. sudo nano /etc/modprobe.d/blacklist.conf
  72.  
  73. Add the following line to the end of the file and save (CTRL+O following by CTRL+X)
  74.  
  75. blacklist i2c_piix4
  76.  
  77. Next, force plymouth to use the standard boot Framebuffer
  78.  
  79. echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
  80.  
  81. Lastly, lets update stuff to ensure the above changes are recognized in the boot sequence
  82.  
  83. sudo update-initramfs -u -k all
  84.  
  85. Reboot and enjoy.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement