TEXT   39
Preconditions
Guest on 7th February 2023 01:46:17 PM


  1. # Preconditions:
  2. # - Ubuntu 22.04 (jammy)
  3. # - all "Software Sources" are enabled, including "jammy-updates" in "Developer Options"
  4.  
  5. # The following commands are to be pasted in a root shell
  6. # - to obtain a root shell, type in a terminal the following command: sudo -i
  7. # - to paste a command, just select it then click with the middle button (wheel)
  8.  
  9. # Disable "Phased Updates"
  10.  
  11. echo 'APT::Get::Always-Include-Phased-Updates "1";' > /etc/apt/apt.conf.d/no-phased-updates
  12.  
  13. # We authorize the replacement of files by the packages
  14.  
  15. echo 'DPkg { Options {"--force-overwrite";} }' > /etc/apt/apt.conf.d/overwrite
  16.  
  17. # Update packages
  18.  
  19. apt-update
  20. apt full upgrade
  21.  
  22. # Postcondition: check that the machine is running well with kernel 5.15.0-48 (as of September 12, 2022):
  23.  
  24. uname -a
  25.  
  26. # Removal of old Linux kernels
  27.  
  28. apt install apt-show-versions
  29. apt purge `apt-show-versions | grep available | grep ^linux-`
  30.  
  31. # Install flatpak
  32.  
  33. apt install flatpak
  34. apt-clean
  35.  
  36. # Various
  37. apt install dlocate less p7zip curl gnupg pv
  38. apt-clean
  39.  
  40. # Install editors
  41.  
  42. apt install vim-gtk3 nano micro gedit gnome-text-editor
  43. apt-clean
  44.  
  45. wget "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" -O code.deb
  46. apt install ./code.deb
  47.  
  48. # Installation of the default JRE and JDK (version 11.x)
  49.  
  50. apt install default-jdk default-jdk-doc
  51. apt-clean
  52.  
  53. # Installation of the JRE and JDK 17.x
  54.  
  55. apt install openjdk-17-jdk openjdk-17-doc
  56. apt-clean
  57.  
  58. # Installation of classic GNOME
  59. apt install ubuntu-desktop gnome-session-flashback
  60. apt-clean
  61.  
  62. # Installing KDE/Plasma
  63.  
  64. apt install kubuntu-desktop kate
  65. apt-clean
  66.  
  67. # Software Images and video
  68. apt install gimp gimp-help-fr gimp-help-fr gimp-data-extras gimp-gap inkscape x264 x265 imagemagick mpv
  69. apt-clean
  70.  
  71. # Installing Apache
  72. apt install apache2
  73. apt-clean
  74. # Directory to put websites
  75. mkdir /var/www/html/sites/
  76. chown MY_LOGIN /var/www/html/sites/ # Replace MY_LOGIN with your login name
  77.  
  78. # Check that this URL works: http://localhost/sites/
  79. # and you can put files in /var/www/html/sites/ without being root
  80.  
  81. # EF2 - BD
  82. apt install postgresql postgresql-client dia umbrello pgagent
  83. apt-clean
  84.  
  85. # F. Brunet-Manquat
  86. apt install mysql-server
  87. apt-clean
  88.  
  89. # Mr Mulot
  90. apt install libapache2-mod-php postgresql postgresql-doc php-pgsql
  91. apt-clean
  92.  
  93. # F. Brunet-Manquat
  94. apt install apache2 gcc libapache2-mod-jk
  95. apt-clean
  96.  
  97. # AW - Unspecified module
  98. apt install php-soap
  99. apt-clean
  100.  
  101. # ASSR - MI-1 C programming - V. Roca
  102. apt install gcc clang gdb lldb valgrind
  103. apt-clean
  104.  
  105. # AW - S. Bonhomme
  106. apt install libapache2-mod-php php-pear libxml2-utils firefox
  107. apt-clean
  108.  
  109. # ASSR+AW EF4 - L. Bonnaud
  110. apt install gnome-system-monitor gnome-calculator qdirstat baobab
  111. apt-clean
  112.  
  113. # ASSR ADMIN1 and ADMIN2 - L. Bonnaud
  114. apt install virt-manager qemu-kvm lynx
  115. apt-clean
  116.  
  117. # AW INFO-5+6 - L. Bonnaud
  118. apt install net-tools ethtool wireshark iptables iptstate lynx
  119. apt-clean
  120.  
  121. # Big-Data - All modules
  122. # MongoDB: not available for Ubuntu 22.04 -> use a version for Docker
  123. apt install docker.io
  124. docker sweater mongo
  125. mongo-express docker sweater
  126. # Pandas, scipy, numpy, scikit-learn, ipython
  127. apt install ^python3-pandas.* ^python3-scipy.* ^python3-numpy.* ^python3-sklearn.* ^ipython.*
  128. # R+modules
  129. apt install r-base-dev r-cran-codetools r-doc-html r-recommended
  130. # spreadsheet
  131. apt install libreoffice-calc

Raw Paste

Login or Register to edit or fork this paste. It's free.