Posts

CentOS 6.0 minimal install networking vmware

The other day I've installed CentOS 6.0 i386 and found that I have no network connection. Quick google search told me that it has got turned off by default. So to enable it one needs to do the following. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add ONBOOT="yes" BOOTPROTO="dhcp" . Save then service network restart and network is up and running.

wc -l on windows

So you have a set of txt files that contain data and you would want to count the number of lines/records in those files. Naturally you would use wc -l, but then you realise that you are on windows. Here is one solution that can be used: for /f %g in ('dir /b *.txt') do type %g | find /v /c "ZZZZCCCC" Assuming that you knnow for sure that there is no line that would contain the string "ZZZZCCCC".

MIDI keyboard setup as synthesizer

Image
I finally got my MIDI keyboard and tried to connect it to a laptop, I happen to have a GNX Guitar Workstation therefore I didn't need to purchase a midi to usb cable. See schematics: I wanted to refresh my rusty keyboard skills, so started to look for a free software stack that I can use to produce some sound using the simplest and most CPU/ Sound Chip friendly solution that works on Windows 7. First I needed a fairly low latency synthesizer the BASSMIDI Driver fits the bill very well, but it is a sound font based synth so I needed a decent sound font: Weeds GM3 is a good one. Setup: Download and install Installer bassmididrv2.02.exe Then download the Weeds GM3 sound font uncompress and configure the driver. You need to run the configuration tool As Administrator . Click Add Select the sound fount Click Open. That is all fine, but how will I connect this to the MIDI input. There are multiple solutions to this problem, one of them is to use the MidiRouter which is a ...

Xubuntu 11.10 vnc server

I've recently decided to use my desktop as a server without keyboard/screen. To accomplish that I needed a way to connect to the machine so I went off VNC hunting. After lots of research I've found a couple of useful forum posts at the Ubuntu Forum . For the sake of simplicity I summarize them here. Install x11vnc sudo apt-get install x11vnc Setup vnc password sudo x11vnc -storepasswd PaSsWoRd /etc/x11vnc.pass Configure x11vnc to start when your system starts Create /etc/init/x11vnc.conf file and add this as a content: start on login-session-start script x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900 end script Test it with RealVNC or TightVNC It was all working fine until I noticed that the screen resolution that I wanted to use wasn't available in xfce. ie.: my screen is 1680x1050 and I've got a vnc session with 1600x1200.

Youtube: "Error Try Again" error message when posting a comment

I went mad the other day when I tried to answer to a question about one of my video posts. Every time when I tried to click on the post button it said: Error, Try Again in red. I just couldn't work out what the hell is going bad, after extensive research I found that this meaningful error message appears if you try to include a web link into your post. Don't get me wrong I don't have a problem with a policy like that, but I'd have expected the thing to tell me that what the problem is instead of: Error, Try Again.

Installation of Centos 5.5 minimal version to VirtualBox 4.0.4 vm

Image
Download the first iso cd for Centos 5.5 from the website http://wiki.centos.org/Download

Setup the VirtualBox vm to boot from Centos 5.5 boot image

Image