Skip to content

Instantly share code, notes, and snippets.

@lfzawacki
Last active July 7, 2017 04:02
Show Gist options
  • Save lfzawacki/82f48b2a2b767681d9db657c39924028 to your computer and use it in GitHub Desktop.
Save lfzawacki/82f48b2a2b767681d9db657c39924028 to your computer and use it in GitHub Desktop.
Stop useless stuff for music production in Ubuntu Linux (actually Mint)
#!/bin/bash
# Re-enable uneeded services for music
pulseaudio -D
sudo service samba start
sudo service saned start
sudo service smbd start
sudo service nmbd start
sudo service bluetooth start
sudo service network-manager start
sudo service lm-sensors start
sudo service openvpn start
sudo service speech-dispatcher start
sudo service saned start
sudo service unattended-upgrades start
sudo service virtualbox-guest-utils start
sudo service avahi-daemon start
sudo service cups-browsed start
sudo service ondemand start
sudo service ntp start
sudo service thermald start
sudo service ufw start
sudo service bluetooth start
sudo modprobe ppdev
sudo modprobe lp
sudo modprobe uvcvideo
sudo modprobe videodev
sudo modprobe btusb
#!/bin/bash
# Disable uneeded services for music
pulseaudio --kill
pkill owncloud
sudo service network-manager stop
# Virtual box stuff
sudo service virtualbox stop
sudo service virtualbox-guest-utils stop
# Network sharing stuff
sudo service samba stop
sudo service saned stop
sudo service smbd stop
sudo service nmbd stop
sudo service lm-sensors stop
sudo service speech-dispatcher stop
sudo service bluetooth stop
sudo service saned stop
sudo service unattended-upgrades stop
sudo service openvpn stop
sudo service cups-browsed stop
sudo service avahi-daemon stop
sudo service ondemand stop
sudo service ntp stop
sudo service thermald stop
sudo service ufw stop
# Kernel modules
sudo modprobe -r ppdev
sudo modprobe -r lp
sudo modprobe -r uvcvideo
sudo modprobe -r videodev
sudo modprobe -r btusb
# Touch screen
sudo modprobe -r hid_multitouch
#!/bin/bash
MAX_FREQ=3000000
echo 1 > /sys/module/processor/parameters/ignore_ppc
echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $MAX_FREQ > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo $MAX_FREQ > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo $MAX_FREQ > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment