CS3's thoughtpad ...

chaos always wins, because it's better organized!

0 notes

Making WiFi work in MSI Wind U130

In my quest to convert windows users to linux, I installed Linux Mint Isadora ( based on Ubuntu Lucid ) on my wife’s MSI Wind U130 netbook.

Everything except WiFi worked out of the box, the chipset was detected, but it was disabled. Launchpad had a known bug filed for this and the following steps below “activated” the disabled wireless chipset.

mkdir -p /etc/Wireless/RT2860STA/

touch /etc/Wireless/RT2860STA/RT2860STA.dat

service network-manager restart

Works extraordinary and even the updates don’t seem to break them.

Filed under ubuntu linux mint isadora lucid lynx msi wind u130 wifi

0 notes

some screeen commands …

Start Screen: screen

List Screens: screen -list

Detatch Screen: Ctrl-a d

Re-attach Screen: screen -x or screen -x PID

Split Horizontally: Ctrl-a S

Split Vertically: Ctrl-a |

Move Between Windows: Ctrl-a Tab

Name Session: Ctrl-a A

Log Session: Ctrl-a H

Note Session: Ctrl-a h

Filed under screen keyboard-shortcuts

0 notes

Dnsmasq has the ability to direct DNS queries for certain domains to specific upstream nameservers. This feature was added for use with VPNs but it is fully general. The scenario is this: you have a standard internet connection via an ISP, and dnsmasq is configured to forward queries to the ISP’s nameservers, then you make a VPN connection into your companies network, giving access to hosts inside the company firewall. You have access, but since many of the internal hosts aren’t visible on the public internet, your company doesn’t publish them to the public DNS and you can’t get their IP address from the ISP nameservers. The solution is to use the companies nameserver for private domains within the company, and dnsmasq allows this. Assuming that internal company machines are all in the domain internal.myco.com and the companies nameserver is at 192.168.10.1 then the option server=/internal.myco.com/192.168.10.1 will direct all queries in the internal domain to the correct nameserver. You can specify more than one domain in each server option. If there is more than one nameserver just include as many server options as is needed to specify them all.
Configuring Dnsmasq.

Filed under dnsmasq private dns vpn

1 note

openvz: installation and management

Recommended OS: RHEL/CentOS, Debian.

Setup instruction can be found on the tubes. wiki.openvz.org is probably the best source of knowledge. ( CentOS specific instructions can be found at http://wiki.centos.org/HowTos/Virtualization/OpenVZ )

A Complete How-To on managing OpenVZ instances can be found at http://www.lamolabs.org/blog/137/managing-openvz-instances/

finally: openvz rocks !!! :)

Filed under centos debian openvz openvz-management virtualization

0 notes

vz-clone: a nifty script to clone vz containers

The title says it all …

#!/bin/bash
# script to clone an openvz VE

set -e

if [ -z “$2” ]; then
    echo “Usage: $0 <veid> <new-id>”
    exit 1
fi

cfg=”/etc/vz/conf/$1.conf”
newcfg=”/etc/vz/conf/$2.conf”

if [ ! -e $cfg ]; then
    echo $cfg not found!
    exit 1
fi

VEID=$1
. $cfg
veprivate=”$VE_PRIVATE”

VEID=$2
. $cfg
newveprivate=”$VE_PRIVATE”

if [ -e $newcfg ]; then
    echo $newcfg already exists!
    exit 1
fi

if [ -e $newveprivate ]; then
    echo $newveprivate already exists!
    exit 1
fi

if vzlist | fgrep -w -q $1
then
    vzctl stop $1
fi

echo “Cloning $cfg to $newcfg”
cp -a $cfg $newcfg

echo “Cloning $veprivate to $newveprivate”
mkdir -p $newveprivate
cd $veprivate
tar cf - . | (cd $newveprivate && tar xf -)

echo “Do not forget to edit $newcfg (you need to edit at least HOSTNAME and IP_ADDRESS)”
echo “Also do not forget to make an alias”

Source - http://www.howtoforge.com/some-tips-on-openvz-deployment

Filed under openvz vz container clone