Mobil Mewah

Salah satu sumber Inspirasi.

Mobil Sport terbaik

Anda pasti bisa memilikinya.

Bermain dengan pesawat

Salah satu ide yang gila, Balapan di udara.

Bermain di angkasa

Apakah ini salah satu Goals dalam hidup anda? anda pasti bisa mencapainya

Monday 16 June 2014

Add Vmware client as a service in windows

So how to make Virtual machine running with VMware workstation run as a service with windows.

This will allow a VM keep running when log out form windows sessions.

We can do this with windows resource toolkit to register a service in windows server.

First download from microsoft website the Windows 2003 resource tool kit by search in microsoft website windows 2003 resource tool kit.

Then after install the resource toolkit, we need to run the instsrv.exe to register, and use srvany.exe .

The default installed to program files folder.

VMware can be initialized within command line, so we use the command to start the VM from the service console.

Here are the command for running VM :

"c:\folder\to\vmware.exe" -X "c:\folder\to\vmserver.vmx"

With that command, vmware will launch a VM with vmserver.vmx config file.

So we install first the service, let say the name is VMServer1

C:\path\to\instsrv.exe VMServer1 C:\path\to\srvany.exe

You will have the service in your services list MMC in windows control panel.

After that, you can edit the service from windows registery.

Open regedit.exe , then find :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

Look for the service name we created before, which was VMServer1, then

right click, select new, then click key. Give the key name Parameters .

Then in the Parameters key, right click and select new string value, name it Application.

Then the value of the Application will be the vmware workstation command line i stated above. Put in the value there.

Then you can check in the service console of windows 2003, then look the property and select the Log On Tab,  Make sure the Local System Account is selected. And select the Allow service to interact with desktop check
box.

This way, your VM will run when you are login.

Monday 2 June 2014

Multiple Network Configuration in Linux

Multiple Network Configuration in Linux
I have a Debian linux OS and use it in my office and in my home. The network configuration i use is using static configuration. I have problem with this, when i swicth from home to office network, the configuration is different, the routing also different.

Everytime I switch network, I have to open the configuration file in /etc/network/interfaces  and enable / disable configuration line.

So I do some research and found that we can create a multiple configuration in the interface file. so when we have let say 2 config called home and office, we switch the configuration by issuing this command :

#ifup eth0=home

#ifdown eth0=home

#ifup eth0=office

#ifdown eth0=office


So lets go with the example , file /etc/network/interfaces  :

auto lo

iface lo inet loopback



#home config

iface home inet static

   address 192.168.1.100

   netmask 255.255.255.0

   broadcast 192.168.1.255

   gateway 192.168.1.111

   dns-nameserver 8.8.8.8



#Office config

iface office inet static
  address 192.168.100.100

  netmask 255.255.255.0
  broadcast 192.168.100.255
  gateway 192.168.100.24
  dns-nameservers 8.8.8.8
  up route add -net 172.16.0.0 netmask 255.255.0.0 gw 192.168.100.99


With this config file we can just set the interface configuration to the one we need. Example when in office issue this command :

#ifup eth0=office


If in home, just issue :

#ifup eth0=home

With this configuration, we not need to touch the configuration files.
How about the GUI ? Well, i am a server guy, so command line is powerfull enough for me.


Twitter Delicious Facebook Digg Stumbleupon Favorites More