Linux

warning: Creating default object from empty value in /home/phecht/public_html/ado/modules/taxonomy/taxonomy.pages.inc on line 33.
Things for the Linux and other unix operating systems

Fixing Ubuntu install from 10.04 -> 10.10 -> 11.0

If faced with a grub prompt, I did these commands to fix it:

set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
boot

after reboot:

sudo grub-install /dev/sda
sudo update-grub

Found in a comment here: http://aaron-kelley.net/blog/2011/04/grub-prompt-after-upgrade-to-ubuntu...

Jar listing utility--Java archive file tool. Handling import errors easily in 4 steps.

Here is a quick example on how to get a database of what is contained in jars:
Step
1 of 4) Create a file containing:
#!/bin/bash
jarfolder=/usr/share
jarlist=/tmp/jarlist.txt
declare -a jarclass
find $jarfolder -name "*.jar" > $jarlist
for jarfile in `cat $jarlist`;
do
jarname=`basename $jarfile`;
jarfolder=`dirname $jarfile`;

jarclass=( $( jar -tvf $jarfile | awk '{ print $8 }' ) )
for aclass in "${jarclass[@]}"
do
echo $jarname $jarfolder $aclass;
done
done

2 of 4) Edit top 2 lines if needed/wanted.

3 of 4) Run the script and capture the output. You will get output like this:
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/SessionEvent.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/TransferEventSupport.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/SessionEventSupport.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/resource/Resource.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/Wagon$1.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/Wagon.class

Note: The list has 3 fields: Jar file name, Jar path, Class name.

SCO files for bankrupcy, blames linux

http://biz.yahoo.com/ap/070914/sco_group_bankruptcy.html?.v=2

Explains that while they will continue to improve SCO unix, linux was too much competition in the marketplace and the court room.

Perl -- Hashes

If you know a scripting language, you can pick up the basics of perl pretty quickly.

ssh is something we need to know about.

Click here to find out how to get servers to trust each other.

Syndicate content