내 컴퓨터의 소비전력

저전력 홈서버 구축을 준비하고 있어서 컴퓨터의 소비전력에 관심이 많은 요즘입니다.

다음 사이트를 통해 조립해서 사용하고 있는 데스크탑(http://reshout.com/2692472)의 소비전력을 측정해 보았습니다.

http://www.power-on.com/autocheck.html

<

p style=”text-align: center; clear: none; float: none; “>

역시 일반 데스크탑의 소비전력은 굉장하네요.

LG넷하드(N1T1)에서 node.js 빌드하기

$ sudo apt-get install build-essential libssl-dev make scons git-core

$ git clone git://github.com/ry/node.gitgit clone git://github.com/ry/node.git

$ cd node

$ ./configure –without-snapshot

$ vi deps/v8/SConstruct

다음과 같이 수정합니다.

80 ‘gcc’: {

81      ‘all’: {

82        ‘CCFLAGS’: [‘$DIALECTFLAGS’, ‘$WARNINGFLAGS’, ‘-march=armv5t’],

83        ‘CXXFLAGS’: [‘-fno-rtti’, ‘-fno-exceptions’],

84      },

1081  ‘armeabi’: {

1082    ‘values’: [‘hard’, ‘softfp’, ‘soft’],

1083    ‘default’: ‘soft’,

1084    ‘help’: ‘generate calling conventiont according to selected ARM EABI variant’

$ make

$ make install

$ node

>

Reference: https://github.com/joyent/node/issues/2131#issuecomment-3208846

Bash Color Prompt

First

if [ “$WINDOW” != “” ]; then
    export PS1=’\nS:$WINDOW \e[1;32m\u\e[0m@\e[1;31m\h\e[0m:\e[1;33m\w\e[0m\n\$ ‘
else
    export PS1=’\n\e[1;32m\u\e[0m@\e[1;31m\h\e[0m:\e[1;33m\w\e[0m\n\$ ‘
fi
Second

DEFAULT=”[37;40m”

PINK=”[35;40m”

GREEN=”[32;40m”

ORANGE=”[33;40m”

hg_dirty() {

    hg status –no-color 2> /dev/null \

    | awk ‘$1 == “?” { unknown = 1 }

           $1 != “?” { changed = 1 }

           END {

             if (changed) printf “!”

             else if (unknown) printf “?”

           }’

}

hg_branch() {

    hg branch 2> /dev/null | \

        awk ‘{ printf “\033[37;0m on \033[35;40m” $1 }’

    hg bookmarks 2> /dev/null | \

        awk ‘/\*/ { printf “\033[37;0m at \033[33;40m” $2 }’

}

export PS1=’\n\e${PINK}\u \e${DEFAULT}at \e${ORANGE}\h \e${DEFAULT}in \e${GREEN}\w $(hg_branch)\e${GREEN}$(hg_dirty) \e${DEFAULT}\n$ ‘