Hi, as the weekend comes and I will have some spare time (I hope) I was wondering if with the current setup I now have, can also use my ubuntu as a server. I mean to replace the dropbox I am using for file sharing and eventually as private server to host my GPS logs etc.
For the gps I am not really sure what it needs, but I read that it can be done for privacy reasons. Right now I am with ubuntu desktop and home assistant.
Any ideas what is an easy way to achieve this?
Hi, yesterday I did the installation method of Kanga_who with the exception that I installed desktop Ubuntu 18.4.
It was a fairly easy process given the fact that I already had spent some time to be familiar with the linux eco system.
I can log to HA with 192.1681.xx:8123 but I haven’t upload a back up yet.
I haven’t installed samba yet.
Right now I am trying to install porteiner, but when I add the given command I get the following.
root@makis-NUC7PJYH:/home/makis# sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock –v
docker: invalid reference format.
See 'docker run --help'.
root@makis-NUC7PJYH:/home/makis# portainer_data:/data portainer/portainer
bash: portainer_data:/data: No such file or directory
root@makis-NUC7PJYH:/home/makis# sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock –v
docker: invalid reference format.
See 'docker run --help'.
root@makis-NUC7PJYH:/home/makis# portainer_data:/data portainer/portainer
bash: portainer_data:/data: No such file or directory
root@makis-NUC7PJYH:/home/makis#
I think that there is a problem in my installation of docker?
I entered the following from the documents.
sudo –i
apt-get install software-properties-common
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
curl -fsSL get.docker.com | sh
Can you help a little please?
There is an extra “-v” at the end of your run command. You either left something off when you copied it or added that to end somehow by mistake.
Verify your run command is correct.
hi
this is the command from the guide
sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock –v
portainer_data:/data portainer/portainer
There are 2 -v
Which one should I delete? the one after the .sock?
and 1 more if you know
how can I stop and start HA with this setup with commands?
for example in raspberry was
hassio ha stop
<wait for ok>
hassio ha start
<wait for ok>
i removed the last one and get this
makis@makis-NUC7PJYH:~$ sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock
"docker run" requires at least 1 argument.
See 'docker run --help'.
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
makis@makis-NUC7PJYH:~$ portainer_data:/data portainer/portainer
bash: portainer_data:/data: No such file or directory
makis@makis-NUC7PJYH:~$
no, you have to run that entire command as one line:
sudo docker run -d -p 9000:9000 --name portainer --restart always -v var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
also when you copy things and then paste them you have make sure that things don’t get “fancy” in the format.
kind of like the difference between the fancy quotation marks and the plain text ones. Well, the same thing happens when you copy dash marks (-) sometimes they get fancy and are no longer plain text and the docker command doesn’t like the fancy style.
this is the docker command that you are using from above:
sudo docker run -d -p 9000:9000 --name portainer --restart always -v var/run/docker.sock:/var/run/docker.sock –v
portainer_data:/data portainer/portainer
Not only is it on two lines (so it contains a “carriage return”) but if you also look at the difference between the dash marks in first and second “-v” you should see that the second dash is a bit longer than the first one. the second one is a “fancy” one and will cause that same error if it’s not fixed.
In my corrected one there is no CR and the second dash is the same as the first one.
I’ve been running quite a complex implementation of HASS.IO on a NUC8i3 running Ubuntu 18.04 and it runs well, but I’m migrating to an PI V4 as the energy consumption is lower, it can run from PoE and frankly there i3 machine can be put to better use. I’d migrate to the PI v4 if I were you.
I’m just waiting for the cooling fan bug to be fixed on the PI 4 HASS.IO 64bit version before I complete the migration. I just followed the standard installation process and restored from a snapshot backup. The PI v4 performance is pretty good, though the NUC is better, but not £400 better.