Questions tagged [terminal]

Use this tag if your problem relates to command line (CLI) or terminal based (TUI) applications or interfaces.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Send command to tty1 on startup

I've connected a Waveshare e-ink display to my Raspberry Pi 3B+ and installed PaperTTY. My idea is to run vim on the e-ink display and use it as a Freewrite-like device or a writerdeck. Basically, use ...
Javier de Pascual's user avatar
0 votes
1 answer
40 views

Help with "-bash: syntax error near unexpected token `do' "

Background: Yes, I'm a noob. I've been learning Debian Linux the last several months. Here's the situation: I have 10 Raspberry Pi's (3B+) with hostname rpi-100 to rpi-109. I am trying to automate ...
Myszek512's user avatar
0 votes
1 answer
78 views

Console (not X/Wayland) screen blanker ineffective under Bookworm?

Note that I am not running X or Wayland. This is about the hardware text console. I have a pair of Pi 400s with HDMI connected monitors. If I add consoleblank=300 to cmdline.txt, what happens is that ...
nsayer's user avatar
  • 360
0 votes
0 answers
15 views

Spotify Script runs in Thonny but not in terminal

I have a simple python code that connects to my Spotify-Account and selected device and plays the song I want. In Thonny it works without any problems, but whenever I try to run it in the terminal I ...
Prinz_Gong's user avatar
0 votes
1 answer
39 views

Blanking the local terminal on boot

Could anyone help me blank the local terminal on bootup? I need the screen completely blank before a fullscreen app opens. I've removed everything but I still have - pi@raspberryPi:~$ I can manually ...
charliehoward's user avatar
0 votes
1 answer
193 views

How to access GPIO pins status within freepascal or Lazarus?

I wrote a program using Lazarus and it checks for GPIO2 pin's status every 3 seconds using TProcess component to run a terminal command for retrieving GPIO pin status as follows... procedure TForm1....
ThN's user avatar
  • 1,053
0 votes
1 answer
374 views

Run terminal with commands after startup on Raspberry Pi OS

I need to open the terminal on startup and execute three commands in the same window automatically on my Raspberry 4B. The first is a cd command. The second one is: source /tflite/bin/activate. And ...
Jan's user avatar
  • 3
0 votes
3 answers
330 views

How to ssh into raspberry pi when wifi auto switches to 5GHz

My router uses Smart Connect which like mesh, allows the router's 2.4 GHz and 5 GHz bands to use the same wireless settings and switches over to the best connection in traffic. When my headless rpi is ...
Jet59black's user avatar
0 votes
1 answer
72 views

Create a script to subscribe a MQTT topics [closed]

I'm trying to create a script that opens a terminal with 3 tabs to subsribe MQTT topics to be monitored. This script will be loaded during boot. Such script in ubuntu is shown below but raspbian does ...
guyd's user avatar
  • 578
1 vote
1 answer
456 views

How to Access Terminal Over Serial Port in Raspberry pi 4

I'm trying to Read and Write over Serial Port to Terminal in Headless Linux That I Installed on my Rpi4. is That even Possible? is so, how?
user avatar
0 votes
1 answer
27 views

Running non-executable in Raspbian OS for Raspberry Pi in menu, can't find terminal

I have installed Fern wifi cracker, it's a python file called "execute.py", I opened the "Main Menu Editor" app, that lets you add apps in the menu bar on the top of the screen. I ...
pico's user avatar
  • 11
3 votes
2 answers
2k views

Transfer files from one RPi to another (via network)

I have two Raspberry Pis, one a 3 running Raspbian Stretch, the other a 4 running Raspbian Bullseye, both headless. I have need to transfer files from the 3 to the 4 (always in that direction) over ...
Midavalo's user avatar
  • 170
1 vote
0 answers
33 views

wine: cannot find L"/home/lubuntu/.wine/drive_c/windows/Neko"

I am an unexperienced Linux user. I am trying to run an exe file in wine on live usb lubuntu 22.04 The problem is that when I try to run it from terminal by pasting the destination along with the ...
User lubuntu first october's user avatar
0 votes
0 answers
79 views

How to disable anti-aliasing only in the terminal?

I find the alaised fonts really difficult to read in the terminal. I have been able to disable anti-aliasing across the board by using the ~/.fonts.cnf file. This makes using everything else much less ...
JohnFF's user avatar
  • 101
0 votes
0 answers
62 views

How could RaspberryPi HDMI Port be changed with terminal code?

When both HDMI ports connect two separate displays, I want to change the HDMI port directly from 0 to 1 or 1 to 0 with console(terminal) code. Is it possible? Thank you.
yottabyte's user avatar
0 votes
1 answer
202 views

Boot on Live Linux (USB) with command line of SD Card Raspbian

I would like to be able to boot on a live linux contained in a usb key connected to my Raspberry PI, from the terminal of my primary Raspbian contained on the SD card. The goal is to be able to ...
IluSioN's user avatar
  • 103
3 votes
1 answer
5k views

