Sunday, January 29, 2012

pdmenu.samba4

Manage Samba4 configuration from Linux console menu:


Download the file: samba4.pdm

pdmenu wol

Linux console menu for Wake-On-Lan:


Download the file: wol.pdm

pdmenu squid

Manage squid in Linux console menu:


Download the file: squid.pdm

pdmenu dns

Manage DNS server (bind) from Linux console menu:


Download the file: dns.pdm

pdmenu apache

Manage Apache 2 web server from Linux console:


Download the file: apache.pdm

PPTP routes on Linux

Using pptp-linux client to establish PPTP connections does not automatically generate a route to make the remote network subnet fully accessible, only the host-to-host link. If you don't wish to set the defaultroute option, then you can use the following script to create a 24-bit subnet route:

/etc/ppp/ip-up.d/pptp-route:
SUBNET=`echo $PPP_LOCAL | awk -F . '{print $1"."$2"."$3".0"}'`
route add -net $SUBNET netmask 255.255.255.0 dev $PPP_IFACE

Note:
The calling script (ip-up) will provide the values for $PPP_LOCAL and $PPP_IFACE.

Thursday, January 12, 2012

pdmenu main

Menu driven Ncurses Text User Interface (TUI) to manage common tasks in the Linux console, based on pdmenu:


 Download the file: main.pdm

Wednesday, January 11, 2012

Proxmox Open VNC Console not working on Lenny host

Testing Proxmox, it is installed on a laptop, with a minimal X11 install.  The "Open VNC Console" does not work, it opens a blank page.  This is due to Debian Lenny not having a IcedTea6 plugin.

To work around the issue, add a debian non-free repository to /etc/apt/sources.list and do:
#apt-get update
#apt-get update
#apt-get install sun-java6-jre sun-java6-plugin

Then remove the debian non-free line from sources.list and
#apt-get update

Tuesday, January 10, 2012

Debian 6 (Squeeze) LXC sshd /dev/mqueue

Trying to use lxc-execute to execute a command on a container made from the sshd template, the following error is produced:
Failed to mount /dev/mqueue - read-only filesystem

To work around the error, make the directory on the host:
host#sudo mkdir /dev/mqueue

Friday, January 6, 2012

pdmenu lxc

Manage Simple tasks for LXC (Linux Containers):



Download the pdmenu file: pdm.lxc

Thursday, January 5, 2012

pdmenu pptp

Manage PPTP connections from the Linux console:
(TUI)






Download the file: pptp.pdm

Wednesday, January 4, 2012

Proxmox Open VNC Console not working

On Debian 6 (Squeeze) this requires the following package installed:
icedtea6-plugin

Copy disk images for Vmware, KVM, etc.

(Ref: Elvis, http://forums.overclockers.com.au/showthread.php?t=933797)

Boot both machines with a LiveCD (e.g. PartedMagic).
SSH from source into destination machine, to get the key, then exit.
On the source machine execute the following command:

dd if=/dev/sda bs=4096 conv=noerror,notrunc | bzip2 | ssh root@otherserver "cat | bunzip2 > /dev/sdx"

where:
/dev/sdx is the destination disk.
bzip2 can be removed for fast (local) copies.
"noerror" is added to allow the copy to continue on read errors, e.g. in cases of recovering corrupt systems to virtual machines.
"notrunc" maintains data integrity by not truncating data.

Debian 6 Squeeze reboot MacBook Pro

Debian 6 (Squeeze) running on a MacBook Pro would fail to reboot, displaying the message:
Restarting System.

To fix the issue, add the following parameter to the kernel line in your boot configuration:
reboot=pci