Skip to main content

Posts

Showing posts with the label ubuntu

Some useful SSH Commands

Install SSH Server in Ubuntu sudo apt-get install openssh-server Run SSH Server sudo service ssh restart The output will be like * Restarting OpenBSD Secure Shell server sshd [ OK ] Check SSH Status ps -ef |grep "sshd" The output will be like hduser@d1:/hadoopSetup$ ps -ef | grep "sshd" root 125 0 0 02:35 ? 00:00:00 /usr/sbin/sshd hduser 138 79 0 02:45 pts/2 00:00:00 grep --color=auto sshd

How to Install Android Studio on Ubuntu 14.04

Followings are steps needed to install Android Studio on Ubuntu 14.04: There are some tutorials that suggest the installation using PPA. However, sometime it does not work because the PPA listed is no longer available or for any other reasons. In this post, I write manual way for installation. This way is much safer and more guarantee that it will work. Please let me know if you have any problem. Preparation If you run 64-bit ubuntu, install the following packages first. If you run 32-bit, you may skip this step and go to the next step $ sudo apt - get install lib32z1 lib32ncurses5 lib32bz2 - 1.0 lib32stdc ++ 6 Download JDK from Oracle You can download from their website. When I write this post, the download page is located here . However, they may move the download page. In case you don't find in that link, you can ask Google to find the download page for you. Extract JDK You can use Files Manager or use terminal. If you want to use terminal, you can use this command...

Android studio in ubuntu - problem: 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.

I love coding, especially Java. Because Android apps is written in Java, I would love to make one as well. Unfortunately, when I tried to install Android Studio on my Ubuntu yesterday, I got this error message: 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE. When I google on this error, there are so many websites and forums discuss about this error as well as the solutions. However, in linux (or ubuntu in my case), sometime we have different environment so that the solution will not always work (sometimes we have to do another thing before or after that solution). And this also happen in this case. Here are what I did then: 1. Know what exactly the problem is: the problem is that the JAVA_HOME in my system did not point to JDK. Instead, it points to a JRE. JRE can only be used to run java applications, not to build them. 2. Check the java path used by the system. In terminal, I typed the following: ...

Install Google Chrome in Ubuntu

Google chrome, a fast new browser, is now available for linux. That is the sentence I was waiting for. Now we can install google chrome for our linux. Just open this and click the button "download google chrome" on the right. The button will bring you to EULA (End User License Agreement) page, just choose which package you want to download. Or if you are using 32-bit ubuntu, just point to this link . If you use ubuntu, easier for you to directly open the downloaded package with ubuntu software center. What you need is just push the 'install' button, and all is done for you. Happy chroming with ubuntu...