Score:1

How to install an application from Github?

al flag

a beginner needs your help!

I am looking to install this app on Ubuntu 22.04:

https://github.com/brandizzi/input-device-indicator

However, I have no clue on how to do it - could you help me with step-by-step instructions?

Should I download the whole project first, then execute it?

in flag
Welcome to AskUbuntu. Before instructions can be offered, it’ll be important to know which version of Ubuntu you’re using, as this application doesn’t look to be compatible with each flavour. Could you [edit] your question to include the exact version you’re using?
user535733 avatar
cn flag
It's not just installing. You also need to know how to uninstall it properly. This does not seem a good task for a beginner. Too many things can go wrong when you follow magic shell incantations that you do not understand.
st flag
What's the reason for building it yourself instead of installing the pre-built package?
Gzegoz avatar
al flag
@matigo thank you, edited!
Score:2
ao flag

Looking at the Makefile seems pretty easy:

  1. First you need to make sure you have python and make installed. You can check by running python3 --version and make --version. If you get an error on either of the commands you need to install it.
  2. Clone the repo if you haven't done it already.
git clone https://github.com/brandizzi/input-device-indicator.git
cd input-device-indicator
  1. Create a virtual environment to build the app (unless you want to install the dependencies on your system).
python3 -m venv app-build

PS: You might need to install python3.10-venv package.

apt install python3.10-venv
  1. Activate the virtual environment.
source app-build/bin/activate
  1. Install the dependencies.
pip install -r requirements.txt
pip install -r requirements-dev.txt

Note that you might need to remove the 1st line from the requirements.txt file or just run the following command if you get an error while trying to install it:

cat requirements.txt | tail -n +2 | xargs -n1 pip install
  1. Install the app on your system.
make install_local

Note that on my Ubuntu VM i had to install a few extra packages that were required. I'll leave a command to install them too if you get any errors.

apt install python3-all debhelper dh-python
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.