GNU/Linux Debian installing >> Linux Audio Workstation LAW

Post fully complete "how to" guides and tutorials here. This is a great place to get feedback on stuff you might put in the wiki.

Moderators: khz, MattKingUSA

User avatar
khz
Establlshed Member
Posts: 577
Joined: Thu Apr 17, 2008 6:29 am
Location: German

GNU/Linux Debian installing >> Linux Audio Workstation LAW

Postby khz » Fri Apr 20, 2018 10:07 am

    Install a distribution, for example Debian:

3 - X different installation media are available: >> 4.1. Installation Methods <<
  1. Netinstall https://www.debian.org/CD/netinst/,
  2. Live https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
  3. or "non-free" Firmware sources, if the hardware should cause problems during installation. e.g. https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-cd/ or "iso-hybrid/...".
In the Debian administration manual >> 4.2. Install, step by step << is explained in detail with pictures of the installation process.
# Always use the LAN cable connection for Internet connection during installation.

##

Minimum window manager can be useful for audio. XFCE is super because it is minimal and comfortable. With the Whisker Menu and the Themes e.g. Make XFCE look Modern and Beautiful https://www.youtube.com/embed/GR2y0xOIIdI still customizable.
xfce4-cpufreq-plugin may be useful.

##

For the "non-free" entries after installation in the "/etc/apt/sources.list" add the 2 entries so that "main contrib non-free" is entered. >> https://wiki.debian.org/SourcesList (then a "apt-get update")

##

Install Programs via the package manager or with

Code: Select all

apt-get install foobar-microcode firmware-linux-nonfree

# foobar = Microcode = intel-microcode or amd64-microcode.
# firmware-linux-nonfree

##

If "dmesg" shows something, then install the missing packages.

Code: Select all

Yours@LAW/DAW ~ $ dmesg | grep failed

Example "dmesg" output "firmware: failed to load rtl_nic/rtl8168g-2.fw": Search with Startpage (or Google) after it. >> "apt-get install firmware-realtek"

##

With the program software-properties-gtk (or software-properties-kde) you can easily and conveniently keep your system up to date.

##

External programs:

Code: Select all

dpkg -i program_name.deb

Other programs that are installed differently have usually explained the installation process on their homepage.

##

In Debian you might change the "/etc/apt/sources.list" if you explicitly entered "stretch" (release name) instead of "stable". So you have to log off your user every 3 years, <Ctrl> & <Alt> & <F2>, log in as root in the console, "/etc/init.d/gdm stop" and then enter a

Code: Select all

apt-cache clean && apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get -f -y install

and then the "reboot" computer to stay current. Upgrades from Debian >> https://www.debian.org/releases/stable/arm64/release-notes/ch-upgrading.en.html

##

https://upload.wikimedia.org/wikipedia/commons/1/1b/Linux_Distribution_Timeline.svg
So with Debian a lot is ~like (setup/maintain/install/...) as with *buntu since Debian is the mother.


    Linux Audio Workstation LAW

Install Programs via the package manager or with

Code: Select all

apt-get install jackd2 linux-image-rt-amd64 rtirq-init alsa-firmware-loaders

# jackd2 or jackd2-firewire
# linux-image-rt-amd64 (or a "lowlatency kernel")
# rtirq-init
# (alsa-firmware-loaders)

!
A) limits.conf > Must have! >> https://wiki.linuxaudio.org/wiki/system_configuration#limitsconfaudioconf
B) Nor the http://kxstudio.linuxaudio.org/Repositories (then a "apt-get update").
C) And important: still: https://wiki.linuxaudio.org/wiki/system_configuration#quickscan.
!

Audio (Jack/Pulseaudio/...) configurations:
# http://libremusicproduction.com/articles/ JACK – A Beginners Guide to Getting Started with JACK
# http://bandshed.net/pdf/AVL2018UserManual.pdf >> AUDIO & MIDI IN AV LINUX
# (In e.g. "qjackctl" settings > Advanced: "Server Prefix" select "jackdmp", RT Priority "80"("0 - 99").)

Graphic:
# firmware-linux-nonfree
# http://bandshed.net/pdf/AVL2018UserManual.pdf >> PROPRIETARY VIDEO DRIVERS IN AV LINUX
# Check the XFCE settings.
Is it possible to use only one lowlatency kernel with an Nvidia graphics card / "non-free" driver? Nvidia is torture IMHO.


Installable from KXStudio repositories and others:
default installation of a lowlatency kernel
optional installation of a realtime kernel
So different kernels of Debian and KXStudio can be installed.

##

@realTimeConfigQuickScan
Please read before: https://linuxmusicians.com/viewtopic.php?p=93108#p93108

Code: Select all

** Warning: no tmpfs partition mounted on /tmp

As "root" in the console, add "nano /etc/fstab":

Code: Select all

shm           /dev/shm     tmpfs         nodev,nosuid,noexec      0 0
tmpfs         /tmp         tmpfs         defaults,size=7500M,mode=1777      0 0

("size=7500M" <-- adjusted to your actually built-in RAM, "size=lessM" than actually built-in RAM (M = Megabyte).)
("F2" "yes" "enter") and computer "reboot".

##

GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info


    ########################################


Add-ons:
  1. :: uBlock Origin ::
  2. :: uMatrix ::
    JavaScript blocking can be enabled by manually setting the rule once (adding "* * script block" under Settings, My Rules).
    or
    :: NoScript ::
  3. :: HTTPS Everywhere ::


(For Backports if you want them installed later: https://wiki.debian.org/Backports.
Or:
Select the "Advanced options" >> "expert install" installation. If exotic questions come up - not described in the Debian administration manual "Install, step by step" - you can press "enter" because it is always the ~normal way. At 1 or 2 questions/points you change what: Choose
non-free
(Backports if you want them)
off. So yes, I want to.
Backports are only needed if you want to install programs from the "Debian-testing" branch. This is not absolutely necessary and may cause problems because dependencies have to be disbanded. A dist-upgrade can cause problems. IMHO
)


##

Bla Info:
~* After installation, Linux took up about 5 GB of disk space. With a large number of programs, including audio programs, installed at a later date, approx. 20 - 30 GB or more hard disk space can be used.
~* With laptop ~8 GB SWAP might be good because of "sleep mode"? With the Desktop possibly 2 - 4 GB SWAP, depending upon built in RAM. When 16/32/64/... GB RAM is available you don't need a SWAP.?

~* For a new system with an old "/home" directory on another partition, you should move the old settings (all hidden files "yo@moi ~ $./." in your "/home" directory) to a ".Backup-Bla" folder. Thus all personal settings are reset, Tabula Rasa.
Problems may occur when using a new/different system with the old hidden files "yo@moi ~ $ ./.". E.g. copy mails (Thunderbird folder) etc. in your ".Backup-Bla" folder back to the "/home" directory because they may be important.
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

Return to “HOW TOs, Tips & Tricks”

Who is online

Users browsing this forum: No registered users and 1 guest