12월, 2016의 게시물 표시

리눅스와 윈도 듀얼부트시 타임존 세팅하기(windows and ubuntu dual boot timezone mismatch )

리눅스와 윈도 듀얼부트시 타임존 세팅하기 http://askubuntu.com/questions/169376/clock-time-is-off-on-dual-boot windows rtc time default : Local time ubuntu rtc time default (  >= ubuntu 15.04 ) : UTC time 나는 Local time으로 세팅하겠다.( 그러므로 ubuntu 쪽을 변경한다 ) sudo timedatectl set-local-rtc 1

multiline cat " << EOF"

Examples of cat <<EOF syntax usage in Bash: 1. Assign multi-line string to a shell variable $ sql = $ ( cat << EOF SELECT foo , bar FROM db WHERE foo = 'baz' EOF ) The $sql variable now holds the new-line characters too. You can verify with echo -e "$sql" . 2. Pass multi-line string to a file in Bash $ cat << EOF > print . sh #!/bin/bash echo \$PWD echo $PWD EOF The print.sh file now contains: #!/bin/bash echo $PWD echo / home / user 3. Pass multi-line string to a pipe in Bash $ cat << EOF | grep 'b' | tee b . txt foo bar baz EOF

lubuntu ( lxde ) monitor rotate

xrandr --output "$internal" --rotate "$xrandr_rotation"    display name : System Settings > Display   example) xrandr --output LVDS1 --rotate left xrandr --output LVDS1 --rotate right xrandr --output LVDS1 --rotate normal xrandr --output LVDS1 --rotate inverted     xrandr --output eDP-1 --rotate right xrandr --output HDMI-1 --rotate right

ubuntu routing (two network card)

ubuntu routing (two network card) 기본 게이트웨이를 wifi 쪽으로 향하고자 할 때 ( 이더넷은 내부망으로, wifi는 외부망으로 ) network 1 : eth0 192.168.0.117 gateway 192.168.0.1 network 2 : wlp1s0 192.168.1.2 gateway 192.168.1.1 routing default to network 2 #route del default #route add default gw 192.168.1.1 dev wlp1s0