Trace: » debian.html

[hemmerling] Debian Linux 1/4

Installation from downloaded DVD ISO Images

Using "Rufus 4.9.2256" on Windows to prepare a USB Stick as Media for Debian, MX Linux Installer, Linux Mint or Debian Live

Drive Properties for Installers

  • Persistant partition size = “0” GB.
  • Partition Scheme: “MBR”.
  • Target system: “BIOS or UEFI”.
  • [x] List USB Hard Drives.
  • [x] Add fixes for old BIOSes ( extra partition, align, ect. ).
  • [_] Enable runtime UEFI media validation.

Drive Properties for Debian Live

  • Persistant partition size = “3” GB.
  • Partition Scheme: “MBR”.
  • Target system: “BIOS or UEFI”.
  • [x] List USB Hard Drives.
  • [x] Add fixes for old BIOSes ( extra partition, align, ect. ).
  • [_] Enable runtime UEFI media validation.
    • UEFI media validation might be very time intensive, thats why there is the option at boot time ”[Press any key to cancel]”.
    • “Debian Live” offers the menu item “Utilities... / Verify integrity of the boot medium”.

Format Options

  • File system: “FAT32 ( Default )”.
  • [x] Quick Format.
  • [x] Create extended label and icon files.
  • [_] Check device for bad blocks.

ISOHybrid Images & DD Mode

  • Rufus message sometimes, when trying to transfer a “Debian 12” or “Debian 12 Live” image to a USB stick:
    The image you have selected is an "ISOHybrid" image.
    (x) Write in ISO Image mode ( Recommended ).
    (_) Write in DD Image mode.
  • I selected “ISO”.
    • “Creating a Bootable Debian USB Flashdrive... To create a bootable USB drive from Microsoft Windows or Mac OS a usable choice is Rufus. Warning: Rufus has 2 writing modes “ISO” and “DD” mode, which you can select just before writing begins. For Debian installer images or Debian live images, you MUST select the “DD” writing modeISO mode will alter the copy of the image on the target media (confirmed August 27, 2021, using rufus version 3.15)”.
    • My experience: Rufus 4.9.2256 doesn't detect ISOHybrid mode of “Debian Live” or “Debian Installer” images and so doesn't offer “DD” mode. But everything works fine :-).

Debian: Selecting the proper Grub Version

  • Rufus message, when trying to transfer a “Debian Live 12.10” image to a USB stick, for the first time:
    Download required.
    This image uses Grub 2.06-13-deb12u1 but the application only includes the installation files for Grub 2.12.
    
    As different versions of Grub may not be compatible with one another, and it is not possible to include them all, Rufus will attempt to locate a version of the Grub installation file ( "core.img" ) that mateches the one from your image.
    
    - Select "Yes" to connect to the Internet and attempt to download it.
    - Select "no" to use the default version from Rufus.
    - Select "Cancel" to abort the operation.
    
    Note: The file will be downloaded in the current application directory and will be reused automatically if present. If no match can be found online, then the default version will be used.
    
  • I selected “Yes”.

MX Linux: Selecting the proper Syslinux Version

  • Rufus message, when trying to transfer a “Arch Linux” image to a USB stick, for the first time:
    This image uses Syslinux 6.03 but the application only includes the installation files for Syslinux 6.04/pre1.
    As new versions of Syslinux are not compatible with one another, and it wouldn't be possible for Rufus to include them all, two additional files must be downloaded from the Internet ( "ldlinux.sys" and "ldlinux.bss" ):
    
      -Select "Yes" to connect to the Internet and download these files.
      -Select "No" to cancel the operation.
    
    Note: The files will be downloaded in the current application directory and will be reused automatically if present.
  • I selected “Yes”.

