Skip to main content
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 ...
KT.'s user avatar
  • 241
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 ...
Jon Musselwhite's user avatar
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'.
CoderMike's user avatar
  • 7,028
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 ...
Rylie Pavlik's user avatar
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 ...
Aurora0001's user avatar
  • 6,337
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-...
bobstro's user avatar
  • 3,978
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 ... ...
Tim Campbell's user avatar
  • 1,050
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-...
Kenneth Andersen's user avatar
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 ...
Chiwda's user avatar
  • 183
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 ...
jdonald's user avatar
  • 2,952
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-...
Mohi Rostami's user avatar
  • 4,369
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 ...
Dr.Rabbit's user avatar
  • 1,016
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. ...
Tadpole's user avatar
  • 41
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 ...
goldilocks's user avatar
  • 60.1k
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 ...
Milliways's user avatar
  • 61.5k
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 ...
Swedgin's user avatar
  • 264
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 ...
Ingo's user avatar
  • 42.6k
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. ...
Fabian's user avatar
  • 1,278
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-...
RubberStamp's user avatar
  • 1,419
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 ...
pim's user avatar
  • 622
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 ...
Ingo's user avatar
  • 42.6k
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 ...
lenik's user avatar
  • 11.5k
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 ...
Jess Marcotte's user avatar
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 ...
Ingo's user avatar
  • 42.6k
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 ...
goldilocks's user avatar
  • 60.1k
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/...
Laetificat's user avatar
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 ...
Ingo's user avatar
  • 42.6k
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 ...
bls's user avatar
  • 520
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: ...
Mohi Rostami's user avatar
  • 4,369

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