보관함

선과 악, 정과 오를 바라보는 인간과 AI

일반적으로 선한사람과 악한사람이 있다.

똑같은 상황을 보고 그 상황에 대한 해석도 각각의 사람마다 다르다.

과학적으로 증명할수 있는 것이 드레스를 보고 25%의 사람은 파란색, 검은색 으로 75%의 사람은 흰색, 금색으로 보인다는 이미지가 있다.

 

요즈음 보통 신경망 같은 AI의 특징은 학습을 시킴으로써 최대한 사람에 가까운 AI를 만들고 싶어한다.

문제는 저런 의견이 갈리는 문제에 AI가 어느쪽 판단을 내리는 AI를 만들어야 하는 걸까?

 

최근 AI는 초기 상태는 정해져 있지만 AI가 어떻게 학습하고 어떻게 판단을 내렸는지는 알수 없다. 또한 매번 같은 결과가 나오지도 않는다.

 

AI를 충분히 학습 시키는 과정은 사람으로 치면 충분한 훈련을 시키는 과정과 같기 때문에 오류율은 낮출수 있다.

 

하지만…

인간이 충분히 의견이 갈리는 이념의 문제 같은 경우 이쪽이 맞는지 저쪽이 맞는지가 모호하다.

이런경우 AI라면 어떤 선택을 할까.

 

만일 충분히 학습시킨 AI가 충분히 많은 학습을 통해 한쪽의 선택을 하게 되는 경우…

인간은 거꾸로 당연히 그게 옳은 일로 받아들이게 될것이다.

azure ubuntu 설치 ver 2022

TimeZone Setting

ls -l /etc/localtime
cd /etc
sudo rm -rf localtime
sudo ln -s /usr/share/zoneinfo/Asia/Seoul localtime

# time changed UTC -> KST
date

package update

sudo apt update
sudo apt upgrade
do-release-upgrade
sudo apt autoclean
sudo apt autoremove

Util Install & Setting

# install Utils
sudo apt install build-essential
sudo apt install net-tools colordiff colortail mc subversion neofetch fortune-mod lolcat cowsay bat htop btop exa fd-find ripgrep colortail

sudo ln -s $(whih fdfind) /usr/local/bin/fd

.ssh login 처리

after edit ~/.ssh/authorized_keys from have to login client’s ~/.ssh/id_rsa.pub 

sudoer 처리

after modify /etc/sudoers.d/init-user

zsh Install & Setting

sudo apt install zsh
chsh -s /usr/bin/zsh

# install ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# zsh plugin install
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

after copy .zshrc to ~

tmux Install & Setting

# install tmux
sudo apt install tmux
git clone https://github.com/gpakosz/.tmux.git
ln -s ~/.tmux/.tmux.conf
cp ~/.tmux/.tmux.conf.local ~

after edit .tmux.conf.local

nvim 설정

# install neovim 
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim

# install spacevim
curl -sLf https://spacevim.org/install.sh | bash

# install plug.vim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

after copy init.vim to ~/.SpaceVim/

after copy init.toml to ~/.SpaceVim.d/

# have to do cause when do sudo vi to execute nvim
rm -rf /usr/bin/vi
ln -s /usr/bin/nvim /usr/bin/vi

after run vi

:PlugInstall

root zsh & nvim 처리

sudo su -

# install ohmyzsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# zsh plugin install
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

cp /home/user/.zshrc ~

after modify oh-my-zsh pass on export ZSH “/home/user/.oh-my-zsh” to “/root/.oh-my-zsh” on .zshrc

# install spacevim
curl -sLf https://spacevim.org/install.sh | bash

# install plug.vim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

cp /home/usr/.SpaceVim/init.vim ~/.SpaceVim/
cp /home/usr/.SpaceVim.d/init.toml ~/.SpaceVim.d/

after run vi

:PlugInstall

pip Install & Setting (for nvim)

sudo apt install python3-pip
pip install neovim pyright pynvim

nodejs & npm Install & Setting (for nvim)

sudo npm -g update
sudo npm -g install bash-language-server create-react-app emmet-ls eslint intelephense jshint neovim nodemon prettier tree-sitter-cli typescript-language-server typescript vim-language-server vscode-langservers-extracted 

LogWatcher

sudo apt install mailutils postfix

after modify /etc/postfix/main.cf

sudo apt install logwatch
sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/

after modify /etc/logwatch/conf/logwatch.conf

after modify /etc/mailname

OpenVpn Server 처리

sudo apt install openvpn easy-rsa

mkdir easy-rsa
cd easy-rsa
ln -s /usr/share/easy-rsa/* ~/easy-rsa
cp vars.example vars

after modify vars

. ./vars

# generate ca
./easyrsa init-pki
./easyrsa build-ca

# generate server cert
./easyrsa gen-req myservername nopass
./easyrsa gen-dh
./easyrsa sign-req server myservername
openvpn --genkey --secret ta.key

# generate client cert
./easyrsa gen-req myclient1 nopass
./easyrsa sign-req client myclient1

OpenVpn Client 처리

sudo apt install oepnvpn

after copy ca.crt, ta.key, client.key, client.crt, client.ovpn to /etc/openvpn

after edit /etc/default/openvpn for openvpn auto start

sudo systemctl enable [email protected]
sudo systemctl daemon-reload
sudo service openvpn@client start

# testing after reboot
ip addr

APM 처리

sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-{bcmath,gd,mbstring,xml,imagick,zip,xmlrpc,intl,curl}

SVN Server 처리

sudo apt install subversion sasl2-bin

after copy /etc/init.d/svnserve

sudo chmod 755 svnserve
sudo update-rc.d svnserve defaults
sudo service svnserve start

# user manage
sudo saslpasswd2 -c id -u group # create user
sudo sasldblistusers2
sudo saslpasswd2 -d anydragon # delete user

 

Ubuntu 에 새 disk 추가

sudo fdisk -l

# partitioning
sudo parted /dev/sdc

mklabel
new disk label type? diskname

mkpart
partition name? partitionname
file system type? [ext2]? ext4
start? 1
end? 128GB
quit

# format
sudo mkfs.ext4 /dev/sdc1

sudo fdisk -l

# mount
sudo mount /dev/sdc1 /data