install os in memory card
insert memory cary in laptop -> open boot partition
make empty file named ssh
$touch ssh
make file named userconf.txt
$nano userconf.txt
add username and password in file in this formate
username:encrypted-password
to get encrypted password:
$echo 'mypassword' | openssl passwd -6 -stdin
make file named wpa_supplicant.conf
add following details in that file
country=IN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid="wifi name/ssid"
psk="password"
}
insert memory card into raspberry pi and power it up
download net analyzer app in phone
(playstore link for net analyzer: https://play.google.com/store/apps/details?id=net.techet.netanalyzerlite.an)
scan LAN devices
there will be ip with name raspberry (wait up to 5 min or booting up raspberry)
then connect ssh to that ip and username we set in above steps
(make sure laptop is also connected to same network)
$ssh username@ip
password
$pip3 install virtualenv virtualenvwrapper
$nano ~/.bashrc
add following lines at end of file
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=~/.local/bin/virtualenv
source ~/.local/bin/virtualenvwrapper.sh
export VIRTUALENVWRAPPER_ENV_BIN_DIR=bin
$source ~/.bashrc
make vietual env
$mkvirtualenv -p python3.8 envname
to activate env
$workon main
raspberry pi reference
python virtual wrapper reference
enjoy!!!