Introduction
This document outlines the steps I took to install Debian stable as the Artbox OS. It may be useful for others attempting a similar installation. Debian Stable was chosen as the Linux platform because GIMP Dev is built on Debian Testing and aims to support building GIMP on Debian Stable.
Backup Your Data
Before installing Debian, make a complete backup of your Home directory on an external drive. Include any other data folders and files you want to keep. If you have Git repositories, push any wanted changes to the origins to easily restore them after the install. Any unsaved data will be lost.
Create a Partition
Create a disk partition on your primary hard drive to install Debian onto. This process has many online guides and various tools, such as GParted. You may need to create a partition from Windows to create a dual-boot machine or reuse an existing partition for Linux. Understand the process specific to your system and needs before proceeding.
Create a USB to Install Debian Stable
Assuming you have created a partition on your primary hard drive for Debian and an appropriate-sized swap partition:
- Download the Debian ISO from the official website.
- On Windows, we can use BalenaEtcher to put the ISO on a USB drive.
- On Linux, we can use a command-line tool to create a bootable USB from the ISO.
Install
- Insert the USB drive into a main USB port.
- Restart and press F2 on the initial screen to access the boot options.
- Select the USB drive to boot from.
- Choose a non-graphical install.
- Skip the root password when asked, leaving it blank, and set a user password on the next section.
- Partition manually:
- Set your spare partition as ext4 journaling.
- Set your swap partition.
- Mount point: /
- Label: linux
- Hostname: name (appears to the right of your terminal prompt user@hostname)
- User account: Your Full Name
- User: name (appears to the left of your terminal prompt)
- Add Cinnamon to the install section for a traditional desktop interface.
- The installation will proceed, and you should have a new Debian Stable OS to set up.
Setup the System
Display Scaling
You may have purchased a 4K monitor to use 4K worth of display, at the moment, Debian Stable does not do fractional scaling in a way that allows this.
An ideal approach to display scaling would be, where the display resolution is retained, and only the GUI elements are scaled up or down to match the desired size. This is often referred to as “resolution-independent” or “high-DPI” scaling.
In this approach, the display resolution remains the same (e.g., 4K), and the GUI elements, such as text, icons, and graphics, are scaled up or down to match the desired size. This way, the display resolution is not compromised, and the GUI elements are rendered at a size that’s comfortable for the user.
Unfortunately, Linux desktop environments have been slower to adopt this approach, and many still use the older method of scaling the display resolution itself, which can lead to the blurriness.
- Avoid fractional display scaling, as Debian Stable does not support it well.
- Instead, use the following workaround:
- Menu -> Search -> Font Selection -> Font Settings -> Text Scaling Factor -> 2.5
- Menu -> Search -> Font Selection -> Desktop Font 14: affects both monitors
- Menu -> Search -> Panel -> Customize -> Panel Height 60
- Menu -> Search -> Panel -> Panel appearance -> Right Zone: Symbolic Icon Size 48px
- Menu -> Search -> Mouse and Touchpad -> Pointer Size and Speed: affects both monitors
- Right-click the 4K monitor Desktop -> Customize: Icon Size Larger
- Firefox: in the address bar -> about:config -> search: layout.css.devPixelsPerPx -> set the value to 1
Terminal
Configure your terminal to your liking:
- Menu -> Search -> Terminal -> Edit -> Preferences
- Text -> Initial Size 140: columns 40 rows
- Text -> Custom font: 140: Monospace 10
- Colours -> Built-in-schemes -> Solarized Dark
Restore Data - User Specific
Restore your backed-up data to the Home directory. For example:
- Backup/Home/Artwork -> Home/Artwork
- Backup/Home/code -> Home/code
- Backup/Home/Desktop -> Home/Desktop
- Backup/Home/.ssh (GitLab keys) -> Home/.ssh (GitLab keys)
- Backup/Home/.config/GIMP -> Home/.config/GIMP
Git
Install Git using the terminal command: sudo apt install git
Configure your Git email: git config --global --edit
GitLab Access
Restore repository access to GitLab or GitHub:
- Change the permissions on the SSH key file:
chmod 600 ~/.ssh/id_rsa
- Add the user to the new Git install:
ssh-add ~/.ssh/id_rsa
- Test the connection:
ssh -T git@ssh.gitlab.gnome.org
orssh -T git@github.com
For each repository, fetch the origins and reset the local branch to match:
git reset --hard remote-name/branch-name
git clean -df
A git status
report on the updated repo should now look normal. This may also need to be done on any submodules.
We now have a new OS with any data and repositories restored. This process is fairly specific to my usage and knowledge of Linux, feel free to offer any suggestions for improving it as a guide.