This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:win10wsl [2022/09/16 15:03] jypeter [Package management] Improved |
other:win10wsl [2022/09/19 13:17] jypeter (Re)moved the old "Adding useful packages" |
||
---|---|---|---|
Line 414: | Line 414: | ||
* {{ :other:wsltty_text_options.png?direct&250 |}} | * {{ :other:wsltty_text_options.png?direct&250 |}} | ||
* You can access even more options with CTRL+right-click | * You can access even more options with CTRL+right-click | ||
- | * You can cycle between the open WSLtty terminals with CTRL+Tab and Shift+CTRL+Tab | + | * Note: the WSLtty (non-default) settings are stored in: ''C:\Users\jypeter\AppData\Roaming\wsltty\config'' |
+ | * You can cycle between the open WSLtty terminals with CTRL+Tab and Shift+CTRL+Tab | ||
* Extra [[https://github.com/mintty/mintty/wiki|technical stuff]] (on the Mintty wiki) | * Extra [[https://github.com/mintty/mintty/wiki|technical stuff]] (on the Mintty wiki) | ||
Line 602: | Line 603: | ||
FIXME [[https://snapcraft.io/docs|Snap documentation]] | FIXME [[https://snapcraft.io/docs|Snap documentation]] | ||
+ | |||
=== Installing extra package managers === | === Installing extra package managers === | ||
Line 631: | Line 633: | ||
* EN: [[https://help.ubuntu.com/community/SynapticHowto|synaptic Howto @ Ubuntu]] | * EN: [[https://help.ubuntu.com/community/SynapticHowto|synaptic Howto @ Ubuntu]] | ||
* FR: [[https://doc.ubuntu-fr.org/synaptic|synaptic @ ubuntu-fr]] | * FR: [[https://doc.ubuntu-fr.org/synaptic|synaptic @ ubuntu-fr]] | ||
+ | |||
=== Some useful commands === | === Some useful commands === | ||
Line 671: | Line 674: | ||
[...]</code> | [...]</code> | ||
+ | |||
+ | === Adding useful packages === | ||
+ | |||
+ | There is not that much installed by default in Ubuntu, and we use ''apt insall'' to get ready for some real work! | ||
+ | |||
+ | <code>$ sudo apt install gcc libglu1-mesa mesa-utils x11-apps xterm xfce4-terminal emacs evince eog imagemagick nco cdo netcdf-bin ncview</code> | ||
+ | |||
+ | Notes: | ||
+ | * Some of the installed packages (''nco cdo netcdf-bin ncview'') are used for handling data files in //NetCDF format// may not be useful to people outside LSCE | ||
+ | * Adding lots of extra packages requires **much more disk space**, and the size of the ''.vhdx'' will increase significantly! | ||
+ | * <code>$ ls -lh /mnt/d/WSL_Distributions/Ubuntu_custom/ext4.vhdx | ||
+ | 4.7G Sep 16 18:02 /mnt/d/WSL_Distributions/Ubuntu_custom/ext4.vhdx</code> | ||
+ | * Size of the [[other:win10wsl#creating_a_backup|backup]] after adding the extra packages: we go from 549 Mb to 1.2 Gb!\\ 1.2G Sep 19 13:52 WSL_Ubuntu_20.04.5_LTS_stdu_22-09-19.tar.gz | ||
==== Using an X server ==== | ==== Using an X server ==== | ||
Line 700: | Line 716: | ||
* FIXME **//X server// and WSL2** : check ''export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0'' in [[https://solvercube.com/how-to-install-ubuntu-20-04-on-windows-using-wsl/|How to install Ubuntu 20.04 on Windows using WSL]] | * FIXME **//X server// and WSL2** : check ''export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0'' in [[https://solvercube.com/how-to-install-ubuntu-20-04-on-windows-using-wsl/|How to install Ubuntu 20.04 on Windows using WSL]] | ||
- | |||
- | ==== Adding useful packages ==== | ||
- | |||
- | Reminder: you need to use the ''root'' account (with ''sudo -s'') in order to use the following commands | ||
- | |||
- | <code>$ apt-get install gcc libglu1-mesa mesa-utils libsm6 x11-apps | ||
- | |||
- | # Check the "Terminals started from Linux" section | ||
- | # if you need to install extra terminals | ||
- | |||
- | # Install emacs | ||
- | $ apt-get install emacs | ||
- | |||
- | # Install pdf (evince) and image (eog) viewers | ||
- | $ apt-get install evince eog | ||
- | |||
- | # Install wslu to improve the Windows<->Linux communication | ||
- | $ apt-get install wslu | ||
- | |||
- | # The packages below are useful for dealing with climate data | ||
- | # in netCDF files (and are also requirements of CLIMAF) | ||
- | $ aptitude install imagemagick nco cdo netcdf-bin ncview exiv2</code> | ||