Search This Blog

Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Saturday, September 26, 2015

Gradle , how to start ?



Download Gradle
https://gradle.org/gradle-download/




Configure environment entries
add GRADLE_HOME/bin --> path ,where GRADLE_HOME is gradle installation folder.


Reboot


Check by typing gradle -v to see if it installed correctly


Now create an eclipse project with source attached below






package main.java.hello;



public class Greeter {

public String sayHello() {

return "Hello world!";


}

}




////


package main.java.hello;

public class HelloWorld {

public static void main(String[] args) {

Greeter greeter = new Greeter();

System.out.println(greeter.sayHello());




}


}


//////////////


Once done make a file called build.gradle in root folder of your project.




content of build.gradle

apply plugin: 'java'











go to command prompt and rungradle build





Gradle working fine on your system




how to troubleshoot ssh on ubuntu if putty is not connecting

apt-get install openssh-server

Check if sshd_config is available /etc/ssh/sshd_config

If available, please check if the port is not commented out.

sudo restart ssh

If you get the error, "Unable to connect to Upstart", restart ssh with the following:

sudo systemctl restart ssh
If you are still not able to connect enable it in firewall
 

Friday, September 11, 2015

How to do Mac to IP binding in router

Some times when you are doing port forwarding on router, it becomes important that you bind the mac address of the device to the IP inside the router configuration.


To do this navigate to


Setup-->localnetwork









Add your mac address +fixed IP address +reboot the router.


Your device will always acquire the same IP on the LAN and you can use port forwarding to forward your services.

Get a free static IP for your computer

If  your laptop has a dynamic IP you won't be able to access it over internet or a shared LAN, because its address will change every time it boots up.
 
 
To solve this
 
  1. Get a free IP from noip.com
  2. Download their client.
  3. Now your IP will not change even after you reboot the computer.
Now since you are having a static IP you can do port forwarding and host number of services on your system like Apache or Cloud based services.


To know about port forwarding click here