hwmon hwmon1 : Undervoltage detected from going to current console

I have a raspberry Pi, for which I currently use the following script whilst I set some things up watch -n .5 ntpq -np > /dev/tty2 & gpsmon > /dev/tty3 & cgps > /dev/tty4 & watch '...
Ross's user avatar
  • 152
0 votes
1 answer
114 views

Python program runs successfully through Thonny IDE but I get ModuleNotFoundError when I run the same through Terminal

I have a python code for attendance system which I'm trying to run in raspberry pi. I'm using python 3.9.2 and have installed all the required libraries through terminal. The code runs fine in Thonny ...
Jay K's user avatar
  • 3
-3 votes
1 answer
637 views

How to create a file using command-line interface (CLI) in a Raspberry Pi terminal? [closed]

How can I create an empty file using a command line interface in a Terminal application of a Raspberry Pi instead of using the File Manager?
Tatiana Saltykova's user avatar
-1 votes
1 answer
1k views

Terminal not working, while everything else does

I recently booted up my Raspberry Pi after a few months. Everything seems to work (I'm posting this question from it!), except for the terminal: it doesn't work at all. I open LXTerminal, and it ...
Missing Terminal's user avatar
0 votes
1 answer
41 views

bunzip2 doesn't decompress Wikipedia dump

I've downloaded a .bz2 wikipedia dump (19GB) to my 2TB USB hard drive and want to decompress (wiki says it should be about 80GB uncompressed) it using bunzip2 via the terminal on my pi 3B+ (64-bit SoC ...
NonDairyNeutrino's user avatar
0 votes
0 answers
248 views

Connect wirelessly to pi 4 terminal

What is the simplest way to connect directly to a raspberry pi 4 wirelessly so that I can run commands in a terminal, equivalent to SSH'ing to it but without an ethernet cable or an Access Point? The ...
Hilikus's user avatar
  • 101
0 votes
0 answers
319 views

Check if network is up, if not, connect to wifi using existing credentials

I have a set of tasks that I run on a schedule, but it requires network. I have a raspberry pi 4b I have the /etc/wpa_supplicant/wpa_supplicant.conf setup like this: ctrl_interface=DIR=/var/run/...
Jamalan's user avatar
2 votes
2 answers
266 views

Printing a image in the mini thermal receipt printer adafruit using raspberry pi

I have opened the command prompt on a Raspberry Pi and typed the command as: lp -d ZJ-58 -o fit-to-page /home/pi/Documents/image_name.bmp which produces the gibberish printing as follows: Could ...
DRV's user avatar
  • 173
-1 votes
1 answer
222 views

Raspberry pi ssh connect to remote server

I have a remote cloud server (accessible only through ssh), with preexisting private and public keys, and I want to connect to it with my raspberry pi 3. I have already moved the private key over to ...
user143420's user avatar
1 vote
0 answers
30 views

why won't my raspberry pi python program run at boot up? [duplicate]

i have recently bought a raspberry pi 4 module b to be able to run programs 24/7. but sometimes my power/electricity can go out at which then makes the program stop working. i tested my program in the ...
pythonlearner123's user avatar
1 vote
1 answer
2k views

'OpenSSL NOT found' on raspberry pi 4, I don't know how to deal with this situation

First of all I have used sudo apt install git build-essential cmake libuv1-dev libhwloc-dev -y Everything went fine in this. I am getting following error on my raspberry pi terminal I used git clone ...
Bhargav Rajyaguru's user avatar
0 votes
1 answer
122 views

Raspberry PI Remote Access to Control Software Run in CLI Mode

Is there anyway to access a Raspberry PI remotely but rather viewing the desktop, it brings up the CLI interface which has a program running to be able to test and fix any issues that may arise within ...
inni's user avatar
  • 1
-1 votes
1 answer
30 views

Custom appearance with X forwarding over ssh

seeking a way to make my X forwarded session look exactly like how I have my raspbian desktop appearance on my remote host. When I currently run ssh -XY ***.***.*.*** lxsession I get a default LXDE ...
Z3r0_0's user avatar
  • 1
0 votes
1 answer
478 views

Detecting clicks of usb mouse on raspberry pi

I am running the Debian lite cli PI 3 I have a wired USB mouse I have plugged into one of 4 usb ports I am trying to write a python script to detect when I left/right click and use the scroll wheel. ...
creare's user avatar
  • 1
0 votes
1 answer
1k views

Boot to CLI vs GUI terminal: What's the difference?

I recently realized that I don't use any of the features of the GUI of raspbian other than the terminal for my current project. I therefore decided that, rather than boot in to the GUI desktop only to ...
Danny Herbert's user avatar
0 votes
0 answers
94 views

command is working on terminal but not in the script

I am using raspbian in headless mode and I am trying to mount USB on USB insertion. Script is executing but USB mount command failing. here is the script, filename is automount.sh (this script gets ...
dev_eng's user avatar
0 votes
1 answer
490 views

Trying to install Minecraft server - can't install the correct JAVA version

My goal is to install a Minecraft server on my Raspberry Pi 4B with 8GB RAM. I mainly followed this guide which includes a script to install all of the components quickly. The main commands are: wget -...
X_841's user avatar
  • 103
1 vote
2 answers
1k views

Partial success in displaying unicode characters

Here is my starting point: Raspberry Pi 4, Manjaro - Raspberry Pi 4 KDE Plasma Unicode special symbols fall into two big categories: the ones showing properly, and the ones displaying just boxes with ...
Alexey Orlov's user avatar
0 votes
3 answers
504 views

Disconnect from wifi without disabling interface

For a client project, a part of the application requires me to disconnect the Raspberry Pi from the WiFi. I'm doing this operation using OS commands. To disconnect from the wifi, currently I'm calling ...
RishiC's user avatar
  • 143
0 votes
2 answers
325 views

How do I regain access to either the filesystem or terminal on a raspberry pi that has all networking services disabled and no terminal?

Due to some unfortunate configuration settings, I kludged my raspberry pi into not having a terminal (it normally boots into an app, which still works fine) nor having network access. I can no longer ...
Mdev's user avatar
  • 103
-1 votes
2 answers
3k views

how do i reset my raspberry pi using the terminal

How do i reset my raspberry pi using terminal? I don't have access to another PC so i have to reset using only the raspberry pi. I have tried searching up answers but no-one seems to not have another ...
obliviator123's user avatar
0 votes
1 answer
679 views

How to to change the cursor theme using terminal/cli?

I am still working with different Os's, i am currently working with raspberry pi-os and i want to know how to change the mouse cursor using the terminal?
Capt.Pyrite's user avatar
0 votes
2 answers
443 views

How to run python script at startup?

I've been all over the internet looking for a solution for this but everybody seems to have different answers and none of them work. I have a python script that emits audio through the headphone jack ...
Arlo Erwin's user avatar
0 votes
3 answers
13k views

sudo apt-get update problem

I was trying to update my RPI. $sudo apt-get update , and this was my result: Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable ...
Victor Mouries's user avatar
0 votes
1 answer
552 views

Rpi Thonny python IDE has a problem running Pynmea2 GPS program. How to fix it?

I can't run this gps program in Thonny IDE. How come I can only run this gps program when I run it in the terminal without sudo? Is there a way to fix this? EDIT: The part without the print(gps) and ...
Ilian 's user avatar
  • 11
0 votes
1 answer
593 views

Python - how to make non blocking terminal where every one second serial link sends packet [closed]

I can write this in C#, but now i learning python and I don´t know how program this. I want to make simple terminal where serial link sending every one second packet... In non-blocking way. In C# I ...
Sahasrar's user avatar
1 vote
2 answers
77 views

Tell Terminal application to use Windows key instead of Control-Shift e.g. for cut/paste?

Is there a way to set up custom key mappings for any of the Terminal programs so that I can do things like this: Windows-C for copy Windows-v for paste Windows-x for cut Windows-t for new tab I am ...
wudude's user avatar
  • 407
1 vote
0 answers
154 views

Getting error when running node -v

I have been trying to install node.js for the last one hour. After reinstalling and removing nodejs numerous times, every time I run node -v I get the following error: node: /usr/lib/arm-linux-...
theknightD2's user avatar
0 votes
3 answers
221 views

Setting update command on rc.local

what will happen if I put my update and upgrade command on /etc/rc.local?? after reading some forums and all I understand that we can use crontab and so on. But what will happen if I do it in this way....
praveen kumar's user avatar
-1 votes
1 answer
673 views

Start menu for Raspberry?

I want to have a start menu for raspbian, which comes up after boot into console, where I can choose what to start: Console, GUI, Emulation Station or a media player like xmbc. This could be a script ...
Matthias's user avatar
1 vote
0 answers
359 views

How to re-enable console login on Raspbery Pi image?

I have an image, which boots into neither console, nor GUI (only web services available). How this could be done? How to re-enable console login? I can only edit image, not run raspi-config
Dims's user avatar
  • 175
0 votes
0 answers
283 views

Kiosk-mode with CLI

I am writing a command-line application using NCurses and I have a Raspberry Pi with a Kano "Make Your Own Tablet" kit which is essentially a touchscreen with some accessories attached. I ...
RedHack's user avatar
  • 101
6 votes
2 answers
4k views

How do I figure out the brand and type of an SD-card on the commandline?

How do I figure out the brand and type of an SD-card remotely on the commandline via SSH? I so far tried: fdisk -l /dev/mmcblk0 gdisk -l /dev/mmcblk0 dmesg | fgrep -i mmc (the boot entries were ...
Axel Beckert's user avatar
  • 1,162
0 votes
2 answers
2k views

Trouble connecting to bluetooth device

I'm a little confused on how I would interact with a bluetooth device on my Raspberry Pi 4. I have a four probe cooking thermometer that I'd like to read tempatures from and then make a web interface ...
user316114's user avatar

1
2 3 4 5