Scripting

‘tail -f’ with highlight

This is an example of how you can use tail with colors. # tail -f /var/log/maillog | perl -pe ‘s/colorthisword/\e[1;32;40m$&\e[0m/g’ The ;;; values explained 0 all attributes off 1 bold 32 foreground green 40 background black “colorthisword” can be any perl regular expression: (foo|bar) highlight the strings foo and bar \b((foo|bar)\b highlight the words foo […]

Read More
Linux

Export Zimbra account info

Export userinformation from Zimbra # su – zimbra # zmprov gaa -v|egrep ‘cn:|sn:|displayName|givenName|zimbraMailDeliveryAddress|zimbraMailForwardingAddress|zimbraAccountStatus’|grep -v zimbraAdminSavedSearches Output cn: Ola Normann displayName: Ola Normann givenName: Ola sn: Normann zimbraAccountStatus: active zimbraMailDeliveryAddress: ola@example.com zimbraMailForwardingAddress: ola.normann@example.com …

Read More
Network

Configure Huawei E620 using Netcom network

This post will describe how I configured a Huawei E620 3g/Edge PCMCIA card on my Ubuntu 8.04 (Hardy Heron) to use the Norwegian Netcom network and can be considered a simple HOWTO. Determine Huawei card Determine what Huawei card you have installed lspci | grep -i huawei … 12d1:1001 Huawei Technologies Co., Ltd. E620 USB […]

Read More
Network

Configure Telenor Mobile Broadband using Ubuntu

This post is a short description/HOWTO of how I configured a “Telenor Mobilt BredbĂ„nd” on Ubuntu 8.04 (Hardy Heron)I’ve borrowed from a friend of mine. I might have forgotten some steps on this guide and haven’t verified it on a fresh Ubuntu 8.04 installation. Determine modemtype This HOWTO has been written for the GlobeSurfer ICON […]

Read More