Activate password authentication on Ubuntu VMs on Amazon EC2
ssh -i [path to private-key-file] [target IP] # In the host shell sudo adduser [username] # Add a new user; this command also prompts for setting the passwo...
ssh -i [path to private-key-file] [target IP] # In the host shell sudo adduser [username] # Add a new user; this command also prompts for setting the passwo...
Extract the .gz file to standard output (option -c) and pipe this to target file. # example <pre><code>gzip -c inputfile.gz > outputfile</code...
On console, run dpkg -L [package name] Sreekumar KjSreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2...
To find the list of installed packages on ubuntu/debian, on console run <pre>dpkg --get-selections</pre> To find if a specific package is installed ...
To enable password based authentication on RHEL/Centos machines, login as root to the target host. ( sudo the commands below if you are not logging in as root) ...
Problem: SSH asks for password even after updating the .ssh/authorized_keys in target host with user’s public key. Reason: A permission issue Fix: Login with pa...
Problem: The arrow keys insert characters, no status message at the bottom etc. Reason : The default Vim on Ubuntu is vim-tiny, a skeleton version. Fix: Install...
Install JDK on Ubuntu manually without depending on PPAs – Select the required package from here – http://www.oracle.com/technetwork/java/javase/downloads/index...
Problem : Eclipse gives the error – “[function/type] is not accessible due to restriction on required library … rt.jar” when building a project. Reason: Project...
Problem: Ubuntu gives error “Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?” when using apt-get. Reason: Another apt...