Find/Replace text in multiple files with sed

October 13, 2011 Leave a comment

sed -i ‘s/old-word/new-word/g’ *.txt

Just replace old-word, new-word, and *.txt with your particulars.

Categories: DIY

Quickly restart scalix smtp relay

April 20, 2011 Leave a comment

/etc/init.d/sendmail restart

omoff -d 0 smtpd

omon smtpd

Categories: scalix

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

Restart Scalix webmail service quickly

November 22, 2010 Leave a comment

All you need to do is touch the web.xml file.

Our example:

touch /var/opt/scalix/sx/tomcat/webapps/webmai/WEB-INF.web.xml

From Scalix wiki

Categories: scalix

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. ./vmware-install.pl

All the defaults are fine.

Categories: linux, ubuntu, VMWare

Windows XP Activation Loop

August 30, 2010 Leave a comment

Windows XP can get stuck in a loop where it wants to be activated, then when you proceed it says it is already activated and logs you out. Here is a safe mode fix from Microsoft that worked today:

http://support.microsoft.com/kb/312295/en-us

Categories: Windows

Automatic Restart for Windows XP

August 23, 2010 Leave a comment

C:\WINDOWS\System32\shutdown.exe /r /d P:1:1

Categories: DIY

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

June 20, 2010 Leave a comment

from: http://muffinresearch.co.uk/archives/2008/07/13/vmware-siocsifaddr-no-such-device-eth0-after-cloning/

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
Follow

Get every new post delivered to your Inbox.