Thursday, December 31, 2009

Start Jboss Console with Jboss server listen to Ethernet Interface

By Default, the JBOSS admin console will not start with ./run.bat. Enter the following command to start JBoss admin console and listen to Ethernet interface

run $JBOSS_HOME/bin/run.sh -c all -b 0.0.0.0

test the server
http://jboss_server:8080
Test the admin console
http://jboss_server/admin-console with username admin password admin

Sunday, December 27, 2009

How do I change my Webmin password if I can't login?

Webmin distribution includes a program called changepass.pl to change the password of webmin account. Run the below command

/usr/local/src/webmin-1.441/changepass.pl /etc/webmin admin admin123
where "admin" is the existing webmin user and "admin123" is the new password
You can find the list of webmin users in /etc/webmin/miniserv.users

Saturday, December 26, 2009

Change DHCP to Static IP in Ubuntu

sudo vi /etc/network/interfaces

Change

auto eth0
iface eth0 inet dhcp

To

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Accessing a VM from the host over IP

You have configured the Virtual machine ethernet is configured for "Bridged" mode and you are not connected to a network. When accessing the virtual machine you realize that the VM does not get an IP address but you still want to access the VM over IP.

Solution:
Edit "Virtual Machine Settings"
Change Ethernet from "Bridged" to "Host Only"
The VM will get an IP.
Type ifconfig or ipconfig on the virtual machine.
You now have an ip address in range of 192.168.X.X

Ubuntu stops listning on eth0 in VMWARE

 After copying or cloning the working VM, I started ubuntu and found that the eth0 is no more getting an IP address.
Follow the below steps to fix it.
1. Edit the .vmx file of the virtual machine.
2. check the MAC address at ethernet0.generatedAddress = "00:00:00:00:d2:2b"
3. Edit /etc/udev/rules.d/70-persistent-net.rules on ubuntu and change the MAC to the above.
4. restart network by /etc/init.d/networking restart OR restart ubuntu.
5. On restart, ubuntu should bind the eth MAC correctly and the server should enable the ethernet adapter.