No Image

Install Ansible on Arch Linux and Run Playbooks Locally

February 26, 2018 Andy 0

Installation is pretty simple…. Useful dependencies: Optional dependencies for ansible sshpass: for ssh connections with password python2-passlib: crypt values for vars_prompt python2-netaddr: for the ipaddr filter python2-systemd: log to journal python2-pywinrm: connect to Windows machines python2-dnspython: for dig lookup python2-ovirt-engine-sdk: ovirt support python2-boto: aws_s3 module python2-jmespath: json_query support We need sshpass for password-based authentication using Ansible. Run Ansible Locally Create an inventory hosts file: My one currently has just localhost as the control machine: [control] 127.0.0.1 You’ll also need to make sure the SSH daemon process is running: Also, because by default SSH uses Host key checking which is not […]

No Image

XWiki on Ubuntu 16.04 LTS with Nginx Reverse Proxy

February 26, 2018 Andy 0

Install XWiki and all dependant programs on a 4 GB cloud server. This means: 1) Java 2) Tomcat 3) MySQL/MariaDB 4) XWiki 5) Nginx Here we use Nginx as a reverse proxy to firstly redirect all HTTP to HTTPS and then forward all requests on port 80/443 to port 8080 (tomcat) on the localhost. Here I use LetsEncrytp for my SSL certificates. Before we begin… Setup DNS wiki.dummydomains.org.uk ——> 134.213.27.60 Prepare the Server Update Update and reboot the server. Enable the firewall Install Oracle Java This is a requirement before installing Tomcat or XWiki. At the time of writing, Java 8.x is […]

No Image

Installing tox on Manjaro i3

October 21, 2017 Andy 0

Tox is an open source secure alternative to the likes of Skype. To install it, you need to install the core package and one of the available GUIs.  You can compare some of the available clients here but personally I like qtox. The below will pull in the required dependencies. If you want the latest Git version, you can install qtox-git from the AUR. Make sure you run that as a regular user – not root.  This pulls in the core package from the ABS repository also. To add a contact, you will need their Tox ID – which looks like […]

No Image

How to Safely Reduce the Size of a Logical Volume

July 3, 2017 Andy 0

Do not attempt to shrink a volume if the partition is mounted!  Always unmount first! If it is the root volume you need to reduce in size, use a Live DVD/USB instead. You should also take a backup first too 😉 So here we can see I have one Physical Volume, /dev/md0, attached to my one volume group, RAIDVG. [andy@home-pc ~]$ sudo pvs PV VG Fmt Attr PSize PFree /dev/md0 RAIDVG lvm2 a– 1.91t 0 We can also see there is zero space left on the volume group.  You can use sudo pvdisplay to see a more detailed output. As […]

No Image

mkpasswd

June 15, 2017 Andy 0

The other day I couldn’t remember what package provided the mkpasswd binary….. yum whatprovides */mkpasswd yum install expect mkpasswd -l 12 The above creates a password of length 12 with two uppercase letters, two numbers and one special character.

No Image

Windows 7 QEMU Guest

March 28, 2016 Andy 0

Check your kernel was compiled with support. Check the kvm and virtio kernel modules are loaded. I needed to manually load the virtio module: To automatically load the virtio module at boot: Reboot and check again: Install qemu. I also installed qemu-launcher – a GUI front-end. Create a working directory: Create a virtual hard drive the the Windows installation. Prepare the installation medium. I inserted a Windows 7 installation DVD and created an ISO locally. To launch into the Windows installation: Once installed you don’t need to attach the ISO: Update and upgrade to Windows 10 😉 Resources https://wiki.archlinux.org/index.php/QEMU https://www.reddit.com/r/archlinux/comments/1fg3y9/guide_to_running_windows_7_in_qemu/

No Image

Spotify on Manjaro i3

March 28, 2016 Andy 0

Spotify is available from the AUR. Install To play local file you will need to also install ffmpeg. Issues For some (currently) unknown reason, launching Spotify crashes when I login. The only fix I have found so far is to change the scale factor from the default 1 to something else. You can do that by launching it at the command line: To make this permanent, edit /usr/share/applications/spotify.desktop. Resources https://wiki.archlinux.org/index.php/spotify

No Image

Installing Ansible on Ubuntu 14.04 LTS

November 28, 2015 Andy 0

Take a look at the official installation guide. The simplest way to install Ansible on Ubuntu is add the PPA repository and install via apt-get. If not already installed, you will need the software-properties-common package. Then add the repository and install ansible. Presumably you’ve already got an external server that you want to configure with Ansible. You will need SSH access, and if you’ve not already done so, you’re gonna want to setup key-based authentication. Assuming you’ve done that, you can test things are working with: I also need to tell ansible to connect as the root user. Enter the […]

No Image

X2Go on Ubuntu Server 14.04

November 21, 2015 Andy 0

In a previous post, I talked about my experience using X2Go with XFCE4 and Lubuntu. Here is how it was achieved….. On the Server Here I’m using Ubuntu 14.04 LTS but you can install X2Go on just about any Linux distro. Create a User Account Create a regular user to run the desktop session under. For your own sanity, I recommend you setup password-less key-based authentication as soon as possible……go, do it now! Configure SSH Open the main configuration file for the OpenSSH daemon process. Ensure X11 forwarding is enabled. X11Forwarding yes Don’t forget to test for configuration errors and […]

No Image

Minimal Desktop Environment over SSH

November 21, 2015 Andy 0

So I wanted to install a Java desktop application and have it publicly available on a server somewhere. Using a light weight desktop environment on one of my cloud servers made sense – provided that is, I could find something reasonably secure. I came across X2Go and decided to give it a try on one of my Rackspace cloud servers. I used a 2 GB General Purpose v1 server and was surprised at how low the resource usage was – and consequentially how quick and responsive it all felt. X2Go is a remote desktop tool that uses the NX technology […]