25 votes
Accepted

Can I run a terminal command from ssh to open the browser on X server?

Presuming you are logged in as the same user that's running the X display, this is fairly easy. First you need to know the display identifier; if there is only one running instance, it is probably :0....
user avatar
  • 55.6k
22 votes

How to "scroll up" and view previous console output?

Shift + PageUp or Shift + PageDown keys.
user avatar
  • 221
12 votes
Accepted

Is there a console-only (no GUI included) distro under 1 gb?

You could could run the filesystem on a USB drive, and then you only need a 16MB (yes MB) SD card: http://www.redrobe.com/mike/boot-raspberry-pi-from-a-16mb-sd-card/ But for a distro all on a 1GB SD ...
user avatar
12 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 ...
user avatar
  • 221
11 votes

How to "scroll up" and view previous console output?

Pipe the output of the command to less: cmd arg0 arg1 | less In less, you can scroll up and down intuitively with the arrow keys. Use the Q key (for Quit) to exit less and return to your prompt. ...
user avatar
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 ...
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'.
user avatar
  • 6,136
9 votes

Can I run a terminal command from ssh to open the browser on X server?

As an addition to Goldilocks' answer, for epiphany you can set the display using the --display option: epiphany --display=:0 http://example.com &
user avatar
  • 323
9 votes
Accepted

beta epiphany-browser (Web Browser), comand line auto start?

This is not a direct answer to your problem, but it is a suggestion based on the context. I am trying to setup a "kiosk mode" box. I have successfully done this with midori, but midori does not ...
user avatar
  • 55.6k
8 votes

How to disable local terminal showing through when playing video

omxplayer now has an option to set the background to black. omxplayer -b It works both on the terminal and in X. This feature should be in the current version available in raspbian.
user avatar
  • 81
8 votes

beta epiphany-browser (Web Browser), comand line auto start?

It doesn't look like there's a way to do it directly, but the xte tool can be used to simulate a key press. epiphany-browser http://www.playr.biz/23612/15122 sleep 2s # give it time to start echo key ...
user avatar
  • 4,402
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 ...
user avatar
  • 6,158
7 votes

Is there a console-only (no GUI included) distro under 1 gb?

You can use TinyCoreLinux. At the moment of writing this one was the latest one with just command line and SSH, having a little more then 18MB zipped. Versions having X in it's name are with GUI. And ...
user avatar
  • 1,243
7 votes
Accepted

Colored console over serial connection?

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 ...
user avatar
  • 55.6k
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 ... ...
user avatar
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-...
user avatar
5 votes
Accepted

How do I change the Desktop wallpaper from the cli

For the sake of providing an answer specific to raspbian. The background is set via /etc/alternatives/desktop-background so the background can be changed through two different ways: sudo update-...
user avatar
  • 164
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 ...
user avatar
  • 51
5 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-...
user avatar
  • 3,918
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-...
user avatar
  • 4,165
4 votes

beta epiphany-browser (Web Browser), comand line auto start?

Here's an example of a digital picture frame using epiphany kiosk style: http://simplyautomationized.blogspot.com/2015/04/rpicframe-html5-kiosk-style-picture.html You will need a window manager ...
user avatar
4 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 ...
user avatar
  • 173
4 votes

Shutdown, reboot not working

The correct syntax to power off are: sudo shutdown -h now sudo halt And for reboot: sudo shutdown -r now sudo reboot Be sure you use either sudo or logged as root himself.
user avatar
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 ...
user avatar
  • 1,008
4 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 ...
user avatar
  • 2,804
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. ...
user avatar
  • 41
4 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 ...
user avatar
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 ...
user avatar
  • 55.6k
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 ...
user avatar
  • 244
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 ...
user avatar
  • 39.5k

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