'잡동사니'에 해당되는 글 13666건

  1. 2015.12.29 우분투 hibernate(최대절전) / suspend(절전)
  2. 2015.12.28 마음에 들진 않지만...
  3. 2015.12.27 synology undelete 시도 T.T
  4. 2015.12.26 무료..
  5. 2015.12.25 자전거 하나 생길지..도?
  6. 2015.12.24 onvif nvc nvt nvs nva
  7. 2015.12.22 synology port
  8. 2015.12.21 irocks kr-6220 winLock
  9. 2015.12.21 #import ?
  10. 2015.12.21 아이폰 어플 파일 관련
Linux/Ubuntu2015. 12. 29. 15:11

음.. 우분투 x86 머신을

synology 처럼 네트워크 접속시 자동으로 깨어나도록 하고 싶어서

찾아 봤더니 키워드를 잘못 찾아서 헤메고 있었던 기분...


아무튼.. 범용제품으로는 ARM cpu를 채용한 녀석만큼

딱 입맛에 맞춰서 재웠다 깨웠다는 조금 힘들려나..

매번 WOL로 살리는것도 귀찮은데..


[링크 : http://blog.dustinkirkland.com/2009/02/ubuntu-server-suspendhibernateresume.html]

[링크 : http://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line]

[링크 : https://wiki.ubuntu.com/UnderstandingSuspend]

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

lubuntu xtem scrollbar  (0) 2016.01.02
으악 lubuntu 였지 ㅋㅋㅋ  (0) 2015.12.30
pkg-config  (0) 2015.10.08
htop 색상의미  (0) 2015.10.08
ubuntu 스크린샷(캡쳐) 프로그램  (0) 2015.09.22
Posted by 구차니
개소리 왈왈/컴퓨터2015. 12. 28. 23:35

리눅스 서버 구축해서..

ISP 제공 공유기 설정해서 써야 할 듯..



머라도 하지 않으면 퇴보한다는 강박관념인걸까...

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

UMID mbook m1 + lubuntu 15.10 egalax driver  (0) 2016.01.02
2016년 시작  (0) 2016.01.01
irocks kr-6220 winLock  (0) 2015.12.21
tc1100 윈7 설치  (0) 2015.11.08
tc1100 분해 및 win10 시도  (0) 2015.11.07
Posted by 구차니
하드웨어/Storage2015. 12. 27. 12:58

실수로 delete키를 똭! ㅠㅠ


[링크 : http://extundelete.sourceforge.net/]

[링크 : http://blog.bisect.de/2011/08/how-to-undelete-files-from-ext3ext4.html]

[링크 : http://forum.synology.com/enu/viewtopic.php?f=160&t=53092]

    [링크 : http://www.xen.dds.nl/f/scripts/extundelete]


ARM용으로 컴파일 된 녀석 다운로드

sarang> wget http://www.xen.dds.nl/f/scripts/extundelete

--2015-12-27 12:34:28--  http://www.xen.dds.nl/f/scripts/extundelete

Resolving www.xen.dds.nl... 85.17.251.154

Connecting to www.xen.dds.nl|85.17.251.154|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 633541 (619K) [text/plain]

Saving to: 'extundelete'


100%[======================================>] 633,541      198KB/s   in 3.1s


2015-12-27 12:34:32 (198 KB/s) - 'extundelete' saved [633541/633541]


sarang> ./extundelete

No action specified; implying --superblock.

./extundelete: Missing device name.

Usage: ./extundelete [options] [--] device-file

Options:

  --version, -[vV]       Print version and exit successfully.

  --help,                Print this help and exit successfully.

  --superblock           Print contents of superblock in addition to the rest.

                         If no action is specified then this option is implied.

  --journal              Show content of journal.

  --after dtime          Only process entries deleted on or after 'dtime'.

  --before dtime         Only process entries deleted before 'dtime'.

Actions:

  --inode ino            Show info on inode 'ino'.

  --block blk            Show info on block 'blk'.

  --restore-inode ino[,ino,...]

                         Restore the file(s) with known inode number 'ino'.

                         The restored files are created in ./RECOVERED_FILES

                         with their inode number as extension (ie, file.12345).

  --restore-file 'path'  Will restore file 'path'. 'path' is relative to root

                         of the partition and does not start with a '/'

                         The restored file is created in the current

                         directory as 'RECOVERED_FILES/path'.

  --restore-files 'path' Will restore files which are listed in the file 'path'.

                         Each filename should be in the same format as an option

                         to --restore-file, and there should be one per line.

  --restore-directory 'path'

                         Will restore directory 'path'. 'path' is relative to the

                         root directory of the file system.  The restored

                         directory is created in the output directory as 'path'.

  --restore-all          Attempts to restore everything.

  -j journal             Reads an external journal from the named file.

  -b blocknumber         Uses the backup superblock at blocknumber when opening

                         the file system.

  -B blocksize           Uses blocksize as the block size when opening the file

                         system.  The number should be the number of bytes.

  --log 0                Make the program silent.

  --log filename         Logs all messages to filename.

--log D1=0,D2=filename   Custom control of log messages with comma-separated

   Examples below:       list of options.  Dn must be one of info, warn, or

   --log info,error      error.  Omission of the '=name' results in messages

   --log warn=0          with the specified level to be logged to the console.

   --log error=filename  If the parameter is '=0', logging for the specified

                         level will be turned off.  If the parameter is

                         '=filename', messages with that level will be written

                         to filename.

   -o directory          Save the recovered files to the named directory.

                         The restored files are created in a directory

                         named 'RECOVERED_FILES/' by default.

./extundelete: Error parsing command-line options. 


sarang> mount

/dev/root on / type ext4 (defaults)

/sys on /sys type sysfs (0)

none on /dev/pts type devpts (gid=4,mode=620)

/tmp on /tmp type tmpfs (0)

/run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)

/dev/shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)

/proc/bus/usb on /proc/bus/usb type usbfs (0)

/dev/vg1001/lv on /volume2 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)

/dev/vg1000/lv on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)

securityfs on /sys/kernel/security type securityfs (0)

/dev/sdq1 on /volumeUSB1/usbshare type fuseblk (rw,allow_other,blksize=4096,default_permissions) 


옵션은 많은데 고민하다가 걍.. 과감하게! restore-all로 ㅠㅠ

sarang> ./extundelete /dev/vg1001/lv --restore-all

NOTICE: Extended attributes are not restored.

WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.

The partition should be unmounted to undelete any files without further data loss.

If the partition is not currently mounted, this message indicates

it was improperly unmounted, and you should run fsck before continuing.

If you decide to continue, extundelete may overwrite some of the deleted

files and make recovering those files impossible.  You should unmount the

file system and check it with fsck before using extundelete.

Would you like to continue? (y/n)

y

Loading filesystem metadata ... 14868 groups loaded.

Loading journal descriptors ... 30303 descriptors loaded.

Searching for recoverable inodes in directory / ...

1119 recoverable inodes found.

Looking through the directory structure for deleted files ...

Unable to restore inode 30802326 (@tmp/pkglist.tmp/synoserver.krn.W5eobS): Space has been reallocated.

Unable to restore inode 62128599 (delete.zip): Space has been reallocated.

Unable to restore inode 62128600 (lost+found/synoserver.enu): Space has been reallocated.

3 recoverable inodes still lost. 


RECOVERED_FILES 아래에 저장된다.

sarang> ls -al

drwx--x--x    4 admin    users         4096 Dec 27 12:42 .

drwx--x--x    7 root     root          4096 Oct 12 10:20 ..

drwx--x--x    5 root     root          4096 Dec 27 12:50 RECOVERED_FILES

-rwx--x--x    1 admin    users       633541 Mar  3  2015 extundelete 



'하드웨어 > Storage' 카테고리의 다른 글

raid01 raid10  (0) 2016.01.31
synology DS file - file station  (0) 2016.01.05
synology port  (0) 2015.12.22
synology DS213j SVN server 설치  (0) 2015.10.19
microSD 슬롯 락 관련  (2) 2015.08.06
Posted by 구차니

내년에는 멀할까...

환경이 문제인가..

의지가 문제인가...

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

롯데마트 할인 신용카드 흐음...  (0) 2016.01.07
2015년 끝  (0) 2015.12.31
... 멀 해야 하지?  (0) 2015.12.07
쉬는 주간...  (0) 2015.12.05
멘붕  (0) 2015.12.04
Posted by 구차니
개소리 왈왈/자전거2015. 12. 25. 22:22

근데 핸들이 없대 흑흑

나중에 순정(?) 핸들 얼마하나 장착비랑 물어봐야하려나... ㅠㅠ




걍 포기 ㅜㅜ

탈시간이 없을듯 ㅜㅜ

Posted by 구차니
회사일/ONVIF2015. 12. 24. 09:47

Network Video Client (NVC)

Network Video Transmitters (NVT)

Network Video Storage (NVS)

Network Video Analytics (NVA)



storage에 빼앗긴 S 때문에..

Streamer나 Server 등을 쓸 수 없어 Transmitter가 된 것 같은 기분?


ONVIF Device Manager is a Network Video Client (NVC) to manage Network Video Transmitters (NVT), Network Video Storage (NVS) and Network Video Analytics (NVA) devices. Implements Discovery, Device, Media, Imaging, Analytics, Events and PTZ services. Written in C# and uses ffmpeg for media decoding.


[링크 : http://sourceforge.net/projects/onvifdm/]


+

[링크 : http://blog.naver.com/msnayana/80155230549]


+

[링크 : http://www.onvif.org/Documents/Specifications.aspx]

    [링크 : http://www.onvif.org/specs/DocMap-2.6.1.html]



Implementation of ONVIF Core Specification v1.02 or later is required for conformance to Profile S.

Implementation of ONVIF Core Specification v2.3 or later is required for conformance to Profile C.

Implementation of ONVIF Network Interface Specification Set v2.4 or later is required for conformance to Profile G.

Implementation of ONVIF Network Interface Specification Set, version 2.5 or later is required for conformance to Profile Q


[링크 : http://www.onvif.org/Portals/0/documents/op/...ONVIF_Members-Profile_S_Specification.pdf]

[링크 : http://www.onvif.org/Portals/0/documents/specs/2013_12_ONVIF_Profile_C_Specification_v1-0.pdf]

[링크 : http://www.onvif.org/Portals/0/documents/specs/ONVIF_Profile_G_Specification_v1-0.pdf]

[링크 : http://www.onvif.org/portals/0/documents/specs/ONVIF_Profile_A_RC-Spec_v1-0.pdf]

[링크 : http://www.onvif.org/Portals/0/documents/specs/ONVIF_Profile_Q_Spec_RC_v1-2.pdf]

'회사일 > ONVIF' 카테고리의 다른 글

onvif service  (0) 2017.07.15
gSOAP ... 두번째 검색  (0) 2015.12.11
ONVIF / PSIA  (0) 2010.10.07
Posted by 구차니
하드웨어/Storage2015. 12. 22. 19:58

시놀로지 서비스 포트들

외부에서 접속하려면.. 거의 DMZ 안하면 은근 신경쓸게 많구만..


[링크 : https://www.synology.com/ko-kr/knowledgebase/faq/299]


'하드웨어 > Storage' 카테고리의 다른 글

synology DS file - file station  (0) 2016.01.05
synology undelete 시도 T.T  (0) 2015.12.27
synology DS213j SVN server 설치  (0) 2015.10.19
microSD 슬롯 락 관련  (2) 2015.08.06
xpenology  (0) 2015.06.30
Posted by 구차니
개소리 왈왈/컴퓨터2015. 12. 21. 17:52

먼가 해서 찾아 봤더니

윈도우 키 잠금..


양쪽 윈도우키를 3초간 누르고 있으면 WinLock LED가 on/off하고


ctrl-esc와 shift-f10은 되지만

윈도우 키랑 메뉴키 라고 해야 하나 이 두개는 안 먹힌다.


[링크 : http://mile.tistory.com/6]






scroll lock 불 안들어 와서 보다가 이제야 발견한 기능...

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

2016년 시작  (0) 2016.01.01
마음에 들진 않지만...  (0) 2015.12.28
tc1100 윈7 설치  (0) 2015.11.08
tc1100 분해 및 win10 시도  (0) 2015.11.07
tc1100 분해방법  (0) 2015.11.05
Posted by 구차니
Programming/C Win32 MFC2015. 12. 21. 14:54

엥? 이런 넘도 있었나? -ㅁ-?



$ g++ float.c -lm

float.c:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

float.c:3:11: error: ‘::main’ must return ‘int’

float.c: In function ‘int main()’:


$ gcc float.c -lm

float.c:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

float.c: In function ‘main’:



If you are familiar with C++ and macros, then


#import "Class.h" 

is similar to


{

#pragma once


#include "class.h"

}

[링크 : http://stackoverflow.com/.../what-is-the-difference-between-import-and-include-in-objective-c] 

'Programming > C Win32 MFC' 카테고리의 다른 글

윈도우에서 dll 동적 라이브러리 사용하기  (0) 2016.04.04
가변 매크로 __VA_ARGS__  (0) 2016.03.18
"\n" 의 cpu 점유율?  (0) 2015.10.12
rand()와 RAND_MAX  (0) 2015.10.05
Cppcheck  (0) 2015.09.30
Posted by 구차니

지인에게 협박(?) 해서 file로 앱파일 내용봐달라고 했떠니


Mach-O universal binary with 2 architectures

(for architecture armv7): Mach-O executable arm

(for architecture arm64): Mach-O 64-bit executable


[링크 : https://en.wikipedia.org/wiki/Mach-O]



기본 확장자는 ipa(배포용)

패키지 안 바이너리는 app

app는 Mach-O 포맷?


'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

아이패드가 미쳤어요!!  (0) 2016.03.11
아침부터 아가씨(?) 전화에 흔들리는 마음  (0) 2016.02.19
다음달은 5천원을 목표로!!  (0) 2015.11.13
smardi GAM.r  (0) 2015.10.24
요금제 변경  (0) 2015.10.15
Posted by 구차니