- Xubuntu 16.04
Repositories
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
ABSOLUTELY NO WARRANTY. | |
If you are still reading let's carry on with the code. | |
sudo apt-get update && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
Compiling a Linux kernel on Ubuntu | |
---------------------------------- | |
This should be useful in the event that the user wants to investigate whether a newer kernel allows | |
certain peripherals to work better (or at all) or some other problems they might encounter while using | |
the kernel officially provided by Canonical. | |
As an example, I use the 4.1.5 release from kernel.org. | |
1) Make sure you have the build environment set up first: |
#!/bin/sh | |
USER="spam@example.com" | |
FOLDER_PREFIX="train_" | |
FOLDER_HAM="${FOLDER_PREFIX}ham" | |
FOLDER_PROB="${FOLDER_PREFIX}prob" | |
FOLDER_SPAM="${FOLDER_PREFIX}spam" | |
DOVEADM="/usr/local/bin/doveadm" | |
RSPAMADM="/usr/local/bin/rspamadm" | |
RSPAMC_CONNECT="-h localhost:11334" # rspamc (--connect|-h) option |
#!/bin/bash | |
# This script allows sending of messages stuck in the Postfix queue to another | |
# email address. Useful if the original email address is bad. | |
if [ $# -ne 2 ]; then | |
echo "Usage: reroute-queued-email-messages.sh <oldaddress> <newaddress>" | |
exit 1 | |
fi |
#!/bin/sh | |
#### | |
# Titel dnsbl_check | |
# Descritption This Script checks multiple ips and blacklist | |
#### | |
# Mail recipients (multiple mail addresses separated by whitespace) | |
mail='' | |
# Logfiles | |
LogFile='/tmp/rbltemp.log' | |
LogRBLfile='/var/log/rblfound.log' |
#!/bin/bash | |
# | |
## redis backup script | |
## usage | |
## redis-backup.sh port backup.dir | |
port=${1:-6379} | |
backup_dir=${2:-"/data/backup/redis"} | |
cli="/usr/local/bin/redis-cli -p $port" |
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
wget --continue --no-check-certificate -O jdk-8-linux-x64.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz |