본문 바로가기
1.A. High Level Computing/On Premise Computing

[토막글] POSIX 셋업 중 / 후 작업 참고 Log

by Never Settle Down 2023. 7. 19.
반응형

 

나도 2015년도엔 젊었는데.

ㅜㅜ

 

 

본인 참고용으로 기재한다.

 

 

Ubuntu

Utilities

sudo apt update

sudo apt upgrade

 

sudo apt install net-tools glances ubuntu-desktop nmap gnuplot geoip arp-scan vim

 

sudo systemctl set-default multi-user

startx

 

 

방화벽

sudo ufw enable

sudo ufw status

sudo ufw allow SSH

sudo ufw allow 22/tcp

sudo ufw delete allow 22/tcp

 

 

SSH

sudo nano /etc/ssh/sshd_config

 

Port = 12345

Permit RootLogin no

 

control s, control x

 

sudo service sshd restart

 

 

 

SMB

sudo apt install samba

sudo ufw allow smb

 

[name]

   comment = comment

   path = /directory

   browsable = yes

   guest ok = no

   read only = no

   valid users = accountName, User2

 

sudo smbpassword -a accountName

sudo service smbd restart

 

 

 

BSD - macOS

 

https://brew.sh/

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 

brew install nmap glances gnuplot geoip geoipupdate arp-scan wireshark vim

 

 

 

 

자주 쓸만하지만 리스트를 봐야 할만한 Bash Zsh commands

 

awk 'BEGIN{} {} END{}'

 

sed

 

find

 

wd -l

 

sort -n

 

top

 

vim script.sh

#!bin/(ba)sh

...

 

 

또 뭐있더라.

 

 

 

 

 

라우팅 테이블 확인하기

 

Windows: route print

 

Linux /w bash: ip route, route -n, netstat -r(n)

 

macos /w zsh: netstat -r(n), route (-n get default)

 

 

 

 

 

 

end of log

반응형

Comment(s)