- [Initial System Setup]
- [Post OS Install Basic Setup]
-
SD Memory Card Formatter Format SD card by using SD Memory Card Formatter
-
Download NOOBS Download NOOBS and extract content of the zip to root of the SD card. Then insert the SD to Pi and powr on.
passwd
or
passwd <usr id>
sudo adduser <user id>
#Delete a user (the -r flag to remove their home folder too)
sudo userdel -r <user id>
visudo command uses the default editor Nano, to use vim then
sudo update-alternatives --set editor /usr/bin/vim.tiny
visudo edits the sudoers file, which is used by the sudo command
sudo visudo
#or
sudo vi /etc/sudoers
<user id> ALL = NOPASSWD: ALL
sudo apt-get update
sudo apt-get upgrade
#sudo apt-get install git
sudo apt-get remove nodered -y
sudo apt-get remove nodejs -y
sudo apt-get remove nodejs-legacy -y
sudo apt-get remove npm -y
If the node doesn’t get removed then you have to do a bit of manual work
# go to /etc/apt/sources.list.d and
#remove any node list if you have; then do a
sudo apt-get update
# If you still see node, delete it from that location.
which node
# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
rm /work/nodejs
cd /work/dev
###### if ARM v7 (Raspberry Pi 3)
sudo wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-armv7l.tar.xz
sudo tar -xvf node-v8.9.4-linux-armv7l.tar.xz
sudo ln -s /work/dev/node-v8.9.4-linux-armv7l /work/nodejs
export PATH=/work/nodejs/bin:$PATH
which node
node -v
sudo apt-get update
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
cd /work/dev
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar zxvf Python-2.7.13.tgz
ln -s ./Python-2.7.13 ./Python
cd /work/dev/Python
sudo ./configure --enable-unicode=ucs4
sudo make
# sudo altinstall
cd /work/dev
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
tar xf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure --enable-optimizations
make
# sudo make altinstall
cd /work/dev
rm ./Python
# ln -s ./Python-2.7.13 ./Python
ln -s ./Python-3.6.2 ./Python
export PATH=/work/dev/Python:$PATH
sudo rm /work/informix
# sudo ln -s /work/dev/srv/sqldist.s /work/informix
sudo ln -s /work/dev/srv/sqldist.c /work/informix
https://www.hanselman.com/blog/BuildingVisualStudioCodeOnARaspberryPi3.aspx