Posts

Showing posts from June, 2011

[Level 1] How to install Jython on Ubuntu.

You have two way to install jython on Ubuntu: 1. Use apt-get: # sudo apt-get -y install jython # jython --version 2. Download source: # cd /tmp # wget http://sourceforge.net/projects/jython/files/jython/2.5.2/jython_installer-2.5.2.jar/download # mv ./download ./jython.jar # java -jar ./jython.jar ... following the wizard. # export PATH=$PATH:/opt/jython/bin # (if you installed Jython in /opt/jython) # jython --version Wish this helps. regards, Stanley Huang

[Level 1] How to install Scala on Ubuntu.

You have two way to install it. 1. Use apt-get: # sudo apt-get -y install scala 2. Download source: (browse http://www.scala-lang.org/downloads first) # cd /opt # wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1.tgz # tar -C /opt zxf ./scala-2.9.0.1.tgz # export PATH=$PATH:/opt/scala-2.9.0.1/bin # scala -version Wish this helps. regards, Stanley Huang

[Level 2] Enable wireless of network-manager in Ubuntu 11.04

Once you upgrade Ubuntu from 10.04 to 11.04, and you will find out the network-manager won't manage wireless any more. But you still could change NetworkManager.conf to enable it. # sudo vi /etc/NetworkManager/NetworkManager.conf and change "managed" attribute from "false" to “true“ and restart it. # sudo /etc/init.d/network-manager restart Wish this helps. regards, Stanley Huang

[Level 1] How to set ntp client in Ubuntu.

If you want to sync time with time server in Ubuntu, you could use command ntpdate + time_server. And don't forget write date into bios too. ntpdate time.stdtime.gov.tw && hwclock -w Wish this helps. regards, Stanley Huang

[Level 1] How to grep in file.

Just use -P and '\t' with grep command. Ex. # grep -P '\t' /etc/passwd Wish this helps. regards, Stanley Huang

[Level 1] MP3 editor in Ubuntu.

If you want to modify mp3 in Ubuntu, you could use "audacity". And you could download it from reposity. The commands as the following. # apt-cache search audacity create-resources - shared resources for use by creative applications audacity - fast, cross-platform audio editor audacity-data - fast, cross-platform audio editor (data) audacity-dbg - fast, cross-platform audio editor (debug) vamp-plugin-sdk - audio analysis and feature extraction plugins (SDK) # apt-get -y install audacity After for a while, I heard a good tool to convert mp4 to mp3 call avidemux # apt-cache search avidemux libavidemux0 - a free video editor - shared libraries avidemux - a free video editor - GTK version avidemux-cli - a free video editor - command line version avidemux-common - a free video editor - Internationalization files avidemux-plugins-cli - a free video editor - CLI plugins avidemux-plugins-common - a free video editor - common files for plugins avidemux-plugins-gtk - a free video ...