14
votes
Strange problem on startup - cannot open access to console
Found myself in the same situation just now. Took quite some time to figure out (taking into account that I had neither a USB keyboard nor a Linux computer around this was a long quest).
The reason ...
10
votes
How can I blank the screen from the command line over SSH?
Method 1: Blank the screen without turning the power off to the HDMI port.
You might need to set the screen's default state to blank (I didn't):
xset -display :0 s blank
Turn the monitor to it's ...
10
votes
Accepted
Equivalent terminal command to launcher icon
Right click the menu entry, select properties.
Select the Desktop Entry tab, command shows the terminal command, in this case 'gpicview'.
9
votes
Accepted
How do I figure out the brand and type of an SD-card on the commandline?
Some data, as you mentioned, is in /sys/block/mmcblk0/device. There's a tool called mmc in the mmc-utils package that can read/decode several of the values in that directory. For instance:
$ mmc csd ...
8
votes
Accepted
Change RPi to 32 bit architecture
The following will remove the architecture you just added:
sudo dpkg --remove-architecture i386
However, there's something important to note here. The i386 architecture generally refers to 32-bit ...
6
votes
Accepted
How do I install a new console font?
The console uses bitmapped (.psf) fonts, while X can use vector fonts such as TrueType (.ttf) in the terminal apps. There are a few console fonts you can select from with sudo dpkg-reconfigure console-...
6
votes
Accepted
How to run Minecraft Server in the background properly
As with nearly all things Unix/Linux, there is more than one solution.
You mentioned you want to be able to launch your server as a foreground process but be able to send it to the background and ... ...
6
votes
How do I figure out the brand and type of an SD-card on the commandline?
0x5344 from the oemid means SD as in SanDisk. Type is probably not easy; I guess it is their internal name.
Read more at
https://www.cameramemoryspeed.com/sd-memory-card-faq/reading-sd-card-cid-serial-...
5
votes
How do I change the Desktop wallpaper from the cli
None of the above worked for me. So here is the solution for Raspbian Stretch
pcmanfm --set-wallpaper yourfile.jpg
The file can be on any path that is available to read by the user. Here I have ...
5
votes
Accepted
Pygame and Alsa lib error
Here's a writeup for the hack we came up with in the comment stream:
Most fortunately, we're able to take advantage of the limited scope of this request:
I don't care that sound doesn't work on ...
5
votes
Accepted
How do you open a mp3 file from the raspberry pi terminal?
Follow the instructions:
sudo apt-get update
sudo apt-get install mpg123
mpg123 your-music.mp3
If you'd like to play all .mp3 files of a directory, try this command:
mpg123 -vC /your-...
4
votes
Accepted
Removed dbus from raspbian
Removing your dbus would have removed most of your installed packages, so I think you would be running a very bare system. I would re-burn an image, but I guess you could try an install a desktop ...
4
votes
Is it possible to upgrade Chromium past v65?
Available as a snap package :
sudo apt-get install snapd
sudo snap install chromium
snap run chromium
However it seems to be rather unstable, and does not appear on the raspberry pi menu system. ...
4
votes
Accepted
Executing 2 commands in 2 different Terminal windows
You can launch a terminal via a command; this should include an option to execute a command inside the terminal as well.
There are various GUI terminal applications available on GNU/Linux. They are ...
4
votes
Check power usage of pi via terminal
vcgencmd get_throttled will show current/past under-voltage - which is what the lightning bolt / Red LED show.
The Pi has no means to monitor current.
Latest bits are
0: under-voltage
1: arm ...
4
votes
Accepted
copy sd card through terminal
You can use dd, this applies also for creating an image of an SDD, USB, ... and restoring it
It's best to unmount the drive you're going to copy. In case of the SD-card, remove the SD-card from the ...
4
votes
Console login when password contains British Pound Sterling (£) character
To have a decent answer, here is it what the questioner posted in a comment:
I've resolved the problem by mounting the SD card on another computer, mounting the root filesystem, and deleting the ...
3
votes
Accepted
How to open files from Terminal
To view the text file you could use less or cat.
Example: cat /path/file.txt. Of course this works only if the file is readable for your user account. For details please read the manpage: man cat.
...
3
votes
Accepted
Is `command-not-found` broken?
Short answer from the comment section
Run apt-file update before running update-command-not-found
Longer Answer
The utility command-not-found includes a dependency on the apt search utility apt-...
3
votes
Accepted
Screen Blanking on console in Raspbian Stretch (Debian 9)
Either add consoleblank=0 to the kernel command line or use this command:
TERM=linux setterm -blank 0 >> /etc/issue
(/etc/issue is displayed on each tty before login, this will disable the ...
3
votes
Accepted
Python script does not run when called by service
To show how it works I have made a stripped down test script that simply sends an email every minute. Here is the script:
rpi ~$ cat >/home/pi/mySendMail.py <<EOF
#! /usr/bin/python3
import ...
3
votes
Accepted
Best OS for mining Monero on the Raspberry Pi
OS does not matter, use whatever is already installed on your RPi, or download whatever image you like, Raspbian or anything else.
Google for "monero miner source", the first URL on the top of the ...
3
votes
Accepted
Running a persistent node js server on boot and keeping the command line open
I found the solution after all. I used pm2 after all. The quick start suggested at the start of the pm2 documentation will not work. Follow the detailed instructions instead, which amount to:
Install ...
3
votes
Accepted
Running Hologram cellular network from startup issues [cannot run on rc.local or .bashrc]
Please take note that using /etc/rc.local has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from ...
3
votes
Bashrc file opens up continuously
I'm guessing you've been misled by tutorials or blogs which imply or explicitly state that .bashrc can be used for things you want to happen at boot.1 This is essentially false, although it has side ...
3
votes
How do I upload files to google drive automatically from raspberry pi or from PUTTY
You could solve this in multiple ways, the first one to pop up in my head is to use a GDrive terminal client like https://github.com/nurdtechie98/drive-cli (Python) or https://github.com/odeke-em/...
3
votes
How to connect Pi 4 to WiFi AP that requires web page logon
If the w3m text browser does not work you can try to use the classic text browser lynx. It is also available from the Raspbian repository.
You can also use scripting for login. I have done it with ...
3
votes
Raspbian Buster - Open chromium without showing desktop
Following on with a comment and one possible real answer. First, you didn't say whether this was for a dedicated configuration (e.g., only runs the browser) or a general purpose case, where you simply ...
3
votes
The apt-get update does not work on Raspbian
The apt-get update command requires to write some system directories hence you have to run it as a root user. Or, you can run it by other users (such as pi) with sudo before the command.
So:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
terminal × 245raspbian × 60
ssh × 23
python × 19
boot × 16
pi-4 × 16
wifi × 13
linux × 13
networking × 11
pi-3 × 9
raspbian-stretch × 8
python-3 × 8
bash × 8
gpio × 7
usb × 7
serial × 7
display × 7
screen × 7
serial-console × 7
raspbian-jessie × 6
software-installation × 6
remote × 6
debian × 6
headless × 6
raspbmc × 6