#!/bin/bash

sudo apt update -y

if command -v python >/dev/null 2>&1; then
    echo "python is already installed."    
else
    sudo apt install python
fi

# 日本語入力 
sudo apt install fcitx5-mozc
im-config -n fcitx5
echo -e "\n\nfcitx" >> ~/.profile

sudo apt install code

cd ~/Desktop

wget https://setup.dx-hs.ogmgre.com/python_tutorial.desktop
wget https://setup.dx-hs.ogmgre.com/unix_cmd.desktop
wget -r -np -nH https://setup.dx-hs.ogmgre.com/count_people/

cd count_people
find . -type f -name "index.html" -delete

python -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install -r requirements.txt

sudo reboot
