Showing all posts tagged linux:

Build NSIS for CentOS

The Nullsoft Scriptable Install System (NSIS) is an open-source tool for building "setup.exe" for Windows that install your application. In addition to installing files into their proper locations, NSIS is scriptable and can be used to implement logic during the installation process. The ouput of NSIS is an .exe -- this is not a Microsoft Installer Package (.msi). While .msi is probably better package management tool, NSIS has one advantage that works for me -- you can build installer progra...

Linux UDP Network Client Library for X-Plane 10 and 11

Up till now, I've been using the ExtPlane plugin to integrate my 737 home cockpit components with the X-Plane Flight Simulator. ExtPlane is a third party plugin that gives networked devices access to X-Plane's DataRefs and Commands. With it, external devices can query the current state of the Flight Simulator, such as the current airspeed and elevation, or the present position of a switch. It can also be used to manipulate state within the Flight Simulator, such as to change the state of a...

Remotely Access Amazon EC2 Instances By Name

Amazon AWS EC2 instances change their public IP address each time you stop them. If you have many EC2 instances and don't assign elastic IPs to them, having to lookup their IP address each time you want to access them can be irritating. So I wrote this little ssh wrapper script that lets you ssh to amazon AWS EC2 instances by matching their instance name instead. You can download the script from here: http://home.abubakar.net/gitpub/?p=awsssh;a=tree (click on "raw"). There's a lot of oth...

Setting Up Reverse FTP Proxy Server

Setting Up a Reverse FTP Proxy Server Problem: You have a server (let's call it the firewall) with a public IP. Users will connect to this public IP using FTP clients. However your actual FTP server is not located on the firewall, but located somewhere else -- behind a DMZ, or through a VPN, or just another "less visible" public IP on the internet. You need the Firewall to act as a reverse-proxy and relay the protocol from your firewall to your actual ftp server. Doing this at the network ...

Expanding Virtual Machine Disk

Situation: I had originally created one of my QEMU/KVM Virtual Machines with a qcow2 format disk image of 25GB. I realised I needed more space on my /data partition. mount: /dev/mapper/vg_icky-lv_data on /data type ext4 (rw) lvscan: ACTIVE '/dev/vg_icky/lv_data' [12.54 GiB] inherit pvscan: PV /dev/vda2 VG vg_icky lvm2 [24.51 GiB / 0 free] The VM's disk resides on the host at: /raiddata/VMRAID/icky.img This is what I did:stop the virtual machine.On the host, execute the following: qemu-im...

Adventures with Shared Libraries on Linux

Originally posted on facebook at https://www.facebook.com/note.php?note_id=10150099790504802Shared libraries (The equivalent of a dynamic link library in Windows) are bits of code which sit outside of a program, and can be shared by multiple programs simultaneously. Unlike a static library, which gets copied into the program that you build, shared libraries help reduce memory usage, as the memory manager can share the same code pages across different programs.They are an elegant solution whe...