Installing Sun / Oracle Java JRE on Ubuntu 11.10 Oneiric Ocelot

So.. Sun no longer has packages in the Partner Repository for Ubuntu.. I can’t really guess as to why, possibly because of all this Open Source dickery that Oracle did first with OpenSolaris, and then with OpenOffice.. but that is all speculation on my part. The fact remains however.. that some things you need may require a Sun Java JRE, and to install it you will have to use a PPA.

Using Add Apt Repository
*if you are using Ubuntu Server.. you will have to install the package “python-software-properties” which contains the “add-apt-repository” tool you will need to add the ppa the way I’m going to show you.

Step #1 Add the repo.
sudo add-apt-repository ppa:ferramroberto/java

Step #2 Update your sources.
sudo apt-get update

Step #3 Install Java
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
*if you are not using a gui.. and just need java for something like say.. tomcat.. only install the JRE.

Dynamic Domain names with ddclient

I moved to FL, and got Comcast.. and my comcast doesn’t like to keep my IP the same.. I have a domain and while in Nebraska under Time Warner.. my IP address more or less stayed the same for years only changing once.. but here, no such luck.. and I need to pretty much dial home on occasion.. and I’ll explain how I do that later.. but anyhow.. whats a boy to do??

I hope you’ve heard of dyndns.com, they allow you to create a free subdomain address then use some software, in tis case ddclient on ubuntu, to feed it what your ip is.

So Step 1: go to http://dyn.com/dns/dyndns-free/ and make at least a free account, and decide whatever you want your domain to be.. mine will be something like..

supersexytodd.dyndns.org

(not really me k?)

once done on your Ubuntu.. you need to install ddclient

sudo apt-get install ddclient

during installation you will see a configuration menu.

 


And thats it, ddclient should push your dynamic ip to dyndns.. so that you can use DNS to sort out what your IP is even when you are away from home.

 

Raising Skinny Elephants is Utterly Boring – The Magic SysReq key

Ever have a linux box seemingly freeze on you?  Ever gripe aloud that you may have to hard boot the machine to get it back up?  Well.. Give this a try:

on a keyboard connected to the machine press and HOLD

ALT + PrtScrn/SysRq

then type in this order:

R S E I U B

While holding them, one at a time. The machine may restart after the B.

Why? It’s explained better in the Wikipedia Article, but essentially..

It takes back the keyboard from X, shuts things down gracefully.. and allows you to reboot.

unRaw (take control of keyboard back from X),
tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),
kIll (send SIGKILL to all processes, forcing them to terminate immediately),
Sync (flush data to disk),
Unmount (remount all filesystems read-only),
reBoot.