Last active
August 29, 2015 14:20
-
-
Save jmmadruga/6e7867c9ef605f356006 to your computer and use it in GitHub Desktop.
Kubuntu 15.04 install script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -----------------$HOME/.abcde.conf----------------- # | |
# | |
# A sample configuration file to convert music cds to | |
# MP3 format using abcde version 2.5.3 | |
# | |
# http://andrews-corner.org/abcde.html | |
# -------------------------------------------------- # | |
# Specify the encoder to use for MP3. In this case | |
# the alternatives are gogo, bladeenc, l3enc, xingmp3enc, mp3enc. | |
MP3ENCODERSYNTAX=lame | |
# Specify the path to the selected encoder. In most cases the encoder | |
# should be in your $PATH as I illustrate below, otherwise you will | |
# need to specify the full path. For example: /usr/bin/lame | |
LAME=lame | |
# Specify your required encoding options here. Multiple options can | |
# be selected as '--preset standard --another-option' etc. | |
LAMEOPTS='--preset extreme' | |
# Output type for MP3. | |
OUTPUTTYPE="mp3" | |
# The cd ripping program to use. There are a few choices here: cdda2wav, | |
# dagrab, cddafs (Mac OS X only) and flac. | |
CDROMREADERSYNTAX=cdparanoia | |
# Give the location of the ripping program and pass any extra options: | |
CDPARANOIA=cdparanoia | |
CDPARANOIAOPTS="--never-skip=40" | |
# Give the location of the CD identification program: | |
CDDISCID=cd-discid | |
# Give the base location here for the encoded music files. | |
OUTPUTDIR="$HOME/" | |
# The default actions that abcde will take. | |
ACTIONS=cddb,playlist,read,encode,tag,move,clean | |
# Decide here how you want the tracks labelled for a standard 'single-artist', | |
# multi-track encode and also for a multi-track, 'various-artist' encode: | |
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}' | |
VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}' | |
# Decide here how you want the tracks labelled for a standard 'single-artist', | |
# single-track encode and also for a single-track 'various-artist' encode. | |
# (Create a single-track encode with 'abcde -1' from the commandline.) | |
ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}' | |
VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}' | |
# Create playlists for single and various-artist encodes. I would suggest | |
# commenting these out for single-track encoding. | |
PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u' | |
VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u' | |
# Put spaces in the filenames instead of the more correct underscores: | |
mungefilename () | |
{ | |
echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\] | |
} | |
# What extra options? | |
MAXPROCS=2 # Run a few encoders simultaneously | |
PADTRACKS=y # Makes tracks 01 02 not 1 2 | |
EXTRAVERBOSE=y # Useful for debugging | |
EJECTCD=y # Please eject cd when finished :-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [Created by task 2.2.0 6/21/2014 11:28:44] | |
# Taskwarrior program configuration file. | |
# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-faq', | |
# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc' | |
# Here is an example of entries that use the default, override and blank values | |
# variable=foo -- By specifying a value, this overrides the default | |
# variable= -- By specifying no value, this means no default | |
# #variable=foo -- By commenting out the line, or deleting it, this uses the default | |
# Use the command 'task show' to see all defaults and overrides | |
# Files | |
data.location=~/MEGA/.task | |
# Color theme (uncomment one to use) | |
#include /usr/share/task/light-16.theme | |
#include /usr/share/task/light-256.theme | |
#include /usr/share/task/dark-16.theme | |
#include /usr/share/task/dark-256.theme | |
#include /usr/share/task/dark-red-256.theme | |
#include /usr/share/task/dark-green-256.theme | |
#include /usr/share/task/dark-blue-256.theme | |
#include /usr/share/task/dark-violets-256.theme | |
#include /usr/share/task/dark-yellow-green.theme | |
#include /usr/share/task/dark-gray-256.theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2015, Jerônimo Medina Madruga <[email protected]> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
## Check if you are root | |
if [ `whoami` != root ]; then | |
echo "Please run this script as root" | |
exit | |
fi | |
## Check the connection | |
if ! ping -c 4 www.google.com.br; then | |
echo "You need to be connected in order to use this script" | |
exit | |
fi | |
## Removing unwanted packages | |
apt-get purge amarok* apparmor apport* dragonplayer kaddressbook kontact* ktorrent* libpurple* muon-* sieve* telepathy* quassel -y | |
apt-get autoremove -y | |
## Adding third party repositories and updating packages | |
sh -c 'echo "deb http://archive.canonical.com/ubuntu vivid partner" >> /etc/apt/sources.list.d/canonical_partner.list' | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add - | |
add-apt-repository "deb http://download.videolan.org/pub/debian/stable/ /" -y | |
add-apt-repository ppa:falk-t-j/qtsixa -y | |
add-apt-repository ppa:kubuntu-ppa/backports -y | |
add-apt-repository ppa:libretro/stable -y | |
add-apt-repository ppa:maarten-baert/simplescreenrecorder -y | |
add-apt-repository ppa:nilarimogard/webupd8 -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment