개소리 왈왈/컴퓨터2015. 3. 27. 22:16

리눅스에다가

GPT + NTFS로 포맷한 4TB 하드 연결하니

드라이브는 뜨는데 파일 시스템 인식 불가로 마운트 불가..


그렇다고 이것저것 옮겨서 하기에는..

2TB 옮기는데 5시간은 걸리는지라.. 시간부담도 크고..


아무튼 용량을 고려하면.. 결국에는 기가비트 NAS를 구축하거나 구매해야 하는데

이래저래 돈이.. ㄷㄷㄷ


AMD 4850e 이녀석은.. 커널 컴파일 하다가 뻗어 버리고..

(아마도 케이스 문제로 발열을 못 버티는 듯?)

케이스도 확장 불가라서 케이스와 파워만 사고는 NAS를 구축하던가 하는게 가장 적절할 듯..

멀 어떻게 하는게 좋으려나.. 돈이냐 전기냐.. 후...



다나와에서 ds213j 기가비트 지원되는 모델이 12만원에 나와서 일단 예약

[링크 : http://us.hardware.info/reviews/4403/6/synology-ds213j-review-deluxe-entry-level-nas-conclusion]

[링크 : http://dmall.danawa.com/sale/saleView.php?nSaleSeq=5540682]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

시리얼 / 패러럴 백패널 확장  (0) 2015.04.01
JMicron SATA to USB / 리눅스에서 4TB GPT NTFS 인식문제  (0) 2015.03.28
하드 도착!  (0) 2015.03.25
ASUS Express Gate ?  (0) 2015.03.19
컴퓨터 한대.. 회수?  (0) 2015.03.15
Posted by 구차니
Linux/Ubuntu2015. 3. 26. 16:57

우분투 설치시에 hostname(컴퓨터 이름)을 기재하는데 중복되게 적는 바람에

/etc/hostname에 있는 녀석만 바꾸었더니


sudo 명령을 수행할때 마다 경고가 뜬다 -_-

검색 결과.. hostname 뿐만 아니라 hosts 까지 수정을 해주어야 하는 듯.


$ cat /etc/hostname

devmini 


$ cat /etc/hosts

127.0.0.1       localhost

127.0.1.1       devmini


# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters 


[링크 : http://gentooboy.tistory.com/238]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu mate  (0) 2015.07.28
Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
xming / gconf / putty 실행불가  (2) 2015.02.24
apt-file  (0) 2015.02.13
ubuntu 10.04 32bit / PAE  (0) 2015.02.13
Posted by 구차니
Linux API2015. 3. 26. 01:09

VAAPI(Video Acceleration API) - intel

VDPAU(Video Decode and Presentation API for Unix) - nvidia

UVD(Unified Video Decoder) - AMD


[링크 : http://en.wikipedia.org/wiki/Video_Acceleration_API]

[링크 : http://en.wikipedia.org/wiki/VDPAU]

[링크 : http://en.wikipedia.org/wiki/Unified_Video_Decoder]


XBMC 보다 보니 이런저런 가속 방법이 나와서 조사하니
3대 메이져 제조사에서 제공하는 API들의 이름이다.

[링크 : http://ubuntuforums.org/showthread.php?t=2177664]

[링크 : http://www.phoronix.com/scan.php?page=news_item&px=MTM1NDk]



'Linux API' 카테고리의 다른 글

system wait stdout  (0) 2018.10.22
lirc - linux IR Remote control  (0) 2015.03.31
linux 최대 thread 갯수  (0) 2015.01.22
getopt() / getopt_long()  (0) 2014.11.19
공유메모리  (0) 2014.09.02
Posted by 구차니
개소리 왈왈/컴퓨터2015. 3. 25. 23:16

4TB 만세 ㅋㅋ

처음으로 잡아본 GPT 파티션!

나중에 이걸 OS 디스크로 써봐야 하는데 끄응.. ㅠㅠ





Posted by 구차니
embeded/raspberry pi2015. 3. 24. 22:26

심심하니 일단 armv7-a / cortex-a7 용으로 설정하고 궈궈

qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/devices/linux-rasp-pi2-g++$ cat qmake.conf 

#

# qmake configuration for Broadcom's Raspberry PI

# http://wiki.qt-project.org/Devices/RaspberryPi


include(../common/linux_device_pre.conf)


QT_QPA_DEFAULT_PLATFORM = wayland


QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib


QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2


QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}


QMAKE_LIBS_EGL          = -lEGL -lGLESv2


contains(DISTRO, squeeze) {

    #Debian Squeeze: Legacy everything

    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL

    QT_QPA_DEFAULT_PLATFORM = eglfs

} else:contains(DISTRO, arch) {

    #On principle: no wizardry required

} else {

    #This is not strictly necessary

    DISTRO_OPTS += deb-multi-arch

    DISTRO_OPTS += hard-float

}


QMAKE_CFLAGS           += \

                          -marm \

                          -mfpu=neon \

                          -mtune=cortex-a7 \

                          -march=armv7-a \

                          -mabi=aapcs-linux


QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS


EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp

EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host


include(../common/linux_arm_device_post.conf)


load(qt_config) 


$ ./configure -opensource -confirm-license -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-

   Configure summary


Building on:   linux-g++ (i386, CPU features:)

Building for:  devices/linux-rasp-pi2-g++ (arm, CPU features: neon)

Platform notes:


            - Also available for Linux: linux-kcc linux-icc linux-cxx

        

Build options:

  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config zlib 

  Build parts ............ libs examples

  Mode ................... release

  Using C++11 ............ yes

  Using PCH .............. yes

  Target compiler supports:

    iWMMXt/Neon .......... no/auto


Qt modules and options:

  Qt D-Bus ............... no

  Qt Concurrent .......... yes

  Qt GUI ................. yes

  Qt Widgets ............. yes

  Large File ............. yes

  QML debugging .......... yes

  Use system proxies ..... no


Support enabled for:

  Accessibility .......... yes

  ALSA ................... no

  CUPS ................... no

  Evdev .................. yes

  FontConfig ............. no

  FreeType ............... yes (bundled copy)

  Glib ................... no

  GTK theme .............. no

  HarfBuzz ............... no

  Iconv .................. yes

  ICU .................... no

  Image formats: 

    GIF .................. yes (plugin, using bundled copy)

    JPEG ................. yes (plugin, using bundled copy)

    PNG .................. yes (in QtGui, using bundled copy)

  journald ............... no

  mtdev .................. no

  Networking: 

    getaddrinfo .......... yes

    getifaddrs ........... yes

    IPv6 ifname .......... yes

    OpenSSL .............. no

  NIS .................... yes

  OpenGL / OpenVG: 

    EGL .................. no

    OpenGL ............... no

    OpenVG ............... no

  PCRE ................... yes (bundled copy)

  pkg-config ............. no 

  PulseAudio ............. no

  QPA backends: 

    DirectFB ............. no

    EGLFS ................ no

    KMS .................. no

    LinuxFB .............. yes

    XCB .................. no

  Session management ..... yes

  SQL drivers: 

    DB2 .................. no

    InterBase ............ no

    MySQL ................ no

    OCI .................. no

    ODBC ................. no

    PostgreSQL ........... no

    SQLite 2 ............. no

    SQLite ............... yes (plugin, using bundled copy)

    TDS .................. no

  udev ................... no

  xkbcommon .............. no

  zlib ................... yes (bundled copy)


NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.

Configure with '-qreal float' to create a build that is binary compatible with 5.1.

Info: creating super cache file /home/minimonk/src/qt-everywhere-opensource-src-5.3.2/.qmake.super


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Qt-5.3.2


Prior to reconfiguration, make sure you remove any leftovers from

the previous build. 



또 얼마나 걸리려나 ㅋㅋ

오전 10:17 2015-03-25


make clean 하고 컴파일 해서 그런가

14:03:18

4시간 걸림 ㅋ

Posted by 구차니
embeded/raspberry pi2015. 3. 24. 17:19

일단은.. Qt 5.3 에서 기본적으로 설정되어있는 내용으로

Raspberry pi는 1, ARM11 용으로 설정되어 있다.


qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/devices/linux-rasp-pi-g++$ cat qmake.conf

#

# qmake configuration for Broadcom's Raspberry PI

# http://wiki.qt-project.org/Devices/RaspberryPi


include(../common/linux_device_pre.conf)


QT_QPA_DEFAULT_PLATFORM = wayland


QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib


QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2


QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}


QMAKE_LIBS_EGL          = -lEGL -lGLESv2


contains(DISTRO, squeeze) {

    #Debian Squeeze: Legacy everything

    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL

    QT_QPA_DEFAULT_PLATFORM = eglfs

} else:contains(DISTRO, arch) {

    #On principle: no wizardry required

} else {

    #This is not strictly necessary

    DISTRO_OPTS += deb-multi-arch

    DISTRO_OPTS += hard-float

}


QMAKE_CFLAGS           += \

                          -marm \

                          -mfpu=vfp \

                          -mtune=arm1176jzf-s \

                          -march=armv6zk \

                          -mabi=aapcs-linux


QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS


EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp

EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host


include(../common/linux_arm_device_post.conf)


load(qt_config) 


$ ./configure -opensource -confirm-license -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-


   Configure summary


Building on:   linux-g++ (i386, CPU features:)

Building for:  devices/linux-rasp-pi-g++ (arm, CPU features:)

Platform notes:


            - Also available for Linux: linux-kcc linux-icc linux-cxx


Build options:

  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config zlib

  Build parts ............ libs examples

  Mode ................... release

  Using C++11 ............ yes

  Using PCH .............. yes

  Target compiler supports:

    iWMMXt/Neon .......... no/auto


Qt modules and options:

  Qt D-Bus ............... no

  Qt Concurrent .......... yes

  Qt GUI ................. yes

  Qt Widgets ............. yes

  Large File ............. yes

  QML debugging .......... yes

  Use system proxies ..... no


Support enabled for:

  Accessibility .......... yes

  ALSA ................... no

  CUPS ................... no

  Evdev .................. yes

  FontConfig ............. no

  FreeType ............... yes (bundled copy)

  Glib ................... no

  GTK theme .............. no

  HarfBuzz ............... no

  Iconv .................. yes

  ICU .................... no

  Image formats:

    GIF .................. yes (plugin, using bundled copy)

    JPEG ................. yes (plugin, using bundled copy)

    PNG .................. yes (in QtGui, using bundled copy)

  journald ............... no

  mtdev .................. no

  Networking:

    getaddrinfo .......... yes

    getifaddrs ........... yes

    IPv6 ifname .......... yes

    OpenSSL .............. no

  NIS .................... yes

  OpenGL / OpenVG:

    EGL .................. no

    OpenGL ............... no

    OpenVG ............... no

  PCRE ................... yes (bundled copy)

  pkg-config ............. no

  PulseAudio ............. no

  QPA backends:

    DirectFB ............. no

    EGLFS ................ no

    KMS .................. no

    LinuxFB .............. yes

    XCB .................. no

  Session management ..... yes

  SQL drivers:

    DB2 .................. no

    InterBase ............ no

    MySQL ................ no

    OCI .................. no

    ODBC ................. no

    PostgreSQL ........... no

    SQLite 2 ............. no

    SQLite ............... yes (plugin, using bundled copy)

    TDS .................. no

  udev ................... no

  xkbcommon .............. no

  zlib ................... yes (bundled copy)


NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.

Configure with '-qreal float' to create a build that is binary compatible with 5.1.

Info: creating super cache file /home/minimonk/src/qt-everywhere-opensource-src-5.3.2/.qmake.super


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Qt-5.3.2


Prior to reconfiguration, make sure you remove any leftovers from

the previous build. 


커널이 i7에서 3분 걸리던게.. 1시간 20분 걸렸으니

i7에서 30분 넘게 걸리던 qt 컴파일은... 10시간 이려나?! -_-a


+

그냥 걸어놓고 내려놨는데

다시 확인하니 20:54:36 컴파일 완료

거의 3시간 반 정도 걸린듯?

Posted by 구차니
embeded/raspberry pi2015. 3. 24. 08:55

라즈베리 파이 홈페이지에서 보이는 것 이상의 것들이 많이 있다?


[링크 : http://downloads.raspberrypi.org/]

    [링크 : http://qt-project.org/wiki/RaspberryPi_Beginners_guide]

Posted by 구차니
embeded/raspberry pi2015. 3. 23. 22:03

ATOM 330 + ION 보다 동영상 재생 성능이 낫네 ㄷㄷ


라즈베리 파이 2

openELEC

600MHz / NEON


H.264 high profile 1080p 30fps 재생 문제 없음

H.264 high profile 1080p 60fps 프레임 드랍 있음 (kodi/xbmc 환경설정에서 44fps 로 출력됨 / 1600x900 해상도)

Posted by 구차니
embeded/raspberry pi2015. 3. 23. 20:35

심심해서 일단 받아봄

리눅스 커널은 대략 빌드 중이라 늘어난 것일수도 있으니 크게 의미는 없으나 대략 840MB 정도 예상되고

크로스 컴파일러가 무려 945MB ㄷㄷㄷ

rootfs는 11M로 저렴하다 -ㅁ-!


~/rasp$ du -h -d 1

851M    ./linux

945M    ./tools

11M     ./target_fs

1.8G    . 


$ sudo apt-get install libncurses5-dev 

[링크 : http://askubuntu.com/questions/78749/what-provides-curses-headers-named-curses-h]


$ mkdir rasp

$ cd rasp

$ git clone --depth=1 https://github.com/raspberrypi/tools

$ git clone --depth=1 https://github.com/raspberrypi/linux

$ git clone --depth=1 https://github.com/raspberrypi/target_fs

$ export PATH=$PATH:~/rasp/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin

$ cd linux

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig menuconfig

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 4 

[링크 : http://www.raspberrypi.org/documentation/linux/kernel/building.md]


커널 menuconfig 에서 보니

일단.. BCM2709로 설정되고


NEON은 켜져있도록 되어있다.



+

그나저나.. ATOM 330 / 1.6GHz 로 어느 세월에 컴파일 하지? ㅋㅋㅋ


+

오후 8:40 2015-03-23

오후 10:02 2015-03-23

무려 1시간 20분 만에 컴파일 완료 -_ㅠ


~/rasp/linux$ file vmlinux

vmlinux: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, BuildID[sha1]=44adda67f6686154f7eb71069c144f84d4ee6c20, not stripped



린필드 i7 으로는 3분만에 컴파일 끝나던데 흑흑
역시 듀얼 코어 + HT ATOM으로는 무리였어 ㅠㅠ


+ 2015.04.09 추가
시작 오후 10:16 2015-04-09
끝 2015. 04. 09. (목) 22:47:18 KST
AMD 4850e / 2.5GHz 듀얼 코어로 30분 걸림 -_ㅠ -j4 인데도 불구하고!!! ㅠㅠ




+ 2015.05.31 추가

2015년 05월 31일 (일) 오후 07시 55분 25초 

2015. 05. 31. (일) 20:05:59 KST

AMD 945 / 3.0GHz 드코어로 10분..  클럭빨로 4850e보다는 줄지만

역시나.. i7이 짱짱이구나 싶은 결과랄까 ㅜㅜ

Posted by 구차니
프로그램 사용/VNC2015. 3. 22. 21:43

14.04 깔고 나서 vnc 하려고 하니

어?



그래서 검색을 해보니...

dconf-editor 라는 레지스트리 편집기 비스므리한 것이 나타나는데..

좋은거 같으면서도 익숙하지 않아서 먼지 모르겠...


아무튼 require-encryption을 끄면 된다는데


위와 같이 설정하면 vino-preferences 에서 암호 입력이 꺼진다.



일단은 되는데.. 암호 입력하면서는 안되는건가...?

I had the same problem using VNC from my Chromebook and after updating to Ubuntu 14.04 LTS. I used the suggestion of the dconf-editor -> org.gnome.desktop.remote-access then "require-encryption = NO"


[링크 : https://bugs.launchpad.net/ubuntu/+source/vino/+bug/1290666] 



+

위의 설정을 해버리면 vino-preferences 에서 보안이 설정되지 않는다 -ㅁ-!!!

암호 걸고 싶어도 걸수가 없네... ㅠㅠ

'프로그램 사용 > VNC' 카테고리의 다른 글

libvncserver 사용예  (0) 2022.02.15
rfb(remote framebuffer) protocol  (0) 2022.01.26
VNC web 버전?  (0) 2014.12.11
VNC 5.0.5  (0) 2013.09.04
tsclient에 VNC 추가하기  (0) 2011.12.31
Posted by 구차니