Linux graphical and no server hints

Formatting and partitioning

install parted on an usb key in linux

-download UNetbootin
– download parted iso
-Use UNetbootin to copy parted in the usb key

Format an usb key

1. Check the device name of the key with :
lsblk
For the example we will suppose that the device is /dev/sda1.
2.Unmount the key if it is mounted with:
umount /media/directory_where_the_key_is_mounted
3.Create the partition if it doesn’t exist
4.Format the partition
sudo mkfs.vfat -F 32 /dev/sda1
5.Optionally give a label to the partition
sudo mkfs.vfat -F 32 -n 'foo_label' /dev/sda1

Start a program at session startup in ubuntu-like os

Create a file suffixed by .desktop, this file will contain the statements to start the program.
For example, to start the program randr at startup with a specific configuration, we can create a randr.desktop file such as:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=xrandr --output DVI-I-0 --off --output DVI-I-1 --mode 1280x1024 --pos 0x0 --rotate left --output HDMI-0 --off --output HDMI-1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal --output DVI-D-0 --off
Name=randr_startup
X-GNOME-Autostart-enabled=true

Helpful programs for graphical linux

– randr: Allows to set the disposition of screens, helpful when we have multiple monitors and
Note: the configuration set is not persisted between reboot, to achieve it we can start the application when the user session is opened and provide as parameters our set configuration.

– redshift: Allows to set the temperature of screen(alternative to flux)
no tools that allows to do that. Contrary to flux, The GUI doesn’t allow to force the color temperature whatever the current time.
To achieve it, we can use a configuration file:~/.config/redshift.conf with the following content:

[redshift]
temp-day=3700
temp-night=370

This one will be used by default when the application is launched.

Ce contenu a été publié dans Non classé. Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *