Uninstalling JAVA from Ubuntu

Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): dpkg-query -W -f=’${binary:Package}\n’ | grep -E -e ‘^(ia32-)?(sun|oracle)-java’ -e ‘^openjdk-‘ -e ‘^icedtea’ -e ‘^(default|gcj)-j(re|dk)’ -e ‘^gcj-(.*)-j(re|dk)’ -e ‘^java-common’ | xargs sudo apt-get -y remove sudo apt-get -y autoremove Purge config files: dpkg -l | grep ^rc | awk ‘{print($2)}’ | xargs sudo apt-get…

My First Node.js Application

This article is in continuation to the Nodejs Series. To refer how to install Nodejs on Ubuntu follow the link Setting up Nodejs Environment on Ubuntu Hello world application that returns “Hello World” to any HTTP requests. Move to your projects directory user@LT-201: mkdir /projects/trials/nodejstrials create a helloworld.js using the vi editor user@LT-201:vi helloworld.js Write…

AWS Ubuntu SSH

To connect to AWS ensure to have the pem file at your disposal. Check the pem file ls *.pem ls -la emailverifier-DC.pem chmod -w emailverifier-DC.pem ls -la emailverifier-DC.pem Appropriate permissions on pem file ls -la ls -la emailverifier-DC.pem-~ chmod go-rw emailverifier-DC.pem ls -la emailverifier-DC.pem chmod -w emailverifier-DC.pem pwd Transfer a file from local system to…

Git Add user to local repository

user@Sys208:~/works/Project1/data-entry/Data-entry-tool$ git add -A && git commit -m “Initial Commit.” *** Please tell me who you are. Run git config –global user.email “you@example.com” git config –global user.name “Your Name” to set your account’s default identity. Omit –global to set the identity only in this repository. fatal: unable to auto-detect email address (got ‘user@Sys208.(none)’) To set…