Questions tagged [terminal]
Use this tag if your problem relates to command line (CLI) or terminal based (TUI) applications or interfaces.
244
questions
0
votes
0
answers
30
views
Problem with GLIBC when running executable on Raspberry Pi 3 Model B
I created a executable file on the raspberry pi 3 using pyinstaller. Did the regular changes to the .spec to include my other files and attempted to run it... Nothing. So, I went into terminal and ...
-1
votes
1
answer
71
views
/dev/ttyUSB0 is not associated with the USB port on the Rasberry PI board
I'm trying to connect a tablet to send commands to code running on a Raspberry PI, which, in turn, would control the opening and closing of a valve. The tablet and the board recognize the USB ...
0
votes
0
answers
93
views
How to use raspi-gpio to execute a command line action
I apologise in advance as I'm new to Raspberry Pis and Python.
Edit: why Python? Why not shell scripting?...
I'm cobbling together a music player with push button actions. Hardware I'm comfortable ...
-2
votes
1
answer
43
views
Headless/scripted Rasbperry Pi OS setup
It used to be possible to just write a Raspberry Pi OS image to an SD card, mount the first partition and create a file named ssh, power up the Pi, and do everything else via ssh.
This was nice 1) ...
0
votes
0
answers
45
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 ...
-1
votes
1
answer
112
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 ...
0
votes
1
answer
186
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 ...
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 ...
0
votes
1
answer
43
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 ...
0
votes
1
answer
360
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....
0
votes
1
answer
1k
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 ...
0
votes
3
answers
530
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 ...
0
votes
1
answer
100
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 ...
0
votes
1
answer
30
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 ...
3
votes
2
answers
4k
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 ...
1
vote
0
answers
36
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 ...
0
votes
0
answers
103
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 ...
0
votes
0
answers
67
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.
0
votes
1
answer
248
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 ...
3
votes
1
answer
6k
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 '...
0
votes
1
answer
161
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 ...
-3
votes
1
answer
1k
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?
-1
votes
1
answer
2k
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 ...
0
votes
1
answer
44
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 ...
0
votes
0
answers
310
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 ...
0
votes
0
answers
390
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/...
2
votes
2
answers
328
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 ...
-2
votes
1
answer
255
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 ...
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 ...
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 ...
0
votes
1
answer
156
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 ...
-1
votes
1
answer
32
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 ...
0
votes
1
answer
581
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.
...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
107
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 ...
0
votes
1
answer
645
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 -...
2
votes
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 ...
0
votes
3
answers
2k
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 ...
0
votes
2
answers
468
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 ...
-1
votes
2
answers
4k
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 ...
0
votes
1
answer
811
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?
0
votes
2
answers
475
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 ...
0
votes
3
answers
15k
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 ...
0
votes
1
answer
636
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 ...
0
votes
1
answer
775
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 ...
1
vote
2
answers
85
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 ...
1
vote
0
answers
162
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-...
0
votes
3
answers
234
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....
-1
votes
1
answer
729
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 ...
1
vote
0
answers
432
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