Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
719
views
How to generate full-page QR code from command line?
I'd like to generate a full-page QR code from the command line. The following command sort of accomplishes this: qrencode -o- https://example.net | convert png:- -gravity center -units pixelsperinch -density 300 -resize 2551x3295 -extent 2551x3295 qrcode.pdf Unfortunately, the resulting QR code is q...
I'd like to generate a full-page QR code from the command line. The following command sort of accomplishes this:
qrencode -o- https://example.net | convert png:- -gravity center -units pixelsperinch -density 300 -resize 2551x3295 -extent 2551x3295 qrcode.pdf
Unfortunately, the resulting QR code is quite blurry, as though imagemagick is doing some sort of unwanted antialiasing.
Is there a way to make the code completely crisp, or just a better/simpler approach to generating a PDF file with a full-page QR code?
user3188445
(5539 rep)
Apr 3, 2024, 06:13 PM
• Last activity: Aug 6, 2025, 02:43 PM
3
votes
2
answers
877
views
How can I ascertain which kernel (not version; kernel) is in use?
I want to be able to ascertain what kernel is in use across modern, UNIX-derivative OSes. This appears feasible, considering that utilities like `uname` exist on multiple OSes with different kernels. However, if we consider the venerable `uname` to be a usable example, it soon fails at this: it prin...
I want to be able to ascertain what kernel is in use across modern, UNIX-derivative OSes.
This appears feasible, considering that utilities like
uname
exist on multiple OSes with different kernels. However, if we consider the venerable uname
to be a usable example, it soon fails at this: it prints “Darwin” on macOS, which isn't the name of the *kernel*. It's XNU. (macOS is, in effect, the DE running atop the Darwin OS). In contrast, uname
on cpe:/o:fedoraproject:fedora:42
prints “Linux”, which is the name of the kernel, rather than the base of the OS (GNU's CoreUtils). That kind of inconsistency renders it unreliable for this.
My goal might seem niche, because it is. However, if I've got a system running macOS, another running Hurd-based Debian , and another running Linux-based Fedora, what tool can I utilise to ascertain the kernel in use? (I suppose I could just look in /boot/efi
?)
RokeJulianLockhart
(541 rep)
Aug 3, 2025, 02:57 PM
• Last activity: Aug 4, 2025, 01:21 AM
136
votes
14
answers
276232
views
Generate random numbers in specific range
After googling a bit I couldn't find a simple way to use a shell command to generate a random decimal integer number included in a specific range, that is between a minimum and a maximum. I read about `/dev/random`, `/dev/urandom` and `$RANDOM`, but none of these can do what I need. Is there another...
After googling a bit I couldn't find a simple way to use a shell command to generate a random decimal integer number included in a specific range, that is between a minimum and a maximum.
I read about
/dev/random
, /dev/urandom
and $RANDOM
, but none of these can do what I need.
Is there another useful command, or a way to use the previous data?
BowPark
(5155 rep)
Jul 4, 2014, 12:18 PM
• Last activity: Jul 29, 2025, 08:39 AM
0
votes
4
answers
5294
views
Effective ACL permissions changing permissions
From a bash shell script, I am creating a folder and storing the mysqldump there. I am sure that there is no command related to permissions in my script. To allow an other user to access these files, I have used ACL, but when he tried to access the file, he got permission denied issue, and issue is...
From a bash shell script, I am creating a folder and storing the mysqldump there. I am sure that there is no command related to permissions in my script. To allow an other user to access these files, I have used ACL, but when he tried to access the file, he got permission denied issue, and issue is with
effective
permissions of ACL.
The owner of the directory is ola
and new user who is trying to access the folder is uber
and folder is gettaxi
### Permissions of Parent directory
[/omega/olabooktmp]# getfacl .
# file: .
# owner: ola
# group: ola
user::rwx
user:uber:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:uber:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
### Permissions of Child directory
[/omega/olabooktemp]# getfacl gettaxi/
# file: gettaxi/
# owner: ola
# group: ola
user::rwx
user:uber:rwx #effective:---
group::r-x #effective:---
mask::---
other::---
default:user::rwx
default:user:uber:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
I see like for new directory gettaxi
mask permissions are mask::---
, so I think this is causing issue, but I am unable to understand completely and how to solve this issue.
Any suggestions greatly appreicated.
Thank you.
Raja G
(6177 rep)
Mar 17, 2020, 09:58 AM
• Last activity: Jul 28, 2025, 06:04 AM
0
votes
1
answers
2048
views
Resizing a partition in TinyCore without losing data
I have the following doubt about TinyCore: how to can I resize the boot partition (the only partition available) without losing data? I believe I have to: - boot to command prompt using some live system - check what partition I want to resize (`fdisk -l`) - unmount the partition, then run: `resize2f...
I have the following doubt about TinyCore: how to can I resize the boot partition (the only partition available) without losing data?
I believe I have to:
- boot to command prompt using some live system
- check what partition I want to resize (
fdisk -l
)
- unmount the partition, then run: resize2fs -p /dev/sdxy new_sizeM
(eg /dev/sdc1 7600M
).
Unmounting is done with umount
and checking partition with fdisk -l
, right?
tmm88
(1 rep)
Aug 29, 2017, 10:53 AM
• Last activity: Jul 22, 2025, 10:04 AM
0
votes
1
answers
2309
views
How can I run the sudo command in Python code under CentOS in Docker
I am trying to access the docker image labels from Python as follows hostname = socket.gethostname() cmd = "sudo curl --unix-socket /var/run/docker.sock http:/containers/" + hostname + "/json" output = os.popen(cmd).read() But, the thing is I am getting the following error: We trust you have receive...
I am trying to access the docker image labels from Python as follows
hostname = socket.gethostname()
cmd = "sudo curl --unix-socket /var/run/docker.sock http:/containers/" + hostname + "/json"
output = os.popen(cmd).read()
But, the thing is I am getting the following error:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
It's one of the fancy messages by Unix from some other posts I read from StackOverflow.
I am following the below link
https://stackoverflow.com/questions/37439887/how-to-access-the-metadata-of-a-docker-container-from-a-script-running-inside-th
Only thing is I want to run these things from Python not from the Terminal.
Also, FYI, I get the response when I run the same command from the terminal.
I tried appending the following piece in Dockerfile
RUN echo "root ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
Thanks
jaruto
(1 rep)
Jan 29, 2019, 07:29 PM
• Last activity: Jul 20, 2025, 11:07 PM
0
votes
2
answers
1930
views
how to start atom (-editor) from command line (terminal)?
I installed the editor Atom as snap. Normally i can start Atom from command line by typing `atom .` but after reinstalling my Ubuntu system I get an error: > nohup: failed to run command '/tmp/troubadix/atom-build/Atom/atom': No such > file or directory Every other program installed via Snap or Deb...
I installed the editor Atom as snap. Normally i can start Atom from command line by typing
atom .
but after reinstalling my Ubuntu system I get an error:
> nohup: failed to run command '/tmp/troubadix/atom-build/Atom/atom': No such
> file or directory
Every other program installed via Snap or Deb starts from terminal just fine.
Sandra Cieseck
(101 rep)
Jan 3, 2022, 09:13 AM
• Last activity: Jul 16, 2025, 06:04 PM
3
votes
1
answers
2333
views
"ndd" equivalent of "ethtool" on Solaris
I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command: rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system And I've got this error: Disconnecting: Corrupted MAC on input. rsync: connection unexpectedly closed (3778664937 bytes rec...
I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command:
rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system
And I've got this error:
Disconnecting: Corrupted MAC on input.
rsync: connection unexpectedly closed (3778664937 bytes received so far) [receiver]
rsync: [generator] write error: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [receiver=3.1.0]
rsync error: error in socket IO (code 10) at io.c(837) [generator=3.1.0
rsync Disconnecting: Corrupted MAC on input.
After a little research the solution should be:
ethtool -K eth0 tx off rx off
As the ethtool command doesn't exist on Solaris, I should use the ndd utility in interactive mode. I didn't find any good explanation and the man page is poor, for getting the equivalent of the command line above. I'm missing something maybe.
dubis
(1480 rep)
Jun 28, 2016, 07:28 AM
• Last activity: Jul 14, 2025, 12:03 AM
0
votes
1
answers
3368
views
How to submit multiple commands as one liner in netbatch nbq commmand line
Can someone tell how to submit a one liner command using `nbq` command line? Submitted multiple commands in Linux works fine but not in nbq mode as below. find /nfs/disks/test_dir/ -name .snapshot -prune -o -printf '%s %p\n'" | sort -nr | head -n 50 | tee log this works just find in Linux capturing...
Can someone tell how to submit a one liner command using
nbq
command line?
Submitted multiple commands in Linux works fine but not in nbq mode as below.
find /nfs/disks/test_dir/ -name .snapshot -prune -o -printf '%s %p\n'" | sort -nr | head -n 50 | tee log
this works just find in Linux capturing the top 50 files in the check area.
nbq -P -q -c -J --task-name checkdisk find /nfs/disks/test_dir/ -name .snapshot -prune -o -printf '%s %p\n'" | sort -nr | head -n 50 | tee log
failed as it just executing the first part without recognizing the pipe.
user174414
(1 rep)
Jun 10, 2016, 07:14 AM
• Last activity: Jul 13, 2025, 04:34 AM
0
votes
5
answers
2465
views
Shell Script: Want to delete two consecutive lines matching pattern from specific line
I want to delete specific two consecutive lines matching patterns from specific line from a file. For e.g. file contents are like below. a b c Name: 123 xyz Name: 456 abc I want to find the lines starting from line 4, matching 1st line pattern starting with `Name: ` and matching 2nd line pattern sta...
I want to delete specific two consecutive lines matching patterns from specific line from a file.
For e.g. file contents are like below.
a
b
c
Name: 123
xyz
Name: 456
abc
I want to find the lines starting from line 4, matching 1st line pattern starting with
Name:
and matching 2nd line pattern starting with whitespace and delete the two consecutive lines.
Any efficient way to do this in shell using sed
or something else?
To be a bit more clear, I want to remove signing/checksum information from the MANIFEST.MF
.
Sample MANIFEST.MF
like below. From the below manifest file, I want to remove the entry Name:
where Name:
entry can be in one line or 2(or more) lines.
Initially my solution was like find the first Name:
entry followed by SHA-256-Digest:
entry and delete to the end of the file. Unfortunately this solution has a problem of removing one needed entry in the middle. For e.g. NetBeans-Simply-Convertible:
is also being removed.
So, now I want to remove Name:
entry if available in 1 line or entry spanned across 2 or more lines. But I should not lose entries like NetBeans-Simply-Convertible:
while removing Name:
entries.
Already I am removing SHA-256-Digest:
entries with the below command on file with sed -i "/^\SHA-256-Digest: /d" $manifest_file
--------------------------------
Manifest-Version: 1.0
Version-Info: ....
Name: com/abc/xyz/pqr/client/relationship/message/notifier/Relati
onshipUpdateNotifierFactory.class
SHA-256-Digest: cSSyk6Y2L2F9N6FPtswUkxjF2kelMkGe4bFprcQ+3uY=
Name: com/abc/xyz/pqr/client/relationship/ui/BaseRelationshipView
$5.class
SHA-256-Digest: w9HgRjDuP024U4CyxeKPYFe6rzuzxZF3b+9LVG36XP8=
Name: com/abc/xyz/pqr/client/impl/MofRelationshipAgentImpl.class
SHA-256-Digest: GwIBIU+UdPtjyRhayAVM90Eo+SwCT/kP65dI59adEnM=
Name: com/abc/xyz/pqr/client/settings/ConvertibleProperties.class
NetBeans-Simply-Convertible: {com/abc/xyz/pqr/client/settings}Con
vertibleProperties
SHA-256-Digest: 5FszAtfpPXcLx/6FBWbfeg6E4fwFMRozV+Q+3rReATc= ...
Expected Output:
Manifest-Version: 1.0
Version-Info: ....
NetBeans-Simply-Convertible: {com/abc/xyz/pqr/client/settings}Con
vertibleProperties
...
onlysrinivas
(1 rep)
Apr 15, 2017, 06:15 AM
• Last activity: Jul 11, 2025, 09:39 AM
6
votes
1
answers
15679
views
How to find files that were most recently created on file system?
I am trying to track the completion of a silent installer by detecting the presence of the last file created by it, but in order to do that I need to find out which file that is. Is there any way to do this? I have found a lot of answers on how to find the most recently *modified* file, but that is...
I am trying to track the completion of a silent installer by detecting the presence of the last file created by it, but in order to do that I need to find out which file that is. Is there any way to do this? I have found a lot of answers on how to find the most recently *modified* file, but that is not effective since many of these files were modified by the original creator in a different order than they are added to the system by the installer.
Pav
(61 rep)
Nov 17, 2015, 03:52 PM
• Last activity: Jul 8, 2025, 11:11 PM
3
votes
2
answers
5011
views
IBM V7000 scripts for monitoring
Hello (I'm no hard core coder:), I try to develop a script to do some very basic monitoring on an IBM SVC. My goal is to get some information about the nodes and my quroum status and then send this information by mail. here's my code so far (I understood that grep command doesn't "work" on CLI for S...
Hello (I'm no hard core coder:),
I try to develop a script to do some very basic monitoring on an IBM SVC.
My goal is to get some information about the nodes and my quroum status and then send this information by mail.
here's my code so far (I understood that grep command doesn't "work" on CLI for SVC).
#check nodes of the cluster with lsnodes and parse status
ssh admin@SVCName superuser>svcinfo lsnode | while read id name sn wwnn status temp;do echo $name" "$status;done
#check quorum status with lsquorum and parse status
ssh admin@SVCName superuser>svcinfo lsquorum | while read quorum_index status id name controller_id controller_name active temp; do echo $controller_name" "$active;done
My problem is sending an email from the CLI to designed users. I don't find any valuable information anywhere on the internet.
HINT: this script will be deployed on a jumppoint server (probably a windows server) in production, I cannot allow the installation of any exectution environment such as cigwin or perl or anything).
Could you help me with that ?
Foxillon
(31 rep)
Apr 23, 2013, 11:55 AM
• Last activity: Jul 1, 2025, 06:01 AM
9
votes
3
answers
3253
views
Open Firefox twice (with same profile)
There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find *any* that tells me how to configure a command (on a command line, start menu item, or panel button) so that: - the first click opens Firefox with a predetermined profile * New Window" in Firefox...
There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find *any* that tells me how to configure a command (on a command line, start menu item, or panel button) so that:
- the first click opens Firefox with a predetermined profile *New Window" in Firefox, except triggered from a command line. To be explicit, I do not want to involve other profiles.
My motivation is that I have lots of desktops and lots of browser windows, and often finding that one window for the profile I want is a lot harder than to just click a button that is always going to be in the same place - on the panel.
For the first bullet, I currently use the command "firefox --no-remote -P "thisprofile" %u" and it has always worked as intended. However, for the second bullet, I invariably get the error *"Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system"*.
**Clarification:** I have two panel buttons that start separate Firefox profiles. These use "firefox --no-remote -P "ThisOrThatProfile" %u". If I omit any other parameters and just supply "--new-window", it correctly starts new windows *of the default profile* (whether that profile is already running or not). The thing is, I cannot figure out how to start new windows *for specific (non-default) profiles*.
KlaymenDK
(699 rep)
Mar 21, 2015, 12:12 AM
• Last activity: Jun 29, 2025, 10:05 AM
2
votes
0
answers
75
views
How can I initialize a new a KDE wallet via the command line?
I am installed KDE Plasma (on Fedora 42) in an LXC container. My goal is setup KDE remote desktop and use it as a headless desktop environment. The issue is `krdpserver` stores the password for the authorized users in the user's kwallet. When I try to use `kwallet-query` to inspect the wallet, it sa...
I am installed KDE Plasma (on Fedora 42) in an LXC container. My goal is setup KDE remote desktop and use it as a headless desktop environment. The issue is
krdpserver
stores the password for the authorized users in the user's kwallet. When I try to use kwallet-query
to inspect the wallet, it says the wallet doesn't exist. Upon investigation, I found that it didn't initialize a new wallet.
Upon trying to figure out how to do it from the CLI I can find lots of information on reading and writing to the wallet. But nothing about how to set up a new wallet from the CLI.
Does anyone know how to initialize a new wallet from the command line?
AtomicPorkchop
(233 rep)
Jun 27, 2025, 11:02 PM
• Last activity: Jun 27, 2025, 11:14 PM
1
votes
1
answers
123
views
How to get sudo insults only through festival?
I just found out sudo insults, and I would think it would be fun to get those slanders out through [festival][1], but only the insults - how to do that on [Linux][2]? [1]: https://wiki.archlinux.org/index.php/Festival [2]: https://manjaro.org/
Jeeves
(21 rep)
Jun 28, 2020, 10:00 AM
• Last activity: Jun 26, 2025, 08:23 PM
0
votes
1
answers
5320
views
virsh pool storage basics
How or where were these pools created? Where are configuration files? $ virsh pool-list --all Name State Autostart ------------------------------------------- default active yes Downloads active yes $ virsh pool-info Downloads Name: Downloads UUID: fdbe7407-67c4-405d-8e46-9c2695a8b353 State: running...
How or where were these pools created? Where are configuration files?
$ virsh pool-list --all
Name State Autostart
-------------------------------------------
default active yes
Downloads active yes
$ virsh pool-info Downloads
Name: Downloads
UUID: fdbe7407-67c4-405d-8e46-9c2695a8b353
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.87 GiB
Available: 185.01 GiB
$ virsh pool-info default
Name: default
UUID: cb72b02e-b436-4ec9-9460-d297744c4c69
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.95 GiB
Available: 184.93 GiB
I believe that the pools were created by the
virt-manager
GUI.
Is there free space on default
? I think that the Downloads
pool is probably superfluous.
Thufir
(1970 rep)
Nov 21, 2017, 10:14 AM
• Last activity: Jun 26, 2025, 11:10 AM
49
votes
19
answers
22883
views
Console Text Editor with Windows-like keyboard shortcuts (ctrl-z, x, c, v)
Ok, I realise that I risk a religious war asking a question about text editors, but here goes. # Requirements - Mostly used for config file edits - Text based not GUI - Available for Raspian flavour of Debian - No learning required for a Windows/Mac GUI user (no vi/vim) - Makes full use of keys foun...
Ok, I realise that I risk a religious war asking a question about text editors, but here goes.
# Requirements
- Mostly used for config file edits
- Text based not GUI
- Available for Raspian flavour of Debian
- No learning required for a Windows/Mac GUI user (no vi/vim)
- Makes full use of keys found on modern keyboards, i.e. home, end, pgup, pgdn, del
- Use keyboard shortcuts found in pretty much all GUI apps,
e.g. Undo (Ctrl-Z), Redo (Shift-Ctrl-Z),
Select All (Ctrl-A), Cut (Ctrl-X), Copy (Ctrl-C),
Paste (Ctrl-V), Expand selection (Shift-Arrow), Skip word (Ctrl-Arrow), Delete selection (Del) etc
- **Optional**: mouse support for changing cursor position and selecting text
Surely this isn't a big ask in this day and age?
Greg Woods
(611 rep)
Oct 3, 2012, 07:57 PM
• Last activity: Jun 25, 2025, 04:22 PM
0
votes
2
answers
128
views
I have tried to install Howdy (practically Linux's Windows Hello). However, it seems like pypy3 failed to execute or something
I have tried to install Howdy, but it would always return with this message: >>> Upgrading pip to the latest version error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package y...
I have tried to install Howdy, but it would always return with this message:
>>> Upgrading pip to the latest version
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Kali-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have pypy3-venv installed.
If you wish to install a non-Kali-packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
For more information, refer to the following:
* https://www.kali.org/docs/general-use/python3-external-packages/
* /usr/share/doc/python3.13/README.venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Error while running last command
dpkg: error processing package howdy (--configure):
installed howdy package post-installation script subprocess returned error exit status 1
Processing triggers for doc-base (0.11.2) ...
Processing 1 added doc-base file...
Processing triggers for libc-bin (2.41-6) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for kali-menu (2025.3.0) ...
Errors were encountered while processing:
pypy3
howdy
Notice: Download is performed unsandboxed as root as file '/home/tmr/Downloads/howdy_2.6.1.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Sorry for my bad English, but I can only describe this to the best of my ability. Hope you guys can lend me a helping hand.
Thanks alot!
Everything was fine until the terminal returns me with error like this (this is from running pypy3 install). When I try to run pypy3 and pypy3-venv, the computer will fails to execute and return error as below. I have tried to remove pypy3 and run update && upgrade, then try reinstalling it again to no avail. When I run anything that need update or installation, the computer would encounter pypy3 or pypy3-venv, then return an error code that is ambiguous that I cannot seems to understand.
Continue? [Y/n] y
Selecting previously unselected package pypy3-lib:amd64.
(Reading database ... 503604 files and directories currently installed.)
Preparing to unpack .../pypy3-lib_7.3.19+dfsg-2_amd64.deb ...
Unpacking pypy3-lib:amd64 (7.3.19+dfsg-2) ...
Setting up pypy3-lib:amd64 (7.3.19+dfsg-2) ...
Selecting previously unselected package pypy3.
(Reading database ... 504854 files and directories currently installed.)
Preparing to unpack .../pypy3_7.3.19+dfsg-2_amd64.deb ...
Unpacking pypy3 (7.3.19+dfsg-2) ...
Setting up pypy3 (7.3.19+dfsg-2) ...
running pypy3 rtupdate hooks for 7.3
RPython traceback:
File "rpython_jit_metainterp.c", line 59312, in BlackholeInterpreter_run
File "rpython_jit_metainterp_2.c", line 13519, in dispatch_loop
Fatal RPython error: AssertionError
Aborted
error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (--configure):
installed pypy3 package post-installation script subprocess returned error exit status 4
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for kali-menu (2025.3.0) ...
Errors were encountered while processing:
pypy3
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Later, when I try to run sudo apt update && upgrade without autoremoving pypy3, it would try to reinstall again and again 3 packages that are used for Howdy, then froze or return error code 1 or 4. By then, the computer would decline to run with system having apt-lock (I think so) and when I run
sudo dpkg --configure -a
Then:
Setting up howdy (2.6.1) ...
/var/lib/dpkg/info/howdy.postinst:145: SyntaxWarning: invalid escape sequence '\w'
"davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|"
Attempting installation of missing data files
Downloading 3 required data files...
dlib_face_recognition_resnet_model_v1. 100%[===========================================================================>] 20,44M 6,33MB/s in 3,5s
mmod_human_face_detector.dat.bz2 100%[===========================================================================>] 678,41K 1,79MB/s in 0,4s
shape_predictor_5_face_landmarks.dat.b 100%[===========================================================================>] 5,44M 6,74MB/s in 0,8s
Unpacking...
Setting up pypy3 (7.3.19+dfsg-2) ...
running pypy3 rtupdate hooks for 7.3
RPython traceback:
File "pypy_interpreter.c", line 59719, in PythonAstCompiler__compile_ast
File "pypy_interpreter_astcompiler.c", line 1786, in compile_ast
File "pypy_interpreter_astcompiler.c", line 13555, in PythonCodeGenerator__handle_body
File "pypy_interpreter_astcompiler.c", line 21988, in PythonCodeGenerator__visit_body
File "pypy_interpreter_astcompiler_1.c", line 52070, in PythonCodeGenerator_visit_ClassDef
File "pypy_interpreter_astcompiler_2.c", line 2157, in PythonCodeGenerator_sub_scope
File "pypy_interpreter_astcompiler_1.c", line 49416, in ClassCodeGenerator__compile
File "pypy_interpreter_astcompiler.c", line 13555, in PythonCodeGenerator__handle_body
File "pypy_interpreter_astcompiler.c", line 21988, in PythonCodeGenerator__visit_body
File "pypy_interpreter_astcompiler_1.c", line 53495, in PythonCodeGenerator_visit_FunctionDef
File "pypy_interpreter_astcompiler_2.c", line 6272, in _visit_function__FunctionCodeGenerator
File "pypy_interpreter_astcompiler_2.c", line 2170, in PythonCodeGenerator_sub_scope
File "pypy_interpreter_astcompiler.c", line 8862, in PythonCodeMaker_assemble
File "pypy_interpreter_astcompiler.c", line 17133, in PythonCodeMaker__finalize_blocks
File "pypy_interpreter_astcompiler.c", line 27812, in PythonCodeMaker_optimize_unreachable_code
Fatal RPython error: AssertionError
Aborted
error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (--configure):
installed pypy3 package post-installation script subprocess returned error exit status 4
Errors were encountered while processing:
pypy3
Khrizantema2x8
(3 rep)
Jun 23, 2025, 01:31 PM
• Last activity: Jun 23, 2025, 06:27 PM
2
votes
2
answers
2658
views
Killing all python scripts except grep process and a specific python script
How can I run command in bash to kill all python scripts except script called `test.py` and the `grep`'s pid itself, in case we are using something like `ps -ef |grep` I think I can use something like pgrep python to ignore the grep process, but how do I also exclude the test.py script? I know there...
How can I run command in bash to kill all python scripts except script called
test.py
and the grep
's pid itself, in case we are using something like ps -ef |grep
I think I can use something like pgrep python to ignore the grep process, but how do I also exclude the test.py script? I know there is an option to do grep -v
, is there option to do pgrep -v
***Clarification***: except grep process- means when we do for example ps -ef |grep test1.py
we get also the grep pid that used to bring this result.
I don't want to kill it as this process is no longer exist in the stage that results are shown.
user12345
(21 rep)
Sep 15, 2016, 03:13 PM
• Last activity: Jun 23, 2025, 01:02 PM
0
votes
1
answers
19
views
How to list from the end in SystemD's CoreDumpCtl?
`journalctl list` provides an `-e` option to list from the end, rather than the default start. Can I do the same in `coredumpctl list`? I ask because I've a lot of coredumps.
journalctl list
provides an -e
option to list from the end, rather than the default start. Can I do the same in coredumpctl list
? I ask because I've a lot of coredumps.
RokeJulianLockhart
(541 rep)
Jun 23, 2025, 09:37 AM
• Last activity: Jun 23, 2025, 12:22 PM
Showing page 1 of 20 total questions