Ubuntu: ID-software installation, updating and removal

For Ubuntu, it is most convenient to install ID-software using an automated script.

To do this, you need to first save the script to your hard disk and then run it in the terminal window.

Software installation

  1. Download required script:
    You can find it here: https://installer.id.ee/media/install-scripts/install-open-eid.sh
  2. Open the terminal and find the script directory:
    Open the terminal and navigate to the directory where you saved the installation script using the “cd Folder name” command.
    Don’t add quotes! For example, a navigation command might look like this:
    cd /home/kasutajanimi/Downloads
  3. Run AutoScript
    To start the script, enter the Terminal command: sh install-open-eid.sh and press  Enter.
  4. Enter user password
    There’s nothing going on when you write your password – don’t let it get in the way 🙂 When you have entered the password in the correct format, press Enter.
  5. You will see the question “Do you want to continue?”
    In a few moments, the question “Do you want to continue? [Y/n]” remains on the terminal.
  6. Agree to continue, enter Y on the keyboard and press Enter

If you use a version of Ubuntu supported by ID-software, ID-software should be installed successfully.

NB! Ubuntu 21.10 and 22.04 is installed by default as Firefox SNAP, in which the ID card cannot be used for online authentication and signing.
To resolve the situation in the Firefox browser with an ID card for authentication and signing on the web, you should install the regular version of Firefox.
(Removing Firefox SNAP will remove ALL users’ Firefox profiles. We recommend backing up Mozilla Firefox profiles before removing Firefox SNAP)

Removing Mozilla Firefox SNAP and installing the regular version

  1. For the latest stable version of Firefox, command:

sudo add-apt-repository ppa:mozillateam/ppa

  1. Prefer firefox version over snap version command. Copy the entire command. (Do not copy-paste line by line)

echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox

  1. Remove the Firefox snap version by entering the command:

sudo snap remove firefox

  1. Install Firefox without snap by entering the command:

sudo apt install firefox

  1. To ensure that updates are not reinstalled as a Firefox snap, enter the following command:

echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox

Software update

For security, ease of use and reliability, it is important to keep all software on your computer up to date.

To update the ID-software, open Terminal, type sudo apt-get update && sudo apt-get upgrade and press Enter. After that, enter the password for the computer and then press Enter again. If there is a new version of the ID-software, it is installed on the computer.

Software removal

Removing the software is similar to installing the software – follow the instructions below and everything should go quickly and conveniently!

  1. Download the software removal script.
    You can find it here: https://installer.id.ee/media/install-scripts/uninstall-open-eid.sh
  2. Open the terminal and find the script directory:
    Open the terminal and navigate to the directory where you saved the removal script using the “cd Folder name” command. Don’t add quotes!  For example, a navigation command might look like this:   cd /home/kasutajanimi/Downloads  
  3. Run AutoScript
    To start the script, enter the Terminal command: sh uninstall-open-eid.sh and press Enter.
  4. Enter user password
    There’s nothing going on when you write your password – don’t let it get in the way. When you have entered the password in the correct format, press Enter.
  5. You will see the question “Do you want to continue?”
    In a few moments, the question “Do you want to continue? [Y/n]” remains on the terminal.
    On your screen, it should look like this:
  6. Agree to continue by typing Y on the keyboard and pressing Enter.

Now the ID-software and related packages have been removed from the computer!