Find/Replace text in multiple files with sed
sed -i ‘s/old-word/new-word/g’ *.txt
Just replace old-word, new-word, and *.txt with your particulars.
Quickly restart scalix smtp relay
/etc/init.d/sendmail restart
omoff -d 0 smtpd
omon smtpd
Resample mp3 file with lame for trixbox pro
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
Adding a non-detected modeline in ubuntu as default
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.
Restart Scalix webmail service quickly
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
Install ESXi VMWare tools on Ubuntu Server Edition
- sudo su
- apt-get update
- apt-get upgrade
- apt-get install build-essential binutils linux-headers-`uname -r`
- mount /dev/scd0 /cdrom
- cp -a /cdrom/VMwareTools* /tmp/
- cd /tmp/
- tar -vxzf VMwareTools*.gz
- cd vmware-tools-distrib/
- ./vmware-install.pl
All the defaults are fine.
Windows XP Activation Loop
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:
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.
Adding a New Mailnode in Scalix
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!




