Install, Configure, and Deploy .war Application in Glassfish

Glassfish is a free, open source application server which implements the newest features in the Java EE 5 platform. The Java EE 5 platform includes the latest versions of technologies such as such as JavaServer Pages(JSP) 2.1, JavaServer Faces(JSF) 1.2, Servlet 2.5, Enterprise JavaBeans 3.0, Java API for Web Services(JAX-WS) 2.0, Java Architecture for XML Binding(JAXB) 2.0, Web Services Metadata for the Java Platform 1.0, and many other new technologies. You can use glassfish to replace apache web server or bea weblogic. The commercial version of this application server is Sun Java System Application Server. Continue reading

Change Hostname in Solaris 10

Solaris is not is easy to maintain, that from what I experienced up till now +__+. For example if you want to change the name of our computer you have to go through all this stuff, while in Windows you can do it easily :P, but this is the interesting part, you have to try it!!

Change the name in /etc/nodename

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hostname.interface

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hosts

127.0.0.1 localhost

10.0.0.1 new_hostname loghost

After this you can type

hostname new_hostname

After that you can try to reboot and check by ping to your new hostname.

Configure Solaris Container (Zoning) in Solaris 10

Solaris Container is a virtualization technology that come from SUN, from my experience you can only make virtualization for Solaris I don’t know if for another OS. We usually call it with SUN Zone CMIIW. With this container we can manage resource for application and services, another virtualization can do it too, I think…

The bottom line is that my experience with Solaris Container is to deploy some application (Web Application) inside those container in one server, like SUN T5220, so later this server “seems” to have so many OS, each with its own IP address, file, processor, and another resources.

In my case I’m using T5220 which has 64 thread that is equal having 64 CPU, and my application need at least 4 CPU. This would make one T5220 can have around 16 application with their own separated environment (not completely). Because if the server is being shut down, the container is shut down too. But when the server is up we can easily boot, reboot the container. If you want to have the real virtualization, I mean when the server is broken but you don’t want your container broken you have to use SUN Fire E25K server, it will cost you around 1 up to 4 million US dollars 😛 Continue reading

Export Display in Unix

Export display is quite important for people that work in data center since it is impossible to put every server with a monitor, well actually you can do it with KVM switch, but then you still have to walk to get them. With this way you don’t have to do it, the requirement is only good network connection and strong computer to handle all the GUI 😀

In the case where your server doesn’t have any VGA card, so it’s impossible for you to plug in your monitor and all you can do is to connect by terminal server using COM port, you can try to export your Server’s Desktop into your desktop using export DISPLAY. This also will be useful if you employ a tight security option in your server, for example all of the port in your server is closed but port 22 or 23, then to make a remote desktop connection you can try this option.

Remote Desktop

Continue reading

LDAP Server (OpenLDAP) in OpenSuse 10.2

You might wonder what is LDAP, well in my opinion LDAP is a program that can manage all the user in our environment. One of the example is Windows Active Directory, with this you can make centralized login for all of your user, you also can manage how to define the rules for your user (like password policy). Too bad that you have to pay a lot of money to get this software, so the alterantive is by using OpenLDAP. Both Windows AD and OpenLDAP are a good LDAP server, but to configure LDAP is quite painful, you have to do it in konsole, but in OpenSuse 10.2 you can configure it with yast. Continue reading

Managing Disk Quota in OpenSuse 10.2

Hi all, once again I will post some stuff that makes your OpenSuse 10.2 become a very useful Server. This time I will give you how to manage the utilization of your hard disk usage by your user, in this case for your storage server. Sometime it really pain in the ass if one of our user put a lot of data in our very limited storage – like I did 😛 – so as an admin we should give some effort to limit their storage capacity. Continue reading

Multiple Subnet DHCP Server in OpenSuse 10.2

Hi all, long time not writing about IT stuffs, I’ve been a little busy lately :P. Anyway you might be wandering why my writing always about OpenSuse, well it because in my workplace they all use OpenSuse as primary OS (even for servers) for software development, of course there are some Windows PC, but it’s only about 30 %, and some using Solaris, so it’s a Unix world here 😀

About a month ago my boss asked me to replace the old machine that did all from proxy, DNS, DHCP, and Internet gateway. So in my plan I want to divide the machine into 2 machine one for DHCP and DNS while the other for proxy and internet gateway. For now I will discuss about DHCP server for multiple subnet. Continue reading

Modification in Samba Server – Mixing User and Share Level Security

As you know samba is used to share Linux machine, so that it can be visible when accessed by Windows machine (CMIIW), making Linux become a good File Server in a mixed network environment. Anyway as a file server we cannot just give the access to everyone to “see and access” all the folder inside it. I bet you still want to have some privacy for your self.

Authentication in Samba comes in several ways, but what we are focusing is on the mixing of share and user level security. In user level, the user need to input some credential BEFORE the user want to “see and access” what file available in that share. While in share level, the user can see all the file but then, the user need to put some credential if they want to access the file (each file or folder has different password) So what we want to do is to have user-level security on your Samba server, but we want Windows clients to be able to see a list of shares on the Samba server without authenticating, like a share level server.

Continue reading