프로그램 사용/apache2016. 12. 29. 10:16

공인 인증하려면 비싸니까(년 3만원 이상)

개인이 쓰거나 개발용이라면 사설인증서 만들어서 써도 된다네?(openssl)


[링크 : http://stackoverflow.com/questions/2336678/login-without-https-how-to-secure]

[링크 : https://opentutorials.org/course/228/4894]

[링크 : http://tuwlab.com/ece/8616] <<



개인정보 가지면 무조건 HTTPS를 의무화한 법안으로 인해

일단은 무조건 해봐야 할 듯?


+

라즈베리 밀고 다시 해봐야하나.

그냥 기본적으로 거의 다 되어 있고

http://localhost 대신

https://localhost로 하면 된다.


http://로 접속한걸 https:// 로 자동 리다이렉션 하는 법 없나..

<VirtualHost *:80>

        # The ServerName directive sets the request scheme, hostname and port that

        # the server uses to identify itself. This is used when creating

        # redirection URLs. In the context of virtual hosts, the ServerName

        # specifies what hostname must appear in the request's Host: header to

        # match this virtual host. For the default virtual host (this file) this

        # value is not decisive as it is used as a last resort host regardless.

        # However, you must set it for any further virtual host explicitly.

        #ServerName www.example.com


        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html


        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,

        # error, crit, alert, emerg.

        # It is also possible to configure the loglevel for particular

        # modules, e.g.

        #LogLevel info ssl:warn


        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined


        # For most configuration files from conf-available/, which are

        # enabled or disabled at a global level, it is possible to

        # include a line for only one particular virtual host. For example the

        # following line enables the CGI configuration for this host only

        # after it has been globally disabled with "a2disconf".

        #Include conf-available/serve-cgi-bin.conf


        Redirect / https://raspberrypi/

</VirtualHost> 

[링크 : http://stackoverflow.com/.../how-to-redirect-all-http-requests-to-https/21798882#21798882]


mod_rewrite로 하는법이라는데 왜 안되지..

[링크 : https://wiki.apache.org/httpd/RewriteHTTPToHTTPS]



+

16.11.25일자 라즈베리 배포판으로는 아래의 과정만 하면 설정완료!

ssl 관련 설정은 해당 모듈만 활성화 시켜주는 되는 듯

$ sudo apt-get install apache2 mysql-server mysql-client-5.5 php5 php5-mysql php5-gd openssl


$ cd /etc/apache2/sites-available/

$ sudo vi 000-default.conf

redirect / https://raspberrypi/

$ sudo a2enmod ssl

$ sudo a2ensite default-ssl

$ sudo service apache2 restart 


+2017.01.05

경고 뜨는게 싫고, 다른데서 매번 사용확인해주는게 귀찮아서라도 하나 해야 할 듯 -_-

[링크 : https://www.xetown.com/slope/135905]

[링크 : https://blog.elpo.net/get-free-ssl-certificate/]


Posted by 구차니
프로그램 사용/u-boot2016. 12. 14. 17:41

nand 자체를 초기화 하는 명령어

배드 섹터 넘쳐 날때 해주면 초기화 하는데

생겨나는건 여전...


# nand scrub


NAND scrub: device 0 whole chip

Warning: scrub option will erase all factory set bad blocks!

         There is no reliable way to recover them.

         Use this command only for testing purposes if you

         are sure of what you are doing!


Really scrub this NAND flash? <y/N>

Erasing at 0xffe0000 -- 100% complete.

OK 


[링크 : http://www.stlinux.com/howto/NAND/clean]

[링크 : http://damduc.tistory.com/317]

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

uboot filesize 환경변수  (0) 2016.11.17
tftpd-hpa  (0) 2016.11.08
ubuntu 12.04 xinetd/tftpd 느린 이유  (0) 2016.11.08
uboot bootargs 기본값 설정하기  (0) 2015.02.09
uboot 메모리 관련 명령어  (0) 2015.01.08
Posted by 구차니

빠르고 좋네 +_+

ffmpeg 만세


If you only want to convert mkv to mp4 then you will save quality and a lot of time by just changing the containers. Both of these are just wrappers over the same content so the cpu only needs to do a little work. Don't re encode as you will definitely lose quality.


It's very straight forward using ffmpeg:


ffmpeg -i LostInTranslation.mkv -vcodec copy -acodec copy LostInTranslation.mp4

Here, you are copying the video codec and audio codec so nothing is being encoded.


Tip:


To convert all the mkv files in current directory, run a simple loop in terminal:


for i in *mkv; do ffmpeg -i $i -vcodec copy -acodec copy $i.mp4; done 


[링크 : http://askubuntu.com/questions/396883/how-to-simply-convert-video-files-i-e-mkv-to-mp4]

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

ffmpeg concat  (0) 2018.10.10
ffmpeg huffyuv  (0) 2017.02.28
ffmpeg 으로 파일 재생하기  (0) 2015.02.10
Mplayer/ffmpeg 크로스 컴파일 하기  (0) 2015.01.27
ffmpeg arm 아키텍쳐별 최적화 코덱  (0) 2015.01.26
Posted by 구차니
프로그램 사용/Blender2016. 11. 23. 23:41

먼가 엉겨서 이상한거 같긴하지만...


일단 버전 자체는.. git에서 받은거랑 윈도우에서 포함되어 있던 버전이랑 확실히 다르니..

양쪽다 git에서 받던가 패키지 된거에서 뺴내던가 둘중에 하나일지도?


odroid 에다가

blender 두개 실행해서 하나는 Master

하나는 Client로 설정하고

윈도우에서는 

Slave로 해서 붙이긴 했는데 두번 실행했더니 두개가 붙네..


아무튼 파일을 저장하고 나서

Send Network 하고 나서

Get Image 하니 먼가 받아는 오는데

그 이후로는 다시는 안되고 Slave를 종료하기 전에는 Master 로 실행했던 Blender도 안죽고..

미묘하다 미묘해..

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

blender 포켓몬 애니메이션  (0) 2020.08.08
blender physical simulation  (0) 2018.03.19
blender netrender / incorrect master version  (0) 2016.11.22
blender netrender 구조  (0) 2016.11.19
블렌더 강좌  (0) 2016.11.18
Posted by 구차니
프로그램 사용/Blender2016. 11. 22. 21:41

netrender 소스인거 같은데 이런 에러네.. 버전 체크?

def clientConnection(netsettings, report = None, scan = True, timeout = 5):

    address = netsettings.server_address

    port = netsettings.server_port

    use_ssl = netsettings.use_ssl

    

    if address== "[default]":

#            calling operator from python is fucked, scene isn't in context

#            if bpy:

#                bpy.ops.render.netclientscan()

#            else:

        if not scan:

            return None


        address, port = clientScan()

        if address == "":

            return None

    conn = None

    try:

        HTTPConnection = http.client.HTTPSConnection if use_ssl else http.client.HTTPConnection

        if platform.system() == "Darwin":

            with ConnectionContext(timeout):

                conn = HTTPConnection(address, port)

        else:

            conn = HTTPConnection(address, port, timeout = timeout)


        if conn:

            if clientVerifyVersion(conn, timeout):

                return conn

            else:

                conn.close()

                reporting(report, "Incorrect master version", ValueError)

    except BaseException as err:

        if report:

            report({'ERROR'}, str(err))

            return None

        else:

            print(err)

            return None


def clientVerifyVersion(conn, timeout):

    with ConnectionContext(timeout):

        conn.request("GET", "/version")

    response = conn.getresponse()


    if response.status != http.client.OK:

        conn.close()

        return False


    server_version = response.read()


    if server_version != VERSION:

        print("Incorrect server version!")

        print("expected", str(VERSION, encoding='utf8'), "received", str(server_version, encoding='utf8'))

        return False


    return True 

[링크 : https://github.com/WARP-LAB/Blender-Network-Render-Additions/blob/master/netrender/utils.py]


이제야(?) 생각이 나서 콘솔에서 실행에서 에러를 보니.. 크앙..

2.76b랑 2.78이랑은 버전이 다른듯 흑 ㅠㅠ

윈도우 쪽을 버전을 내려야지 머 ㅠㅠ

$ blender

connect failed: No such file or directory

Read new prefs: /home/odroid/.config/blender/2.76/config/userpref.blend

libGL error: unable to load driver: exynos_dri.so

libGL error: driver pointer missing

libGL error: failed to load driver: exynos

Incorrect server version!

expected 1.9 received 1.8

Incorrect master version

Incorrect server version!

expected 1.9 received 1.8

Incorrect master version

Info: Master server found


Incorrect server version!

expected 1.9 received 1.8

Error: Incorrect master version 


+

2016.11.23

윈도우쪽 버전을 맞추어도 여전히 incorrect 버전이라고 뜨네..

python쪽 차이일려나? 미지수네...

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

blender physical simulation  (0) 2018.03.19
blender netrender 잠시 된건가..  (0) 2016.11.23
blender netrender 구조  (0) 2016.11.19
블렌더 강좌  (0) 2016.11.18
ubuntu blender addons  (0) 2016.11.17
Posted by 구차니
프로그램 사용/VLC2016. 11. 22. 09:21

엌 win/pc 버전으로 해서봤더니 나오네? ㅋㅋㅋ


엌ㅋㅋㅋㅋ 멀리서 보면 그럴싸 한데?


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

vlc 간편 녹화  (0) 2022.08.01
http vlc protocol  (0) 2018.11.30
vlc 옵션 -vvv  (0) 2015.09.15
dash with VLC  (0) 2015.09.11
VLC dshow(캡쳐장비) 해상도 설정  (0) 2015.05.23
Posted by 구차니
프로그램 사용/Blender2016. 11. 19. 22:02

Master는 Slave를 관리하기만 하고 자기 스스로는 rendering을 하지 않는 관리용 노드

Slave는 Master의 명령을 받아 rendering하는 노드

Client는 Mater에게 렌더링을 요청하는 노드

The Master Node does no rendering, it just stores the .blend information and sources out the rendering to slaves and keeps track of what 'Chunks' are going where.


The Slave Node (or nodes) are the work horses, doing all the rendering under the control of the master.


The Client Node is the node from which render jobs are sent to the master for distributed rendering by the slaves. This is where you have your project open and are working in Blender. 

[링크 : http://blendingwithforbes.blogspot.kr/2010/03/blender-25-network-render.html]



두대 가지고 하려면은

메인 PC에는

Mater / Slave / Client를 돌리고

보조 PC에다가는

Slave를 돌려야 하는데...

그러면 Blender를 세개나 돌려야 하나.. ㄷㄷㄷ

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

blender netrender 잠시 된건가..  (0) 2016.11.23
blender netrender / incorrect master version  (0) 2016.11.22
블렌더 강좌  (0) 2016.11.18
ubuntu blender addons  (0) 2016.11.17
blender 2.78 network render  (0) 2016.11.16
Posted by 구차니
프로그램 사용/Blender2016. 11. 18. 13:20

오랫만에 만져보려니 다 까먹었네ㅠㅠ


[링크 : https://www.youtube.com/user/nyaank/videos?sort=dd&shelf_id=1&view=0]


[링크 : http://minex2.tistory.com/18]


[링크 : http://sinyeobi.blog.me/10137607440] 컵만들기

    [링크 : http://sinyeobi.blog.me/10134908514] 컵만들기 1

[링크 : http://sinyeobi.blog.me/10137157495] 기본단축키

[링크 : http://sinyeobi.blog.me/10175283243] 기본 UI 설명

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

blender netrender / incorrect master version  (0) 2016.11.22
blender netrender 구조  (0) 2016.11.19
ubuntu blender addons  (0) 2016.11.17
blender 2.78 network render  (0) 2016.11.16
Blender stereoscopic Add-on 설치  (2) 2011.09.19
Posted by 구차니
프로그램 사용/sketchup2016. 11. 18. 10:12

layout이 라는 프로그램이 그런 용도라니..

대충 실행해보니.. layout은 30일간 만 무료인 pro버전에 속한 패키지..

[링크 : http://allbim.kr/?bim-software-article=sketchup-layout]


주말에 sketchup<->blender 한번 시도 해봐야겠다

[링크 : http://www.katsbits.com/tutorials/blender/sketchup-import.php]



[링크 : http://s.elfism.com/entry/카타나-검-모델링하기2-손잡이-모델링]

[링크 : https://wiki.blender.org/index.php/Doc:KO/2.6/Manual/3D_interaction/Transform_Control/Snap] 블렌더 snap

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

sketchup stl exporter  (0) 2017.02.28
sketchup flip 하기  (0) 2016.08.31
sketchup 여러번 복사하기  (0) 2016.08.31
스케치업 자격증  (0) 2014.02.28
스케치업 / export to DWG  (0) 2014.02.04
Posted by 구차니
프로그램 사용/Blender2016. 11. 17. 23:26

음.. git에서 하위경로 받는법을 찾으면 좀더 간편해질듯?

$ sudo find / -name addons

/usr/share/blender/scripts/addons


$ cd /usr/share/blender/scripts/addons

$ sudo git clone https://github.com/WARP-LAB/Blender-Network-Render-Additions.git

$ sudo mv Blender-Network-Render-Additions/netrender ./

$ sudo rm -rf Blender-Network-Render-Additions 



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

blender netrender 구조  (0) 2016.11.19
블렌더 강좌  (0) 2016.11.18
blender 2.78 network render  (0) 2016.11.16
Blender stereoscopic Add-on 설치  (2) 2011.09.19
blender 2.5용 Stereoscopic plugin  (0) 2011.09.07
Posted by 구차니