Since OpenVPN 2.3.x release there’s no more easy-rsa scripts in /usr/share. So you have to use different approach to setup OpenVPN. It’s easy when you know all the steps.
Recently Microsoft rolled out some spying updates, which track your activity and send everything to Microsoft. I wrote some simple batch script which removes all these updates at once. If you use Windows 7, Windows 8, Windows 8.1 or Windows 10 and don’t want to be tracked by Microsoft, you should remove these updates.
Below are couple of scripts – one removes them silently other show pop-ups for each update removal. You can copy paste or download them. Important to run the script as administrator.
In this howto we’ll setup and configure MongoDB server on Ubuntu 14.04 x64 (it’s only available for x64 LTS distributions). To begin we have to setup custom repository:
After updating multiple servers I had a need to reboot them one by one. Main issue was to automate that, so the script would wait for the node to become reachable before rebooting next one. Here’s the simple one-liner for that:
1 |
for i in $(grep "staging-.*[0-9]" /etc/hosts|awk '{print $2}'|grep -v "fw"); do echo $i; echo "press any key to continue"; read; ssh $i "reboot"; sleep 30; uptime=0; while [ $uptime -ne "1" ]; do uptime=$(ssh -o ConnectTimeout=300 -q $i "uptime"|awk '{print $3}'|tr -d ","); echo -n $uptime" "; done; echo $i" rebooted, press any key"; read; done |
Since Munin on Ubuntu 14.04 doesn’t work out of the box, here’s a short tutorial how to make it work.
So let’s say you already have working SVN repo and want to setup svnsync to have backup on another server. Here are the steps I did to make it working:
To be able to observe current state of hosts and services I use separate display with Raspberry Pi connected to it. I’d say it’s the cheapest solution to have monitoring displayed on the screen, TV or projector.
For that I’ve chosen Raspbian distro. So first we need to install Raspbian to Raspberry Pi (how to do that you can read here).
Stop Jira, setup the connector in /opt/atlassian/jira/conf/server.xml and start Jira:
1 |
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" scheme="https" proxyName="jira.hostname.com" proxyPort="443" secure="true"/> |
Don’t forget to comment out usual one. For Stash use: Read More →
Setup repository and install the package:
1 2 3 4 5 |
echo "deb http://dl.ajaxplorer.info/repos/apt stable main deb-src http://dl.ajaxplorer.info/repos/apt stable main" > /etc/apt/sources.list.d/pydio.list wget -O - http://dl.ajaxplorer.info/repos/charles@ajaxplorer.info.gpg.key | sudo apt-key add - apt-get update apt-get install pydio |
Apache setup
If you want to access Pydio at http://localhost/pydio do:
Ensure to have your external IP in /etc/hosts
1 |
192.168.0.1 ubuntu |
First we install all needed packages
1 |
apt-get install libgmp3c2 libssl0.9.8 ruby1.9.1 ruby1.9.1-dev zlib1g-dev libssl-dev libreadline-dev libyaml-dev build-essential bison checkinstall libffi5 gcc checkinstall libreadline5 libyaml-0-2 |
Download and install additional libraries
1 2 3 4 |
mkdir down; cd down wget ftp://ftp.gnome.org/mirror/temp/ubuntu-test/pool/main/libf/libffi/libffi5_3.0.9-3ubuntu1_amd64.deb wget http://free.nchc.org.tw/ubuntu//pool/main/m/mpfr/libmpfr1ldbl_2.4.2-3ubuntu1_amd64.deb dpkg -i *.deb |