Linux Mint: Selecting the proper Syslinux Version

  • Rufus message, when trying to transfer a “Linux Mint” image to a USB stick, for the first time:
    This image uses Syslinux 6.04/20240408 but the application only includes the installation files for Syslinux 6.04/pre1.
    As new versions of Syslinux are not compatible with one another, and it wouldn't be possible for Rufus to include them all, two additional files must be downloaded from the Internet ( "ldlinux.sys" and "ldlinux.bss" ):
    
      -Select "Yes" to connect to the Internet and download these files.
      -Select "No" to cancel the operation.
    
    Note: The files will be downloaded in the current application directory and will be reused automatically if present.
  • I selected “Yes”.

Installation of several Debian DVDs from one single USB Stick

  • Does it work, to create first a bootable USB stick by the “Rufus” ISO2USB tool, and then to copy the 2 additonal DVDS into subdirectories “debian2” and “debian3”?
    1. Sufficient disk space on a 14GB USB stick? YES, for Debian 10.7 :-)
    2. Does the installer “aptitude” find the installable applications, if the USB stick is available at ”/media/cdrom/”, by soft link ? Yes, it finds and scans the directories of the 2nd and 3rd DVD ( e.g. “debian2”, “debian3” ), properly :-).

Basic Installation Parameters

Debian

  • Installation Parameters.
    • Language = “English”.
    • Region = “Ireland”. It isn't possible to set “Germany” as region :-(.
    • Keyboard = “Germany”.
  • Debian Gnome app “Settings”:
    • “Automatic Time Zone” = “UTC+2 = CEST ( Berlin, Germany )”.
  • “Detect and mount installation media” - If there is the error message “The detected media cannot be used for installation”, then there is a real hardware / software problem with the USB stick, by which you want to install Linux :-(.
  • “Software selection”.
    • [x] Debian desktop environment.
        • Accepting this selection installs the GNOME desktop environment.
        • Without deselecting the desktop environment, another entry, GNOME included, may be selected. This will install that selection.
        • Unticking Debian desktop environment and selecting a desktop environment leads to the Debian desktop environment set being installed.
    • [x] GNOME.
    • [_] Xfce.
    • [_] GNOME Flashback.
    • [_] KDE Plasma.
    • [_] Cinnamon.
    • [_] MATE.
    • [_] LXDE.
    • [_] LXQt.
    • [x] web server.
    • [x] SSH server.
    • [x] standard system utilities.

MX Linux

  • Samba server is preinstalled, but not yet activated.
  • MX Linux is a “MX Linux Live” system with option for harddisk installation.
    • User: “demo”, password: “demo”.
    • Superuser: “root”, password: “root”.

Linux Mint

  • Linux Mint is a “Linux Mint Live” installation system with option for harddisk installation.
  • Installation option ”[x] install multimedia codecs”

Free RAM Memory

  • Free RAM memory, on Debian systems with additonal installations ( ”[x] web server”, ”[x] SSH server”, ”[x] standard system utilities”:
Desktop free -m cat /proc/swaps Comment
Mem: total Mem: available Swap: used ”/dev/sda5 Used
Debian, GNOME 23909 21883 0 0 Just for comparison :-)
Debian, GNOME 1839 798 0 524
Debian, Xfce 1839 1244 0 0
Debian, GNOME Flashback 1839 795 0 268
Debian, KDE Plasma, gdm3 1839 993 0 0
Debian, KDE Plasma, sddm 1839 1011 0 0
Debian, Cinnamon 1839 743 .. 937 .. 946 0 0 “Mem: available” is instable
Debian, MATE 1839 1254 0 0
Debian, LXDE 1839 1391 0 0 Lowest memory usage :-)
Debian, LXQt 1839 1273 0 0
MX Linux, Xfce 1839 1055 0 0
MX Linux, KDE 1839 970 0 0
MX Linux, Fluxbox 1839 1346 0 0
Linux Mint, Cinnamon 1839 ?? ? 0 0
Linux Mint, Xfce 1839 ? 0 0
Linux Mint, MATE 1839 ? 0 0
  • Attention, the “Mem: available” values at boot time may vary, i.e. must not be the same as in this table, even after a reboot. Especially after some desktop activities ( open a terminal, executing a terminal command,.. ) it decreases.

