Aug 3
Splitting up a huge file on one line with sed
icon1 Mikkel Meyer Andersen | icon4 August 3, 2009 at 23:59 (UTC) | icon3 No Comments »
icon3 , ,

Sometimes when I export MySQL to files, I end up having one huge query on one line. It can be quite annoying! I’d rather want it on several lines; in that way it easier to just copy out a fragment of the query. And it also seems that some editors handle several lines better than one huge. Well, in this case my line looked like this:

INSERT INTO TABLE VALUES (...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...),(...);

With this sed-command, every entry got its own line:

sed s/\),\(/\),\\n\(/g export.sql > one-per-line.sql
Aug 19
Import VCF-file to Nokia 6300 from Ubuntu through bluetooth
icon1 Mikkel Meyer Andersen | icon4 August 19, 2008 at 13:47 (UTC) | icon3 2 Comments »
icon3 , , ,

Today I got a new Nokia 6300 – my old Sony Ericsson W810i had hard times charging. Of course I wanted to copy my phonebook onto my new phone, but it wasn’t as easy as I hoped for – but after a while I found an alternative and easy way.

Read the rest of this entry »

Aug 8
FreeBSD 7.0 on Xen 3.2
icon1 Mikkel Meyer Andersen | icon4 August 8, 2008 at 16:05 (UTC) | icon3 No Comments »
icon3 , ,

After I got Xen installed on Ubuntu Server 8.04, I wanted to install FreeBSD 7.0, too. But this was in no regards as easy as installing Ubuntu Server 8.04 as a domU!

Read the rest of this entry »

Aug 4
Ubuntu Server 8.04 as domU
icon1 Mikkel Meyer Andersen | icon4 August 4, 2008 at 10:23 (UTC) | icon3 5 Comments »
icon3 , , ,

If you have followed the guide in “Xen on Ubuntu Server 8.04 (Hardy Heron) with complex disk setup” or have an environment similar to that, please read on – if not please read on, too :-) . Since my server is hosted at Hetzner, this guide will be based on that. I want to use network bridging.

Read the rest of this entry »

Aug 3

This is a tutorial about how to use Ubuntu Server 8.04 as dom0 (host) for Xen, i.e. how to install Xen on Ubuntu Server. In a later post I’ll show how to install domUs (guests). The whole setup is done with a rather complex disk configuration using both raid 1 (mirroring) and LVM. It requires some knowledge about Xen (e.g. I’ll not try to convince you to use Xen – I assume it’s already your plan and you had read of all the advantages it gives you :-) ).

Read the rest of this entry »

Jul 31
Installing FreeBSD 7 from the view of a Debian user
icon1 Mikkel Meyer Andersen | icon4 July 31, 2008 at 17:50 (UTC) | icon3 4 Comments »
icon3 , ,

I’ve been using both Debian and Ubuntu on both server and desktop for some years now, but I think it’s time to try something new so I’m not getting stuck and reject everything that’s new (not that I tend to!). I think I’ll have a closer look on FreeBSD: installation, updating, etc. – seen from a Debian/Ubuntu user’s point of view.

Read the rest of this entry »

Jul 30
Xen vs. VMware ESXi vs. VMware Server
icon1 Mikkel Meyer Andersen | icon4 July 30, 2008 at 21:12 (UTC) | icon3 8 Comments »
icon3 , , ,

Yesterday I wrote an entry regarding ESXi. More precisely I described how to try VMware ESXi in VMware Workstation. My argument was on one side to try ESXi out (I’ve never installed nor tried it) and on the other side investigate whether it was a product I would use.

The case is that I have a server on which I want to run some sort of virtualization – I don’t think it’s appropriate to discuss why virtualization is a go (if you think so, search the web for articles regarding this subject – there are more than plenty discussing this matter). I need at least to host a web server and a mail server – and it would be great to be able to have some sort of playground, too. My mind’s almost made up in regards to the software for the web server and mail server: Ubuntu Server (or maybe FreeBSD – time will show :-) ). But what about the virtualization software?

Read the rest of this entry »

Jul 29
ESXi in VMware Workstation
icon1 Mikkel Meyer Andersen | icon4 July 29, 2008 at 08:41 (UTC) | icon3 No Comments »
icon3 , ,

Yesterday VMware ESXi became free (not as i beer but as in money), and I had to try it – initially in VMware Workstation 6. You need Intel VT (or AMD-V) to run ESXi!

Read the rest of this entry »

May 19
Lenovo X60 Tablet xorg.conf for Ubuntu 8.04
icon1 Mikkel Meyer Andersen | icon4 May 19, 2008 at 08:23 (UTC) | icon3 No Comments »
icon3

Just posting my xorg.conf; it works for me (sorry for the indenting)!

Read the rest of this entry »

Dec 7
i386 packages on amd64 (ia64)
icon1 Mikkel Meyer Andersen | icon4 December 7, 2007 at 17:56 (UTC) | icon3 No Comments »
icon3

Today I tried to install MuPAD (a 32-bit application), but got the error:

package architecture (i386) does not match system (amd64)

Actually the support didn’t help much although it said that 64-bit systems were able to run MuPAD. It turned out they forgot to specify the right command:

sudo dpkg --force-architecture -i mupad-4.0.2-1-linux-i386.deb

Instead they wrote that this should be executed (but as stated, it doesn’t work):

sudo dpkg -i mupad-4.0.2-1-linux-i386.deb

(I know it’s quite simple — maybe that’s why I didn’t find anything on my search — but I’m just posting this hoping it would help others.)

« Previous Entries