Month: December 2015

Setting the order of multiple sound devices

In a terminal, run cat /proc/asound/modules to find out which sound modules are loaded. Say we get: 0 snd_emu10k1 1 snd_hda_intel 2 snd_usb_audio 3 snd_virmidi and say we want to rearrange them, so that: 0 will be the hda_intel, 1 will be the usb_audio, 2 will be the emu10k1 and 3 will be the virmidi Edit /etc/modprobe.d/alsa-base.conf and add to the end of the file the following line: options snd slots=snd_hda_intel,snd-emu10k1,snd-virmidi, Reboot the machine and the above order will be enforced In a terminal, if we now run cat /proc/asound/modules we get: 0 snd_hda_intel 1 snd_usb_audio 2 snd_emu10k1 3 snd_virmidi

JACK configuration for Real-Time Operation

Say our username is mike Run sudo usermod -a -G audio mike Edit /etc/security/limits.d/audio.conf and make sure it contains the following: @audio – rtprio 95 @audio – memlock unlimited Log out of your desktop and log back in. In a terminal, run ulimit -l to confirm the output is: unlimited

Change IP address after installation (Static IP)

Say on our host alpha we want to change (from DHCP) to a static IP Address 192.168.127.123 edit /etc/hosts and add an entry for alpha with 192.168.127.123 as: 192.168.127.123 alpha edit /etc/network/interfaces and make it look like this: auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 comment the following line referring to DHCP #iface eth0 inet dhcp add the following for a static IP Address iface eth0 inet static change as necessary to an address /netmask from your network address 192.168.127.123 netmask 255.255.255.0 change as necessary to the gateway of your network gateway 192.168.127.1 change as necessary to match the DNS server of your network dns-nameservers 192.168.127.1 Lastly, in a terminal, run sudo service networking stop sudo service networking start

Change hostname (temporarily or permanently)

Say our host is called alpha and we want to rename it to bravo For a temporary change (does not survive reboot) run in a terminal: (sudo) hostname bravo For a permanent change, edit /etc/hosts find the entry for alpha and change it to bravo Next, edit /etc/hostname and replace alpha with bravo NOTE:BSD based systems use /etc/HOSTNAME instead! Lastly, EITHER restart the networking service in a terminal: (sudo) service networking restart and log out / log in again, OR reboot the machine. NOTE: If the machine cannot be rebooted immediately after the changes, or you do not want to log out of your session until later, simply run: (sudo) hostname bravo

Gnome Alt + F2 clear command history

In a terminal run: dconf-editor In the program that pops up, navigate to: org > gnome > shell In there, find a key called command-history click on it and click the “Set to Default” button. You need to restart the Gnome 3 desktop by log out / log in, or by pressing <Alt>+<F2> and then type in the text field r and press <Enter>