'Linux'에 해당되는 글 747건

  1. 2022.07.06 uvcdynctrl
  2. 2022.06.30 dmesg -w
  3. 2022.06.29 dmesg log_buf_len
  4. 2022.06.22 bash set -e set -x
  5. 2022.04.27 ubuntu 22.04 LTS
  6. 2022.04.25 minicom stty
  7. 2022.04.25 sudo -k -K
  8. 2022.04.04 ubuntu unity tweak
  9. 2022.03.14 iperf udp 테스트
  10. 2022.03.08 This kernel does not support RARP.
Linux2022. 7. 6. 13:31

 

$ uvcdynctrl -h
uvcdynctrl 0.2.4

Manage dynamic controls in uvcvideo

Usage: uvcdynctrl [OPTIONS]... [VALUES]...

  -h, --help               Print help and exit
  -V, --version            Print version and exit
  -l, --list               List available cameras
  -i, --import=filename    Import dynamic controls from an XML file
  -a, --addctrl=vid        Import dynamic controls for vid from default location
  -v, --verbose            Enable verbose output  (default=off)
  -d, --device=devicename  Specify the device to use  (default=`video0')
  -c, --clist              List available controls
  -g, --get=control        Retrieve the current control value
  -G, --get_raw=unit_id:selector        Retrieve the current raw control value
  -s, --set=control        Set a new control value
                            (For negative values: -s 'My Control' -- -42)
  -S, --set_raw=unit_id:selector        Set the current raw control value
                            (value is a hex string of control size,
                             default is little endian- '(BE)' prefix to change:
                             -S 13:1 0x01100c or -S 13:1 '(BE)0x0c1001' )

  -f, --formats            List available frame formats
  -W, --save=filename      Save device controls state to a file
  -L, --load=filename      Load device controls state from a file

 

2760p 내장 카메라, 로지텍 웹캠(HD Pro Webcam C920)

$ uvcdynctrl -c
Listing available controls for device video0:
  Brightness
  Contrast
  Saturation
  Hue
  White Balance Temperature, Auto
  Gamma
  Power Line Frequency
  White Balance Temperature
  Sharpness
  Backlight Compensation
  Exposure, Auto
  Exposure (Absolute)
  Exposure, Auto Priority

$ sudo uvcdynctrl -d /dev/video2 -c
Listing available controls for device /dev/video2:
  Brightness
  Contrast
  Saturation
  White Balance Temperature, Auto
  Gain
  Power Line Frequency
  White Balance Temperature
  Sharpness
  Backlight Compensation
  Exposure, Auto
  Exposure (Absolute)
  Exposure, Auto Priority
  Pan (Absolute)
  Tilt (Absolute)
  Focus (absolute)
  Focus, Auto
  Zoom, Absolute
  LED1 Mode
  LED1 Frequency

[링크 : https://coding-yoon.tistory.com/107]

[링크 : https://manpages.ubuntu.com/manpages/jammy/en/man1/uvcdynctrl.1.html]

'Linux' 카테고리의 다른 글

리눅스 경로 / 와 // 와 ///  (0) 2022.11.01
리눅스 프로세스 숨기기  (0) 2022.08.31
dmesg -w  (0) 2022.06.30
dmesg log_buf_len  (0) 2022.06.29
bash set -e set -x  (0) 2022.06.22
Posted by 구차니

댓글을 달아 주세요

Linux2022. 6. 30. 11:47

kernel 3.5.0 이후 지원하는 기능으로

tail -f 로 보듯 상시 감시가 가능하다.

 

[링크 : https://superuser.com/questions/289239/is-it-possible-to-tail-f-the-output-of-dmesg]

'Linux' 카테고리의 다른 글

리눅스 프로세스 숨기기  (0) 2022.08.31
uvcdynctrl  (0) 2022.07.06
dmesg log_buf_len  (0) 2022.06.29
bash set -e set -x  (0) 2022.06.22
iperf udp 테스트  (0) 2022.03.14
Posted by 구차니

댓글을 달아 주세요

Linux2022. 6. 29. 18:04

에러 로그가 많이 쌓이면 초기 메시지가 사라지는데

그걸 방지하기 위해 dmesg가 저장될 용량을 늘릴수 있다고 한다.

[링크 : https://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/re07.html]

 

다만, 커널 인자인 만큼 grub나 uboot 등에서 설정해주어야 하는 함정이..

systemd.log_level=debug systemd.log_target=kmsg log_buf_len=15M

[링크 : https://www.thegeeksearch.com/how-to-increase-dmesg-log-size-to-capture-more-verbose-booting-logs-in-centos-rhel-7/]

'Linux' 카테고리의 다른 글

uvcdynctrl  (0) 2022.07.06
dmesg -w  (0) 2022.06.30
bash set -e set -x  (0) 2022.06.22
iperf udp 테스트  (0) 2022.03.14
linux cache clear  (0) 2022.02.11
Posted by 구차니

댓글을 달아 주세요

Linux2022. 6. 22. 17:39

-e 는 에러 발생시 중단하지 않도록

+e는 에러 발생시 중단하도록 설정

-x -e와 동일하나 종료시 실행위치 출력

 

[링크 : https://frankler.tistory.com/59]

[링크 : https://tech.ezphp.net/8]

'Linux' 카테고리의 다른 글

dmesg -w  (0) 2022.06.30
dmesg log_buf_len  (0) 2022.06.29
iperf udp 테스트  (0) 2022.03.14
linux cache clear  (0) 2022.02.11
sort 컬럼 별 정렬하기  (0) 2022.02.08
Posted by 구차니

댓글을 달아 주세요

Linux/Ubuntu2022. 4. 27. 14:08

오늘 생각난김에 USB에 부팅해보는데 나쁘진 않은 느낌.

/dev/fb0 로는 캡쳐가 안되네 -_ㅠ

 

일단 윈도우(super) 누르면 데스크탑이 나오는데 상하에서 좌우로 바뀌었고

alt-tab 기본 값도 앱전환에서 프로그램 전환으로 그룹으로 묶이지 않게 변경! super-tab이 앱전환으로 지정!

gnome3로 바뀌면서(맞나?) 메뉴가 떠도 캡쳐가 가능해졌다.

 

동영상 촬영에 영역 캡쳐까지!

 

그리고 메뉴는 전반적으로 좀 더 동글동글 해진 느낌?

 

22.04의 모서리 둥글기

 

18.04의 모서리 둥글기

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

리눅스 블루투스 유틸리티 bluez-tools  (0) 2022.11.07
cpuid  (0) 2022.10.17
minicom stty  (0) 2022.04.25
sudo -k -K  (0) 2022.04.25
ubuntu unity tweak  (0) 2022.04.04
Posted by 구차니

댓글을 달아 주세요

Linux/Ubuntu2022. 4. 25. 19:13

minicom 으로 포트를 열고 stty로 확인하니 아래의 플래그들이 설정된다.

근데 포트를 잘 못열었나.. xon/xoff에 대한건 안보이네..


ignbrk ignore break characters
-brkint breaks cause an interrupt signal
-icrnl translate carriage return to newline
-imaxbel beep and do not flush a full input buffer on a character
-opost postprocess output
-onlcr translate newline to carriage return-newline
-isig enable interrupt, quit, and suspend special characters
-icanon enable erase, kill, werase, and rprnt special characters
-iexten enable non-POSIX special characters
-echo echo input characters
-echoe same as [-]crterase // echo erase characters as backspace-space-backspace
-echok echo a newline after a kill character
-echoctl same as [-]ctlecho // echo control characters in hat notation ('^c')
-echoke same as [-]crtkill // kill all line by obeying the echoctl and echok settings



[링크 : https://linux.die.net/man/1/stty]

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

cpuid  (0) 2022.10.17
ubuntu 22.04 LTS  (0) 2022.04.27
sudo -k -K  (0) 2022.04.25
ubuntu unity tweak  (0) 2022.04.04
This kernel does not support RARP.  (0) 2022.03.08
Posted by 구차니

댓글을 달아 주세요

Linux/Ubuntu2022. 4. 25. 18:55

sudo의 사용가능 시간을 리셋하는 옵션

-K' The -K (sure kill) option is like -k except that it removes the user's cached credentials entirely and may not be used in conjunction with a command or other option. This option does not require a password. Not all security policies support credential caching.

-k [command]
When used alone, the -k (kill) option to sudo invalidates the user's cached credentialsThe next time sudo is run a password will be required. This option does not require a password and was added to allow a user to revoke sudo permissions from a .logout file. Not all security policies support credential caching.

When used in conjunction with a command or an option that may require a password, the -k option will cause sudo to ignore the user's cached credentials. As a result, sudo will prompt for a password (if one is required by the security policy) and will not update the user's cached credentials.

[링크 : https://linux.die.net/man/8/sudo]

[링크 : https://askubuntu.com/questions/14948/how-to-cancel-the-currently-applied-remaining-sudo-time-out]

 

+ 22.05.03

아래 경로 가니 파일이 존재하는데 -k 로는 파일이 사라지지 않고 -K로는 파일이 사라진다.

/run/sudo/ts/<username>

[링크 : https://www.linux.org/threads/cache-timestamp-file.25274/]

 

sudo 도움말을 보면 -K는 파일을 삭제하고, -k는 타임스탬프 파일을 무효화 한다는데 내용이 변화되는것 같진 않고..

  -K, --remove-timestamp        remove timestamp file completely
  -k, --reset-timestamp         invalidate timestamp file

 

struct timestamp_entry {
unsigned short version;     /* version number /
unsigned short size;        / entry size /
unsigned short type;        / TS_GLOBAL, TS_TTY, TS_PPID /
unsigned short flags;       / TS_DISABLED, TS_ANYUID /
uid_t auth_uid;             / uid to authenticate as /
pid_t sid;                  / session ID associated with tty/ppid /
struct timespec start_time; / session/ppid start time /
struct timespec ts;         / time stamp (CLOCK_MONOTONIC) /
union {
dev_t ttydev;           / tty device number /
pid_t ppid;             / parent pid */
} u;
};

[링크 : https://www.sudo.ws/docs/man/1.8.25/sudoers_timestamp.man/]

 

먼가 딱 하나.. 0에서 1로 바뀌었네

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

ubuntu 22.04 LTS  (0) 2022.04.27
minicom stty  (0) 2022.04.25
ubuntu unity tweak  (0) 2022.04.04
This kernel does not support RARP.  (0) 2022.03.08
우분투 크롬, 구글 로그인이 안됨  (0) 2022.02.14
Posted by 구차니

댓글을 달아 주세요

Linux/Ubuntu2022. 4. 4. 14:49

우분투 18.04 에서 unity tweak을 설치하고 실행하려고 하면

The following schema is missing 이라는 에러가 나오는데

에러 메시지 큰것만 봐서 자세히 안봤더니.. -_-

아무튼 패키지 하나 설치하면 끝!

 

$ sudo apt install notify-osd

[링크 : https://askubuntu.com/questions/965583/unity-tweak-tool-schema-missing-com-canonical-desktop-interface]

[링크 : https://jootc.com/p/201809181841]

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

minicom stty  (0) 2022.04.25
sudo -k -K  (0) 2022.04.25
This kernel does not support RARP.  (0) 2022.03.08
우분투 크롬, 구글 로그인이 안됨  (0) 2022.02.14
크로스 컴파일 패키지  (2) 2022.01.28
Posted by 구차니

댓글을 달아 주세요

Linux2022. 3. 14. 11:50

흐음.. 로컬로 쐈는데 이정도면.. 성능 엄청 안 좋은건가?

아무튼 893번을 보내고 또 10번을 더 보내서 총 903번의 전송이 발생하는 것으로 보인다.

 

$ iperf -u -p 16000 -c localhost
------------------------------------------------------------
Client connecting to localhost, UDP port 16000
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 49969 connected with 127.0.0.1 port 16000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[  3] Sent 893 datagrams
[  3] WARNING: did not receive ack of last datagram after 10 tries.

[링크 : https://idchowto.com/iperf-를-이용한-네트워크-성능-측정/]

[링크 : https://chanind.github.io/2020/05/15/network-bandwidth-stress-testing-iperf.html]

 

+

i5-2520m 이고 로컬로 했는데 저조하네..

서버

$ iperf -u -p 16000 -s localhost
iperf: ignoring extra argument -- localhost
------------------------------------------------------------
Server listening on UDP port 16000
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 16000 connected with 127.0.0.1 port 59209
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec   0.003 ms    0/  893 (0%)

 

클라이언트

$ iperf -u -p 16000 -c localhost
------------------------------------------------------------
Client connecting to localhost, UDP port 16000
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 59209 connected with 127.0.0.1 port 16000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[  3] Sent 893 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec   0.000 ms    0/  893 (0%)

 

+

i7-10510U 라고 해도 별다를 건 없어 보이네?

서버

$ iperf -u -p 16000 -s localhost
iperf: ignoring extra argument -- localhost
------------------------------------------------------------
Server listening on UDP port 16000
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 16000 connected with 127.0.0.1 port 44436
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec   0.011 ms    0/  893 (0%)

 

클라이언트

$ iperf -u -p 16000 -c localhost
------------------------------------------------------------
Client connecting to localhost, UDP port 16000
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 44436 connected with 127.0.0.1 port 16000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[  3] Sent 893 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec   0.000 ms    0/  893 (0%)

 

 

+

-b 옵션을 통해 대역폭을 늘리니 cpu 사용율이 폭증한다.

'Linux' 카테고리의 다른 글

dmesg log_buf_len  (0) 2022.06.29
bash set -e set -x  (0) 2022.06.22
linux cache clear  (0) 2022.02.11
sort 컬럼 별 정렬하기  (0) 2022.02.08
elementary os  (0) 2022.01.28
Posted by 구차니

댓글을 달아 주세요

Linux/Ubuntu2022. 3. 8. 15:51

읭.. rarp 명령어로 역으로 조회해보려고 했더니 막히네

[링크 : http://manpages.ubuntu.com/manpages/trusty/man8/rarp.8.html]

 

10년 정도 전에는 되지 않았을까.. 아마도 수준이라니 -_-

Linux (and therefor the Pi) hasn't supported RARP for a number of years now. Possibly over a decade ago. It's an obsolete protocol and really should not be used.

[링크 : https://forums.raspberrypi.com/viewtopic.php?t=32181]

 

포트스캔에 의한 mac 주소 조회외에는 그럼 답이 없는건가..

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

sudo -k -K  (0) 2022.04.25
ubuntu unity tweak  (0) 2022.04.04
우분투 크롬, 구글 로그인이 안됨  (0) 2022.02.14
크로스 컴파일 패키지  (2) 2022.01.28
ubuntu x86에서 arm용 아키텍쳐 패키지 추가하기(주의)  (0) 2022.01.28
Posted by 구차니

댓글을 달아 주세요