-
Notifications
You must be signed in to change notification settings - Fork 30
Installation
Eventually there will be pre-built Debian packages to install but for now you'll have to make them yourself.
Use the packages if you can they have many benefits like:
- Keeps track of all the installed files.
- Simplifies the removal of the driver and daemon later.
- Registers with DKMS (Dynamic Kernel Module Support) - this recompiles the driver whenever a new kernel is installed.
Ubuntu 14.04 LTS and 14.10 uses Upstart, an event-based init system replacement (later to be replaced by systemd.
Ideally the best way to install the package is by using the Debian package files provided but until we've reached a stable point they won't exist. For now you'll need to create the packages manually.
First clone the repository and change directory to it.
git clone https://github.com/pez2001/razer_chroma_drivers.git
cd razer_chroma_drivers
Now you'll need to install the dependencies.
sudo apt-get install -y dpkg-dev libdbus-1-dev jq libsdl2-dev libsdl2-image-dev libfftw3-dev
Compile the software
make
Build the package. This will create a debian package in a temporary directory. It will tell you where the deb file is located.
./package_for_ubuntu.sh
Outputs:
dpkg-name: info: moved 'tmp.94GVpsCpjp.deb' to '/tmp/razer-chroma-driver_1.0.0_amd64.deb'
The package has been build, to install it run the following, replacing the path with the one specified by the command above.
sudo dpkg -i /tmp/razer-chroma-driver_1.0.0_amd64.deb
If dpkg
complains about dependencies, try running apt-get install -f
, this should install all dependencies. Once the file is installed and all of its dependencies are met then a reboot is needed.
To remove the driver you can run
sudo dpkg -r razer-chroma-driver
Debian and Ubuntu 15.04 onwards uses systemd, a new init replacement which many major Linux distributions are like RedHat, Fedora etc....
Ideally the best way to install the package is by using the Debian package files provided but until we've reached a stable point they won't exist. For now you'll need to create the packages manually.
First clone the repository and change directory to it.
git clone https://github.com/pez2001/razer_chroma_drivers.git
cd razer_chroma_drivers
Now you'll need to install the dependencies.
sudo apt-get install -y dpkg-dev libdbus-1-dev jq libsdl2-dev libsdl2-image-dev libfftw3-dev
Compile the software
make
Build the package. This will create a debian package in a temporary directory. It will tell you where the deb file is located.
./package_for_debian.sh
Outputs:
dpkg-name: info: moved 'tmp.94GVpsCpjp.deb' to '/tmp/razer-chroma-driver_1.0.0_amd64.deb'
The package has been build, to install it run the following, replacing the path with the one specified by the command above.
sudo dpkg -i /tmp/razer-chroma-driver_1.0.0_amd64.deb
If dpkg
complains about dependencies, try running apt-get install -f
, this should install all dependencies. Once the file is installed and all of its dependencies are met then a reboot is needed.
To remove the driver you can run
sudo dpkg -r razer-chroma-driver
To install the driver and daemon manually is not recommended at all as it will break when you update a kernel.
Firstly install the dependencies which are listing in the sections above and then use the following command to compile the software
make
To install the software use one of the following commands. Debian use the ubuntu_16_04_install
target.
sudo make ubuntu_14_04_install
sudo make ubuntu_14_10_install
sudo make ubuntu_15_04_install
sudo make ubuntu_15_10_install
sudo make ubuntu_16_04_install
sudo make fedora_install
Now reboot and you should be done. To uninstall the driver and daemon run the following command
sudo make uninstall
To update the driver to the latest version (eventually apt-get update/upgrade will work 😉) you will need to remove the currently installed driver using whatever method is relevant. Then you'll need to pull down the latest changes from the repository.
git pull --all
Once you have the latest changes you just install the driver just how it was done previously.