You put a leading / to your path names! That's the root directory, meaning what you write next is an absolute path.
Your /myFolder/myOtherFolder is not on your USB if it's mounted inside /media/pi/MYUSB/ anyway.
But you can use cd myOtherFolder in the case you're asking. I suggest reading some basic tutorial about Linux's (or Unix) file handling, ...
Edit this file
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
And add this:
@xset s off
@xset s noblank
@chromium-browser --kiosk http://google.com/ # load chromium after boot and open the website in full screen mode
Then reboot. Chromium should automatically launch in fullscreen mode after the desktop has loaded.
By CPU Type
You could check the RPi version with the command, uname. The different RPi versions have different CPU architectures. The RPi 2 has an arm7, whereas the 3 has an arm8.
By Hardware Revision
If you need to be more specific, you can check the revision entry from the output of cat /proc/cpuinfo. If you want to just exact the revision ...
To go into a bit more detail —
Whether you come from a Windows or Mac OS X background, you will be used to external drives being independent places from your hard disk (more or less).
Part of Unix tradition is "avoid special cases wherever possible". For instance in Unix (and GNU/Linux), a keyboard is represented as a file that can be opened and read from ...
First, if the script is run by a system daemon and that daemon is running with root privileges, you do not need to use sudo. This includes init (and systemd), which includes rc.local. If that daemon is not running with root privileges, then sudo will not work unless /etc/sudoers is configured to allow such (and without a password). Raspbian users may be ...
To have a jsfiddle-like shareable link for your scripts, create a Github account, and save your scripts as GISTs: https://gist.github.com/ You will be able to update them in the future if you need.
Regarding a place to post them, I think you are looking for the wrong thing. You want a place to share Raspian stuff, not Raspberry right? RaspberyPI is just the ...
There are many methods (of varying reliability) to determine this.
One of the most complete and reliable is gpio -v which produces the following output.
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Pi 3, Revision: 02, Memory: ...
Don't install Node.js directly from apt—it's hideously out of date, and most of the features you're expecting to have won't work. The version in the repositories at the minute is v0.10.29, while the current release as of writing is v7.10.0.
Instead, follow the advice given to install Node (and npm) from their website:
curl -sL https://deb.nodesource.com/...
Can someone enlighten me of why the /etc/environment is ignored on Raspbian?
It isn't. Add this to /etc/environment:
Login, and echo $FOO. It's there.
/etc/environment isn't actually sourced by the shell, it's used by the authentication system (PAM) to set an environment before your login shell is executed. The idea here is to allow for ...
You need to use
instead of sudo!!. This is intended behaviour. The !! history expansion, as stated in the documentation:
designates the preceding command. When you type this, the preceding command is repeated in toto.
It is simply as if !! were replaced with a find/replace with the contents of the last line. Naturally, since your line didn't ...
All the repository URL's are in the apt source files.
The main source file is /etc/apt/sources.list. You can edit the file with e.g. nano to remove the offending 'etcher' line(s):
sudo nano /etc/apt/sources.list
You also need to check the 'secondary' list files. That is any .list file in directory /etc/apt/sources.list.d/. You should find e.g. raspi.list ...
That is the bash history not a cache. It is stored in the .bash_history file in your home directory. By default it is limited to a set number of lines (1000) and the size of the file (2000). So even if you remove it you would gain very little. You can check the size of the file by doing an ls -lah in your home directory. I have a custom script that stores ...
The default bash prompt is set in a system wide file; for a complete explanation of how bash sources its configuration see INVOCATION near the top of man bash. In short, that system wide file is sourced by ~/.bashrc; it is pretty obvious.
# Source global definitions
if [ -f /etc/bashrc ]; then
Evidentally, what's deciding about ...
One place to go to - if you care about some explaining of those scripts too - would be our official+ blog Piversify:
Piversify is a blog dedicated to the Raspberry Pi, written by members of the raspberrypi.stackexchange.com community.
Here's the procedure how to contribute.
+ Piversify is not hosted by or otherwise linked to StackExchange itself or ...
Your JAVA_HOME points to a different directory than where your java executable is located. Per your question, the JAVA_HOME directory is:
whereas java is located in
Note the arm vs. arm32.
On your original working install you probably installed it with sudo. If you use
sudo pip3 install esptool
esptool.py works just calling it by name, but if you don't use sudo you have to specify the whole path and either set esptool.py as executable, run it with python 3 [path to esptool.py], or similar.
pip3 show esptool
will show you the path.
You can use screen
It allows you to run commands in virtual terminal and then deattach from it and use terminal normally.
To install it use these commands:
sudo apt-get update
sudo apt-get install screen
and then to start new session use
screen -S qwerty
you can use any command there and then press ctrl-a and d to deattach from session.
If you want to ...
I read Walter's answer here and researched more and found:
https://kb.iu.edu/d/acpy which indicated:
TERM=ansi; export TERM does the job, you can add it to your .bashrc
However, I still have grey for black so I looked a bit more and found this:
Leading to ...
You can use a cron job.
Cron is used when you want to schedule jobs to run at specific times, e.g. every hour, every Sunday at 3 a.m. It stores the details in a table for each user called a crontab which is read during boot.
One of the "times" you can specify is at a reboot.
To list your crontab use the command
To edit/create your crontab ...
Unfortunately the Q&A you are consulting is
Mostly obsolete, since the accepted answer uses SysV init style methods instead of systemd ones. These are both init systems. The former is used on v. <= 7 Raspbian (unless I am remembering wrong, there's actually no < 7 since Raspbian follows Debian version numbering, and Debian has been evolving for ...
Firstly: doing this by remote is inadvisable especially if, like me, you happen to be 70+ miles from your remote pi. It's a very long drive if you screw it up. When you do this fir the first time, do it "remotely" while sitting right next to the pi.
Secondly: yes, this is possible but I've never done it and although I believe I could achieve it, I'm not ...
Files inside /proc are not "installed".
/proc is a virtual filesystem. No files inside /proc exist on the SD Card.
They are created by Linux on every reboot and only exist inside RAM.
Try the following command to get a model name, for example:
Linux itself will create, delete and modify files inside /proc to represent ...