'프로그램 사용'에 해당되는 글 2389건

  1. 2025.12.11 git revert
  2. 2025.12.09 .gitconfig insteadof
  3. 2025.11.11 gdb attach
  4. 2025.10.20 eclipse perspective 초기화 하기
  5. 2025.10.06 ntopng 유료기능
  6. 2025.10.06 ntopng ubuntu 22.04 신버전 설치
  7. 2025.10.06 ntopng nic 어디서 봐야하나?
  8. 2025.10.06 rtl-sdr v3/v4
  9. 2025.10.05 ntopng 인터페이스 변경
  10. 2025.09.30 ncurse screen size

reset은 아예 없애는거라 내 취향은 아니고

revert 가 딱이긴 한데 의미가 내가 생각하던 것과는 조금 달랐다

 

예를 들어

git log 에서

hash 1111

hash 2222

hash 3333

hash 4444

 

git revert 2222 라고 하면

hash 2222 에서 했던 녀석만을 되돌리게 된다.

 

정리 하자면

revert 는 "hash 의 해당 commit을 돌린다" 이기 때문에

돌아가고 싶은 커밋이 아니라

없애고 싶은 커밋을 명시해야 한다.

 

man page 에도 존재하는 커밋을 되돌린다고 되어있다.

git-revert - Revert an existing commit

Synopsis
git revert [--edit | --no-edit] [-n] [-m parent-number] [-s] <commit>

Description

Given one existing commit, revert the change the patch introduces, and record a new commit that records it. This requires your working tree to be clean (no modifications from the HEAD commit).

Note: git revert is used to record a new commit to reverse the effect of an earlier commit (often a faulty one). If you want to throw away all uncommitted changes in your working directory, you should see git-reset(1), particularly the --hard option. If you want to extract specific files as they were in another commit, you should see git-checkout(1), specifically the git checkout <commit> - <filename> syntax. Take care with these alternatives as both will discard uncommitted changes in your working directory.

