Linux

cgrep — a grep enhancement to show preceding lines

0

Solaris grep has no way to print­ing the lines sur­round­ing a match. Yet my most com­mon use of grep is to locate par­tic­u­lar strings in a log file, with the goal of look­ing at the log mes­sages pre­vi­ous to them. There is a sim­ple solu­tion for this. And also, please note, I did not write any of the code linked here. Just post­ing it to help oth­ers find it.

(more…)

Installing Oracle 11 <span class="caps">XE</span> on Ubuntu 10.10 or 11.04, 64-bit

2

Ora­cle recently released the XE ver­sion of Ora­cle 11 specif­i­cally for Ubuntu 64-bit. These instruc­tions and an auto­mated script will get it up and run­ning in just a few min­utes.
(more…)

How to Download Oracle 11gR2 from command line

Ora­cle doesn't give direct down­loads to the Ora­cle soft­ware. You gen­er­ally forced to go through a few web pages to login to your Ora­cle account, then accept a license agree­ment, then finally get the files. With remote servers you would be forced to down­load the file locally then push it to the server. Ora­cle 11 is upwards of 1 GB, so this isn't fea­si­ble. Bet­ter yet is to down­load directly to your server. That said, it is really quite sim­ple — just use wget with authen­ti­ca­tion credentials.

(more…)

Adobe <span class="caps">AIR</span> and TweetDeck on Ubuntu Jaunty 64-bit

Adobe AIR finally runs on my lap­top. After an install on Jaunty Jack­a­lope 64-bit there is a final man­ual step to take to copy a library.

Full descrip­tion here: Installing Adobe AIR on Ubuntu Jaunty 64-bit

Steps:
Down­load installer from http://get.adobe.com/air/.
Make exe­cutable: chmod +x AdobeAIRInstaller.bin
Step through install process

Final miss­ing step:
Copy library: sudo cp /usr/lib/libadobecertstore.so /usr/lib32

Now I can try the Tweet­Deck twit­ter app! Well, that requires more steps which can be found here:
Installing Adobe Air 1.5 + Tweet Deck on Ubuntu 9.04 64 bit

Tweet­Deck works! Nice app!

Slow <span class="caps">SSH</span> in Ubuntu (speeding it up)

Some servers I was using today had very slow SSH logins. The user­name prompt came up imme­di­ately but there was about 30 sec­onds of delay before it showed pass­word prompt.

Solu­tion was to edit the file /etc/ssh/sshd_config to turn off DNS check:

sudo vi /etc/ssh/sshd_config

Add line at end:
UseDNS no

Then restart SSH dae­mon:
sudo /etc/init.d/ssh restart

Dis­cus­sion thread I pulled this from here: Slow SSH login — Ubuntu

Go to Top