107 votes
Accepted

Which model Raspberry Pi I am running?

cat /proc/device-tree/model returns something like Raspberry Pi 3 Model B Rev 1.2
SBF's user avatar
  • 1,194
47 votes

Open chromium full screen on start up

Edit this file sudo nano /etc/xdg/lxsession/LXDE-pi/autostart And add this: @xset s off @xset -dpms @xset s noblank @chromium-browser --kiosk http://google.com/ # load chromium after boot and open ...
SK73106's user avatar
  • 611
31 votes
Accepted

Navigating through USB drive with "cd /myOtherFolder" causes "no such directory" error

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/...
Nyos's user avatar
  • 711
24 votes

Which model Raspberry Pi I am running?

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. uname -m By ...
Jacobm001's user avatar
  • 11.9k
13 votes

Where can I share my cool scripts?

Github.com gitlab.org bitbucket.org anywhere code related really
patrick's user avatar
  • 311
11 votes

Which model Raspberry Pi I am running?

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 ...
Milliways's user avatar
  • 60k
11 votes

Open chromium full screen on start up

on chromium you can use --start-fullscreen (like F11)
Quadrifoglio Verde's user avatar
10 votes

Navigating through USB drive with "cd /myOtherFolder" causes "no such directory" error

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 ...
Artelius's user avatar
  • 201
9 votes

Where can I share my cool scripts?

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. ...
Paulo Amaral's user avatar
8 votes
Accepted

Launch GUI to view current directory from command line?

This is not really RasPi specific and just depends on your OS / it's installed file manager. For Raspbian, that should be pcmanfm So pcmanfm .
mystery's user avatar
  • 518
8 votes
Accepted

bash: npm: command not found

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 ...
Aurora0001's user avatar
  • 6,308
7 votes

Adding 'at' command to Raspbian

It shouldn't be much more than: sudo apt-get install at
Ghanima's user avatar
  • 15.9k
7 votes
Accepted

How do I make sudo!! add a space after sudo?

You need to use sudo !! instead of sudo!!. This is intended behaviour. The !! history expansion, as stated in the documentation: designates the preceding command. When you type this, the ...
Aurora0001's user avatar
  • 6,308
7 votes
Accepted

Error in apt-get update

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/...
Dirk's user avatar
  • 3,551
7 votes
Accepted

Find out whether SPI is enabled or not

You can use raspi-config non-interactively to get the SPI status: sudo raspi-config nonint get_spi Which returns 0 (enabled) or 1 (disabled) Similarly, enable with: sudo raspi-config nonint do_spi ...
ben_nuttall's user avatar
  • 2,451
6 votes
Accepted

Bash command to append to /boot/config.txt

The redirection takes place before sudo takes effect. Try something like sudo sh -c "echo 'dtoverlay=pi3-miniuart-bt' >> /boot/config.txt"
joan's user avatar
  • 71.1k
6 votes

Where can I share my cool scripts?

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 ...
Ghanima's user avatar
  • 15.9k
6 votes
Accepted

JAVA_HOME not working

Your JAVA_HOME points to a different directory than where your java executable is located. Per your question, the JAVA_HOME directory is: /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt whereas java is ...
Phil B.'s user avatar
  • 5,043
6 votes
Accepted

Accessing EXPORTED Environment Variables in Python

The problem is the use of sudo. sudo will clear environment variables by default. You can use sudo -E (or --preserve-env) to not clear the environment. This can also be set in your sudoers file.
Craig's user avatar
  • 3,014
6 votes
Accepted

Why am I getting bash: esptool.py: command not found on new Raspbian install after installing esptool.py

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 ...
T. M.'s user avatar
  • 871
5 votes
Accepted

How to wait for networking on login after reboot?

Assuming you are using Raspbian, you can use raspi-config to delay boot until the network is up. start raspi-config with the following: sudo raspi-config then select option 4 Wait for network at ...
Steve Robillard's user avatar
5 votes
Accepted

Run a script on Raspbian startup but not on terminal open

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 ...
joan's user avatar
  • 71.1k
5 votes

Colored console over serial connection?

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 ...
Robert's user avatar
  • 51
5 votes
Accepted

How do I make .sh run on boot to console?

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....
goldilocks's user avatar
  • 58.9k
5 votes
Accepted

Remote full reset (re-install) of a Raspberry

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, ...
Philip Couling's user avatar
5 votes
Accepted

Hardware Level Query for Pi Version

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 ...
flakeshake's user avatar
  • 6,235
4 votes

Check system name and kernel version in script

Here's something which takes a different twist on /etc/os-release, which has a standardized format based around setting shell variables, meaning you can source it and use them. First have a look at ...
goldilocks's user avatar
  • 58.9k
4 votes
Accepted

Get Bash instead of /bin/sh in a VNC session started by cron

It seems like the problem originates form cron using /bin/sh and not the users SHELL default. I found other people having the same problem at Default shell for cron issue How to change cron shell (sh ...
Frank Breitling's user avatar
4 votes

bash: npm: command not found

Your install command obviously failed (surely you read the output!?). Why would you be able to run npm -v? Run apt-get -f install npm to fix the installation issue. Run npm -v That should solve your ...
Jacobm001's user avatar
  • 11.9k
4 votes
Accepted

Cronjob is missing the GET parameter in Raspberry Pi

The problem is that cron doesn't wait for your network to come up before it runs @reboot. The explanation as to why cron operates this way, and alternatives to cron are verbose, but have all been ...
Seamus's user avatar
  • 22k

Only top scored, non community-wiki answers of a minimum length are eligible