227,311 questions
-2
votes
0
answers
41
views
Is there a way to convince the Web Serial API to enumerate/talk to linux pseudo terminals (pty)? [closed]
I've written a service which can multiplex a physical serial port (eg. /dev/ttyACM0) into multiple pseudo terminals (eg. /dev/pts/9). Utilities like screen and minicom can talk to the pseudo terminals ...
Advice
0
votes
2
replies
108
views
Can we install Linux in phone directly?
given that smartphones already run a Linux kernel through Android, what would be required to create a universal, officially supported Linux installation system for phones (similar to PC distributions)?...
-5
votes
0
answers
40
views
Unable to start ai tool - LM Studio as a daemon & I don't know how to register new service under init.d default list [closed]
All whatever I tried regarding making LM Studio to run as a service in my Linux Machine
$ lms server start
Waking up LM Studio service...
node:events:496
throw er; // Unhandled 'error' event
...
3
votes
0
answers
130
views
What's wrong with this ELF executable?
The ELF executable at the end of this question (base64'd) is the result of an experiment with trying to cut the program headers down to the absolute minimum. As far as I am aware, it should be ...
0
votes
0
answers
76
views
In shell pipes, maintaing resilience against orphaned process and buggy applications [duplicate]
Note: The question is not a duplicate of Getting ssh to execute a command in the background on target machine. The other question relates to background processes that may be sent the hangup signal.
...
0
votes
0
answers
46
views
Display an help for my scripts from command-line [duplicate]
I'd like to display an help for my scripts just like with other linux commands:
./ScriptWithHelp.sh --help
where ScriptWithHelp.sh contains:
if echo $1 | grep -q "--help"
then
echo "...
-5
votes
1
answer
74
views
Removing texts in between strings [closed]
I inspected ddcutil detect --verbose and put it in a variable. The output would look like the following:
Invalid display
I2C bus: /dev/i2c-9
...
This monitor does not support DDC/CI. (I2C slave ...
0
votes
0
answers
26
views
Switch InputMethod by awt.InputContext fail on linux
I recently have a problem of switching input method in my swing application running on linux, the following is my background:
OS: ubuntu22.04
Desktop: Gnome, X11
InputMethod framework: ibus 1.5.26
...
1
vote
1
answer
57
views
Unexpected behavior with tcsh. Why is the exit statement ignored here?
Does this look like expected behavior?
[jlong1s@testlogin01 ~]$ ps
PID TTY TIME CMD
3602516 pts/3 00:00:00 tcsh
3603415 pts/3 00:00:00 ps
[jlong1s@testlogin01 ~]$ /usr/...
Advice
0
votes
3
replies
73
views
How to use linux epoll et mode
I'm trying to understand how to use linux epoll et mode to work. Here's the source code of the ET Server. My question is: is this ET mode support multithread "as default"? I mean: If in ...
0
votes
0
answers
44
views
Linux Type-C device not detected until driver unbind/bind [closed]
Initially, when I try to see the connection using lsblk it doesn't show, but when I run echo 1-0022 | sudo tee /sys/bus/i2c/drivers/typec_fusb302/unbind and echo 1-022 | sudo tee /sys/bus/i2c/drivers/...
0
votes
0
answers
77
views
Kitty terminal: new tab (Ctrl+Shift+T) doesn't open in current working directory on Arch Linux [closed]
Problem: When I open a new tab in kitty using Ctrl+Shift+T, it opens in my home directory(~) instead of the directory I'm currently in.
The same behavior works correctly on Kali Linux without any ...
0
votes
0
answers
28
views
BGP session over IpSec tunnel between aws s2s and azure vm [closed]
I have configured a IpSec tunnel between the Azure VM and the AWS S2S VPN. the ipsec tunnel came up but the BGP session was not coming up with a specific cidr in the leftsubnet/rightsubnet. when in ...
0
votes
1
answer
54
views
Sorting and showing top 10 processes in output of "iotop -b" [closed]
I use the following command sequence to show the top 10 processes that incur the most DISK WRITE's and log the lines:
/usr/sbin/iotop -b -n1 -qqq | sort -k1.36,1.43 -rn | head \>\> iotop.log
...
Advice
0
votes
1
replies
35
views
Display data in a log file
Records in file which is comprise of four lines followed by a blank line. Desire to read each record and display lines 2 and 3 if line 4 matches a specific string.
while IFS= read -r line1 && ...