Raspberry Pi OS (64-bit Buster) Installation

They “still recommend the 32 bit operating system for all Pis at this time, although have decided it is now time to begin the move toward a 64-bit OS. For the moment this is a ‘beta’ program, the OS is in heavy flux and its functionality is likely to change significantly over the next few months…”

Disadvantages:

  • Still beta, for how long? There is Ubuntu 64-bit, but I  just like Raspbian (Raspberry OS)
  • Almost nothing included, even repository is half full, half empty

Advantages:

  • Adventure!! You do not know what to expect!!
  • 64-bit system, so you have a chance to get newer/latest version of software (some developers/companies dropped support for 32-bit systems, for ex:
    – Visual Code
    – MongoDB
    etc.
  • I think it’s running faster
  • Overstep the limit of 4GB of the memory: Raspberry Pi 4 / 8GB

The one thing I would recommend for now, do not follow the link to download image. Just go:

https://downloads.raspberrypi.org/raspios_arm64/images/

You  should see more folders there, dig into the most recent, and download (click) .zip file with the image. Write the image on SD card, put into the slot, and start the system.

Source: Raspberry Pi OS (64 bit) beta test version – Raspberry Pi Forums

Change default Python version

Change to default python3 version on Raspberry Pi OS:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2

# check the list 

sudo update-alternatives --list python
/usr/bin/python2.7
/usr/bin/python3.7

# Change the default version

sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.7   2         auto mode
  1            /usr/bin/python2.7   1         manual mode
  2            /usr/bin/python3.7   2         manual mode

Press <enter> to keep the current choice[*], or type selection number:

# now Python 3 is default

python
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Source: Change default python version on Raspbian GNU/Linux – LinuxConfig.org

Install Apache Web Server

sudo apt install apache2

go to apache2.conf

sudo nano /etc/apache2/apache2.conf

and remove ‘Indexes’ to hide the content of the directory if index.html or index.php are missing:

<Directory /var/www/>
  Options Indexes FollowSymLinks
  AllowOverride None
  Require all granted
</Directory>

(more…)

exFAT, NTFS, Mount Windows Shares

Pi 64-bit:

  • The system already has ntfs-3g installed, but I’ve failed to get mounted and working NTFS formatted USB drive
  • For exFat is still the same
sudo apt install exfat-fuse

Pi 32-bit: Let’s add exFat and NTFS support to our Raspberry Pi:

sudo apt update
sudo apt upgrade
sudo apt install exfat-fuse
sudo apt install ntfs-3g

To mount Windows shared directory:

sudo mount -t cifs //ip_address/share_name /home/pi/local_dir -o username=win_user,password=win_pswd,uid=local_user,gid=local_group

Without uid & gid, the directory has been mounted as read-only

Resourse: Raspberry Pi exFAT: Adding Support for exFAT File System – Pi My Life Up

Unable to create directory

the title was “WordPress: Unable to create directory”, but unfortunately, error “unable to create directory” occurred with trying to add theme, plugin, media file, update WordPress or any other websites uploaded with sftp

first step is to add the current user to the group www-data (Apache)

sudo gpasswd -a "$USER" www-data

sudo chown -R “$USER”:www-data /var/www – not sure in this step

(more…)

Yandex.Metrica