Linux
cgrep — a grep enhancement to show preceding lines
0Solaris grep has no way to printing the lines surrounding a match. Yet my most common use of grep is to locate particular strings in a log file, with the goal of looking at the log messages previous to them. There is a simple solution for this. And also, please note, I did not write any of the code linked here. Just posting it to help others find it.
Installing Oracle 11 <span class="caps">XE</span> on Ubuntu 10.10 or 11.04, 64-bit
2Oracle recently released the XE version of Oracle 11 specifically for Ubuntu 64-bit. These instructions and an automated script will get it up and running in just a few minutes.
(more…)
How to Download Oracle 11gR2 from command line
Oracle doesn't give direct downloads to the Oracle software. You generally forced to go through a few web pages to login to your Oracle account, then accept a license agreement, then finally get the files. With remote servers you would be forced to download the file locally then push it to the server. Oracle 11 is upwards of 1 GB, so this isn't feasible. Better yet is to download directly to your server. That said, it is really quite simple — just use wget with authentication credentials.
Adobe <span class="caps">AIR</span> and TweetDeck on Ubuntu Jaunty 64-bit
Adobe AIR finally runs on my laptop. After an install on Jaunty Jackalope 64-bit there is a final manual step to take to copy a library.
Full description here: Installing Adobe AIR on Ubuntu Jaunty 64-bit
Steps:
Download installer from http://get.adobe.com/air/.
Make executable: chmod +x AdobeAIRInstaller.bin
Step through install process
Final missing step:
Copy library: sudo cp /usr/lib/libadobecertstore.so /usr/lib32
Now I can try the TweetDeck twitter app! Well, that requires more steps which can be found here:
Installing Adobe Air 1.5 + Tweet Deck on Ubuntu 9.04 64 bit
TweetDeck 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 username prompt came up immediately but there was about 30 seconds of delay before it showed password prompt.
Solution 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 daemon:
sudo /etc/init.d/ssh restart
Discussion thread I pulled this from here: Slow SSH login — Ubuntu