Submitted by mariussm on Wed, 04/03/2013 - 13:33
Just experienced a problem with a Exchange 2010 SP3 Hybrid environment, with Office 365 wave 15. When In-place Hold is activated (typically for eDiscovery), DirSync returns cd-error when exporting the user attributes to Active Directory. This will not affect the functionallity, but will give you events in the Event Viewer telling you the following.
Submitted by mariussm on Thu, 11/08/2012 - 15:12
Very short article this one. Ever tried googling/binging for how to eject the dvd-drive in Hyper-V 2012 using PowerShell? It is actually very easy and logical, and also documented in the examples.
The following Get-Help cmdlet shows you how to do this.
# Get-Help Set-VMDvdDrive -examples
Basically do the following to eject ALL your dvd-drives (first line), or use the second line to eject all dvd drives that have mounted an ISO from the E:\Install directory. You can of course also use the third line to eject from a single VM.
Submitted by mariussm on Fri, 12/30/2011 - 19:43
Apache is a well known web server that I have used quite a lot. It does however have it's problems. First of all Apache is a memory hog of dimensions and is not working very well on low memory servers like Virtual Private Servers (VPS). Second it's quite very mainstream so some security holes are discovered. And third, it is very big and therefore also very slow.
As I have currently been experimenting with a VPS, I have been working on making Drupal 7 working properly on Lighttpd, with pretty URLs / mod_rewrite enabled with quite good results. I have found no best practices for running Drupal on Lighttpd, so here is my configuration.
Submitted by mariussm on Wed, 10/05/2011 - 12:28
Just experienced a problem with a MySQL installation, which made all eksternal connections (not to localhost) take a very long time to open, making the MySQL server reach the connection limit and rendering it completely useless.
The problem was that the primary DNS server had died. Apparently MySQL uses reverse DNS when checking connections, by default. This can be turned of my adding skip-name-resolve to the [mysqld] section of the /etc/mysql/my.cnf configuration file and restarting the service.
Submitted by mariussm on Tue, 09/20/2011 - 23:22
Running scripts as another user might sound like a trivial task, as this is what setuid is supposed to solve. However, if you create a bash script, a php script or another type of script you will soon discover that they do not respond to the setuid flag. This is mainly because of security and the fact that the scripting languages usually have not implemented the setuid functionality at all.
Submitted by mariussm on Tue, 07/26/2011 - 21:20
Dynamic routing are becomming more and more common these days, but not on the server side. Actually, Windows 2008 Server no longer supports Open Shortest Path First (OSPF), even though 2003 server did. The most common way of implementing dynamic routing in larger networks, are in the Wide Area Network (WAN) between firewalls. In this guide I will show how to use OSPF in Linux by using the Quagga Software Routing Suite.
As usual I use Debian linux, so let's start by installing Quagga.
Submitted by mariussm on Tue, 07/26/2011 - 20:44
Ever wondered how to use iptables on debian, without using any GUI solution? Let me explain how I do it.
Usually I use two files /etc/iptables_secure.sh and /etc/iptables_open.sh. The secure script has firewall enabled, while the open script makes iptables accept all connections. Also, I use /etc/init.d/firewall to start and stop the firewall at boot.
Submitted by mariussm on Mon, 06/27/2011 - 22:03
There are so many amazingly bad guides to Apache and virtual hosting, so i decided to create a good one. This guide uses Apache2 running om Debian 6. I will not cover installation and stuff. Also, I cut right to the chase.
Submitted by mariussm on Sun, 06/26/2011 - 23:04
The current version of HP Dataprotector for Linux, does not support ocfs2 and ext4 file systems. There is one very easy workaround for this.
Submitted by mariussm on Sat, 06/25/2011 - 19:39
OpenSSL is an open source toolkit containing loads of cryptographic functions that enable you to hash, encrypt and sign your documents. But the commands can be rather difficult to get an overview over, since there are so many. I will try to guide you through the most basic tasks.
You must first start with installing it. It is preinstalled on OS X, Windows users have to go here, while Linux users should use their packaging system. apt-get install openssl for Debian.