Category Archives: OS

[Linux] Sort the disk usage

du -B M –max-depth=1 | sort -g Ref.: [ubuntu] 利用du搭配sort來查看磁碟使用空間]1

Posted in Linux | Leave a comment

[Mac] Port in use..

lsof -n -i4TCP:$PORT | grep LISTEN Ref: stackoverflow: Who is listening on a given TCP port on Mac OS X?

Posted in Mac | Leave a comment

[Intellij] Can’t start git

After Mac OS X upgrading, something happen in the Intellij. screenshot Then we should enable the Xcode license again. sudo xcodebuild -license Ref. OSX Mavericks and Git Error

Posted in Intellij, Mac | Tagged , | Leave a comment

Install Wireshark in Mac OSX 10.10

Ref: [Mac] Wireshark 找不到 X11? brew cask install wireshark brew cask install xquartz

Posted in Mac | Leave a comment

Install Windows 10 preview in virtualbox

Ref: http://www.sysprobs.com/install-windows-10-on-virtualbox-and-its-guest-additions

Posted in Virtualbox, Windows | Leave a comment

Install aglio in Ubuntu 14.04

Install nodejs Ref. NodeSource Node.js Binary Distributions apt-get install -y nodejs nodejs-legacy Install python apt-get install python-dev Install aglio Ref. Github : aglio npm install -g aglio

Posted in Aglio, Ubuntu | Leave a comment

Mac 安裝 brew cask

brew install caskroom/cask/brew-cask

Posted in Mac | Leave a comment

[Apache HBase] Install Apache HBase in Ubuntu 14.04

Java 1.7 add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java7-installer apt-get install oracle-java7-set-default Cloudera HBase Ref. installing-apache-hbase-on-ubuntu-for-standalone-mode Note. hbase tar file choose http://archive.apache.org/dist/hbase/hbase-0.98.5/hbase-0.98.5-hadoop1-bin.tar.gz (or http://ftp.mirror.tw/pub/apache/hbase/hbase-0.98.11/hbase-0.98.11-hadoop1-bin.tar.gz )

Posted in HBase, Ubuntu | Leave a comment

[Ubuntu] Enable exFAT support

All you need is install the exfat-* packages. sudo apt-get install exfat-fuse exfat-utils

Posted in Ubuntu | Leave a comment

[Ubuntu] Enable power saving in Lenovo X61

Ref: http://www.webupd8.org/2014/04/prevent-your-laptop-from-overheating.html Because I installed Ubuntu 14.04 in my Lenovo X61. Although it could switch into the sleep mode after closing the lid. It’s not really using the power saving mode. So we must edit the GRUB file. sudo vim … Continue reading

Posted in Ubuntu | Leave a comment