Linux(commonness)
일반 사용자 계정 sudo 사용 가능하게 설정
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| 1. useradd -m -G [그룹명] [사용자명]
2. <편집 유틸리티명> /etc/sudoers ex) vim /etc/sudoers
3. /etc/sudoers 내용에서 sudo 관련 부분에 사용자가 포함되어 있는 그룹 이름 적어주고 저장 ex) %test ALL=(ALL) ALL ex) %test2 ALL=(ALL:ALL) ALL
tip)
usermod -a -G [그룹명] [사용자명]
|
kali
kali os-release 확인
docker 일반 계정으로 실행
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| sudo groupadd docker
sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock
sudo service docker restart
docker run hello-world
|
무선 랜카드 monitor mode로 전환
1 2 3 4 5 6 7 8 9 10 11 12
| 1. ifconfig [무선 랜카드 이름] down
2. iwconfig [무선 랜카드 이름] mode monitor
3. ifconfig [무선 랜카드 이름] up
4. iwconfig 4-1. iwconfig [무선 랜카드 이름]
|
ubuntu
docker 일반 계정으로 실행
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| sudo groupadd docker
sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock
sudo service docker restart
docker run hello-world
|
Python
python 패키지들 requirements.txt로 관리
1 2 3 4 5 6 7 8 9 10 11 12 13
| pip list pip3 list
pip3 freeze > requirements.txt
pip install -r requirements.txt
tip) 어떤 버전대 이상의 아무 버전이나 설치하고 싶을 때 testpk >= 2.*
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2022/08/07/2022-08-07-setting-commands/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?