My first moves after installing a fresh Linux (Mint).

Linux Mint first move#

First things I do after installing a fresh Linux (Mint)

Table of contents :

Date format#

Right click on the date (from the bottom right toolbar), configure.

Date format : %Y.%m.%d ‧ %H:%M:%S

Personal Everyday Softwares#

First, installing some softwares, using APT :

sudo apt install \
curl \
nfs-common \
keepassxc \
filezilla \
pdfarranger \
exiv2 \
audacity \
mediainfo;

Then, installing other softwares, at their very last version, using Flatpak :

flatpak install org.gimp.GIMP \
org.inkscape.Inkscape \
com.github.tchx84.Flatseal;

Explanations :

DeaDBeeF#

See my DeaDBeeF dedicated page.

yt-dlp#

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp; \
sudo chmod a+rx /usr/local/bin/yt-dlp;

Also see my yt-dlp dedicated page, about the nice stuffs you can do with yt-dlp.

Personal Linux Helpers#

Some little scripts I've made

sudo wget https://codeberg.org/jrm-omg/pixmagic/raw/branch/main/pixmagic.sh -O /usr/local/bin/pixmagic.sh; \
sudo wget https://codeberg.org/jrm-omg/mediaprefixer/raw/branch/main/mediaprefixer2.sh -O /usr/local/bin/mediaprefixer2.sh; \
sudo wget https://codeberg.org/jrm-omg/mediaprefixer/raw/branch/main/mediasubdir.sh -O /usr/local/bin/mediasubdir.sh; \
sudo wget https://codeberg.org/jrm-omg/x264-Expecto-Patronum/raw/branch/main/x264-Expecto-Patronum.sh -O /usr/local/bin/x264-Expecto-Patronum.sh; \
\
sudo wget https://codeberg.org/jrm-omg/audio-encoder/raw/branch/main/audio-encoder.sh -O /usr/local/bin/audio-encoder.sh; \
sudo chmod +x /usr/local/bin/pixmagic.sh; \
sudo chmod +x /usr/local/bin/mediaprefixer2.sh; \
sudo chmod +x /usr/local/bin/mediasubdir.sh; \
sudo chmod +x /usr/local/bin/x264-Expecto-Patronum.sh; \
sudo chmod +x /usr/local/bin/audio-encoder.sh;

Mediaprefixer requires EXIFTOOL#

wget https://exiftool.org/Image-ExifTool-12.59.tar.gz -O /tmp/Image-ExifTool.tar.gz; \
cd /tmp; \
gzip -dc Image-ExifTool* | tar -xf -; \
cd Image-ExifTool*/; \
perl Makefile.PL \;
make -j$(nproc) test \;
sudo make -j$(nproc) install;

x264-Expecto-Patronum requires FFmpeg#

Install it or, even better, compil it !

SMPlayer#

SMPlayer : a video player (based on mpv) that is less buggy and faster than VLC (but taking a little more CPU here for some reasons)

Install the very last version :

flatpak install info.smplayer.SMPlayer

Firefox#

See my Firefox dedicated page

Calibre#

Got any e-reader ? Then grab the latest Calibre ebook file manager & converter :

flatpak install com.calibre_ebook.calibre

Draw.io#

Need to draw diagrams ? Then draw.io (now called diagrams.net) is the perfect free tool for that :

flatpak install com.jgraph.drawio.desktop

Web development (Apache, PHP, MariaDB)#

If you are a web developer, classic but robust style (Apache / PHP / SQL)

sudo apt install git apache2 php php-cli php-common php8.1 libapache2-mod-php8.1 php8.1-xml php8.1-gd php8.1-mbstring mariadb-server php8.1-mysql;

Apache / PHP configuration#

Allow htaccess rewrite :

sudo a2enmod rewrite;

Then limit Apache to your computer, only :

sudo nano /etc/apache2/apache2.conf;

Look for :

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

Replace by :

<Directory /var/www/>
  Options Indexes FollowSymLinks
  AllowOverride All
  <RequireAny>
    Require local
  </RequireAny>
</Directory>

Allow PHP errors

sudo nano /etc/php/8.1/apache2/php.ini;

Find and update those two lines :

error_reporting = E_ALL
display_errors = On

Let's conf MySQL/MariaDB

sudo mysql_secure_installation;

Then :

Then create a superuser (which is different from the previous MySQL root user)

sudo mysql;

And when you have the MySQL/MariaDB prompt (MariaDB [(none)]>), type :

WARNING : please change TYPE_YOUR_PASSWORD_HERE with .. the password of your choice !

CREATE USER 'superman'@'localhost' IDENTIFIED BY 'TYPE_YOUR_PASSWORD_HERE';
GRANT ALL PRIVILEGES ON *.* TO 'superman'@'localhost';
GRANT GRANT OPTION ON *.* TO 'superman'@'localhost';
exit;

Then restart Apache

sudo systemctl restart apache2;

Then give /var/www/html the right permissions

sudo chown -R TYPE_YOUR_LINUX_USERNAME_HERE:www-data /var/www/html && chmod -R g+sw /var/www/html;

Then remove the /var/www/html/index.html preventing us from listing our web projects.

rm /var/www/html/index.html

VSCodium#

Let's install it :

wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
    | gpg --dearmor \
    | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg; \
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \
    | sudo tee /etc/apt/sources.list.d/vscodium.list; \
sudo apt update && sudo apt install codium;

Then configure it following this page.

Disable the Linux Mint Alt keyboard binding#

This is so annoying for VSCodium, let's disable it :

Boom, this is cool, uh ? (this thing used to turn me crazy)

VSCodium extensions#

See my VSCodium dedicated page (français)

Git#

Simply adding our username & password

git config --global user.name "my fantastic username"; \
git config --global user.email "my fantastic email address"

Chromium#

Regarding web development, I'm using Chromium (but only for its great DevTools), and the good news is we don't have to use the Google official spyware version, we can rely on that "UngoogledChromium" :

flatpak install com.github.Eloston.UngoogledChromium

How to keep everything up to date ?#

Here is the magical one line command to keep our linux up to date :

sudo apt update && sudo apt upgrade && sudo apt autoremove && flatpak update

That's it, one line !

Credits#

"Mint" by Ian Dick is licensed under CC BY 2.0.

This page was last edited on , generated from this markdown. Content is available under the Creative Commons CC BY-SA 3.0 License unless otherwise noted. This site is ad-free and contains no third party cookies or tracking, just as the Web should remain.
HomepageBack to top