- page 11

How to install Java 6 on Ubuntu 12.04

How to install Java 6 on Ubuntu 12.04

In Ubuntu: (as root) % mkdir /usr/lib/jvm % cd /usr/lib/jvm % cp /data/download/jdk-6u33-linux-x64.bin . % chmod a+x jdk-6u33-linux-x64.bin % ./jdk-6u33-linux-x64.bin % mv jdk1.6.0_33/ sun-java6-jdk % update-alternatives –install "/usr/bin/java" "java" "/usr/lib/jvm/sun-java6-jdk/bin/java" 1 % update-alternatives –install "/usr/bin/javac" "javac" "/usr/lib/jvm/sun-java6-jdk/bin/javac" 1 % update-alternatives –install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/sun-java6-jdk/bin/javaws" 1…

Continue reading →

Search for a specific string inside a directory matching the files’ name

Search for a specific string inside a directory matching the files’ name

find . -name "articleTypes.xml" | xargs grep -n -i -e 'tidy' or find . -name "apple.txt" -exec grep -H -n -i -e "tidy" \{} \; Search from the root all the files called ‘articleTypes.xml’ which contain the word ‘tiny’ and show in what line it…

Continue reading →

Format XML with TextWrangler – updated

Format XML with TextWrangler – updated

– Open TextWrangler and open a new text file. – Copy and paste the code below into this file. #!/bin/sh xmllint –c14n "$*" | XMLLINT_INDENT=$'\t' xmllint –encode UTF-8 –format – – Save the file, something like TidyXML.sh, in the Filters folder. (currentUser/Library/Application Support/TextWrangler/Unix Support/Unix Filters) – You…

Continue reading →

SpinRite

SpinRite

SpinRite is a computer software program for scanning magnetic data storage devices such as hard disks, recovering data from them and refreshing their surfaces. When the program encounters a sector with errors that cannot be corrected by the disk drive’s error-correcting code, it tries to…

Continue reading →

Re-build the keyboard setting

Re-build the keyboard setting

sudo dpkg-reconfigure console-setup

Continue reading →

Size of a directory

Size of a directory

du -h | tail -n 1 du -h

Continue reading →

New IP

New IP

sudo dhclient

Continue reading →

Flush the dns cache on mac

Flush the dns cache on mac

Mountain Lion and Lion sudo killall -HUP mDNSResponder Previous versions dscacheutil -flushcache

Continue reading →

Search for a file in a specific folder matching a string

Search for a file in a specific folder matching a string

for file in *.jar; do echo “working on $file”; jar -tvf $file | egrep -i *.gif; done

Continue reading →

Resolve UTF-8 issue in Linux Console

Resolve UTF-8 issue in Linux Console

Add the following line to your .profile: export LC_CTYPE=en_US.UTF-8

Continue reading →

Page 11 of 16 ← First ... 9 10 11 12 13 ... Last →