How to install * on Ubuntu and derivatives

This is a list of software installation sources and how to install them in the best conditions possible.

Many softwares are now available as snaps, flatpak or deb depots but some trouble can happen.

  • Sometimes, you want to install this software you love but the functionality you need was implemented in 1.x and the only one version available in official depots is 1.0.
  • Sometimes the Snap need a command to be installed | have the rights to access USB keys or a mounted NTFS file system.
  • Sometimes, the software is only available as an AppImage

Command line are “Plug-and-Play”. Just open the Terminal application and right-click → copy the command, right-click → paste it in the terminal. Press enter and type your password if the system asks. It’s invisible so don’t be surprised if you don’t see what you’re typing 😉

Non-free Video Codecs and Fonts

Reminder : these packages can be illegal in some countries (not france, Québec (Canada), Switzerland, Belgium,…) where software patents are valid. If you are in such a sh*** country, You have to pay for licences like this cra* https://fluendo.com/en/products/multimedia/oneplay-codec-pack/

If you want to use some non-free audio/video formats or the window’s fonts, just type :

sudo install -y ubuntu-restricted-extras

You will have to accept the fonts licence. Move with arrow keys or TAB and press enter to press the “button”.

[collapse]
Troubleshooting

“This PPA version is a disaster !” If anything happends with a PPA, don’t worry just install (if you don’t already have it) :

sudo apt install -y ppa-purge

Now you can use it to remove any ppa with it’s content and replace anything that was changed with official versions !
Example :

sudo ppa-purge ppa:graphics-drivers/ppa

[collapse]
Add flatpak to Ubuntu

To add flatpak support to Ubuntu and it’s “Ubuntu Software”  :

sudo apt install -y flatpak gnome-software-plugin-flatpak && flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && flatpak update

With this, you have Flatpak integration and the main apps repository. Of course, there can be some private ones, but most of them are available here.

[collapse]

Unity3D

Just go on this thread.

Last versions are posted here in .deb format or archive. Just download it and … well double click

or

dpkg -i unity-editor-[xxxxxxversion]

[collapse]

JAVA

You have too options :

1 – OpenJDK. Very compatible, Free

To have the available versions : sudo apt search openjdk

As an example, sudo apt install -y openjdk-11-jre will give you the last runtime (execute .jar softwares) and sudo apt install openjdk-11-jdk will give you the development kit.

1 – Oracle Java. Kind of Open Source but you have to pay to publish softwares.

sudo add-apt-repository -y ppa:linuxuprising/java

Then you can install it the same way you install OpenJdk. sudo apt install -y oracle-java11-installer

[collapse]

Unreal Engine

First, make sure you’re registered. Here are the instructions.

Login on github.com

Now go https://github.com/EpicGames/UnrealEngine/

Click Clone or Download button.

Download the .zip and unpack it. Right-click and open a terminal in the folder you just uncompressed. Generate the project files ./GenerateProjectFiles.sh then make

add the dependencies ./Setup.sh

Now, you can cd Engine/Binaries/Linux/ then ./UE4Editor

You may reach the Max Open Files limit when compiling shaders, or computing lightmaps. A very “unpleasant” problem, not only in Unreal Engine. To fix this once and for all on your system, just execute these two commands :

For graphical process :

echo "DefaultLimitNOFILE=65535" | sudo tee -a /etc/systemd/user.conf && echo "DefaultLimitNOFILE=65535" | sudo tee -a /etc/systemd/system.conf

then for non-graphical process (replace [user] with your user) :

echo "[user] hard nofile 65535" | sudo tee -a /etc/security/limits.conf && echo "[user] soft nofile 65535" | sudo tee -a /etc/security/limits.conf

Now re-connect your session (or reboot) and enjoy your new limit 😉👍

[collapse]

Leave a Reply