Wednesday, May 31, 2017
Thursday, January 23, 2014
Zimbra - Automatically redirect HTTP connections to HTTPS
http://www.hypee.com/en/zimbra/zimbra-7-how-to-automatically-redirect-http-connexion-to-the-secure-https-webmail
Wednesday, January 22, 2014
Saturday, January 19, 2013
Test bandwidth between two servers
http://stackoverflow.com/questions/426272/how-to-test-internet-connection-speed-from-command-line
on machine1 (host, this one will receive)
iperf -s -p 65000
on machine2 (client, this one will upload)
iperf -c [ip of server] -p 65000
Reverse the machines to test the other way (upload->download or vice versa).
Wednesday, January 09, 2013
Accessing Going IP Security Camera X37L X37L20M X37L20MA
Assuming you have an IP address like 192.168.1.*
Main stream: rtsp://192.168.1.10:554/user=admin&password=&channel=1&stream=0.sdp?real_stream--rtp-caching=100
Secondary (low quality) stream: rtsp://192.168.1.10:554/user=admin&password=&channel=1&stream=1.sdp?real_stream--rtp-caching=100
Tuesday, December 25, 2012
Transfer Zimbra account from one server to another / between servers / Individual Zimbra account migration
http://new.spheron1.co.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/
You can export a chosen mailbox from the source Zimbra server with:
zmmailbox -z -m user@test.com getRestURL “//?fmt=tgz” > /tmp/user_test.com.tar.gz
And then import it into the destination server with:
zmmailbox -z -m user@test.com postRestURL “//?fmt=tgz&resolve=reset” /tmp/user_test.com.tar.gz
Sunday, December 23, 2012
Install a Secondary/Failover IP in an Ubuntu Server 12.04 VM hosted in a VMWare ESXi 5.0 Update 1 physical machine on an OVH dedicated server
Assumptions:
- You have a dedicated server from OVH http://www.ovh.ie/ which supports virtualization
- You installed and configured the VMWare ESXi 5.0 Update 1 image from OVH (using their web interface manager and their OS image)
- You installed an Ubuntu Server 12.04 VM in ESXi
- You requested and got (by e-mail) a Failover IP by selecting your server in the OVH manager, going to Services at the bottom, clicking on on IP Failover, then clicking on "Order an IP Fail-Over" and following their wizard.
Steps (after you got the IP):
- In the OVH Manager, select your physical server from the drop down at the top.
- Click on Services at the bottom (on the page that opens about the physical server)
- Click on "Virtual Mac for VPS"
- Click on "Associate a virtual MAC to an IP address"
- Select the Failover IP you want to use, give the VM a name, and select the Virtual Mac Type (I used "OVH", it works fine with ESXi).
- Click Validate
- Copy paste the new MAC in the vSphere Client - stop your VM, right click on the VM name > Edit Settings > Network Adapter > On the right under Mac Address click on "Manual", then paste the new Mac there. Click OK and start the VM.
- Open the Console to the VM.
- Add the following to /etc/network/interfaces (I assume this file is mostly empty):
iface eth0 inet static
address FFF.FFF.FFF.FFF
netmask 255.255.255.255
broadcast FFF.FFF.FFF.255
auto eth0:1
iface eth0:1 inet static
address FFF.FFF.FFF.FFF
netmask 255.255.255.255
post-up route add MMM.MMM.MMM.254 dev eth0
post-up route add default gw MMM.MMM.MMM.254
post-down route del MMM.MMM.MMM.254 dev eth0
post-down route del default gw MMM.MMM.MMM.254
dns-search YOUR.DOMAIN.NAME.THIS.IS.OPTIONAL
dns-nameservers DDD.DDD.DDD.DDD DD2.DD2.DD2.DD2
- Here is the explanation of the IP "variables" above:
MMM.MMM.MMM.MMM = Main (physical) server IP
MMM.MMM.MMM.254 = Main (physical) server IP but with the last part set to 254
FFF.FFF.FFF.FFF = Failover IP
FFF.FFF.FFF.254 = Failover IP but with the last part set to 254 instead of the original part
FFF.FFF.FFF.255 = Failover IP but with the last part set to 255 instead of the original part
DDD.DDD.DDD.DDD = First DNS nameserver
DD2.DD2.DD2.DD2 = Second DNS nameserver (optional)
- Run /etc/init.d/networking restart
- Try to ping the VM IP
Good luck!
Saturday, September 15, 2012
Saturday, January 28, 2012
Ubuntu Oneiric 11.10: HDMI audio out on XPS M1330 with Intel Integrated Graphics Card
1) Open Sound Settings, click on Hardware Tab, next to Profile select Digital Stereo (HDMI) Output. The Output tab should now show Connector: HDMI.
2) Open terminal, sudo alsamixer. Go to the right with the arrow keys until you find S/PDIF 1 (1, not 0 or anything else). Unmute it by pressing M. Test audio.
1) Open Sound Settings, click on Hardware Tab, next to Profile select Digital Stereo (HDMI) Output. The Output tab should now show Connector: HDMI.
2) Open terminal, sudo alsamixer. Go to the right with the arrow keys until you find S/PDIF 1 (1, not 0 or anything else). Unmute it by pressing M. Test audio.
Tuesday, January 17, 2012
Installing asf_tools (Alaska Satellite Facility Map Ready) on Ubuntu 11.10 Oneiric Ocelot
http://www.asf.alaska.edu/downloads/software_tools
I assume the build-essential package and other basic tools are installed.
apt-get install zlib1g-dev flex bison
Edit asf_tools/src/to_sr/Makefile and asf_tools/src/fill_holes/Makefile and changes the line similar to:
$(CC) $(CFLAGS) $(LDFLAGS) -o to_sr $(OBJS) $(LIBS)
with this line
$(CC) $(CFLAGS) $(LDFLAGS) -o to_sr $(OBJS) $(LIBS) -lm
(add -lm at the end)
then do a normal configure / make / make install installation
http://www.asf.alaska.edu/downloads/software_tools
I assume the build-essential package and other basic tools are installed.
apt-get install zlib1g-dev flex bison
Edit asf_tools/src/to_sr/Makefile and asf_tools/src/fill_holes/Makefile and changes the line similar to:
$(CC) $(CFLAGS) $(LDFLAGS) -o to_sr $(OBJS) $(LIBS)
with this line
$(CC) $(CFLAGS) $(LDFLAGS) -o to_sr $(OBJS) $(LIBS) -lm
(add -lm at the end)
then do a normal configure / make / make install installation
Thursday, January 12, 2012
Tuesday, January 03, 2012
Wednesday, December 28, 2011
Show or Display (some) Blu Ray drive capabilities in Ubuntu/Linux
1) Download and install Nero Linux 4 (trial available)
2) nerocmd --list-drives (lists drives .. see first and second columns for drive id)
3) nerocmd --drive=1,0 --info=drive (where drive ID here is 1,0)
Sample output:
Device name : MATSHITA BD-MLT UJ240AF
Device id : 0
Host adapter number: 1
Host adapter name : unknown
Firmware Revision : 1.00
Underrun protection: supported
Drive buffer size : 2048 bytes
Mandatory BUP speed: none
Device type : WORM
Writeable media : CD-R/RW, DVD R/RW, DVD DL, DVD-RAM, BD-R/RE, BD DL
CD write speeds : 8, 24
Base speed in KB/s : 150
Readable media : CD-R/RW, DVD R/RW, DVD DL, DVD-RAM, BD-R/RE, BD DL
CD read speeds : 1, 2, 4, 8, 12, 16, 24
Base speed in KB/s : 150
Capabilities:
- Can write in Disc-at-once
- Reads CD TEXT
- Writes variable pauses in Track-at-once
- Writes CD TEXT in Disc-at-once
- Has a buffer underrun protection feature
- Can write DVD+VR
- Supports Layer Jump for DVD-R DL
- Supports Overburn
- Can write in UltraRaw 96
Ok.
1) Download and install Nero Linux 4 (trial available)
2) nerocmd --list-drives (lists drives .. see first and second columns for drive id)
3) nerocmd --drive=1,0 --info=drive (where drive ID here is 1,0)
Sample output:
Device name : MATSHITA BD-MLT UJ240AF
Device id : 0
Host adapter number: 1
Host adapter name : unknown
Firmware Revision : 1.00
Underrun protection: supported
Drive buffer size : 2048 bytes
Mandatory BUP speed: none
Device type : WORM
Writeable media : CD-R/RW, DVD R/RW, DVD DL, DVD-RAM, BD-R/RE, BD DL
CD write speeds : 8, 24
Base speed in KB/s : 150
Readable media : CD-R/RW, DVD R/RW, DVD DL, DVD-RAM, BD-R/RE, BD DL
CD read speeds : 1, 2, 4, 8, 12, 16, 24
Base speed in KB/s : 150
Capabilities:
- Can write in Disc-at-once
- Reads CD TEXT
- Writes variable pauses in Track-at-once
- Writes CD TEXT in Disc-at-once
- Has a buffer underrun protection feature
- Can write DVD+VR
- Supports Layer Jump for DVD-R DL
- Supports Overburn
- Can write in UltraRaw 96
Ok.
Thursday, December 01, 2011
Wednesday, November 30, 2011
Monday, November 21, 2011
How to reduce PDF file size from command line
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images)
-dPDFSETTINGS=/ebook (low quality, 150 dpi images)
-dPDFSETTINGS=/printer (high quality, 300 dpi images)
-dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs)
-dPDFSETTINGS=/default (almost identical to /screen)
Sources:
http://www.ubuntugeek.com/ubuntu-tiphowto-reduce-adobe-acrobat-file-size-from-command-line.html
http://milan.kupcevic.net/ghostscript-ps-pdf/
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images)
-dPDFSETTINGS=/ebook (low quality, 150 dpi images)
-dPDFSETTINGS=/printer (high quality, 300 dpi images)
-dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs)
-dPDFSETTINGS=/default (almost identical to /screen)
Sources:
http://www.ubuntugeek.com/ubuntu-tiphowto-reduce-adobe-acrobat-file-size-from-command-line.html
http://milan.kupcevic.net/ghostscript-ps-pdf/
Subscribe to:
Posts (Atom)