Install Java Runtime environment under Ubuntu
Answer:
In the command shell, type:
sudo aptitude install sun-java6-jre sun-java6-plugin
The commands will install the Java Runtime environment as well as the browser's plugin (e.g. Firefox)
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Install Java Runtime environment under Ubuntu
Answer:
In the command shell, type:
sudo aptitude install sun-java6-jre sun-java6-plugin
The commands will install the Java Runtime environment as well as the browser's plugin (e.g. Firefox)
Fixing the broken arrow keys in Ubuntu's Vim
Answer:
The default Ubuntu's vim is vim-tiny, in a word: suck!
Fix it by...
apt-get install vim-nox
Then you can use the arrow keys.
How to install SSH server in Ubuntu?
Answer:
If you did not select to install the OpenSSH server during Ubuntu setup process, you can install afterward using the command
sudo apt-get install openssh-server
And make sure the OpenSSH server is running, by
sudo /etc/init.d/ssh restart
Reference: https://help.ubuntu.com/7.04/server/C/openssh-server.html
How to pretty print my.cnf with a one-liner?
Answer:
A very cool command.
perl -ne 'm/^([^#][^\s=]+)\s*(=.*|)/ && printf("%-35s%s\n", $1, $2)' /etc/my.cnf
Reference: http://www.mysqlperformanceblog.com/2009/06/15/how-to-pretty-print-mycnf-with-a-one-liner/
Install 64-bit Flash plugin for 64-bit Ubuntu
Answer:
1. Remove currently installed versions of Flash
sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla
2. Visit http://labs.adobe.com/downloads/flashplayer10_64bit.html to update the filename given under if necessary
3. Download the 64-bit Flash plugin and extract it: (for example, current version is: 10.0.42.34)
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz && tar xvfz libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz
4. Move the file in /usr/lib/mozilla/plugins for a site-wide install (or in ~/.mozilla/plugins for a single-user install):
5. Restart Firefox.
Reference: https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins