-
Notifications
You must be signed in to change notification settings - Fork 3
Installing on Fedora 26 (Python 3 procedure)
As of Fedora 26 (GNOME 3.24.2) the procedure to correctly install Gnome15 and operate a Logitech G110 is as follows. Hopefully, this can serve as something of a guide for users on other distributions and keyboards as well. Ubuntu or other Debian-based distros may not need the symlinking and manual service file copying described after installation, as Gnome15 was originally written to install correctly on those file systems.
- NOTE: G-Kyes apparently do not work correctly under WAYLAND (macro works only inside g15-config app). You need to use X11 in order to have it working.
Recall $ is a regular command and # is a root command (either log in to the terminal as root or prepend each command with sudo
).
Change python version globally, check whether python alternative version is already registered by alternatives command:
# alternatives --list | grep -i python
No output means not alternative python version is configured yet. Register the two above listed python version with alternative command.
# alternatives --install /usr/bin/python python /usr/bin/python3 2
# alternatives --install /usr/bin/python python /usr/bin/python2 1
The above commands will instruct alternatives command to create relevant symbolic links to be used anytime a python command is executed. We have also given python3 a higher priority 2 which means, if no python alternative is selected the python3 will be used as default. After execution of the above commands your python version should change to python3 due to its higher priority.
# python -V
Python 3.6.4
Start with the prerequisites for the drivers and most of the plugins. Some of these you may never need
# dnf install autoconf libtool automake python3-devel libusb-devel kernel-devel elfutils-libelf-devel python3-pyusb python3-uinput python3-keyring python3-virtkey pygobject3 pygobject3-devel python3-alsaaudio python3-feedparser python3-xlib python3-pyxdg python3-lxml lm_sensors python3-pillow python3-setproctitle python3-pyudev python3-vobject dbus-python gstreamer-python python3-cairo python3-inotify fftw-devel pulseaudio-libs-devel dee libunity
# pip install pydbus pysensors
- Python-uinput-0.10.1-10 has a problem where ev.py is empty. To fix this problem, run:
# wget https://raw.githubusercontent.com/tuomasjjrasanen/python-uinput/master/src/ev.py -O /usr/lib64/python3.6/site-packages/uinput/ev.py
Install pyinputevent for python 3:
$ git clone https://github.com/guidugli/pyinputevent.git
$ cd pyinputevent
# python setup.py install --prefix=/usr
$ git clone https://github.com/m-labs/cairoplot3.git
$ cd cairoplot
# python setup.py install --prefix=/usr
Logitech for Linux provides some essential interfacing components. Check the documentation to find out which module you should load for your keyboard model. For example, load the "hid-g110" module for the Logitech G110
$ git clone https://github.com/guidugli/lg4l.git
$ cd lg4l
$ make
# make install
# modprobe hid-g110
# ./rebind
A reboot at this stage is wise; when you log back in, one of the M-key lights on the G110 may be turned on
$ git clone https://github.com/makei/libg15-gnome15
$ cd libg15-gnome15
$ autoreconf -i
$ ./configure
$ make
# make install
The following may be optional, compilation without these icon packs hasn't been tested. You could try without them and see if it works, then update this page accordingly
# dnf install elementary-icon-theme mono-icon-theme monochrome-icon-theme
$ cd /usr/share/icons/
# mv ubuntu-mono-dark/ ubuntu-mono-dark_bkp/
# mv ubuntu-mono-light/ ubuntu-mono-light_bkp/
# ln -s Monochrome-dark/ ubuntu-mono-dark
# ln -s Monochrome-light/ ubuntu-mono-light
Now we've finally installed all the prerequisites, so clone into Gnome15. You may have done this step already, in which case just cd
into the directory and run autoreconf -i -f
to force a clean run. Don't use the enable-icon flags to configure
if you didn't install the icon packs earlier. The indicator program are disabled since they are not written for Gnome3. If you want to enable a system tray icon (left bottom corner of the screen), change the configure command below from --disable-systemtray to --enable-systemtray
$ git clone https://github.com/guidugli/gnome15.git
$ cd gnome15
$ touch ChangeLog
$ autoreconf -i
$ export UDEV_RULES_PATH=/usr/lib/udev/rules.d
$ export DEVICEGROUP=root
$ export DEVICEMODE=0666
$ ./configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-icons-awoken --enable-icons-mono --disable-indicator --disable-plugin-indicator-messages --disable-systemtray
$ make
# make install
You’ll want to see the output of configure listing everything up to about halfway through the plugins as Enabled. If not, figure out the prerequisites of the missing components and install them.
Reboot. Then run:
$ g15-desktop-service
$ g15-config
This should launch Gnome15 for the first time with no problems