MX Linux
How to install Node.js
- Copy the content of https://deb.nodesource.com/setup_13.x (check last version here)
- Create a new text file and paste the content
- Add the following lines:
check_alt "MX" "Continuum" "Debian" "stretch"check_alt "mx-linux" "Continuum" "Debian" "stretch"
- Save the file as
setup_13.xand make it ejecutable:chmod +x setup_13.x, then: sudo ./setup_13.xsudo apt install -y nodejs
How to install Gatsby
- Install Node.JS as per instructions above
- Then, issue the command:
npm install -g gatsby-cli
How to enable Systemd
MX Linux ships with systemd present but disabled by default. The MX Linux team strongly urges users to remain with this configuration which uses sysvinit instead.
You can remove the sysVinit option entirely by installing systemd-sysv. That will replace /sbin/init with a symlink to systemd.
sudo apt install systemd-sysv
To revert back to sysVinit option, remove the package systemd-sysv:
sudo apt remove systemd-sysv
To see the table of equivalencies between sysVinit and systemd commands, check this article
How to increase/decrease brightness in MX Linux (XCFE desktop)
Find out the connected display:
$ xrandr -q | grep ' connected' | head -n 1 | cut -d ' ' -f1
In my case, the connected display is HDMI-3. You can now set the brightness with this command (values between 0.0 and 1.0):
$ xrandr --output HDMI-3 --brightness 0.8
How to create a command to change brightness in Debian and alike (MX Linux, etc)
Xrandr allow us to change monitor brightness between the ranges of 0.0 and 0.99 values, being 0.0 total darkness and 0.99 total brightness. We can make a command to set the brightness.
Note: For this work on Fedora, you must disable Wayland and enable Xorg as default GNOME session. Please read intructions here.
- Create a bin directory on your home directory:
$ mkdir bin - Create a file with a text editor inside the newly created bin directory:
$ vi bin/mycommand - Add the following code:
#!/bin/bashdisplay=$(xrandr -q | grep ' connected' | head -n 1 | cut -d ' ' -f1)xrandr --output $display --brightness 0.$1
- Make the file executable:
$ chmod +x bin/mycommand - Edit the file
~/.bashrcand add the following line:export set PATH=$PATH:~/bin - Reboot
Usage example
Set brightness to 0.75:
$ mycommand 75