Linux/Ubuntu2024. 2. 23. 19:16

해볼까?

pfsense도 귀찮고..

그냥 필요한건 간단하게 NAT와 포트포워딩, DHCP 정도인데..

 

NAT

iptable masqurade

[링크 : https://ko.linux-console.net/?p=15300]

 

iptable - port forward

[링크 : https://www.google.com/amp/s/tecadmin.net/setting-up-a-port-forwarding-using-iptables-in-linux/%3famp]

 

 

DHCP

dhcpd

[링크 : https://askubuntu.com/questions/913250/how-can-i-get-isc-dhcp-server-dhcpd-to-listen-on-one-interface-only]

 

방화벽

suricata

[링크 : https://www.hostinger.com/tutorials/how-to-install-suricata-on-ubuntu]

 

 

snort

[링크 : https://fni8383.tistory.com/m/35]

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

ubuntu pro?  (2) 2024.01.31
debian nvme tool  (0) 2023.08.28
edid-read  (0) 2023.08.17
ubutnu file(파일) 에서 삼바 목록 안나오고 부적절한 인수 에러  (0) 2023.07.24
htop graph style  (0) 2023.07.07
Posted by 구차니
Linux/Ubuntu2024. 1. 31. 10:13

오늘 출근했더니 갑자기 업그레이드 뜨면서 ubuntu pro를 활성화 하겠냐는데

라이센스도 모르고 하니 일단은 다음에 알림으로 설정!

 

+

설정 누르니 소프트웨어 & 업데이트에서 Ubuntu Pro가 추가되었는데..

 

Enable Ubuntu Pro 누르니 아래와 같이 먼가 나온다.  가입은 필수인 것 같은데..

 

 

 

홈페이지 뒤져보니 개인은 무료, 기업에서도 30일 무료 라는데

[링크 : https://ubuntu.com/pro]

 

데스크 탑이라도 해도 유료로는 년 금액인 것 같긴한데

머.. 보안업데이트랑 신경써서 해준다니 어떤 의미로는 나빠보이진 않는 듯.

근데 우분투도 장시간 서버로 써보면 업데이트 많아서 불편(?) 한데, 서버를 더 자주 리부팅 하게 되는건 아니겠지?

[링크 : https://ubuntu.com/pricing/pro]

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

우분투로 공유기 만들기  (2) 2024.02.23
debian nvme tool  (0) 2023.08.28
edid-read  (0) 2023.08.17
ubutnu file(파일) 에서 삼바 목록 안나오고 부적절한 인수 에러  (0) 2023.07.24
htop graph style  (0) 2023.07.07
Posted by 구차니
Linux/Ubuntu2023. 8. 28. 12:27

프리징이 조금씩 걸리는 느낌이라 불안해서 상태보는 걸 찾는 중인데..

nvme 라는 다른 유틸리티로 봐야 하는 듯.. smartctl 로는 안되나?

 

$ sudo apt-get install nvme-cli
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료        
다음 새 패키지를 설치할 것입니다:
  nvme-cli
0개 업그레이드, 1개 새로 설치, 0개 제거 및 3개 업그레이드 안 함.
474 k바이트 아카이브를 받아야 합니다.
이 작업 후 1,136 k바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nvme-cli amd64 1.16-3ubuntu0.1 [474 kB]
내려받기 474 k바이트, 소요시간 2초 (229 k바이트/초)
Selecting previously unselected package nvme-cli.
(데이터베이스 읽는중 ...현재 255415개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../nvme-cli_1.16-3ubuntu0.1_amd64.deb ...
Unpacking nvme-cli (1.16-3ubuntu0.1) ...
nvme-cli (1.16-3ubuntu0.1) 설정하는 중입니다 ...
Created symlink /etc/systemd/system/default.target.wants/nvmefc-boot-connections.service → /lib/systemd/system/nvmefc-boot-connections.service.
Created symlink /etc/systemd/system/default.target.wants/nvmf-autoconnect.service → /lib/systemd/system/nvmf-autoconnect.service.
nvmf-connect.target is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.10.2-1) ...


$ sudo nvme list
Node                  SN                   Model                                    Namespace Usage                      Format           FW Rev  
--------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1          S649NL0W000000F      Samsung SSD 980 1TB                      1         229.90  GB /   1.00  TB    512   B +  0 B   3B4QFXO7



$ sudo nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning : 0
temperature : 41 C (314 Kelvin)
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 0%
endurance group critical warning summary: 0
data_units_read : 483,823
data_units_written : 1,853,867
host_read_commands : 5,443,068
host_write_commands : 31,140,950
controller_busy_time : 94
power_cycles : 48
power_on_hours : 72
unsafe_shutdowns : 9
media_errors : 0
num_err_log_entries : 0
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1           : 41 C (314 Kelvin)
Temperature Sensor 2           : 40 C (313 Kelvin)
Thermal Management T1 Trans Count : 0
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 0
Thermal Management T2 Total Time : 0

[링크 : https://linuxhint.com/check-ssd-health-ubuntu/]

[링크 : https://itslinuxfoss.com/test-ssd-hdd-health-in-linux/]

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

우분투로 공유기 만들기  (2) 2024.02.23
ubuntu pro?  (2) 2024.01.31
edid-read  (0) 2023.08.17
ubutnu file(파일) 에서 삼바 목록 안나오고 부적절한 인수 에러  (0) 2023.07.24
htop graph style  (0) 2023.07.07
Posted by 구차니
Linux/Ubuntu2023. 8. 17. 16:29

리눅스에서 edid를 보는 또 다른 유틸리티. edid-decode 는 순수하게(?) 해석만 한다면

해당 패키지는 get-edid로 모니터로 부터 edid를 수집하고, parse-edid로 해석을 해준다

 

$ sudo get-edid > /tmp/edid
$ parse-edid < /tmp/edid

[링크 : https://unix.stackexchange.com/questions/114359/how-to-get-edid-for-a-single-monitor]

[링크 : https://packages.debian.org/sid/utils/read-edid]

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

ubuntu pro?  (2) 2024.01.31
debian nvme tool  (0) 2023.08.28
ubutnu file(파일) 에서 삼바 목록 안나오고 부적절한 인수 에러  (0) 2023.07.24
htop graph style  (0) 2023.07.07
mono-complete  (0) 2023.07.05
Posted by 구차니
Linux/Ubuntu2023. 7. 24. 17:37

ubuntu 22.04 인데 smb 서버 쪽이 SMB2 ~ SMB3를 지원하도록 되어있는데도 아래와 같은 에러를 뱉어내며 접근이 안되고

smb://ip/share_name 으로 직접 하면 연결이 되는 기현상 발생.

 

영어로는 아래의 메시지 인 듯.

 “Failed to Retrieve Share List from Server: Invalid Argument”

[링크 : https://www.fosslinux.com/117902/dealing-with-failed-to-retrieve-share-list-error-in-linux-smb-share.htm]

 

아무튼 이래저래 찾아보면서 시도해보니 되는건 아래의 하나.

원인은 서버가 smb1을 지원하지 않아도 gvfsd-smb-browse의 버그로 인해서

smb1을 지원하도록 설정을 해야 인자가 맞아서 돌아가는 것으로 보인다.

Because of a bug in gvfsd-smb-browse the initial contact between client and server is with SMB1.

Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add:

client min protocol = NT1
server min protocol = NT1

[링크 : https://askubuntu.com/questions/1250885/file-sharing-stopped-working-after-20-04-dist-upgrade]

 

테스트 해보니 나의 경우에는

server min protocol = NT1

만 넣어도 되는데 말들이 많으니 두개다 넣는거 추천

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

debian nvme tool  (0) 2023.08.28
edid-read  (0) 2023.08.17
htop graph style  (0) 2023.07.07
mono-complete  (0) 2023.07.05
ubuntu 22.04 wayland vs x.org on 4K dual  (0) 2023.06.26
Posted by 구차니
Linux/Ubuntu2023. 7. 7. 12:35

htop 이 armbian 에서는 온도도 나오고 좋아 보이길래 어떻게 설정하나 찾아보는데

htop 홈페이지에서 cpu 그래프가.. 신기한게 보여서 빌드도 해보는데 안되서 좌절하다가

[링크 : https://htop.dev/screenshots.html]

[링크 : https://github.com/htop-dev/htop]

 

htop graph 로 검색해보니 먼가 걸려나온다.

Remember you can press space bar to change the meter style. That way you can get the graph display you want.
And by the way, graph display for Load average will not probably work what you expect. It's work-in-progress. Patches are welcome.

[링크 : https://github.com/hishamhm/htop/issues/440]

 

F2(setup) 에서 Meters에 하단에 보니 Space / Style!

아무튼 CPU와 같은 녀석들은 [Bar] 라고 되어있는데 이걸 space 누르면 스타일이 변경된다.

 

 

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

edid-read  (0) 2023.08.17
ubutnu file(파일) 에서 삼바 목록 안나오고 부적절한 인수 에러  (0) 2023.07.24
mono-complete  (0) 2023.07.05
ubuntu 22.04 wayland vs x.org on 4K dual  (0) 2023.06.26
ubuntu 22.04 GUI/CLI 부팅  (0) 2023.06.18
Posted by 구차니
Linux/Ubuntu2023. 7. 5. 17:58

 

msbuild 쓰라는데

$ xbuild test_proj.sln

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

 

정작 패키지 검색하면 나오는건 xbuild. ubuntu 22.04 에서 mono가 이상한건가?

$ apt-cache search msbuild
mono-xbuild - MSBuild-compatible build system for Mono
libmono-addins-msbuild-cil-dev - MSBuild task library for Mono.Addins
libmono-addins-msbuild0.2-cil - MSBuild task library for Mono.Addins

$ apt-cache search mono-complete
mono-complete - complete Mono runtime, development tools and all libraries

 

[링크 : https://jjeongil.tistory.com/1988]

Posted by 구차니
Linux/Ubuntu2023. 6. 26. 16:24

회사 컴퓨터가 4K dual + FHD 본체 액정으로 쓰는데

일단 케이블의 문제로 인해서 4K 모니터는 전부 30Hz로 사용중인데

화면 찢어짐(tearing)은 확실히 wayland 쪽이 덜하다.

 

X.org로 구동하면 화면이 이쁘게 찢어진다. -_-

 

 

다만 wayland로 하면 barrier 쓸 수가 없고, x.org로 하면 버버버벅.. 우짜냐

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

htop graph style  (0) 2023.07.07
mono-complete  (0) 2023.07.05
ubuntu 22.04 GUI/CLI 부팅  (0) 2023.06.18
ubuntu dmesg 막혔네?  (0) 2023.06.01
python3를 python으로 실행하기  (0) 2023.02.10
Posted by 구차니
Linux/Ubuntu2023. 6. 18. 12:18

데탑 하나를 메모리 낭비도 줄일겸 CLI 로 부팅하게 할까 싶은데

target 명이 multi-user(CLI) graphical(GUI) 인 듯

 

$ sudo nano /etc/default/grub
#GRUB_TERMINAL=console
$ sudo update-grub
$ sudo systemctl set-default graphical.target

[링크 : https://techpiezo.com/linux/boot-ubuntu-22-04-in-text-mode/]

 

$ systemctl set-default multi-user.target

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

 

$ sudo systemctl isolate graphical
$ sudo systemctl set-default graphical.target

[링크 : https://linuxconfig.org/start-gui-from-command-line-on-ubuntu-22-04-jammy-jellyfish]

 

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

mono-complete  (0) 2023.07.05
ubuntu 22.04 wayland vs x.org on 4K dual  (0) 2023.06.26
ubuntu dmesg 막혔네?  (0) 2023.06.01
python3를 python으로 실행하기  (0) 2023.02.10
block caribou ?  (0) 2023.02.07
Posted by 구차니
Linux/Ubuntu2023. 6. 1. 16:11

22.04로 이제야 갈아탔는데

$ dmesg
dmesg: read kernel buffer failed: 명령을 허용하지 않음

 

먼가 이 황당한 시츄에이숑...

debian 시스템에서 변경으로 이걸 풀려면 아래와 같이 root가 아니어도 볼 수 있도록 풀어야지

내 계정을 허용하는 계정으로 추가하는 방법은 없는 듯?

$ echo kernel.dmesg_restrict = 0 | sudo tee -a /etc/sysctl.d/10-local.conf >/dev/null
$ cat /etc/sysctl.d/10-local.conf 
kernel.dmesg_restrict = 0

[링크 : https://unix.stackexchange.com/questions/390184/dmesg-read-kernel-buffer-failed-permission-denied]

[링크 : https://www.reddit.com/r/Kubuntu/comments/ucs15q/dmesg_needs_root_now_2204_what_solution_included/]

[링크 : https://jjeongil.tistory.com/1786]

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

ubuntu 22.04 wayland vs x.org on 4K dual  (0) 2023.06.26
ubuntu 22.04 GUI/CLI 부팅  (0) 2023.06.18
python3를 python으로 실행하기  (0) 2023.02.10
block caribou ?  (0) 2023.02.07
maas  (0) 2023.02.03
Posted by 구차니