|
1 | | -# Setup notes for `ubox2204` |
2 | | - |
3 | | -`ubox2204` is XUbuntu 22.04 VirtuaBox guest in a Windows 11 host # |
4 | | - |
5 | | -_the best Ubuntu flavor is XUbuntu_ |
6 | | - |
7 | | -## Fresh install |
8 | | - |
9 | | -Fresh install is xubuntu-22.04-desktop-amd64.iso virtual machine |
10 | | - |
11 | | -## Virtualbox config |
12 | | - |
13 | | -- bidirectional clipboard/drag'n drop |
14 | | -- 8192 MB RAM / 2 CPU |
15 | | -- 128 MB video memory / 3D acceleration enabled / VMSVGA |
16 | | -- USB 3.0 |
17 | | - |
18 | | -## Guest Additions |
19 | | - |
20 | | -- mount the Guest Additions cdrom and run VBoxLinuxAdditions.run as root |
21 | | - sudo sh /path/to/VobLinuxAdditions.run |
22 | | - |
23 | | -## Configure guest network to work with host VPN |
24 | | - |
25 | | -Tested on CISCO AnyConnect) |
26 | | - |
27 | | -Explained here [https://superuser.com/questions/987150/virtualbox-guest-os-through-vpn/1035327]() |
28 | | - |
29 | | -In quick summary: |
30 | | - |
31 | | -- enabled to network cards in the configuration |
32 | | - - 1) type NAT |
33 | | - - 2) type Host-only |
34 | | -- enabled "allow local (LAN) access when using VPN" in the VPN config |
35 | | - |
36 | | -## Git / devel |
37 | | - |
38 | | -- install basic tools |
39 | | - `sudo apt install git meld gftp rsync curl` |
40 | | - |
41 | | -- GIT configuration |
42 | | - ```bash |
43 | | - git config --global user.name "Mauro Rovezzi" |
44 | | - git config --global user.email "mauro.rovezzi@gmail.com" |
45 | | - git config --global credential.helper "cache --timeout=36000" |
46 | | - #if behind PROXY (example here at ESRF) |
47 | | - git config --global http.proxy http://proxy.esrf.fr:3128 |
48 | | - git config --global https.proxy https://proxy.esrf.fr:3128 |
49 | | - ``` |
50 | | -## Fun stuff |
51 | | - |
52 | | -- Petname: a random combination of adverbs, an adjective, and an animal name `sudo apt install petname` |
53 | | - |
54 | | -## NOT DONE (YET) |
55 | | - |
56 | | -#Building tools |
57 | | -#============== |
58 | | -#package managers |
59 | | -sudo apt install gdebi-core snapd |
60 | | -#basics |
61 | | -sudo apt install dkms build-essential module-assistant autoconf shtool libtool swig |
62 | | -sudo m-a prepare |
63 | | -#GL library/headers |
64 | | -sudo apt install libglu1-mesa-dev freeglut3-dev mesa-common-dev |
65 | | - |
66 | | -#HWE kernel + headers |
67 | | -#==================== |
68 | | -#https://wiki.ubuntu.com/Kernel/LTSEnablementStack |
69 | | -sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04 |
70 | | -sudo apt install kernel-package u-boot-tools |
71 | | - |
72 | | -#Guest Additions |
73 | | -#=============== |
74 | | -sudo apt install virtualbox-guest-dkms-hwe virtualbox-guest-utils-hwe virtualbox-guest-x11-hwe |
75 | | -# ALTERNATIVELY: |
76 | | -# mount the Guest Additions cdrom and run VBoxLinuxAdditions.run as root |
77 | | -#sudo sh /path/to/VobLinuxAdditions.run |
78 | | -# |
79 | | -#GUIDE: How to configure network in the guest OS in order to work with VPN |
80 | | -#https://superuser.com/questions/987150/virtualbox-guest-os-through-vpn/1035327 |
81 | | - |
82 | | -#Bug in missing shared library |
83 | | -#============================= |
84 | | -#https://www.virtualbox.org/ticket/18324 |
85 | | -sudo apt install patchelf |
86 | | -sudo patchelf --add-needed libcrypt.so.1 /opt/VBoxGuestAdditions-6.0.4/lib/VBoxOGLcrutil.so |
87 | | - |
88 | | -#Bug with Qt |
89 | | -#=========== |
90 | | -#https://askubuntu.com/questions/308128/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without |
91 | | -sudo apt install libqt5x11extras5 |
92 | | - |
93 | | -############### |
94 | | -# WEB BROWSER # |
95 | | -############### |
96 | | -sudo apt install firefox |
97 | | -#Add-ons installed: |
98 | | -#- Ghostery (https://addons.mozilla.org/en-US/firefox/addon/ghostery/) |
99 | | -#- Clean Links (https://addons.mozilla.org/en-US/firefox/addon/clean-links-webext/) |
100 | | -#- Forget me not (https://addons.mozilla.org/en-US/firefox/addon/forget_me_not) or Self destructing cookies (https://addons.mozilla.org/en-US/firefox/addon/self-destructing-cookies-webex) |
101 | | - |
102 | | - |
103 | | -######################################### |
104 | | -### TEXT EDITORs/CONVERTERS/UTILITIES ### |
105 | | -######################################### |
106 | | - |
107 | | -#VISUAL STUDIO CODE |
108 | | -sudo snap install code --classic |
109 | | -# Extensions installed directly from code |
110 | | -#- Python |
111 | | -#- markdownlint |
112 | | -#- reStructuredText |
113 | | -#- kite |
114 | | -#- LaTeX Workshop |
115 | | -#- Awesome Emacs Keymap |
116 | | - |
117 | | -#ATOM |
118 | | -wget -O atom-amd64.deb https://atom.io/download/deb |
119 | | -sudo gdebi atom-amd64.deb |
120 | | -#if behind PROXY (example here at ESRF) |
121 | | -#apm config set proxy "http://proxy.esrf.fr:3128" |
122 | | -#apm config set https_proxy "http://proxy.esrf.fr:3128" |
123 | | -#install packages |
124 | | -apm install language-restructuredtext language-latex |
125 | | -apm install sublime-style-column-selection column-select |
126 | | -apm install autocomplete-python python-indent |
127 | | -#in sloth-dev |
128 | | -python -m pip install 'python-language-server[all]' |
129 | | -apm install atom-ide-ui |
130 | | -apm install ide-python |
131 | | -#pip install black |
132 | | -apm install atom-black |
133 | | - |
134 | | -#EMACS |
135 | | -sudo add-apt-repository ppa:ubuntu-elisp/ppa |
136 | | -sudo apt update |
137 | | -sudo apt install emacs-snapshot aspell-en aspell-fr aspell-it |
138 | | -sudo update-alternatives --config emacs #select emacs-snapshot |
139 | | -#ln -s mydotemacsU1804.el .emacs |
140 | | -#starter kit |
141 | | -#https://github.com/bbatsov/prelude |
142 | | -#Emacs as Python IDE: |
143 | | -#http://chillaranand.github.io/emacs-py-ide/ |
144 | | -# |
145 | | - |
146 | | -#latex2rft (best for converting LaTeX to MS Word) |
147 | | -sudo apt install latex2rtf latex2rtf-doc |
148 | | - |
149 | | -#PANDOC |
150 | | -sudo apt install pandoc pandoc-citeproc pandoc-data python-pandocfilters python3-pandocfilters |
151 | | - |
152 | | -#PYCHARM (COMMUNITY EDITION) |
153 | | -sudo snap install pycharm-community --classic |
154 | | - |
155 | | -###################### |
156 | | -### PROXY SETTINGS ### |
157 | | -###################### |
158 | | - |
159 | | -# IN CASE YOU ARE INSTALLING BEHIND A PROXY (ESRF CASE HERE) |
160 | | -# http://askubuntu.com/questions/150210/how-do-i-set-systemwide-proxy-servers-in-xubuntu-lubuntu-or-ubuntu-studio |
161 | | -# set some env variables (add them in your .bashrc) |
162 | | -#export http_proxy=http://proxy.esrf.fr:3128/ |
163 | | -#export https_proxy=http://proxy.esrf.fr:3128/ |
164 | | -#export ftp_proxy=http://proxy.esrf.fr:3128/ |
165 | | -#export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" |
166 | | -#export HTTP_PROXY=http://proxy.esrf.fr:3128/ |
167 | | -#export HTTPS_PROXY=http://proxy.esrf.fr:3128/ |
168 | | -#export FTP_PROXY=http://proxy.esrf.fr:3128/ |
169 | | -#export NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com" |
170 | | -# notify APT of proxy settings: |
171 | | -# - create a file called 95proxies in /etc/apt/apt.conf.d/ |
172 | | -# - include the following: |
173 | | -#Acquire::http::proxy "http://proxy.esrf.fr:3128/"; |
174 | | -#Acquire::ftp::proxy "ftp://proxy.esrf.fr:3128/"; |
175 | | -#Acquire::https::proxy "https://proxy.esrf.fr:3128/"; |
176 | | -#>>> SEE ALSO PROXY SETTING FOR SPECIFIC APPLICATIONS (e.g. git, atom) |
177 | | -# *NOTE*: use 'sudo -E <command>' to export the proxy variables also to root!!! |
178 | | - |
179 | | -######################### |
180 | | -# WORKFLOWS/DIRECTORIES # |
181 | | -######################### |
182 | | -# if migrating from existing machine/install |
183 | | -# -> manually copy 'WinLinShare' to DATA partition |
184 | | -# Links with VirtualBox shared folders |
185 | | -# symbolic link shared folders in $HOME, e.g.: |
186 | | -#cd $HOME |
187 | | -#ln -s /media/sf_WinLinShare/WORK* WORK* |
188 | | - |
189 | | -#local software -> $MYLOCAL |
190 | | -cd; mkdir local |
191 | | -export MYLOCAL=$HOME/local/ |
192 | | -#devel software -> $MYDEVEL |
193 | | -cd; mkdir devel |
194 | | -export MYDEVEL=$HOME/devel/ |
195 | | - |
196 | | -###################### |
197 | | -### CUSTOM .bashrc ### |
198 | | -###################### |
199 | | -echo " |
200 | | -file_to_load="$HOME/devel/software-notes/bash/mydotbashrcU1804.sh" |
201 | | -if [ -f $file_to_load ]; then |
202 | | - source $file_to_load |
203 | | -fi |
204 | | -" >> $HOME/.bashrc |
205 | | - |
206 | | -################ |
207 | | -### SSH KEYS ### |
208 | | -################ |
209 | | -#NOTE: -C is only a comment to identify multiple keys |
210 | | -ssh-keygen -o -t rsa -b 4096 -C "user@machine_virtual" |
211 | | -#(do not enter passphrase) |
212 | | -#Your identification has been saved in $HOME/.ssh/id_rsa. |
213 | | -#Your public key has been saved in $HOME/.ssh/id_rsa.pub. |
214 | | - |
215 | | -#1) copy public key to a server |
216 | | -#ssh-copy-id -i $HOME/.ssh/id_rsa.pub user@host |
217 | | -## or if your server uses custom port number: |
218 | | -#ssh-copy-id -i $HOME/.ssh/id_rsa.pub -p 1234 user@host |
219 | | - |
220 | | -#keep alive ssh connections from client side: |
221 | | -#put the following in ~/.ssh/config (send null package every 100 sec) |
222 | | -#ServerAliveInterval 100 |
223 | | - |
224 | | -#2) copy to gitlab |
225 | | -sudo apt install xclip |
226 | | -xclip -sel clip < ~/.ssh/id_rsa.pub |
227 | | -#paste you key in the web interface |
228 | | -#test if everything works |
229 | | -ssh -T git@gitlab.com |
230 | | -#should get a welcome message |
231 | | - |
232 | | -######### |
233 | | -# CONDA # |
234 | | -######### |
235 | | -cd $MYLOCAL |
236 | | -wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh |
237 | | -bash miniconda.sh -c -p $HOME/local/conda |
238 | | -source $MYLOCAL/conda/bin/activate |
239 | | -conda config --set always_yes yes |
240 | | -conda update -q conda |
241 | | -#conda environments are based on specific .yml files |
242 | | - |
243 | | -############## |
244 | | -### DEVELS ### |
245 | | -############## |
246 | | -cd; cd devel |
247 | | -#software-notes |
248 | | -git clone https://github.com/maurov/software-notes.git |
249 | | -#xraysloth |
250 | | -git clone https://github.com/maurov/xraysloth.git |
251 | | -#+others... |
252 | | -#[...] |
253 | | -#pymca |
254 | | -git clone https://github.com/maurov/pymca.git |
255 | | -cd pymca |
256 | | -git remote add --track master upstream https://github.com/vasole/pymca.git |
257 | | -#silx |
258 | | -git clone https://github.com/maurov/silx.git |
259 | | -cd silx |
260 | | -git remote add --track master upstream https://github.com/silx-kit/silx.git |
261 | | -#xraylarch |
262 | | -git clone https://github.com/maurov/xraylarch.git |
263 | | -cd xraylarch |
264 | | -git remote add --track master upstream https://github.com/xraypy/xraylarch.git |
265 | | - |
266 | | -################ |
267 | | -# COLOR THEMES # |
268 | | -################ |
269 | | -sudo apt install gnome-color-chooser |
270 | | - |
271 | | -#################################### |
272 | | -### GRAPHICS: INKSCAPE & FRIENDS ### |
273 | | -#################################### |
274 | | -sudo add-apt-repository ppa:inkscape.dev/stable |
275 | | -sudo apt update |
276 | | -sudo apt install inkscape xclip graphviz |
277 | | - |
278 | | -################### |
279 | | -### LIBREOFFICE ### |
280 | | -################### |
281 | | -sudo apt-add-repository ppa:libreoffice/ppa |
282 | | -sudo apt install libreoffice-calc libreoffice-dmaths libreoffice-draw libreoffice-math libreoffice-pdfimport libreoffice-l10n-en-gb hunspell-en-gb hyphen-en-gb mythes-en-us libreoffice-help-en-gb libreoffice-l10n-fr libreoffice-script-provider-python libreoffice-style-tango libreoffice-templates libreoffice-voikko libreoffice-wiki-publisher libreoffice-writer libreoffice-writer2latex hunspell-fr hyphen-fr mythes-fr libreoffice-l10n-it hunspell-it hyphen-it mythes-it libxrender1 libgl1 openclipart-libreoffice openclipart-libreoffice pstoedit imagemagick libpaper-utils libreoffice-java-common |
283 | | - |
284 | | -######################### |
285 | | -### TEXLIVE & RELATED ### |
286 | | -######################### |
287 | | -sudo add-apt-repository ppa:jonathonf/texlive |
288 | | -sudo apt update |
289 | | -#A personal sub-selection from texlive-full package |
290 | | -sudo apt install texlive-lang-french texlive-science texlive-science-doc texlive-generic-recommended texlive-latex-extra texlive-formats-extra latexdiff texlive-binaries texlive-base texlive-latex-recommended lcdf-typetools texlive-fonts-recommended-doc texlive-pstricks-doc texlive-font-utils texlive-humanities-doc context texlive-htmlxml texlive-metapost-doc texlive-metapost texlive-pstricks purifyeps dvidvi texlive-generic-extra prosper texlive-publishers fragmaster texlive-lang-italian texlive-fonts-recommended texlive-lang-english texlive-latex-extra-doc prerex texlive-humanities texinfo texlive-xetex texlive-fonts-extra-doc texlive-luatex feynmf texlive-fonts-extra texlive-plain-extra texlive-publishers-doc chktex texlive-extra-utils lmodern tex4ht texlive-pictures-doc psutils tex-gyre texlive-games texlive-latex-base dvipng texlive-omega latexmk lacheck tipa texlive-music texlive-latex-recommended-doc texlive-latex-base-doc texlive-pictures texlive-bibtex-extra t1utils xindy |
291 | | -#install non free fonts as user |
292 | | -wget -q http://tug.org/fonts/getnonfreefonts/install-getnonfreefonts |
293 | | -sudo texlua ./install-getnonfreefonts -a |
294 | | -getnonfreefonts -a --user |
295 | | - |
296 | | -######################### |
297 | | -### REFERENCE MANAGER ### |
298 | | -######################### |
299 | | - |
300 | | -#Mendeley |
301 | | -#======== |
302 | | -cd; cd local |
303 | | -wget http://www.mendeley.com/repositories/ubuntu/stable/amd64/mendeleydesktop-latest |
304 | | -sudo gdebi mendeleydesktop-latest |
305 | | -mendeleydesktop |
306 | | -#Initial setup by simply profiding your login details |
307 | | -#Quit and TRANSFER YOUR LOCAL VERSION |
308 | | -cd $HOME |
309 | | -ln -s /media/sf_WinLinShare/biblio biblio |
310 | | -ln -s /media/sf_WinLinShare/nextCloudCNRS/mendeleyLinux mendeleyLinux |
311 | | -#rsync_cloud2ubox.sh (keep synchronized/backup with cloud - here nextCloudCNRS) |
312 | | -#!/bin/bash |
313 | | -CLOUDDIR="/media/sf_WinLinShare/nextCloudCNRS/mendeleyLinux" |
314 | | -#First sync MendeleyDB because, starting from version 1.7, it does not like the symbolic link |
315 | | -rsync -avz --delete-after $CLOUDDIR/dotLocalShareData/ $HOME/.local/share/data/Mendeley\ Ltd./ |
316 | | -rsync -avz --delete-after $CLOUDDIR/dotLocalShare/ $HOME/.local/share/Mendeley\ Ltd./ |
317 | | -rsync -avz --delete-after $CLOUDDIR/dotConfig/ $HOME/.config/Mendeley\ Ltd./ |
318 | | -rsync -avz --delete-after $CLOUDDIR/dotCache/ $HOME/.cache/Mendeley\ Ltd./ |
319 | | -#PDFs & Co |
320 | | -rsync -avz --delete-after $CLOUDDIR/biblio /media/sf_WinLinShare/ |
321 | | - |
322 | | -################## |
323 | | -### MULTIMEDIA ### |
324 | | -################## |
325 | | -#encoders |
326 | | -sudo apt install ffmpeg mencoder |
327 | | -#VLC & FRIENDS ### |
328 | | -sudo apt install vlc |
329 | | - |
330 | | -#jdownloader |
331 | | -#download JD2Setup_x64.sh from their website |
332 | | -#the install manually: ./JD2Setup_x64.sh (chmod +x first) |
333 | | - |
334 | | -############# |
335 | | -### UTILS ### |
336 | | -############# |
337 | | -# Disk Usage Analyzer |
338 | | -sudo apt install baobab |
| 1 | +2022-06-21: MOVED TO SLOTH -> https://github.com/maurov/xraysloth |
0 commit comments