'Linux'에 해당되는 글 777건

  1. 2022.04.27 ubuntu 22.04 LTS
  2. 2022.04.25 minicom stty
  3. 2022.04.25 sudo -k -K
  4. 2022.04.04 ubuntu unity tweak
  5. 2022.03.08 This kernel does not support RARP.
  6. 2022.02.14 우분투 크롬, 구글 로그인이 안됨
  7. 2022.02.11 linux cache clear
  8. 2022.02.08 sort 컬럼 별 정렬하기
  9. 2022.01.28 크로스 컴파일 패키지 2
  10. 2022.01.28 elementary os
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 구차니
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 구차니
Linux/Ubuntu2022. 2. 14. 16:18

이번에 시스템 날아가는 바람에 새로 설치했는데

크롬에서 이상하게 google 로그인하는게 보이지 않는다.

 

검색해보니 간단하게 요약하면

정책에 의해 차단, chromium이 아니라 google chrome만 허용한다.

[링크 : https://askubuntu.com/questions/1322559/]

 

20.04 에서는 google-chrome 이라는 걸 입력하면 실행(혹은 설치?) 되는 것 같은데

난 18.04라서 firefox로 구글 접속후 크롬 내려받기로 deb(64bit)를 하면 될 듯.

[링크 : https://linuxways.net/ubuntu/how-to-install-google-chrome-on-ubuntu-20-04-lts/]

 

deb 받아서 설치하니

사용자 이름에 로그인하지 않음 까진 똑같으나, 그 아래에 동기화 사용이 추가되었다.

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

ubuntu unity tweak  (0) 2022.04.04
This kernel does not support RARP.  (0) 2022.03.08
크로스 컴파일 패키지  (2) 2022.01.28
ubuntu x86에서 arm용 아키텍쳐 패키지 추가하기(주의)  (0) 2022.01.28
debian 소스 받아 빌드하기  (0) 2021.12.02
Posted by 구차니
Linux2022. 2. 11. 22:06

리눅스에서 이상하게 free 명령어에서 free 인 부분이 적게 나오는데

이럴때는 drop_caches를 강제로 하면 메모리가 돌아온다.

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           7.7G        1.2G        5.8G        232M        757M        6.1G
스왑:        2.0G          0B        2.0G

# echo 3 > /proc/sys/vm/drop_caches

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           7.7G        1.2G        5.9G        235M        667M        6.1G
스왑:        2.0G          0B        2.0G

 

리눅스 캐시의 종류를 좀 더 봐야 할 듯.

파일 시스템을 알아서 캐싱하는 느낌이었는데 2번 항목이 그런거였나?

1. Clear PageCache only.
# sync; echo 1 > /proc/sys/vm/drop_caches

2. Clear dentries and inodes.
# sync; echo 2 > /proc/sys/vm/drop_caches

3. Clear pagecache, dentries, and inodes.
# sync; echo 3 > /proc/sys/vm/drop_caches 

[링크 : https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/amp/]

[링크 : https://support.huaweicloud.com/intl/en-us/trouble-ecs/ecs_trouble_0336.html]

 

 

 

'Linux' 카테고리의 다른 글

dmesg log_buf_len  (0) 2022.06.29
bash set -e set -x  (0) 2022.06.22
sort 컬럼 별 정렬하기  (0) 2022.02.08
elementary os  (0) 2022.01.28
linux 터미널 pause, resume  (0) 2022.01.11
Posted by 구차니
Linux2022. 2. 8. 17:59

ls 해서 용량별로 보고 싶어 검색

 

흐음.. 아름답지 않아!! (길어서 외우기 싫다는 의미)

$ ls --sort=size -l

 

이런 산뜻한 걸 먼저 알려줬어야지!!

-S Sort by file size, largest first

[링크 : https://www.cyberciti.biz/faq/linux-ls-command-sort-by-file-size/]

 

$ sort -k 3,3 myFile

[링크 : https://unix.stackexchange.com/questions/104525/sort-based-on-the-third-column]

 

-k, --key=POS1[,POS2]
       start a key at POS1 (origin 1), end it at POS2 (default end of line)

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

 

우분투 내 도움말에는 key 라고 나오네. 설명이 와닫지 않아!

       -k, --key=KEYDEF
              sort via a key; KEYDEF gives location and type

'Linux' 카테고리의 다른 글

bash set -e set -x  (0) 2022.06.22
linux cache clear  (0) 2022.02.11
elementary os  (0) 2022.01.28
linux 터미널 pause, resume  (0) 2022.01.11
systemctl TTYPath  (0) 2022.01.06
Posted by 구차니
Linux/Ubuntu2022. 1. 28. 14:45

dpkg --add-architecture를 통해서 원하는 아키텍쳐의 패키지를 설치할 순 있는데

edgetpu(google coral) 빌드 하려다 시스템 한번 날려먹음 ㅋㅋㅋ

도대체 처음에는 멀 잘못해서 날려먹고

도대체 두번째는 멀 잘해서 된걸까?...

 

sudo dpkg --add-architecture armhf
sudo apt-get install -y crossbuild-essential-armhf \
                        libpython3-dev:armhf \
                        libusb-1.0-0-dev:armhf

sudo dpkg --add-architecture arm64
sudo apt-get install -y crossbuild-essential-arm64 \
                        libpython3-dev:arm64 \
                        libusb-1.0-0-dev:arm64

Compilation or cross-compilation is done by setting CPU variable for make command:

make CPU=k8      tests  # Builds for x86_64 (default CPU value)
make CPU=armv7a  tests  # Builds for ARMv7-A, e.g. Pi 3 or Pi 4
make CPU=aarch64 tests  # Builds for ARMv8, e.g. Coral Dev Board

[링크 : https://github.com/google-coral/edgetpu]

 

[링크 : https://www.blog.willandnora.com/2017/09/02/cross-building-bluez-5-46-1-for-armhf/]

[링크 : https://wiki.debian.org/CrossCompiling]

Posted by 구차니
Linux2022. 1. 28. 12:02

apt를 지원하는걸 보니 debian 계열의 맥 스타일 OS

[링크 : https://elementary.io/]

 

Recent Intel i3 or comparable dual-core 64-bit processor
4 GB of system memory (RAM)
Solid state drive (SSD) with at least 32 GB of free space
Internet access
Built-in or wired mouse/touchpad and keyboard
1024×768 minimum resolution display

[링크 : https://elementary.io/docs/installation#download-elementary-os]

'Linux' 카테고리의 다른 글

linux cache clear  (0) 2022.02.11
sort 컬럼 별 정렬하기  (0) 2022.02.08
linux 터미널 pause, resume  (0) 2022.01.11
systemctl TTYPath  (0) 2022.01.06
uniq 카운트  (0) 2021.12.07
Posted by 구차니