Archive for the ‘linux’ Category

Resample mp3 file with lame for trixbox pro

March 8, 2011 Leave a comment

For ubuntu/debian distributions.

You will end up with NewFileName.mp3, optimized for trixbox pro music on hold.

sudo apt-get install lame

lame -V5 -b 128 –resample 44.1 OriginalFileName.mp3 NewFileName.mp3

Categories: linux, trixbox pro

Adding a non-detected modeline in ubuntu as default

December 16, 2010 Leave a comment

I adapted the procedure I found here to make my old Samsung Syncmaster 192N work at its native resolution. It is running through an old projector on the ceiling, which I’m sure is what is breaking the autodetection.

cvt 1280 1024 75

That returned: # 1280×1024 74.90 Hz (CVT 1.31M4) hsync: 80.30 kHz; pclk: 138.75 MHz
Modeline “1280x1024_75.00”  138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync

Added these lines to /etc/gdm/Init/Default:

xrandr –newmode “1280x1024_75.00”  138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync

xrandr –addmode VGA-0 1280x1024_75.00

xrandr –output VGA-0 –mode 1280x1024_75.00

Now it starts out at the correct resolution at startup, regardless of the state of the projector.

Categories: DIY, linux, ubuntu

Install ESXi VMWare tools on Ubuntu Server Edition

November 18, 2010 Leave a comment
  1. sudo su
  2. apt-get update
  3. apt-get upgrade
  4. apt-get install build-essential binutils linux-headers-`uname -r`
  5. mount /dev/scd0 /cdrom
  6. cp -a /cdrom/VMwareTools* /tmp/
  7. cd /tmp/
  8. tar -vxzf VMwareTools*.gz
  9. cd vmware-tools-distrib/
  10. ./

All the defaults are fine.

Categories: linux, ubuntu, VMWare

Vmware: “SIOCSIFADDR: No such device eth0″ after cloning

June 20, 2010 Leave a comment


This is specifically for ubuntu.

sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old
sudo reboot

May need to edit /etc/network/interfaces eth0 or eth1 to match detected adapter, restart the network, and it should be back to normal.

Categories: linux, ubuntu, VMWare

Adding a New Mailnode in Scalix

March 9, 2010 Leave a comment

This needs to be done after adding a mailnode to enable outlook connector and webmail. This was sent to me by Scalix support.

Add the mailnode first within sac.

The rest is done from a terminal.

To get a list of your mailnodes:

omshowmn -m all

The name displayed against two asterisks ** is name of primary mailnode
Replace mailnode with new mailnode name, and primarynode with your primary mailnode name.

omaddbb -s "mailnode"
omdelacln -t b -l ":mailnode" -g admin
omdelacln -t b -l ":mailnode" -g local
omdelacln -t b -l ":mailnode" -g default
omaddacln -t b -l ":mailnode" -g admin -c visible
omaddacln -t b -l ":mailnode" -n "*/mailnode,*,*,*" -c create read subfolder editown deleteall contact visible
omaddacln -t b -l ":mailnode" -n "Proxy-Folder Admin /primarynode/CN=Proxy-Folder Admin" -c create read subfolder editown deleteall contact visible

I did find/replace with a text editor and drag-n-drop into a terminal window. It took longer to type this up!

Categories: linux, scalix, Software

SSH tunneling with firefox

January 22, 2010 Leave a comment

from a terminal window:

ssh user@<<ssh server>>.com -D 9000

in firefox:

go to preferences:advanced:network:Connection Settings

This will pipe all web traffic through a secure ssh tunnel, and allow access to local web resources from firefox.

Of course you want to disable that firefox setting if you’re not connected to the tunnel.

There is a firefox addon called Quickproxy that allows you to activate/deactivate the proxy settings with a button push:

And sshmenu has a great interface for quickly connecting to remote sites.

SSHMenu Screenshot

sudo apt-get install sshmenu sshmenu-gnome

Categories: linux, networking

ntop and ipcop 1.4.20

November 23, 2009 Leave a comment

Download ntop addon from here:
transfer to /root on ipcop machine
from ssh session on icop:
cd /usr/lib
ln -s
cd /root
tar -zxvf ntop_ipcop_1.4.8.tar.gz
cd ntop
from ipcop gui, refresh view and choose NTOP from SERVICES menu
Click Start button, and refresh
There is a link now shown for Ntop Webinterface (http)


The ln -s  is necessary due to a change since ipcop v 1.4.18

Categories: ipcop, linux, networking