lxterminal | VTE terminal emulator written in GTK | Command Line Interface library
kandi X-RAY | lxterminal Summary
kandi X-RAY | lxterminal Summary
LXTerminal is a VTE-based terminal emulator with support for multiple tabs. It is completely desktop-independent and does not have any unnecessary dependencies. In order to reduce memory usage and increase the performance all instances of the terminal are sharing a single process.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lxterminal
lxterminal Key Features
lxterminal Examples and Code Snippets
Community Discussions
Trending Discussions on lxterminal
QUESTION
I have a Python script. wich automatically runs on Startup. I created the Autostart by putting
@lxterminal -e python3 /home/pi/digitale-werbetafel-py/main.py &
in
/etc/xdg/lxsession/LXDE-pi/autostart
I now want to handle user input with pythons input()
function.
Is there a way to do that? Because I can't type into the console and also nothing is getting printed to the console.
ANSWER
Answered 2020-Dec-08 at 17:19The way I autostart programs in Raspbian on Raspberry pi is to add the call from the .bashrc file.
QUESTION
I have an application that should work 24/7 on a Raspberry Pi. To ensure that, I'm trying to write a bash script that will run on bootup, execute my main application , and in case of a failure (bugs, exceptions, etc.) execute it again.
This is my script :
...ANSWER
Answered 2020-Dec-07 at 12:19In this case, your script is behaving properly. By doing this:
QUESTION
BEFORE YOU LINK TO: Using the pkg-config macro PKG_CHECK_MODULES failing
this does not solve my solution. i do have pkg-config installed. when i type aclocal --print
, the first thing it gives is main::scan_file() called too early to check prototype at /usr/local/bin/aclocal line 618
. it does that too in ./bootstrap
.
then it gives the directory /usr/local/share/aclocal
for one or another reason, the macro still doesnt work. i am on Artix linux (an Arch like distro), with automake 1.16.2-3 and pkg-conf 1.7.3-1. the output of ./configure, config.log and ./bootstrap are: https://pastebin.com/NY1GgtFF (configure
), https://pastebin.com/iDAUXRv3 (config.log
) and https://pastebin.com/aRVw00Ex (bootstrap
)
the macro expansion fails no matter what. do you have any ideas? how would i set the m4_pattern_allow flag? this error occurs both at openbox, and lxterminal. i havent tried any other programs yet where i encounter this error, but i dont think it matters at which program it happens
i really hope i provided enough information, this is my first post, so i hope i did everything right
...ANSWER
Answered 2020-Jun-30 at 19:51pkg-conf
is not the same as pkg-config
— the former is a low-deps reimplementation and does not come with the pkg.m4
file you need to have the macro installed.
If the software you're trying to build comes with a copy of pkg.m4
bundled in the repository and/or tarball, you may just need to add -I m4
to the invocation of aclocal
, otherwise you need to fetch the pkg.m4
file from a pkg-config
distribution.
QUESTION
I have java program that spawns a new subprocess which itself executes a command in a new terminal window:
Process proc = Runtime.getRuntime().exec("lxterminal -e sudo rfcomm watch " + BLUETOOTH_CHANNEL);
.
rfcomm watch *CHANNEL*
watches the declared channel/linux device file for incoming data via bluetooth in my case. When the connection is canceled, I want to be able to restore it later in the program on the same device file. Since rfcomm watch
blocks the declared device file it has to be closed before the same command runs again. This can manually by achieved by sending SIGTERM to the process (Ctrl + c inside the newly spawned terminal window).
My problem is that when I do proc.destroy()
or proc.destroyForcibly()
it seems like only the terminal is killed and rfcomm watch
is still running (which results in an error message when trying to watch the same device file again). rfcomm watch
also still appears under ps
.
How do I kill both the new terminal window and the command running inside it programmatically?
...ANSWER
Answered 2020-Mar-23 at 08:04I have found a solution/workaround which fits my purpose but might not be suitable for problems that are akin.
Since I want to kill the process that blocks the rfcomm channel I declared and don't use other channels and do not care if anything else rfcomm-related gets killed, I simply run the line Runtime.getRuntime().exec("sudo pkill rfcomm");
in a shutdown-hook. This works for me.
If it is important to kill only one specific process, something like this can be done: How to give arguments to kill via pipe
QUESTION
I'm on the Raspbian version 4.19 (The last one) and I want to run a .exe at my Raspberry pi 3B+ startup. I found that I sould add to the autostart file the path of my .exe but I can't find it on my Raspbian version.
I found this path for the autostart file : ~/.config/lxsession/LXDE-pi/autostart
But in "/.config" I just have lxpanel and lxterminal...
Is someone here who already have the same issue ?
...ANSWER
Answered 2019-Dec-09 at 08:25To start after desktop (GUI) loads, use this path:
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
QUESTION
I am using mysql
command line client in terminal emulator lxterminal
in Ubuntu. When I run the following command:
ANSWER
Answered 2018-Mar-02 at 00:54If you are running on Ubuntu you can use the bash shell, it looks nice and not messed up like this.
QUESTION
I am trying to implement ZeroMQ to get an application on a Raspberry Pi 3 (Raspbian Stretch) to communicate with an application on a separate machine (in this case Windows 7 64bit OS) linked by a wired or WLAN connection.
I have compiled ZeroMQ with the C library interface on both machines (using Cygwin on Windows) and the Hello World example (which I modified slightly to print the pointer values to assure me that the functions were 'working'). Both machines are connected (in this case via a wired Ethernet link and a router) and the connection is good (I link to RPi from PC via Xrdp or SSH OK).
The problem I have is that the client/server ZeroMQ programs don't appear to be 'seeing' each other even though they do appear to work and my question is: What are the first steps I should take to investigate why this is happening? Are there any commandline or GUI tools that can help me find out what's causing the blockage? (like port activity monitors or something?).
I know very little about networking so consider me a novice in all things sockety/servicey in your reply. The source code on the RPi (server) is:
...ANSWER
Answered 2019-Sep-20 at 00:30+1 for a care using explicit zmq_close()
and zmq_ctx_term()
release of resources ...
In case this is the first time to work with ZeroMQ,
one may here enjoy to first look at "ZeroMQ Principles in less than Five Seconds" before diving into further details
Q : What are the first steps I should take to investigate why this is happening?
A Line-of-Sight test as a step zero makes no sense here.
All localhost
-placed interfaces are hard to not "see" one another.
Next, test as a first step call { .bind() | .connect() }
-methods using an explicit address like tcp://127.0.0.1:56789
( so as to avoid the expansion of both the *
-wildcard and the localhost
-symbolic name translations )
Always be ready to read/evaluate the API-provided errno
that ZeroMQ keeps reporting about the last ZeroMQ API-operation resultin error-state.
Best read the ZeroMQ native API documentation, which is well maintained from version to version, so as to fully understand the comfort of API designed signaling/messaging meta-plane.
Mea Culpa: the LoS is sure not to have been established by the O/P code:- RPi
.bind()
-s on it's local I/F ( and cannot otherwise ) - PC
.connect()
-s not to that of RPi, but the PC's local I/F - PC
.connect( "tcp://:5555" )
will make it ( use the same IP-address as you use in Xrdp or SSH to connect to RPi or may read one explicitly from RPi CLI-terminal after~$ ip address
and use that one for PC-side client code )
Two disjoint ZeroMQ AccessPoint
-s have zero way how to communicate,once no transport-"wire" from A to B
QUESTION
I'm new to Python and tried to make a little script at my RPI with Raspberry. My problem is that the code works great in Thonny, but when I load it in LXTerminal, some functions don't works right.
When i do my calculation in Thonny and i press button21 for 30 seconds the effectively (round((effectivelytime / refresh)*100)) value will be 50% but when i do the same in terminal effectively will be 0, but if i don't press button21 at all the effectively will be 100.
It's like the effectivelytimer just sending "full value" or nothing.
Does anyone have an idea?
...ANSWER
Answered 2019-Aug-19 at 07:22Thonny uses Python 3. The shebang line of your script (!/usr/bin/env python
) refers to Python 2. Try changing !/usr/bin/env python
to !/usr/bin/env python3
QUESTION
I started using Fish (and oh-my-fish) a couple of weeks ago and one of the things that I find somewhat visually hard is the default background color of the autocomplete options (see the purple background in the image). I tried looking in the Fish page, but couldn't find anything related to that. I'd like to know how that background color can be changed. In case you're wondering, I'm using LXTerminal in LUbuntu (a Ubuntu distro with LXDE).
...ANSWER
Answered 2018-May-04 at 16:21I found it, after checking these docs, and doing some trial and error with different environment variables that might be responsible for that feature.
The environment variable is fish_color_search_match
and the solution is changing the variable like:
QUESTION
I'm trying to run an executable file as sudo using terminal at startup but I'm having some issues. I couldn't find the solution in other answers, so I opened up this one. I'm using a Raspberry Pi 3 B+ with the Raspbian Stretch with desktop and recommended software downloaded from the official Raspberry Pi website.
I have an executable that needs to be run with sudo (I use the pigpio library to communicate with another hardware through SPI and if I don't run the executable with sudo, the pigpio doesn't work). What I'm trying to achieve is that when the Pi finishes to startup the graphical interface, it would run the LXTerminal and execute "sudo home/pi/myfolder/myprogram".
I've tried:
...ANSWER
Answered 2019-Jun-06 at 18:15I found the solution, so I'm gonna post it here in case someone else needs it. If it already exists in somewhere else around here, feel free to tag it as duplicated. The solution that worked for me was this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lxterminal
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page