суббота, 2 июня 2012 г.

Java build/ci server setup + some other (Ubuntu Server 12.04) - Part 1

[DRAFT]

This post is more note for me. I'll use it when it will be required to setup real server instance.

Ubuntu server installed, I did my first login to it.

1. Update software
sudo apt-get update
sudo apt-get upgrade

2. Install SSH client and server
sudo apt-get install openssh-client
sudo apt-get install openssh-server

default configuration is OK for me.

3. Ooops, wrong timezone setup by default
sudo dpkg-reconfigure tzdata

adding ntp time update

sudo apt-get install ntp ntpdate

4. Midnight Commander. Sorry, I'm not a console ninja yet
sudo apt-get install mc

5. Subversion server setup
Very nice article can be found there: http://odyniec.net/articles/ubuntu-subversion-server/




Bridged networking in VmWare Player 4 not working [solved]

I'm against using pirated software, so when it is possible trying to use free and open source products. That's why I installed VMware Player 4 several days ago.

It was planned to setup Linux server to gain some specific experience. First problem that appeared on my way was virtual machine network setup. NAT network access works OK, but bridged networking became pain. It took me about 2 hours to find a solution for the problem, actually everything is simple :)

When virtual machine starts (with bridged networking) it sticks to some automatically selected real network adapter and tries to operate through it. I'm using WiFi, also I have gigabit network adapter which I'm not using; VMware player tried to operate wired network and failed.

You can disable all unneeded network adapters and reboot VM, but it's good as temporary and fast solution. Good solution requires some time and effort. We need to unpack virtual network configuration tool from VMware distro.

First, unpack setup package with command
VMware-player-4.0.3-703057.exe /e ./tmp/

Then, unpack ./tmp/network.cab archive, most valuable stuff there is vmnetcfg.exe - drop this exe to player installation dir. In my case it was C:\Program Files (x86)\VMware\VMware Player.


Launch C:\Program Files (x86)\VMware\VMware Player\vmnetcfg.exe 



Select bridged virtual network adapter (in my case it is VMnet0), select right real network adapter in a middle part of form (in my case it is Intel(R) WiFi Link 1000BGN). Hit OK. Now it should work well.

Njoy =)

UPD:
Just uninstalled Oracle VirtualBox and my VMnet0 disappeared from the networks list. I had to return it back. Click 'Add Network' button, select VMnet0, then do bridged networking setup.

Notebook memory upgrade

Suddenly realized that I haven't written to the blog for a very loooooonggg time.

I have good news =)
I upgraded my Lenovo X220 notebook, now it has 8Gb of memory. Yeah, I'm cool now =)

There are several reasons that caused this:
- need to do some virtualization;
- memory became cheap;
- psychological/mentality bug which makes ppl more heappy when they are spending their money <-- I guess this was the main :)

Laptop became faster, that's good.