sudo systemctl set-default multi-user.target
sudo systemctl set-default graphical.target
gsettings set org.gnome.desktop.session idle-delay 0
sudo apt-get update
sudo apt-get -y install python3-pip
pip3 install --upgrade pip
pip3 --version
sudo apt-get install nano
sudo swapon --show
sudo fallocate -l 6g /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo bash -c 'echo "/swapfile swap swap defaults 0 0" >> /etc/fstab'
sudo swapon --show
sudo free -h
cat /proc/sys/vm/swappiness
sudo nano /etc/sysctl.conf
cat /proc/sys/vm/vfs_cache_pressure
sudo nano /etc/sysctl.conf
vm.vfs_cache_pressure = 500
export cuda_home=/usr/local/cuda-10.2
export ld_library_path=/usr/local/cuda-10.2/lib64:$ld_library_path
export path=/usr/local/cuda-10.2/bin:$path
sudo apt-get install python3-pip python3-dev build-essential
sudo -h pip3 install jetson-stats
sudo systemctl restart jetson_stats.service
sudo reboot
sudo apt-get install -y python3-pip libopenblas-base libopenmpi-dev
wget https://nvidia.box.com/shared/static/06vlvedmqpqstu1dym49fo7aapgfyyu9.whl -o torch-1.2.0a0+8554416-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python3-pip libopenblas-base libopenmpi-dev
pip3 install cython
pip3 install numpy torch-1.2.0a0+8554416-cp36-cp36m-linux_aarch64.whl
pip3 install setuptools
sudo apt-get install -y libjpeg-dev libfreetype6-dev pkg-config libpng-dev libhdf5-serial-dev hdf5-tools libhdf5-dev
git clone --branch v0.4.0 https://github.com/pytorch/vision torchvision
cd torchvision
sudo python3 setup.py install
cd ..
git clone https://github.com/nvidia-ai-iot/jetcam
cd jetcam
sudo python3 setup.py install
cd ..
sudo -h pip3 install --upgrade pip
pip3 install jupyter jupyterlab
sudo reboot
jupyter lab --generate-config
nano -c ~/.jupyter/jupyter_lab_config.py
c.serverapp.allow_origin = '*'
c.serverapp.ip = '0.0.0.0'
sudo nano /etc/systemd/system/jupyter.service
[unit]
description=jupyter notebook
[service]
type=simple
user=icshop
execstart=/home/icshop/.local/bin/jupyter-lab --port 8888 --no-browser
workingdirectory=/home/icshop/
[install]
wantedby=default.target
sudo systemctl enable jupyter
sudo systemctl start jupyter
sudo systemctl status jupyter
pip3 install opencv-python
sudo apt-get install python-tk
sudo apt-get install python3-tk
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2
sudo update-alternatives --config python
sudo update-alternatives --display python
sudo update-alternatives --remove-all python
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt update
sudo apt install simplescreenrecorder