(edit: one thing I will try right now is a different PDF viewer, I’m using Adobe Acrobat which might have weird copy-paste functionality, I will update if this solves the problem)
Hi everyone, I’m copy-pasting commands from the PDF files into the raspberry pi etc, but I’m finding they aren’t working because when I do so, any text wrapping in the PDF file is attributed to a new line in the command.
I posted yesterday about this and solved one command, then tried it on literally the next command in the module and hit another brick wall.
I’ve copied them into a google doc to see if I can discern when it is a new line and when it’s text wrapping but it doesn’t give me any clues.
I’ve tried using backspace for every line break to put it all on the same command line, but clearly I’m ruining the syntax somewhere because the console just throws error messages back at me.
Seems like a limitation of the medium for delivering the tutorials. I’m new to programming, are there any hard and fast rules to help me discern how to turn a chopped up command into something the RaspPi accepts? I don’t really feel like troubleshooting every command that’s longer than a single line.
For example, from page 231 (Smart Home course) it tells me to run 4 commands sequentially, if I copy paste the commands, they look like this, clearly the middle 2 have been broken up but I have no idea how to put them back together again to make it work…
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
echo ‘393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c
influxdata-archive_compat.key’ | sha256sum -c && cat influxdataarchive_
compat.key | gpg –dearmor | sudo tee
/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo ‘deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg]
https://repos.influxdata.com/debian stable main’ | sudo tee
/etc/apt/sources.list.d/influxdata.list
sudo apt-get update && sudo apt-get install influxdb2
Hi.
When the commands are inside a single box in the pdf, they should be a single line.
Copy the command to notepad, for example, and then put them on the same line. After that, copy the command from notepad and paste it on the terminal line.
Check page 233 that provides a link from where you ccan copy the instructions for the installation without breaking lines.
Regards,
Sara
It seems that viewing the PDF in Chrome browser preserves the syntax during copy-pasting, which alleviates this issue somewhat, but I’m still getting error messages.
For example, from page 231 the second comand;
echo ‘393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c
influxdata-archive_compat.key’ | sha256sum -c && cat influxdataarchive_compat.key | gpg –dearmor | sudo tee
/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
Gives me the error code
sha256sum: ‘standard input’: no properly formatted checksum lines found
-bash: /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg: Permission denied
I’m really struggling with this module, I keep hitting brick wall after brick wall, is there any way to roll back the device back to the start of the module and just start working through it again?