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....
22
votes
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 ...
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 ...
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.
...
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
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 &
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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
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-...
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 ...
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-...
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
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 ...
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 ...
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.
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
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 ...
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
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 ...
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
terminal × 230raspbian × 57
ssh × 21
python × 18
pi-4 × 14
boot × 13
wifi × 11
linux × 11
networking × 10
pi-3 × 8
raspbian-stretch × 8
python-3 × 8
serial × 7
screen × 7
bash × 7
serial-console × 7
display × 6
raspbian-jessie × 6
software-installation × 6
remote × 6
keyboard × 6
raspbmc × 6
gui × 6
gpio × 5
usb × 5