[링크 : https://linux.die.net/man/1/git-revert]

 

만약 돌려야 한다면 한번에 될진 모르겠지만 1111, 2222를 revert 해야 할지도? (확인필요)

 

$ git log --oneline
17b787d bug3 fixed
1fefb57 bug2 fixed
8b3560b bug1 fixed
784065c feature1 developed
...
이제 우리는 이러한 버그 수정을 없애고 저장소를 bug1 fixed 상태 이전의 상태로 되돌리기로 결정했습니다.

따라서 --no-commit 옵션과 함께 git revert 명령을 사용할 수 있습니다. 명령 구문은 git revert --no-commit <commit>입니다.

따라서 완료된 버그 수정의 세 커밋을 되돌리려면 다음과 같이 해야 합니다.

$ git revert --no-commit 17b787d784065c
$ git revert --no-commit 1fefb57
$ git revert --no-commit 8b3560b

[링크 : https://www.delftstack.com/ko/howto/git/git-revert-multiple-commits/]

[링크 : https://medium.com/@rnrjsah789/git-revert-4c569366a77b]

[링크 : https://www.inflearn.com/community/questions/172695/%EC%97%AC%EB%9F%AC%EA%B0%9C%EC%9D%98-%EC%BB%A4%EB%B0%8B%EC%9D%84-revert?srsltid=AfmBOoo4CTQkAtobmxI0lo6YlKOM1mC1_XZ7rhbI66F8q7CUayTbRIDG]

 

git revert를 하면 자동으로 커밋메시지를 생성해서 커밋하는데 

여러개 돌릴때 마다 메시지 남기면 번거로우니 쭈르르르륵 되돌려 버릴땐 -n 옵션 주면 된다고 한다.

-n, --no-commit
Usually the command automatically creates a commit with a commit log message stating which commit was reverted. This flag applies the change necessary to revert the named commit to your working tree and the index, but does not make the commit. In addition, when this option is used, your index does not have to match the HEAD commit. The revert is done against the beginning state of your index.
This is useful when reverting more than one commits' effect to your index in a row.

[링크 : https://linux.die.net/man/1/git-revert]

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

.gitconfig insteadof  (0) 2025.12.09
git master -> main branch  (0) 2025.05.22
git local branch, merge master  (0) 2025.01.16
git switch  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
Posted by 구차니

전역설정으로 등록하면 저장소 주소가 달라졌을때 간단하게(!) 연결을 변경해 줄 수 있다.

[링크 : https://gist.github.com/Kovrinic/ea5e7123ab5c97d451804ea222ecd78a]

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

git revert  (0) 2025.12.11
git master -> main branch  (0) 2025.05.22
git local branch, merge master  (0) 2025.01.16
git switch  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
Posted by 구차니

stm32도 붙이는데 리눅스에서도 작동중인 녀석을 디버그 할 수 있나 찾는데

그냥 pid 옵션주면 된다고

 

12년전 글이라서 한번 해봐야겠다.

-p는 gdb 옵션

attach 는 gdb 인터프리터내 명령어

gdb -p 12271
gdb /path/to/exe 12271

gdb /path/to/exe
(gdb) attach 12271

[링크 : https://stackoverflow.com/questions/14370972/how-to-attach-a-process-in-gdb]

   [링크 : https://kukuta.tistory.com/202]

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

gdbserver taget  (0) 2023.07.19
gdb conditional break  (0) 2023.07.19
gdb 디버깅 타겟을 인자와 함께 실행하기  (0) 2022.10.17
gdb break  (0) 2021.04.09
gdb/insight target window  (0) 2010.05.19
Posted by 구차니

해당 퍼스펙티브만 초기화되므로, 이상하게 보이는 녀석에서 실행해주면 된다.

2004년 부터 썼는데 20년 만에 알게 되다니 -_-

 

window - perspectice - reset perspective

[링크 : https://hianna.tistory.com/643]

Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:53

네트워크 맵을 그려주길래 보고 있었는데 10분 지나니 이렇게 된다. -_-

 

dashboard는 빼먹었는데 먼가 몇 개 그래프가 사라진거 같고

메뉴상에서 확인해보면 생각외로 많은 것들이 잠긴다.

Enterprise XL community

 

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

ntopng ubuntu 22.04 신버전 설치  (0) 2025.10.06
ntopng nic 어디서 봐야하나?  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:18

일단 하라는대로 따라하는 중

sudo apt-get install software-properties-common wget
sudo  add-apt-repository universe
wget https://packages.ntop.org/apt/22.04/all/apt-ntop.deb
sudo  apt install ./apt-ntop.deb
sudo  apt-get clean all
sudo  apt-get update
sudo  apt-get install pfring-dkms nprobe ntopng n2disk cento ntap

[링크 : https://www.ntop.org/support/documentation/software-installation/]

 

서비스를 재기동 하면 일단 10분간은 enterprise XL 모드로 작동하다 community 모드로 전환되는 듯 하다.

● ntopng.service - ntopng high-speed web-based traffic monitoring and analysis tool
     Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2025-10-06 11:52:24 KST; 27s ago
    Process: 10241 ExecStartPre=/bin/sh -c /usr/bin/ntopng-utils-manage-config -a check-restore  && /usr/bin/ntopng-utils-manage-config -a restore || true (code=exited, status=0/SUCCESS)
    Process: 10255 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf > /run/ntopng.conf.raw (code=exited, status=0/SUCCESS)
    Process: 10257 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf.d/*.conf >> /run/ntopng.conf.raw 2>/dev/null || true (code=exited, status=0/SUCCESS)
    Process: 10259 ExecStartPre=/bin/sh -c /bin/sed "/^[ ]*-e.*$\|^[ ]*-G.*\|^[ ]*--daemon.*\|[ ]*--pid.*/s/^/#/" /run/ntopng.conf.raw > /run/ntopng.conf (code=exited, status=0/SUCCESS)
   Main PID: 10261 (ntopng)
      Tasks: 1 (limit: 9318)
     Memory: 32.7M
        CPU: 418ms
     CGroup: /system.slice/ntopng.service
             └─10261 /usr/bin/ntopng /run/ntopng.conf

10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:743] WARNING: [LICENSE] ntopng will now run in Enterprise XL edition for 10 minutes
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:749] WARNING: [LICENSE] before returning to community mode
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:749] WARNING: [LICENSE] before returning to community mode
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:751] WARNING: [LICENSE] You can buy a permanent license at http://shop.ntop.org
10월 06 11:52:24 minimonk-HP-EliteBook-2760둣둣p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:751] WARNING: [LICENSE] You can buy a permanent license at http://shop.ntop.org
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:755] WARNING: [LICENSE] or run ntopng in community mode starting
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:755] WARNING: [LICENSE] or run ntopng in community mode starting
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:757] WARNING: [LICENSE] ntopng --community
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:757] WARNING: [LICENSE] ntopng --community
10월 06 11:52:45 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:45 [NetworkInterface.cpp:4051] Cleanup interface dummy

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

ntopng 유료기능  (0) 2025.10.06
ntopng nic 어디서 봐야하나?  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:14

 

 

도움말 찾아보면 6.5가 최신인것 같은데 ubuntu 22.04 라 그런가 5.2가 설치된다. 

armbian쪽도   동일하게 깨지는걸 보면 그리 버전이 높지 않았던것 같고..

pfsense가 유독 신버전을 해주는건가?

[링크 : https://www.ntop.org/guides/ntopng/user_interface/network_interface/index.html]

 

+

6.5로 설치하고 나니 상단에 잘나온다.

그나저나 저.. license expires in ... 머냐 이거??

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

ntopng 유료기능  (0) 2025.10.06
ntopng ubuntu 22.04 신버전 설치  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/rtl-sdr2025. 10. 6. 11:01

용돈도 생겼겠다(?) 질러보고 싶어서 보는데

v3 랑 v4랑 오히려 튜너 칩의 파트명 숫자가 줄어들어서, 오히려 반대 아냐? 싶은 생각에 찾아보는 중.

[링크 : https://www.rtl-sdr.com/rtl-sdr-blog-v4-dongle-initial-release/comment-page-1/]

[링크 : https://www.rtl-sdr.com/buy-rtl-sdr-dvb-t-dongles/]

 

RTL-SDR 블로그 RTL SDR V4 R828D RTL2832U 1PPM TCXO SMA RTLSDR 소프트웨어 정의 라디오 (동글 전용)

[링크 : https://ko.aliexpress.com/item/1005005952682051.html?gatewayAdapt=glo2kor]

 

RTL-SDR 블로그 RTL SDR V3 R860(R820T2) RTL2832U 1PPM TCXO SMA RTLSDR 소프트웨어 정의 라디오(동글만 해당)

[링크 : https://ko.aliexpress.com/item/32939551915.html?gatewayAdapt=glo2kor]

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

wifi sdr - openwifi, antsdr 등등  (0) 2025.09.26
gr-lora with gnuradio 성공!  (0) 2025.09.25
gnuraduio wx gui deprecated  (0) 2025.09.25
qr-lora tutorial  (0) 2025.09.25
rtlsdr + gnuradio + lora 일단.. 실패  (0) 2025.09.24
Posted by 구차니
프로그램 사용/ntopng2025. 10. 5. 21:42

odroid-c2에 깔았는데 예상외로 너무 느려서, 원격지에서 접속해야 하나 고민중.

 

docker 에서는 아래와 같이 인터페이스 넘겨주면 된다는데

docker run -it -p 3000:3000 -v $(pwd)/ntopng.license:/etc/ntopng.license:ro --net=host ntop/ntopng:latest -i eth0

[링크 : https://hub.docker.com/r/ntop/ntopng]

 

odroid-c2 / armbian에서는

/etc/ntopng.conf 에 존재하고, 아래의 내용이 있었는데 -i 에 반복적으로 모니터링할 장치들을 넣어주면 된다.

그나저나 odroid c2에서는 왜 eth0가 아니라 end0로 되어있어서 순간 멘붕...

#       -i|--interface
#        Specifies  the  network  interface or collector endpoint to be used by ntopng for network
#        monitoring. On Unix you can specify both the interface name  (e.g.  lo)  or  the  numeric
#        interface id as shown by ntopng -h. On Windows you must use the interface number instead.
#        Note that you can specify -i multiple times in order to instruct ntopng to create  multi-
#        ple interfaces.
#
# -i=eth1
-i=eno1
-i=eno2
-i=lo
-i=tcp://127.0.0.1:5556

[링크 : https://www.ntop.org/guides/ntopng/cli_options/cli_options_example.html]

 

동일 파일이긴 한데.. 이런 설정은 없었으나, 한번 해봐야겠네

0.0.0.0:3000 하면 모두 접속 가능하려나?

# Listen on localhost:3000 only
--http-port=:3000

 

raspi-conf 같은 느낌의 ntopng 설정용 유틸이라는데 이것도 있으면 좋겠네

$ sudo ntopng-config

[링크 : https://www.ntop.org/guides/ntopng/how_to_start/configuration_file.html]

 

+

2025.10.06

$ cat /etc/ntopng.conf 
# This configuration file is similar to the command line, with the exception
# that an equal sign '=' must be used between key and value. Example: -i=p1p2
# or --interface=p1p2 For options with no value (e.g. -v) the equal is also
# necessary. Example: "-v=" must be used.
#
# DO NOT REMOVE the following option, required for daemonization.
-e=

# * Interfaces to sniff on: one interface per line, prefix with -i=
# E.g.
#-i=eth0
#-i=wlan0
# If none is specified, ntopng will try to auto-detect the best interface.
#
# * Port on which ntopng will listen for the web-UI.
-w=3000

 

ntopng-config 는 어디서 설치해야 하냐 -_-

$ ntopng-config
ntopng-config: 명령을 찾을 수 없습니다
$ apt-cache search ntopng-config
$ apt-cache search ntopng
ntopng - High-Speed Web-based Traffic Analysis and Flow Collection Tool
ntopng-data - High-Speed Web-based Traffic Analysis and Flow Collection Tool (data files)
ntopng-doc - High-Speed Web-based Traffic Analysis and Flow Collection Tool (documentation)

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

ntopng 유료기능  (0) 2025.10.06
ntopng ubuntu 22.04 신버전 설치  (0) 2025.10.06
ntopng nic 어디서 봐야하나?  (0) 2025.10.06
Posted by 구차니
프로그램 사용/ncurses2025. 9. 30. 20:18

nc나 make menuconfig 처럼 실행시 혹은 동적으로 창 크기나 비율을 어떻게 조절하나 궁금해짐

 

Name
getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates

Synopsis
#include <curses.h>

void getyx(WINDOW *win, int y, int x);
void getparyx(WINDOW *win, int y, int x);
void getbegyx(WINDOW *win, int y, int x);
void getmaxyx(WINDOW *win, int y, int x);

[링크 : https://linux.die.net/man/3/getmaxyx]

[링크 : https://stackoverflow.com/questions/1811955/ncurses-terminal-size]

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

ncurses 상자 및 색상 적용하기  (0) 2024.12.02
ncurses 예제  (0) 2024.11.30
ncurse example  (0) 2022.05.17
ncurse  (0) 2015.04.27
Posted by 구차니