ZigBeeForDomoticZ plugin installation
The installation is written for a Raspberry pi.
However I am using a Chinese NUC with Ubuntu.
The command sudo chown -R pi:pi . should be different when you have your a Ubuntu installation.
Could some one explain how to change this line for a Ubuntu installation.
Thanks,
Installation sudo chown -R pi:pi .
Moderator: leecollings
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Installation sudo chown -R pi:pi .
pi is raspberries default account user name (and group). Either change it for the account used for domoticz ('whoami' command will tell your current user name) installation or, from the right account/directory (take care -R is for recursive!), use:
Code: Select all
sudo chown -R $(whoami):$(whoami) .
-
- Posts: 575
- Joined: Monday 20 March 2023 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Somewhere in NL
- Contact:
Re: Installation sudo chown -R pi:pi .
Current directory and the -R is everything below that.
Logic will get you from A to B. Imagination will take you everywhere.
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Installation sudo chown -R pi:pi .
3 importants characteristics of unices file trees are:
-Being single rooted, thus no drive letters (firsts for floppies no more use) as windows (a:, b:, c: etc) used natively (if using cygwin, posix compatibility layer for windows that brings many Linux/Unix tools/shells etc, it brings some compatibility making a single root named /cygdrive, so c: becomes /cygdrive/c for instance).
-Current directory is .
-Parent directory is .. (exception for root directory or a mount point, where .. points to itself so same as .), that keeps the needed tree link, here are first 2 inodes of my system root:
Code: Select all
ls -ai / | head -n 2
2 .
2 ..
For my current account home directory:
Code: Select all
ls -ai ~ | head -n 2
16384001 .
2 ..
Code: Select all
ls -ai /home | head -n 2
2 .
2 ..
File that declares mounts to be done at boot confirms (that's now UUID instead of /dev/sdX to identify partitions but there is still installer comments):
Code: Select all
grep /dev/sd /etc/fstab
# / was on /dev/sda2 during installation
# /boot/efi was on /dev/sda1 during installation
# /home was on /dev/sda4 during installation
=> / is on second drive partition (1st is the mandatory one since UEFI replaced legacy BIOSes, as I show this from a Linux PC and not my PI) ; /home on 4th partition thus not directly inside / as it would be if followed Debian installer defaults.
Who is online
Users browsing this forum: No registered users and 1 guest