Java RMI Simple Bank System run on ubuntu

This is a simple Java RMI application where the server manages the bank accounts which are stored in a database and responds to the client requests. The system permits multiple clients to be able to access the server from remote PCs. The client, after he has log in, is able to check his account details, withdraw and and deposit money into his account. It may also help to compile/run Java RMI system on ubuntu

github link: https://github.com/2vansh/RMISimpleBankSystem

 

To run Java RMI server/client on ubuntu, run the following commands on terminal:

cd ‘/directory’

//compile .java files

javac BankServer.java

javac BankClient.java

javac BankAccount.java

javac BankInterface.java

javac DbConnection.java

rmic BankAccount

rmiregistry 2008

//run the server with mysql dependency

java -cp “/mysqldirectory/mysql-connector-java-5.1.23:.”BankServer

//run the client

java BankClient

postgresql “New Server Registration” connection problem on ubuntu?

“connection error” or “authentication problem” when trying to register a new server in pgAdmin III?

(ubuntu or xubuntu)

This post shows how to obtain & setup the “Host”, “Port”, “Username”, and “Password” of postgresql.

1) Obtain default port.  To do that, open up /etc/postgresql/x.xversion/main/postgresql.conf

See “port= 5432”. You may change the port used by postgresql.

postgresblog

2) Obtain Host.

Search the listen_addresses. For instance, here 'localhost' is my defaut host. You may alter the host here.

3) Change password.

Open terminal.

———————————————–

~$: psql -d postgres -U postgres

psql (9.1.3) Type "help" for help.
postgres=# alter user postgres with password 'mynewpassword'; ALTER ROLE
postgres=# q
~$:sudo /etc/init.d/postgresql restart
———————————————————-
Now you can run pgAdminIII. On form New Server Registration, set ‘Username’ to “postgres”, type in password you entered before, and the field ‘Name’ is up to your choice.