Setup ergoCub Screen
Info
This procedure applies only to ergocub-head and must be performed after the JetPack installation has been completed.
When you start the ergoCub head for the first time, the screen will display a desktop showing the NVIDIA logo. While this is generally fine, it requires the user to manually run the ergoCubEmotions module. This procedure allows you to hide all bars on the desktop and set the wallpaper to one of the images stored in the expressions folder.
Install GNOME Shell Extensions
In order to hide the top bar and remove notifications, you need to install the required GNOME Shell extensions. Follow these steps:
Download the Extensions
You'll need to download the extensions from the GNOME Shell Extensions website:
- Visit https://extensions.gnome.org/ in your browser
-
Search for and download the extensions you need (e.g., extensions for hiding the top bar and managing notifications). Currently it is used to install the 2 following extensions:
-
Download the
.zipfiles to your local machine. It is important to select the exact version depending on your gnome shell version (check the table on the bottom of the download page)
Install Extensions on ergocub-head machine
Once you have downloaded locally you need to install the extension on the ergocub-head machine
-
Copy using the
scpcommand the.zipfile in theergocub-headfilesystem (e.g in thehomedir or in temporary directory) -
Navigate to the extensions directory (if it is not present you can just create it):
mkdir -p ~/.local/share/gnome-shell/extensions cd ~/.local/share/gnome-shell/extensions -
Extract the extension to this directory. The folder name must match the extension's UUID (you can find this in the
metadata.jsonfile inside the zip):unzip -d extension-name /path/to/extension.zip -
Find the extension UUID by checking the
metadata.jsonfile:cat ~/.local/share/gnome-shell/extensions/extension-name/metadata.json | grep '"uuid"' -
Rename the extension folder if needed to use its UUID as the folder name:
mv extension-name <UUID> -
Restart GNOME Shell (on X11, press Alt+F2, type r, and press Enter) or log out and back in to apply changes
-
Enable the extension using GNOME Settings or via the command line:
gnome-extensions enable <UUID>
Alternative: Install via Web Browser
The easiest method is to install extensions directly from extensions.gnome.org:
- Visit the extension page on the website
- Click the toggle switch to install
- When prompted, confirm the installation
- The extension will be automatically installed and integrated into GNOME Shell
For more detailed information, refer to: - Official guide: https://itsfoss.com/gnome-shell-extensions/ - Manual installation guide: https://www.pragmaticlinux.com/2021/06/manually-install-a-gnome-shell-extension-from-a-zip-file/
Hide the Ubuntu Bar
This guide is based on these instructions.
-
Create a script in the
ergocub-headhome directory:#!/bin/bash status1=$(gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval string:'Main.panel.actor.visible;') status2=$(gdbus call --session --dest org.gnome.Shell.Extensions --object-path /org/gnome/Shell/Extensions --method org.gnome.Shell.Extensions.GetExtensionInfo ubuntu-dock@ubuntu.com | grep "'state': <2.0>" >/dev/null && echo "OFF" || echo "ON") if [ "$status1" == "(true, 'false')" ]; then gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.actor.show();' else gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.actor.hide();' fi if [ "$status2" == "ON" ]; then gdbus call --session --dest org.gnome.Shell.Extensions --object-path /org/gnome/Shell/Extensions --method org.gnome.Shell.Extensions.DisableExtension ubuntu-dock@ubuntu.com else gdbus call --session --dest org.gnome.Shell.Extensions --object-path /org/gnome/Shell/Extensions --method org.gnome.Shell.Extensions.EnableExtension ubuntu-dock@ubuntu.com fi -
Run the script to toggle hiding or showing the bars.
Change the Desktop Wallpaper
-
SSH into the
ergocub-headand use the following command to set the wallpaper:gsettings set org.gnome.desktop.background picture-uri <uri-of-the-wallpaper> -
If ergocub-software is installed via the robotology-superbuild, you can use this command:
gsettings set org.gnome.desktop.background picture-uri file:///usr/local/src/robot/robotology-superbuild/src/ergocub-software/src/modules/ergoCubEmotions/expressions/images/exp_img_1.png
Clean the Icons from the Desktop
-
Create a folder in the home directory to store the desktop files:
mkdir ~/all_desktop -
Move all files from the desktop to the newly created folder:
mv ~/Desktop/* ~/all_desktop/