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: 754
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: >> https://debian-handbook.info/browse/stable/installation.html#sect.installation-methods <<
  1. Netinstall https://www.debian.org/CD/netinst/,
  2. Live https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
  3. Recommendation: "non-free" Firmware sources, if the hardware should cause problems during installation. e.g.

In the Debian administration manual >> https://debian-handbook.info/browse/stable/sect.installation-steps.html << is explained in detail with pictures of the installation process.
# Always use the LAN cable connection for Internet connection during installation.
(Or: Devuan GNU+Linux is a fork of Debian without systemd https://devuan.org/ or ... .)

##

Minimum window manager can be useful for audio. XFCE is super because it is minimal and comfortable. With the https://goodies.xfce.org/projects/panel-plugins/xfce4-whiskermenu-plugin and the https://www.xfce-look.org/ e.g. Make XFCE look Modern and Beautiful https://www.youtube.com/embed/GR2y0xOIIdI still customizable. https://packages.debian.org/stretch/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 = https://wiki.debian.org/Microcode ==> https://packages.debian.org/stretch/intel-microcode or https://packages.debian.org/stretch/amd64-microcode.
# https://packages.debian.org/de/stretch/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 https://www.startpage.com/ (or Google) after it. >> "apt-get install firmware-realtek"

##

With the program https://packages.debian.org/de/stretch/software-properties-gtk (or software-properties-kde) you can easily and conveniently keep your system up to date.
And from time to time

Code: Select all

apt-get update && apt-get -y upgrade

perform.

##

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.

##

Multiarch Implementation: https://wiki.debian.org/Multiarch/Implementation
Multiarch lets you install library packages from multiple architectures on the same machine. This is useful in various ways, but the most common is installing both 64 and 32-bit software on the same machine and having dependencies correctly resolved automatically. In general you can have libraries of more than one architecture installed together and applications from one architecture or another installed as alternatives. Note that it does not enable multiple architecture versions of applications to be installed simultaneously.

Installing/removing packages: https://wiki.debian.org/Multiarch/HOWTO#Installing.2Fremoving_packages

##

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 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
Debian-stable dist-upgrade with the KXStudio repository >> https://linuxmusicians.com/viewtopic.php?p=96528#p96528

##

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

# https://packages.debian.org/stretch/jackd2 or https://packages.debian.org/stretch/jackd2-firewire
# https://packages.debian.org/stretch/linux-image-rt-amd64 (or a "lowlatency kernel")
# https://packages.debian.org/stretch/rtirq-init
# (https://packages.debian.org/stretch/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

Code: Select all

Yours@LAW ~/git/realtimeconfigquickscan $ perl -I ./ ./realTimeConfigQuickScan.pl

!

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" (multi-processor machines https://github.com/jackaudio/jack2/blob/master/README), "H/W Monitor", "H/W Meter", "Soft Mode", (RT) "Priority (0 - 99)" (https://linux.die.net/man/1/jackd).)
    Alsa2jack (MIDI):
    install:

    Code: Select all

    a2jmidid

    Setup >> Options >> [X] Run script after startup

    Code: Select all

    sleep 5 && a2jmidid -e &

    # sleep - delay a specified time period

    Setup >> Settings >> Parameters >> MIDI Drivers [none]
    Setup >> Miscellaneous >> [ ] ([none]) Provide support for ALSA sequencer

==> If "timidity" (https://packages.debian.org//stretch/timidity is installed uninstall "timidity". "timidity" occupies the MIDI port and therefore no other program can use MIDI.

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".

>> "tmpfs /tmp tmpfs defaults,size=7500M,mode=1777 0 0" is still useful when you compile a lot. But it has nothing to do with audio/jack. <<

##

(I think one of many good possibilities of all this is that everyone is individual, depending on LAW focus(s), ... and hardware, the combinations of optimizations, distribution desktop selection,... relatively easy to implement.
Since there are - advantages and disadvantages at the same time - relatively many possible combinations, this can be tested out....:pcsuxx: ....
How well all the optimizations are coordinated with each other (or not)... .

Test individually and take what works best for you. Everything - amongst other things 100 % RT - does not have to be better.
It is good to go step by step. Then one recognizes the possible problem originator and can undo thereby the last made.
All audio optimizations are optional. There are several possibilities.)


##

GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info >> https://linuxmusicians.com/viewtopic.php?p=30105#p30105


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

# For example: DeepL develops artificial intelligence for understanding and translating texts. >> https://www.deepl.com/translate

Add-ons:
  1. :: https://github.com/gorhill/uBlock/ ::
  2. :: https://github.com/gorhill/uMatrix ::
    JavaScript blocking can be enabled by manually setting the rule once (adding "* * script block" under Settings, My Rules).
    or
    :: https://noscript.net/ ::
  3. :: https://www.eff.org/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 8 guests