AV Linux 6.04 Manual
AV Linux 6.04 Manual
AV Linux 6.04 Manual
10
USER MANUAL
A Guide to Get Acquainted with AV Linux
Prepared by Glen MacArthur, October 22/2014
Legal Disclaimer:
Debian/GNU Linux comes with no guarantee so neither does AV Linux. I accept no responsibility for any hardware/software
malfunctions or data loss resulting from it's use. It is important to note that the AV Linux ISO contains software that is non-free and is
distributed under a special licensing arrangement with the original developers, re-distributing the AV Linux ISO with the non-free
content included is a violation of these licenses. AV Linux also contains Multimedia Codecs that may be under patent in certain
countries, it is the users responsibility to know the law as it applies to their own respective country before downloading or installing.
TABLE OF CONTENTS:
Page 3. - PREFACE
Page 4. - THE AV LINUX STORY
Page 5. - CREDITS & CONTACT
Page 6. - THE CONCEPT OF AV LINUX
Page 7. - RUNNING AV LINUX LIVE
Page 10. - AV LINUX BASIC BOOTING BIBLE
Page 11. - INSTALLING AV LINUX
Page 12. - GETTING AROUND IN AV LINUX
Page 23. - SLiM LOGIN MANAGER
Page 24. - PERFORMANCE SETTINGS
Page 25. - PROPRIETARY VIDEO DRIVERS IN AV LINUX
Page 31. - MONITOR AND DISPLAY SETTINGS
Page 33. - COMPIZ WINDOW MANAGER
Page 34. - AV LINUX KERNELS
Page 35. - KERNEL CHEATCODES
Page 36. - AV LINUX SOFTWARE
Page 37. - INSTALLING SOFTWARE IN AV LINUX
Page 41. - WHERE TO FIND UPDATED PACKAGES
Page 42. - NETWORKING WITH AV LINUX
Page 43. - PRINTING WITH AV LINUX
Page 48. - USING JACK
Page 50. - MANAGING MIDI IN AV LINUX
Page 51. - USING THE ALOOP DAEMON
Page 52. - M-AUDIO 1010LT PCM_MULTI WITH AV LINUX
Page 53. - DEBIAN REFERENCE
Page 57. - HANDY TERMINAL COMMANDS
Page 58. - THANKS FOR SUPPORTING AV LINUX
Linux blurs the line somewhat between the end-user and the developer and therefore doesn't
shy away from featuring it's basic operational face known as the Console or Terminal. Certainly
efforts over the past several years have molded Desktop Linux into as user-friendly a platform
as any but to fully enjoy all Linux has to offer it is somewhat incumbent on the user to have at
least a casual interest in what happens on both sides of the computer screen.
Although Linux at it's core is a curious symbiotic mixture of Community and Corporate interests
for the most part the Linux Multimedia applications within AV Linux are developed by volunteer
developers from all over the world. Many of these generous and talented people are doing
their work out of the purest motive...the love of doing it. Because the motivation is not
primarily financial end-users sometimes have a problem differentiating their personal
expectations from those that would be usual when looking at things from a 'paying customer'
perspective. FLOSS developers are giving the end user something much greater than software,
they are sharing their most vital asset...time. It is very easy to take this fact for granted and
certainly someone who is showing such generosity should be equally paid back with patience
and respect. 'Free' doesn't indicate an absence of financial support, many projects are in dire
need of financial support to encourage and enable their developers to continue. 'Free' should
be seen as 'politically free' and the user's choice to decide what projects they wish to support
and how they wish to do it.
The primary method of hardware support on the Linux platform is through that magical bundle
of code known as the Kernel. It is truly amazing the sheer total number of various pieces of
computer hardware that are natively supported without ANY outside or 3 rd party drivers.
Having said that it is certainly not reasonable to expect that Linux will 100% support ALL
available hardware or even have an equal degree of stability with all hardware that is
supported. The ground rules for building an effective Audio/Video Workstation with Linux are
really no different than on any other platform. All PC's are not created equal and certainly not
all are suited to professional level multimedia content creation. If you are serious about
optimizing your success with AV Linux then some care should be taken to select well supported
Audio/Video hardware for Linux.
**These guidelines are informed by a mixture of opinion and experience and are offered as such.
Thanks to:
My wonderful wife and kids for their infinite patience and encouragement.
Debian/GNU Linux, Debian pkg-multimedia team, LXDE, Tony Brijeski (Remastersys), RevLinux
(geekconnection.org), Trulan Martin (Firewire guru, AV Linux Kernel Dev.), Allen Tate (Torrent and
tracker), Mike Start (linuxDSP), damentz (Liquorix Kernels), Dan MacDonald (Complaints Dept.)
Michael Bohle (BEAT Magazine), Christian Marillat (Deb-Multimedia.org) Paul Davis and development
team (Ardour), Ben Loftis, Todd Naugle (Harrison Mixbus), Rui Nuno Capela (Qjackctl, Qsampler,
Qsynth, Qtractor), Matt Weatherford (WinFF), Jonathan Thomas, Andy Finch (Openshot), Hermann
Meyer, James Warden, Andreas Degert (Guitarix), Gabriel Finch (LiVES), Dan Dennedy (MLT),
i2productions (Linux in Review), Dave Phillips (Linux Journal), falkTX (KXStudio), Grooveschmied
(German Translation), Edward Diehl (ISO Testing)
Applications using the AV Linux ISO Image as a Demo LiveDVD:
Cinelerra - http://cinelerra-cv.org/getting_cinelerra.php
Openshot Video Editor - http://www.openshotvideo.com/2008/04/download.html
LiVES Video Editor - http://lives.sourceforge.net/index.php?do=downloads
Guitarix - http://guitarix.sourceforge.net/
Commercial Software Demo Permissions Provided by:
Mike Start - linuxDSP Audio Plugins
Julien Pommier - Pianoteq
Colin Barry - Loomer Plugins
Andy Robinson Transcribe!
Edouard Muller - Renoise
Graphic Credits:
Default Theme 'diehard4' by obscurant
Default Wallpaper 'AV-Logo-Diehard-Background' by GMaq
Icon Theme - Faenza Icons by tiheum including Faenza-Fresh by funnyguy
Cursor Themes Pulse Glass by Kuduk, Picks by starcycle
Manual Fonts This Manual uses 'Ubuntu' and 'Ubuntu Mono' fonts
AV Linux Resources:
Manual http://www.bandshed.net/pdf/AV604Manual.pdf
Website http://www.bandshed.net/AVLinux.html
Forum - http://geekconnection.org/remastersys/forums/index.php#7
Email [email protected] *DO NOT USE EMAIL FOR TECH-SUPPORT!
LiveDVD:
Burn the ISO file to a DVD-R or RW using your existing Burning Software
Set your Computer BIOS to Boot from your DVD Drive if it doesn't by default
Reboot into the AV Linux LiveDVD
10
INSTALLING AV LINUX
WARNING! - The following section involves major system changes like hard drive partitioning etc.
There is always a risk of Data loss or corruption when installing a new or different Operating
System. ALWAYS back up any important Data before making changes to your existing Hard Drive.
If you are completely unfamiliar with the concept of drive partitioning, or terms like Master Boot
Record it is recommended that you dont attempt to install AV Linux.
Installation Info:
Launch the Remastersys Installer from the desktop by right-clicking on the Desktop Installer Icon. AV
Linux uses 'GParted' to perform disk partitioning, you can choose to set up partitions before running
the Installer or do it as part of the installation process. The Installer is laid out in a very simple step by
step manner, take your time and carefully read the Installer prompts to ensure a successful install.
Please also take time to read the rest of this section before installing.
PLEASE NOTE! AV Linux does not use 'sudo' it uses the pure Debian Root Superuser and User method.
When installing and setting up AV Linux you will need to have a separate and unique password for your
Root Superuser to administrate the system and a regular User password for normal system use.
11
12
13
14
15
AV Linux 6.0 introduced Nautilus from Gnome 2 as the default file manager. Nautilus is utilized without
having it manage the Desktop in order to keep the usage of system resources to a minimum. It is fullyfeatured and great for networking as well as loaded with options like Audio and Video thumbnails.
Perhaps most interesting is the extensibility of Nautilus provided by it's support of scripts. AV Linux
6.0.4 provides Nautilus with a pre-installed collection of handy system administration scripts. It is
important to note that Nautilus has a fully functional trash function unlike the previous PCManFM file
manager used by AV Linux.
Two useful menus in Nautilus are the 'Scripts' Menu (accessed by right-clicking in the file window):
16
Nautilus Notes:
Nautilus has some handy features that can be handled with keyboard commands, to browse files with
an URL bar use 'Ctrl+L', to see hidden files in the directory you are browsing use 'Ctrl+H'. To bypass the
Trash folder use 'Shift+Del' to permanently delete the files. It is important to note if you are browsing
as Root and delete any files they will be placed in the Root Trash file not the regular users, it is a good
practice to always delete files from Root browsing with 'Shift+Del' to bypass Root's Trash folder. There
is a long running bug in Nautilus that prevents trash from being deleted by the usual clicking on the
Trash icon in the left-hand pane of Nautilus. To manually find and remove Trash files from Root browse
the /root folder as Root and navigate to /root/.local/share/Trash and enter the 'files' and 'info' folders
and select the files you want to delete and use 'Shift+Del' to permanently remove them from the hard
drive.
17
18
To permanently change the keyboard setting in an AV Linux install use the Keyboard setting utilities
found in the 'System Customization' tab of the AV Linux Control Panel. You can also change the System
keyboard manually by opening a Root Terminal from the Accessories menu and editing the
configuration file in /etc/default/keyboard with this command:
gedit /etc/default/keyboard
Change the Model and Country codes within the quotes to the correct ones for your Country and save
the changes.
XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
19
20
Change the 'Exec=' line like in the example above and save your changes in gedit.
21
22
Change '%session' to the start command of your desired other default Desktop Environment.
Command Examples For Some Other Common Light Desktops:
default,startxfce4,openbox,ion3,icewm,wmaker,blackbox,awesome
23
PERFORMANCE SETTINGS
CPU Governor Settings:
Governing the CPU in AV Linux is handled by a small light GTK-based tray utility known as 'Trayfreq'.
Simply click and right-click on the LXPanel applet and select your desired governor. Trayfreq can be
further configured and have it's defaults changed by editing it's 'trayfreq.config' file found in
/usr/share/trayfreq. To do this use 'Accessories' Root Terminal and this command:
gedit /usr/share/trayfreq/trayfreq.config
Trayfreq example default settings in AV Linux using the 'ondemand' governor on battery power and
'performance' governor on AC power:
[battery]
show=1
governor=ondemand
[ac]
governor=performance
#[events]
#activate=/usr/bin/xterm
[governor]
default=performance
#[frequency]
#default=800000
Power Management:
Power Management in AV Linux 6.0.4 is handled by the XFCE4 Power Manager Utility.
24
The addition of proprietary 3D nVidia and Ati video card drivers is handled by a 3 rd party script in AV
Linux called SGFXI. Proprietary drivers are not supported and are to be installed at the risk and
discretion of the user. AV Linux does supply a method to help facilitate the installation of proprietary
3D drivers since many users want this option and Debian Linux has no tools to handle this operation
other than for the stock Debian Kernel which AV Linux does not use.
**IMPORTANT!** Setting Up Network Connections Correctly for SGFXI:
SGFXI obtains and installs the Video Drivers on your system as the Root user, this means that any
Network Connection employed by SGFXI must be available to both the logged-in Session user and also
the Root user. For this to work it has to be explicitly enabled in the Network Manager on whichever
Internet Connection you are planning to use whether it is Wired, WiFi, DSL or USB Adaptor BEFORE
running SGFXI. To do this right-click on the 'Network-Manager-Applet' in the Systray section of the
XFCE4 Panel at the top of your screen, in this example we are editing the 'Auto Ethernet' wired
connection.
This will take you the 'Network Connections' dialog where you can select the connection you want to
edit by choosing it's tab. In the example we have selected the 'Auto Ethernet' tab and highlighted it's
connection. Next click the 'Edit' button at the right side.
25
Once the 'Edit' button is clicked you will be taken to the Connection Editing dialog where you must
check off the 'Available to all users' checkbox at which time you will be prompted to enter your Root
password. Now log out and log back in to ensure the new settings have taken hold and then select one
of the 2 methods below to run SGFXI.
26
When you boot into AV Linux 6.0.4 after installing you will notice that there is an extra GRUB boot
option just below the default top boot line in the GRUB2 boot menu. This is a special optional nonmodesetting workaround created by Tony Brijeski to facilitate using SGFXI. By using this option all
modesetting for nVidia and Ati video cards is disabled so SGFXI does not have to be run twice. To use
this optional boot mode you need to select this option in the few seconds the GRUB2 menu splash
displays at boot by using your keyboard arrow keys to highlight and select the second boot option.
Once selected the kernel will boot as usual showing the boot progress text in the console. When the
kernel is done booting you will be presented with a console login. For this mode to function the user is
required to login as Root. At the console prompt type your username as 'root' and then enter your Root
password not your regular user password. Once logged in as Root SGFXI will automatically run and
attempt to install the proprietary video drivers.
27
*IMPORTANT KMS MODESETTING INFO FOR ATI GRAPHICS USERS* This is only recommended if
you are certain your hardware supports KMS or if you are experiencing Xorg ATI driver issues!
ATI Graphics Cards have a wide-ranging variety of chipsets and accompanying Xorg drivers including ati,
radeon and radeonhd. Generally speaking ATI Proprietary drivers do not use KMS (Kernel Mode Setting)
and only some ATI chipsets support using KMS with Xorg drivers. For this reason and for maximum ATI
support with the AV Linux LiveDVD KMS is enabled in the Kernel but is switched off in the
/etc/modprobe.d/radeon-kms.conf configuration file. In order to have fully functional KMS with Xorg
ATI drivers users need to enable the option in the 'radeon-kms.conf' file. To accomplish this go to
'Accessories' 'Root Terminal' and copy and paste this command:
gedit /etc/modprobe.d/radeon-kms.conf
This will open the gedit text editor so you can modify the 'radeon-kms.conf' file. To enable KMS edit the
file to look like this:
options radeon modeset=1
Once edited click 'Save' in the gedit text editor and reboot your computer to allow KMS to take effect.
SGFXI can also be run in a regular Desktop session however it needs to be run in the bare system
console 'outside' of the XFCE4 UI. In order to run SGFXI this way you need to shut down XFCE4 by
hitting the Ctrl, Alt, F2 keys simultaneously. Your system will then go to the basic console where you
will need to login. Since SGFXI requires running with Root privileges you need to login as 'root' and
then enter your root password. If a login message doesn't immediately appear in the console you may
need to hit the 'Enter' key to display the login prompt.
28
**IMPORTANT** Because of the KMS issues noted above it is often necessary to run SGFXI twice in a
row to completely install the replacement proprietary Video drivers. In this case SGFXI will most likely
run the first time and obtain the drivers and when you are prompted to log back into LXDE the
computer will fail to use the new driver and leave you at the bare console unable to login. The reason
for this is that SGFXI cannot both install the drivers and blacklist modules from the Xorg Video drivers
at the same time. Although this is somewhat cumbersome usually logging in as 'root' and running SGFXI
again with the same options as you used the first time will allow the driver installation to complete.
SGFXI is quite flexible and can be run with many optional commands as listed below which were taken
from the help file which can be accessed in a terminal by typing 'sgfxi -h':
**EXACT VERSION NUMBERS SUBJECT TO CHANGE. RUN 'sgfxi -h' IN A TERMINAL FOR CURRENT INFO**
Script Requirements: Debian/Ubuntu/Arch/Fedora based systems.
Xorg version required: 7.1/1.1 or greater - Your X version: 1.10
Linux Kernel required: 2.6.18 or greater - Your kernel: 3.0.55-avl-10
--------------------------------'default(s):' - The driver installed automatically by sgfxi unless it is not supported by
your card. Some older cards will force an override of this basic default. Script will
print out what driver it will install when you start it up, with option to exit.
'supported-drivers:' choices require -o <see -o for correct syntax> to install>.
Fglrx: default: 12.10
Other supported-drivers: 12.10 12-7 12-6 12.10 12-7 12-6 12-4 12-3 12-2 12-1 11-12 11-11
11-10 11-9 11-8 11-7 11-6 11-5 11-4 11-3 11-2 11-1
Nvidia: defaults (current + legacy - 3 2 1): 310.19 304.64 173.14.36 96.43.23 71.86.15
Other supported-drivers: 304.64 304.60 304.51 304.43 295.71 290.10 285.05.09
280.13 275.43 270.41.19 260.19.44 256.53 195.36.31 190.53 185.18.36 180.60 177.82
173.14.35 169.12 100.14.19 96.43.20 71.86.14
The following beta drivers are available:
nvidia: 313.09
fgrlx: 12.11
Script Options:
-A Run the install non-interactively. Will not restart x at end.
-b Enable tripleBuffer (nvidia only). triplebuffer can reduce 3d performance on cards
with low graphics memory (64 mB or less). Default is disabled/off.
-B Use latest Beta Driver for your card type. Autodetects card type/beta driver (nVidia/AMD cards only).
If no beta driver is available, the current stable driver for your card type is used.
(Also checks nvidia for live latest beta information, and replaces script defaults with newer if present)
-c Force use of Xorg composite mode. Beryl/Compiz requires this for 3d. Old nvidia/ATI/Intel
cards not supported. Composite is default ON for newer nVidia/ATI cards (-c not required).
-C Skip Xorg configuration. Only use this if your Xorg is already working with your driver.
Main use is if you have dual card output and don't want xorg.conf changed.
-d Installs distro packaged nVidia/fglrx drivers. ATI/nVidia cards only (formerly -s).
-D Build Distro (Debian/Ubuntu only) packages for fglrx with FGLRX binary run package,
then install them (formerly -F). Not recommended. Because of constant package
builder failures, the direct install method is now default.
-f Force option. Forces (re)install of your driver, bypasses module check/build (nVidia only).
-h View this help menu.
29
30
AV Linux uses an application called 'Arandr' to handle setting the monitor screen resolution and also for
setting up Dual-head displays. Arandr can be found in the 'Preferences' menu. To change and select the
monitor resolution right-click on the rectangle within the Arandr window that represents the Video
output and display you are using. If you are using more than one output and display there will be more
than one rectangle present within the Arandr window.
**PLEASE NOTE** To use Dual-head for many nVidia and ATI Video cards it will be necessary to
have Proprietary Video Drivers installed as detailed in the previous 'Proprietary Video Drivers In
AV Linux' section.
31
32
33
AV LINUX KERNELS
34
KERNEL CHEATCODES
Enabled By Default in AV Linux 6.0.4:
threadirqs - force-threaded irq handlers (realtime preemption)
- Threaded irq's have long been a major part of the RT_PREEMPT patchset, and can offer significant
benefits for low latency audio uses. Use this parameter unless you have a really good reason not to.
transparent_hugepage=never - turn off hugepages (a new memory management feature)
- Transparent hugepages should be useful in memory intensive applications, such as virtual machines,
databases, and possibly video editing. If ultra-low latency is desired, it seems to be best to disable
them. Use this parameter if you want to squeeze the lowest latency possible out of your audio chain.
To Be Enabled/Disabled Optionally:
noautogroup - disable auto cgroup scheduling
- The famous "200 line patch that does wonders", aka SCHED_AUTOGROUP, is useful when cpuintensive tasks, such as make, are being done in a terminal, while the desktop is in use. Use this
parameter to disable it if you think it is causing problems.
Example grub kernel command line:
threadirqs transparent_hugepage=never quiet
1. As root, edit:
/etc/default/grub
2. Add the desired boot flags to the GRUB_CMDLINE_LINUX_DEFAULT line, like this:
GRUB_CMDLINE_LINUX_DEFAULT="threadirqs transparent_hugepage=never"
3. Then run: (also as root)
update-grub
4. Reboot
35
APPLICATION
DESCRIPTION
VERSION
A2JMIDID
JACK/ALSA MIDI Bridge
Aloop-Daemon
ALSA Loopback Script
AmSynth
Analog Modelling Synthesizer
Ardour 3
Digital Audio Workstation (version 3.0)
Ardour 3-VST
Ardour 3.0 w/Windows VST Support
Audacity
Soundfile Editor
Blender3D
Animation Modeler
Brasero
CD/DVD Authoring and Burning
Calf Plugins
LV2 Audio Plugins and JACK Host
Carla
Multi-Plugin Host
Cinelerra
Non-Linear Video Editor
Clementine
QT4 Amarok-based Music Player
DeVeDe
Video DVD Authoring
DrumGizmo
Virtual Drum Instrument LV2 Plugin
Easytag
Music File Tagging
Evince
PDF Document Viewer
Festige
JACK Host For WindowsVST Plugins
FFADO
FireWire Audio Drivers
ffmpeg
CLI Audio/Video Converter
FFMultiplex
Audio Video Stream Muxer GUI
FileZilla
FTP Client
Firefox
Mozilla Web Browser
Gedit
Text Editor with Syntax Highlighting
GIMP
Advanced Image File Editor
Gnome Photo Print Photo Printing Utility
GParted
Hard Drive Partition Editor
Gthumb
Image File Viewer
Guitarix
Guitar Effects Processor with LV2 Plugins
Handbrake
DVD Ripper and H.264 Video Encoder
Hydrogen
Advanced Drum Sequencer and Programmer
Inkscape
SVG Graphics Editor
Invada Plugins
Assorted LV2 Plugins
JACK
Low Latency Audio Server+Session Support
JACK Control
Qt GUI for JACK
JACK Capture
Capture Output of JACK into an Audio File
Kdenlive
KDE4-based NLE Video Editor
Kompozer
WYSIWYG Web Page Editor
LADSPA Plugins
ambisonic, autotalent, calf, caps, cmt, csa, fil,
guitarix, Invada, leet, swh, rev, tap, vlevel
36
8
1.0
1.5.1
3.5.403+patches
3.5.403+patches
2.0.5
2.71
2.30.3
0.0.19GIT
2.0beta3
2.2+CVA GIT
1.2.1
3.16
0.9.6
2.1.7
2.30.3
1.0.2
2.2.1+SVN
0.7.15
0.1
3.3.1
33.0
2.30.3
2.6.10
0.7.0
0.7.0
0.2.14.1
0.31
0.9.6
0.9.6
0.48.1
1.2.0
0.124.1
0.3.12
0.9.67
0.9.10
0.8b3
Continued:
APPLICATION
LibreOffice
linuxDSP Plugins
LiVES
LMMS
Loomer Plugins
Meterbridge
Mixxx
Mudita24 Control
Mverb
Nautilus
Non-Things
Openshot
Patchage
Pianoteq
QMIDIArp
Qsynth
Qsampler
Qtractor
Renoise
Rosegarden
Scribus
Seq24
SetBfree
SGFXI
Simple Scan
Shutter
Sooperlooper
Synaptic
Synthclone
Totem
Transmission
TV-Viewer
VMPK
Vee-One Plugins
Wbar
Whysynth
WINE
WineASIO
WinFF
X42-Plugins
XArchiver
XineUI
XJadeo
Yoshimi
Zita-Reverb
Zita-Retuner
DESCRIPTION
VERSION
37
4.3.1
2.2.6
1.0.95
0.9.2+b1
1.11
1.0.3
1.0
2.30
1.9.5+GIT
1.4.3+BZR
1.0.0
5.0
0.6.0
0.3.10
0.2.2.30
0.6.3
3.0.0
13.10
1.4.1
0.9.2+BZR
0.7.5
2.31.1
0.85.1
1.6.18
0.70.1
0.3.0
2.30
2.03
0.8.2b1
0.4.0
0.5.1
1.3.3
20100922
1.6.2+rt
0.9.5
1.3.0
0.5.2
0.99.6
0.8.0
1.2.1
20130420
20130419
There are 3 main methods of installing software in AV Linux. For Repository-based software packages
the Synaptic Package Manager is used, for independently downloaded Debian '.deb' files the Gdebi
Package Installer is used and finally for AV Linux 'Package Bundle' Zips the Terminal and 'dpkg'
command are used.
38
39
40
41
NETWORKING ON AV LINUX
If you left-click on the icon it will open a menu displaying all available connections like this:
If you right-click on the icon it will open a menu allowing you the option to edit your connections:
42
From here you can add, set up and edit Wired LAN, Wireless, Mobile Broadband USB, VPN and DSL
connections. Specifics for each kind of setup are beyond the scope of this manual but generally
speaking Wired LAN and Wireless connections shouldn't need manual setup. Many mobile broadband
USB key devices are supported by AV Linux but most of them need manual configuration to work.
43
44
45
Any users you've added will also require you set up a Samba Password for the newly added user
account (as Root):
smbpasswd -a <USERYOUCREATED>
It may also be necessary to add the user to /etc/samba/smbusers like this:
<unix-username> = <samba-username>
46
Getting Started:
Printing with Linux can either be 'Plug and Play' heaven or software dependency hell, a lot depends on
what Printer you have, how old (or new) it is and how serious the manufacturer is about providing opensource friendly Linux drivers. If you don't already have a printer I strongly recommend Hewlett Packard
products, they seem to be the only manufacturer taking printing on Linux seriously and have their own
Linux 'HPLIP' project to support their hardware. There is no possible way for this manual to cover
printing in any specific detail and many users may prefer to not use a printer at all on a streamlined
Audio recording system like AV Linux. Nonetheless here are a few key points for those who wish to set
up their printer.
Printer Group Permissions:
In order to administrate and use the CUPS print server the user will need to be a member of two main
system groups that deal with printing...'lp' and 'lpadmin'. The quickest way to do this is with the Root
Terminal and the 'adduser' command. Go to Accessories Root Terminal and copy or enter these
commands, 'USERNAME' is your actual regular username on the system:
adduser USERNAME lp
adduser USERNAME lpadmin
47
USING JACK
The easiest way to setup the JACK Audio server is to use the JACK Control app (a.k.a. Qjackctl). It can
easily be launched from the XFCE4 Panel or Wbar Dock. To setup your Audio card click the 'Setup'
button.
In the example below the system has a default single soundcard which has been selected in the
'Interface' dropdown. Generally speaking if your Audio interface shows up in the dropdown list it is
supported by ALSA and therefore by JACK as well. To use a firewire interface you will need to select
'firewire' instead of 'alsa' in the 'Driver' dropdown. It is very important to make sure that 'Realtime' is
checked off under 'Parameters'. Another number to look at during setup is the 'Frames/Period' figure.
If you are experiencing 'Xruns' or audio dropouts then you will need to increase this number, conversely
if you want to decrease the 'Latency' figure then decrease the Frames/Period until Xruns appear. If you
are recording directly to a Recording Track then low latency numbers are really not terribly necessary, if
you are recording through a plugin or other audio application en route to the Recording Track then
lower latencies are required. To use JACK with Synthesizer and MIDI Plugins it is recommended to
increase the 'Timeout (msec)' value to 2000 miliiseconds or more for better stability.
48
Making Connections:
Most applications once up and running with JACK will manage their connections within the program
you are using, however sometimes it is necessary to manually connect applications or even hardware
like MIDI Keyboards. In the example below we are using 'Patchage' to connect the ALSA MIDI Outputs
of the 'VMPK' Virtual Keyboard to control the Qsynth Soundfont Synthesizer. This 'Patchage' window
shows 'ALSA MIDI' connections in the green boxes, 'JACK MIDI' in the red boxes and the Audio
connections in the blue boxes. It is important to note that this example is showing JACK MIDI as it is
provided by the 'A2JMIDID-daemon' and also 'jack2alsa' and 'alsa2jack' ports that are provided by the
'Aloop-daemon' described in the following sections. In AV Linux 6.0.4 Qjackctl is automatically set up to
start JACK and launch the A2JMIDID and Aloop daemons.
49
50
51
Use this file by copying the 'asoundrc.txt' (for 2 ice1712 cards with NO onboard sound card) OR the
'asoundrc+onboard.txt' (for 2 ice1712 cards AND an onboard sound card) into your users home folder
and renaming whichever file you use to '.asoundrc' (without the quotes). It is normal for the file to
disappear from view when you rename it because the dot (.) makes it viewable only with 'show hidden'
enabled in the PCManFM file manager. It is important to note if you are using 2 cards plus an onboard
you should have the onboard chip as the default or first sound card followed by the ice1712 cards.
52
53
DEBIAN REFERENCE
Many people who are new to Linux are reluctant to use the terminal and sometimes consider it to be
either a primitive means of using the computer or too complicated. After some time to adjust to using
it most Linux users come to appreciate the facility and speed afforded by using the CLI. The following
section can be utilized by experienced Linux users and demonstrate some fundamentals to new Linux
users. The apt and dpkg articles are modified from an excellent article by Matthew Danish.
WARNING! - Please remember it is not advised to use either 'apt-get upgrade' or 'apt-get distupgrade with AV Linux. If you don't understand what a Terminal Command is actually going to do
to your system it is advised not to use it.
54
55
dpkg-source -x <package.dsc> If you have downloaded the source package for a program manually,
which includes several files such as a .orig.tar.gz (or .tar.gz if it is Debian native), a .dsc, and a .diff.gz (if
it is not Debian native), then you can unpack the source package using this command on the .dsc file.
dpkg-buildpackage Builds a Debian package from a Debian source tree. You must be in the main
directory of the source tree for this to work. Sample usage:
dpkg-buildpackage -rfakeroot -uc -b
Where `-rfakeroot' instructs it to use the fakeroot program to simulate root privileges (for ownership
purposes), `-uc' stands for ``Don't cryptographically sign the changelog'', and `-b' stands for ``Build the
binary package only''
debuild A handy wrapper script around dpkg-buildpackage that will automatically take care of using
fakeroot or not, as well as running lintian and gpg for you.
Fixing dependencies :
dpkg --configure --pending If dpkg quits with an error while apt-get install, upgrade, or dist-upgrading
try running this to configure the packages that were already unpacked. Then try apt-get install,
upgrade, or dist-upgrade -f, and then try apt-get install, upgrade, or dist-upgrade again. Repeat as
needed. This usually resolves most dependency problems (also, if it mentions a specific package for
some reason, you might want to try installing or removing that package)
apt-get install -f
apt-get upgrade -f
apt-get dist-upgrade -f
Attempt to fix dependencies while doing one of the above. Note that apt-get install -f does not require
a <package> argument.
56
57
A sincere and heartfelt thanks to the few but amazingly generous people who have supported AV Linux
over the years, the project truly could not have continued as long as it has without your thoughtful
assistance. It is an unfortunate statistic that the ratio of downloaders to donators results in less than 1
in 10000 people supporting AV Linux but the failure of the donation model to effectively work still has
not stopped some unique and wonderful people from showing their support some of whom made
repeat and regular donations. AV Linux 6.0.4 is dedicated to all of you who chose to donate to the
project.
58