Swap Space

Modern Swap Space

  • Debian Linux 12.10 sets the swap space to 1 GB filespace, no matter of the size of the computer RAM.

Vintage Swap Space

  • Experts told me in the late 1990th, that even if a PC just has 16 or 32 MByte RAM, the Linux swapspace should be 128 MB on the harddisk.

Resources

    • “CentOS... Swap space should be twice the size of RAM in case the RAM amount is below 2 GB”.
    • “Ubuntu/Debian... If there is less than 1GB of RAM, the swap size should be at least the amount of RAM and, at most, double the amount of RAM. If there is more than 1GB of RAM, the swap size should be at least the square root of the RAM amount and, at most, double the RAM amount.
      cat /proc/swaps
      free -m

Debian Live Install Image

Configuration

  • The update process for “Debian Live 12.10” doesn't work properly: The keyboard is not recognized after a system update :-(. Therefore best is to prevent automatic updates:
    • Desktop app “Software” - Burger menu “Update Preferences”.
      • “Automatic Updates” = “OFF”.
      • “Automatic Update Notifications” = “OFF”.

Timeout

  • Typical often modal window, when operating a “Debian Live” installation from a very-slow device, e.g. a 8 GB USB stick :-(:
    "Firefox ESR" is not responding. 
    You may choose to wait a short while for it to continue or force
    the application to quit entirely.
    BUTTON "Force Quit".
    BUTTON "Wait".
    

Network

Permanent IP4 Address

  • Application “Settings” - “Network / Wired / IP4 /Manual”.
    • Addresses “192.168.178.3”, Netmask “0.0.0.0”, Gateway “192.168.178.1”.

/etc/hosts

  • Add the local hosts name “node1” ( DSL router ) & “node4” ( where the local web server is running ) to ”/etc/hosts” of device “node3”:
    127.0.0.1 localhost 
    127.0.1.1 node3 node3
    192.168.178.1 node4 node1
    192.168.178.4 node4 node4

SSH

SSH Access by Win10Pro

  • “OpenSSH” is optional, preinstalled feature. Check if it is installed by “System ( Settings ) / Optional features” - “OpenSSH Client”.
  • Connect to Debian Linux PC ( 192.168.178.3, “node3” ), default user “node3”
    ssh node3@192.168.178.3
    ssh node3@node3
    

"su", "su -" and "sudo"

PATH

  • Default user:
    $printenv
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    
  • su ( root ):
    $su
    $printenv
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    
  • su - ( root ):
    $su -
    $printenv
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    

Add a user "USERNAME" to the "sudo" group, as first and only user

$su -
Password:
# $apt install sudo
$usermod -aG sudo USERNAME
$getent group sudo

Alternative ( unnecessary complex ? ) Instructions for Debian 10.7

  • Add the USERNAME ( of the user as which you are logged in ) to the group “sudoers”.
    1. ( Open a terminal ).
    2. su root
    3. ( Input root password. root is already member of the group “sudoers” :-) ).
    4. apt-get install sudo -y
    5. su -
    6. adduser username sudo
    7. logout
    8. chmod 0440 /etc/sudoers
    9. exit
    10. sudo reboot
    11. ( Input root password ).
    12. ( reboot manually if “sudo reboot” doesn't work )

How to become "root" on Debian Live Installation

  • “sudo su” & lowercase ( ”-L” ) or lowercase ( ”- -Login” ):
    sudo su -l
    sudo su --login
    

Resources

Package Management & Package Installation

apt-get - Add the CD/DVD with it's proper Title to /etc/apt/sources.list, or comment out the name

  • You may get the error message “Media change: please insert the disc labeled”, by using the “apt-get install PACKAGE” command.
    • One of the reasons might be, that the operating system was installed by USB stick.
    • Fix:
      1. Commenting out the CD/DVD as source for installation at ”/etc/apt/sources.list”. This makes you depend on Internet installation :-(, but the only way to enable successful operation of “sudo apt-get update” :-).
        sudo gedit /etc/apt/sources.list
        
      2. If you add the CD/DVD with it's proper title, installation is done by CD/DVD data, but successful operation of “sudo apt-get update” is disabled :-(:
        apt-cdrom add
        

aptitude

  • “aptitude” is not installed by default, with virgin out-of-the-box Debian Linux 12.10. It is an ANSI / VT100 terminal application, i.e. it runs in textmode.
  • Installation:
    sudo apt-get install aptitude

dpkg-deb

GDebi

  • Installation:
    sudo apt-get install gdebi
    
  • SIMPLE.Wikipedia "GDebi" - “GDebi is a computer program that runs on Linux and can install .deb packages. It is available with a graphical interface, but also has a command line option”.

Synaptic Package Manager

tasksel

Resources

apt-get, apt-cdrom

Package Installation

General Resources

Desktop

Maximize and unmaximize a Window

  • Ubuntu documentation "Maximize and unmaximize a window" - Valid infos for both Debian Linux with GNOME desktop & Ubuntu Linux.
    • There is no button in the application window at the Debian desktop, in opposite to Windows desktop.
    • However, there are function keys to maximize a window, and to return to the individual window size:
      • With “Super” key = “Windows key” on modern PC keyboards:
        • “Windows-Key + Cursur-Up” - Maximize window to desktop size. “Windows-Key + Cursur-Down” - Unmaximize window.
      • “ALT + F10” to toggle between maximized window size and unmaximized window size.

Trash

Applications

Application: Executing Graphical Applications like "gedit" fail, as root in "su -" mode

  • I may start graphical applications like “geedit”, while beeing “su”.
  • If I try to start graphical applications like “geedit”, while beeing “su -”, the program execution is rejected by the error message:
    Gtk-WARNING **: 07:53:29.111: cannot open display:
    

Resources

Editor Applications "nano" & "gedit"

Application: Lua 5.3

  • Lua is shipped on the data DVDs #2 & #3 of Debian Linux 10.7 ( so not on the bootable DVD #1 ) :-).

Application: Calculator

Application: Visual Studio Code

Bootloader "GRUB"

Configuration

  • In my GRUB, the boot order is:
    1. Debian GNU/Linux.
    2. Advanced options for Debian GNU/Linux.
    3. Windows Boot Manager ( on /dev/sb1 ).
    4. UEFI Firmware Settings.
  • Set the “Windows boot Manager” as default. Set the Timeout from 5 to 30 seconds, at ”/etc/default/grub”:
    # GRUB_DEFAULT=0
    GRUB_DEFAULT=2
    
    #GRUB_TIMEOUT=5
    GRUB_TIMEOUT=30
    
    #GRUB_TERMINAL=console 
    GRUB_TERMINAL=console 
    
  • Update the GRUB configuration by
    sudo update-grub
    

Add Boot Option to BIOS ( in case that Windows overwrites the GRUB boot option )

  • In case that Windows overwrites the GRUB boot option, enter the PC BIOS. Now taking the BIOS of my ASUS notebook as example. Use “\”, not ”/”, and don't start the path with “\EFI” but with “EFI”.
    1. “Boot”
      • “Add New Boot Option”.
        1. “Add new boot option” - “GRUB”.
        2. “Select Filesystem” - “Hitachi HTS727575A9E364, \HD(Part1,SigXXXXX”).
        3. “Path for boot option” - “EFI\debian\grubx64.efi”.
      • Select the “Boot Option Priorities” to set “GRUB” as “Boot Option #1”.
    2. “Save & Exit”.
      • “Save Changes”, or “Save Changes and Exit”.

Resources

Reinstallation of GRUB boot option @ UEFI BIOS

General Resources

Rescue Systems, System Rescue, System Recovery

Steps to rescue a Linux system, which does not start in GUI

Resources

 
en/debian.html.txt · Last modified: 2025/07/09 09:29 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki