Questions tagged [bash]

For questions pertaining to the bash shell command processor.

BASH stands for Bourne Again SHell which refers to the fact that BASH is a superset of an older Bourne shell (sh). It is a widely used Unix shell - a command processor interpreting user input interactively or reading commands from a script file.

269 questions
60
votes
7 answers

Which model Raspberry Pi I am running?

Is there a way of determining whether the current Raspberry Pi is either a 2 Model B and 3 with Raspbian Jessie Lite 8.0? This is because I have a particular bootstrap.sh written in Bash where it needs to set the attribute txpower for a Wi-Fi USB…
Shan-Desai
  • 1,541
  • 2
  • 13
  • 28
43
votes
2 answers

Open chromium full screen on start up

I would like to set up a couple of Raspberry Pis to open automatically chromium or any other browser available to at start-up, and in full screen mode. I was wondering if any of you can help me. These will be placed as some fixed stations where I…
Catalin
  • 447
  • 1
  • 4
  • 3
13
votes
5 answers

Where can I share my cool scripts?

I've written a few (what I consider to be cool) bash scripts (that are specific to the Raspberry Pi), and I'd like to share them with the community. Is there a jsfiddle-like site where I can put up the scripts? Maybe even a community-based,…
Jim
  • 429
  • 1
  • 5
  • 16
11
votes
2 answers

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

When navigating the file system of my USB drive in the terminal, some weird things happen that didn't used to happen on my Raspberry Pi B+. I'm not quite sure how to articulate this, so I'll just show what is I open the command line and navigate to…
Henry Westfall
  • 113
  • 1
  • 7
11
votes
2 answers

Log output of background or boot script

I have a short script which is executed by a system daemon for particular events. I know the event is occurring and the script is executing, but it does not do what I intend. Strangely, it does when I run it manually, so I am very confused. How…
goldilocks
  • 60,325
  • 17
  • 117
  • 234
10
votes
4 answers

Colored console over serial connection?

I am accessing two of my Pis via a serial connection on pins 8 and 10. One of them uses a serial to USB connector for my Mac and the other uses an HC-06 which connects to my Android. The console/terminal over serial is very bland and colorless,…
Patrick Cook
  • 6,365
  • 8
  • 38
  • 63
9
votes
1 answer

Remote full reset (re-install) of a Raspberry

I've had a Raspberry Pi now for some time. I did a lot of fun stuff with it. A lot of the fun stuff is still on there, and that's not always fun. I could reset my Raspberry Pi by walking over to it, powering it down, remove the micro SD card, and…
Nick Dewitte
  • 107
  • 1
  • 1
  • 9
6
votes
2 answers

Setting system-wide path not working in /etc/environment

I am used from Ubuntu to set a path in /etc/environment, i. e. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" is the contents of this file on my Ubuntu system. I just spent an hour trying to make this…
emk2203
  • 258
  • 4
  • 8
6
votes
2 answers

What Revision(s) does cat /proc/cpuinfo return on the new Pi 4 1/2/4GB?

To enhance my bash script decoding the Revision returned by cat /proc/cpuinfo I'd like to know what the RaspBerry Pi 4 codes for ModelName,Processor and Memory are. (my own one is still underway) Sample sanitized output: LotPings@LegoBlack:~ $…
LotPings
  • 366
  • 1
  • 13
5
votes
1 answer

Open chromium in kiosk mode at start with URLs from a text file

I'm new to bash scripting and just a little familiar with basic Linux. We've setup a Pi showing dashboards using the code below: @chromium-browser --disable-infobars --disable-session-crashed-bubble --kiosk http://www.url.com which is located in…
Casper
  • 201
  • 2
  • 7
5
votes
2 answers

bash: npm: command not found

I ran sudo apt-get install npm in the terminal: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet…
Sarthak Mittal
  • 81
  • 1
  • 1
  • 6
5
votes
1 answer

Control signal strength of Raspberry Pi 3 WiFi signal down to minimum

With the Raspberry Pi (latest Raspbian OS) configured as a WiFi Access Point that gives internet access through ethernet interface, I'm doing some WiFi Signal Strength testing. In reduced space to work, I need to test quality of network with a…
jon
  • 53
  • 1
  • 1
  • 6
5
votes
2 answers

Adding 'at' command to Raspbian

I want to be able to use the at command to run programs outside of cron. I see that it is missing from the listed BASH commands. How can I add it?
user6230466
  • 59
  • 1
  • 2
5
votes
1 answer

How to wait for networking on login after reboot?

Upon reboot and login, I want to check to see if a remote computer (10.1.0.53) is listening for UDP on port 2222. I have tried adding the following line to ~/.bashrc (later, I tried ~/.profile, with the same result): nc -z -u -v 10.1.0.53 2222 Upon…
Hyperfine
  • 63
  • 1
  • 1
  • 4
5
votes
2 answers

Building a Raspberry Pi network monitor. My code is not working

Long story short. I moved, put my home server is a closet and started worrying about temp and humidity, saw a guide online to make a network temperature and humidity monitor from a Raspberry Pi and an AM2302 sensor, bought the Raspberry Pi and…
1
2 3
17 18