sudo apt update && upgrade sudo apt install wget curl git htop g++ nano
mkdir /mnt/e/projects
ls -l /mnt
ln -s /mnt/e/projects
ls -l
touch /mnt/e/projects/terminal/wsl_setup.sh
chmod 755 /mnt/e/projects/terminal/wsl_setup.sh
sudo apt install cronie systemctl enable --now cronie.service
sudo nano /etc/crontab
@reboot root echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold
sudo apt install tlp powertop-autotune sudo apt install auto-cpufreq systemctl enable auto-cpufreq systemctl start auto-cpufreq sudo auto-cpufreq --monitor sudo auto-cpufreq --live
auto-cpufreq --stats systemctl status auto-cpufreq
sudo auto-cpufreq --remove daemon for apt
sudo apt install python3 sudo apt upgrade python3 sudo apt install python3-pip sudo apt install python3-venv
echo >> alias python='python3' >> ~/.alias
mkdir .virtualenv
$ pip3 install virtualenvwrapper cd ~/.local/bin/ #ls vim ~/.zshrc export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_VIRTUALENV=/home/'username'/.local/bin/virtualenv source ~/.local/bin/virtualenvwrapper.sh
mkvirtualenv foo #this will make and start foo venv deactivate #to deactivate
workon or workon + name
Create alias to launch jupyter without browser from the WSL:
- Open your bash configuration: vim ~/.bashrc
- Add to the end of the file and save/exit: alias jupyter-notebook="~/.local/bin/jupyter-notebook --no-browser"
- Update your bash profile: source ~/.bashrc Now you can run a jupyter server jupyter-notebook and access the service with your browser from Windowslocalhost:8888.
aur -S plymouth
/usr/share/plymouth/themes
/etc/default/grub >> GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0"
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo plymouth-set-default-theme -l
sudo plymouth-set-default-theme -R kameleon-eos
/etc/plymouth/plymouthd.conf
/etc/mkinitcpio.conf
sudo mkinitcpio -p linux
systemctl status display-manager
systemctl disable gdm
systemctl enable gdm-plymouth.service systemctl start gdm-plymouth.service
cd project/python$ python -m venv venv source venv/bin/activate pip list pip install flask flask --version pip list mkdir pyapp cd pyapp/ touch app1.py export FLASK_APP=app.py set FLASK_APP=app.py export FLASK_ENV=development set FLASK_ENV=development flask run code-runner: Run in terminal for vs code to able to edit
sudo apt -y install xfce4 sudo apt install xrdp sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini sudo /etc/init.d/xrdp start
echo $SHELL
echo $0
cat /etc/shells
sudo apt install zsh
sudo nano ~/.bashrc
~/.profile
exec zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last POWERLEVEL9K_DIR_MAX_LENGTH=1
zstyle :completion::complete:-command-:: tag-order local-directories - zstyle ':completion:*' insert-tab false