Recent Questions - Unix & Linux Stack Exchange |
- Vim-like terminal email client?
- Cannot install jq version 1.6 in Docker
- systemd-resolved+VPN: 2nd DNS server ignored (L2TP)
- Git - how to add/link subfolders into one git-repository directory
- wlan0 down and ip link set wlan0 up doesnt' work
- GAWK Syntax error
- Moving files from folder with carriage return in folder name
- Arch linux: Cura thows: ValueError: PyCapsule_GetPointer called with incorrect name
- Source additional files on login (~/.bash_profile? ~/.bashrc? /etc/profile? /etc/bashrc?)
- xorg not recognizing monitor but wayland does
- Get an accellerated X11 driver for "XGI Z7" GPU under Alpine Linux v3.14?
- Managing website with a git server
- It's possible to restrict access with PAM based on groups?
- Changing the case of lines in ed
- How can I get rid of permission denied error when executing man to read the manpages?
- Access shell error strings associated with getopt in a bash function
- network: download with one device, upload with other device
- How to relace string using a math operation [closed]
- cd /var/lib/NetworkManger
- Substitute all multi-line and single-line matches in sed
- Centos/RHEL 8 systemd service not able to reference script from custom location
- Debian 10-Gnome-NonFree Full Install Onto USB Impeded By Installer Not Seeing USB Drive
- how to perform a silent install of bandwidthD in ubuntu 20.04
- What are some current transcription or dictation software packages for Linux?
- OpenLDAP TLS error: TLS negotiation failure
- Write shell script to analysis log file
- Add Prime OS (Android_x86_x64) to grub menu
- yum doesn't pick up YUM0 environment variable
- Questions about minor page fault
- Differences between keyword, reserved word, and builtin?
Vim-like terminal email client? Posted: 05 Aug 2021 10:23 AM PDT Looking foward to vim-like email clients (TUI or GUI). For example:
If those keybindings aren't predefined, there should be a way to define custom keybindings to do the job. Also, it should be possible to define external editor to send emails. Does anyone know of some software that satisfies that? (Just saying, I've tried neomutt but I've been unable to do some things like |
Cannot install jq version 1.6 in Docker Posted: 05 Aug 2021 10:07 AM PDT Our Dockerfile uses Per https://stedolan.github.io/jq/, version 1.6 was released in 2018, and we'd like to use 1.6 in our app. When we try:
When I run |
systemd-resolved+VPN: 2nd DNS server ignored (L2TP) Posted: 05 Aug 2021 09:54 AM PDT I'm connecting to a corporate VPN via network-manager-l2tp with a pre-shared key and user+pass. I'm getting a correct DNS server IP automatically, which resolves the companies URLs correctly. However, public internet isn't resolved (I tested with www.google.com all the time), but this depends on the perspective: I can't get systemd-resolved to resolve from 2 DNS servers at the same time (1.1.1.1 and the corporate DNS). It's strictly either or and I've tried a lot of different configs... Question: How do I configure systemd-resolved to use both a corporate VPN's DNS and the regular DNS servers at the same time? I don't care if it's 'conditional forwarding' based on domain or using the 2nd DNS after the 1st fails. I couldn't get neither approach to work. My guess is this has something to do with l2tp, but I can't find any solutions that apply to my case. I use: NetworkManager 1.30.0, systemd-resolved (systemd 247.3) and openresolv (instead of old resolvconf) on Pop OS. Both services are up and running.
I've tried a lot of different things, but what you see above is a good starting point to come up with a robust, final solution. |
Git - how to add/link subfolders into one git-repository directory Posted: 05 Aug 2021 10:25 AM PDT Assuming I have a file structure like this: Now I want to create a Git repository, including all the Though hardlinks do not work with folders. Symlinks do not get handled by |
wlan0 down and ip link set wlan0 up doesnt' work Posted: 05 Aug 2021 09:46 AM PDT Running Kali linux and ax210 intel wireless card. Installed the driver .59 ucode. Getting the following dmseg.... Saw some post about deleting the file iwlwifi-ty-a0-gf-a0.pnvm in /lib/firmware but I don't see that file in my /lib/firmware directory. Could it be somewhere else or is that an old fix? dmesg | grep iwlwifi [ 3.956693] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) [ 3.968428] iwlwifi 0000:04:00.0: firmware: direct-loading firmware iwlwifi-ty-a0-gf-a0-59.ucode [ 3.968437] iwlwifi 0000:04:00.0: api flags index 2 larger than supported by driver [ 3.968452] iwlwifi 0000:04:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 93.8.63.28 [ 3.968672] iwlwifi 0000:04:00.0: loaded firmware version 59.601f3a66.0 ty-a0-gf-a0-59.ucode op_mode iwlmvm [ 3.968682] iwlwifi 0000:04:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2) [ 4.102730] iwlwifi 0000:04:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420 [ 4.258916] iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-ty-a0-gf-a0.pnvm (-2) [ 4.328799] iwlwifi 0000:04:00.0: base HW address: a4:6b:b6:3d:61:fc ─# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 8c:04:ba:99:7c:57 brd ff:ff:ff:ff:ff:ff inet 192.168.1.218/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 valid_lft 82392sec preferred_lft 82392sec inet6 fe80::8e04:baff:fe99:7c57/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 72:4b:92:74:8c:bc brd ff:ff:ff:ff:ff:ff permaddr a4:6b:b6:3d:61:fc I run ip link set wlan0 up but it still shows as DOWN. Anyone have any thoughts would be much appreciated. Thank you, |
Posted: 05 Aug 2021 09:44 AM PDT I am getting error while using below script in linux: Error : |
Moving files from folder with carriage return in folder name Posted: 05 Aug 2021 10:36 AM PDT Provided my admin with a shell script to rename a few folders, but for some reason those folders now contain carriage returns in the name (the script worked fine in UAT, and I'm not quite sure what the difference is between the two environments.) My application creates a folder if it can't find it, so now I have two folders containing files that need to be merged. So if I have folders: testfolder\r and testfolder, how would I correctly write the following command to move all files from the "CR" folder into the correct folder, preserving the contents of the correct folder in the event of any filename collisions? |
Arch linux: Cura thows: ValueError: PyCapsule_GetPointer called with incorrect name Posted: 05 Aug 2021 09:21 AM PDT when i type What can I do to fix this ? I already tried to update all pip packages but error remains. thank you for help |
Source additional files on login (~/.bash_profile? ~/.bashrc? /etc/profile? /etc/bashrc?) Posted: 05 Aug 2021 09:17 AM PDT I've a few special aliases and such set up on a few servers (CentOS 7, bash shell). Some of them are server specific (ex: what IP point to the internet, hostname of the server, etc), while others are relevant to all of them (command aliases and such). I've set each server's unique aliases in the However, I've come to understand that on some (seemingly rare) occasions, the non-unique aliases and variables are only available after sourcing I've tried sourcing the non-uniques file from different locations - using a script from The bash_profile looks something like this: And the non-uniques file looks something like this: My question is - where would be the correct place to source the uniques file from, to have it set system-wide and under all circumstances? What could be the reason these variables are set in some logins, but not on others, despite the same login method? Thanks! |
xorg not recognizing monitor but wayland does Posted: 05 Aug 2021 08:57 AM PDT So I have two monitors, my main one (hooked up to my graphics card), and my secondary one (hooked up the the motherboards hdmi). I switched from Arch Linux to Debian and setup everything, then I ran Output of |
Get an accellerated X11 driver for "XGI Z7" GPU under Alpine Linux v3.14? Posted: 05 Aug 2021 09:03 AM PDT I am trying to get a modern Linux up and running on an elderly PC with a Vortex86DX CPU (i586) and a built-in GPU which is reported in dmesg as To my understanding this GPU was supported by the SIS module, but when trying to run The fbdev driver does its job but is rather slow. The VideoDriverFaq at https://wiki.freedesktop.org/xorg/VideoDriverFAQ/ mentions that the sis driver should be used but it is clearly not properly autodetected. The sis module is available in a package and installed on the system How should I approach this? |
Managing website with a git server Posted: 05 Aug 2021 08:55 AM PDT I have a website up and running with nginx, and I have some content in my website that I want to manage with git so that others can collaborate. Let us say that have a user named alice and that the root of the website is located somewhere within alice's home directory, as in /home/alice/website/index.html Let us also assume that I have set up a git server via gitolite for access-control, the usage of which requires setting up a dummy user that we will call git. There are good reasons for this user being a separate one from alice. I want alice's website to be able to show the content of some git repository web_repo.git, the origin of which is to be found in /home/git/web_repo.git, as the documentation for gitolite requires. My first idea is to run a post-receive hook in the repository to sync it with some subdirectory of /home/alice/website, but that demands user git copying files into other user's (alice) home directory, which ends up in file permissions error. There are certain constraints in my build that require the website to be hosted within alice's home directory, and I can't think of a secure and elegant solution to this problem. I have just started managing this small server and I would kindly appreciate any insights. |
It's possible to restrict access with PAM based on groups? Posted: 05 Aug 2021 08:39 AM PDT I was wondering if it's possible to create a rule in |
Changing the case of lines in ed Posted: 05 Aug 2021 08:13 AM PDT Can I employ the |
How can I get rid of permission denied error when executing man to read the manpages? Posted: 05 Aug 2021 10:11 AM PDT I'm getting a permission denied error when trying to access the manpages of all executables. For example, here's the following command:
Here's one of the errors returned:
The following is another error returned:
I haven't been able to find out the root cause of these errors. Here are the outputs requested:
|
Access shell error strings associated with getopt in a bash function Posted: 05 Aug 2021 08:25 AM PDT Sometimes I get error by bash when using functions. Is it possible to access the error string in a bash function when it gets called by the shell ? I am particularly interested in dealing with parsing errors associated with |
network: download with one device, upload with other device Posted: 05 Aug 2021 09:43 AM PDT Situation: I have an ethernet connection that is fast in upload; and I have a wifi connection that is fast in download. In other words: ethernet download is slower than wifi download. Both connections get me to the same gateway/IP Address. I run Fedora 34. Can I define a download route via one device (wifi) and an upload route via another device (eth)? Caveat: I searched for a bit, and I guess I miss some language to formulate the question precisely. I invite comments that help me revise the question. |
How to relace string using a math operation [closed] Posted: 05 Aug 2021 09:52 AM PDT I have a gcode file that I need to subtract 101.54 from every value of Z. The format is Either how can I use Like: Thanks in advance |
Posted: 05 Aug 2021 10:34 AM PDT i'm trying to getting access to my network manager using: cd /var/lib/NetworkManger but it keeps saying "Access denied" any help? (Using Ubuntu btw) |
Substitute all multi-line and single-line matches in sed Posted: 05 Aug 2021 08:44 AM PDT I would like to replace the same pattern multiple times ( So, for instance, I'd like to change to something like The issue is that will only update the first line in the example since the second match I want has 2 lines. Is there a way to substitute all match independent of how many lines they have? Something like https://regex101.com/r/QmHCyo/1 but with sed. Whitespaces or new lines in the result string are of no concern. They can have any format since they are automatically fixed later. |
Centos/RHEL 8 systemd service not able to reference script from custom location Posted: 05 Aug 2021 09:35 AM PDT I am trying to create a systemd service, for a simple script present in a location (other than /usr/local/bin..) Below script is under I created simple service named when i start the service using But if I move the script and update the usr-print.service file with Is there a way to user the Centos 7 - Centos/RHEL 8 - Update: Looks like the SELinux not able to execute that script though it had Execute permissions. noticed a ticket related to this in Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1832231 |
Debian 10-Gnome-NonFree Full Install Onto USB Impeded By Installer Not Seeing USB Drive Posted: 05 Aug 2021 08:21 AM PDT I'm an Ubuntu user who is exploring Debian and want to install Debian 10 onto a USB drive. I downloaded an ISO that has Debian 10, Gnome and non-free software for drivers, etc from here https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/10.10.0-live+nonfree/amd64/iso-hybrid/ I had to change the download file extension from .iso to .img so that the Ubuntu Startup Disk Creator software saw it. After making the live USB installer, I booted from it and choose the default option, i.e. run the Debian 10 live installation. After the live installer finished booting up, I clicked the button to install Debian 10. This Calamares process began a series of of steps leading to a choice of disk to install it on - see screenshot below. All the installer "sees" are the 2 SDD drives on my machine: sda (my main drive) and sdd (my backup drive). It ignores the 2 USB drives, one for the live Debian installer, the other for holding the full installation. In a way, the existence of drives sdb and sdc is implied by the sda and sdd designations - but not displayed as installation options. lsblk output is shown below. As what I'm trying to do is a common practice among people exploring a new distro - as well as those wanting to permanently configure their live installation disk - I find it odd that I am not facilitated by the Debian 10 installer. For good measure, I also tried the graphical and non-graphical installer options from the Debian boot menu. But the problem here is that this only seems to look in the CD drive for an installation ISO . . . No option to seek a USB drive as a location for the Debian installer exists - or at least is "seen" by the program. The installer menu is just like something 15 years ago - it all seems based on a user presenting a CD system image and no option for a USB image exists . . . Funny if not so inconvenient. Am I missing something here ? Or does Debian only want people to have full installs on a SSD drive ? (I would think this narrow-mindedness most untypical of Debian.) On YouTube and suchlike I see lots of installs of Debian but they nearly always use KDE as their desktop. I wonder if my choosing Gnome is off the beaten track as far as serious testing goes ? I used to like KDE in the old days on Red Hat but today I find Gnome easier to follow visually and more explicit in its functions. |
how to perform a silent install of bandwidthD in ubuntu 20.04 Posted: 05 Aug 2021 09:46 AM PDT how to perform a silent install of bandwidthD to avoid windows and put IP and interfaces to monitor by command line (for ubuntu 20.04) Important: There is not thanks Update: I found a workaround, and at @muru's suggestion I post it as an answer. If there is a better answer, feel free to post it and I will select it as the best answer. |
What are some current transcription or dictation software packages for Linux? Posted: 05 Aug 2021 09:12 AM PDT The Mozilla deepspeech project is interesting, but perhaps not sufficiently sophisticated. My results, at least, were underwhelming. Online transcription or dictation services are fine, but an offline software package would be preferred. Is this just not that common on Linux and with open source software? Looking to get transcriptions from mp3 files. Would prefer not to upload files or use an API which uses a similar such service. |
OpenLDAP TLS error: TLS negotiation failure Posted: 05 Aug 2021 09:05 AM PDT I'm trying to setup OpenLDAP on kubernetes via the helm chart. It deploys correctly and I am able to access the server over port 389 (unencrypted) both locally from within the container and from other containers like phpldapadmin, in the cluster (via URL: openldap.ldap.svc.cluster.local). I am not able to access it using tls however. From within the container, if I run this command: Again, locally from within the openLDAP container itself, if I try I don't know what to check next in terms of debugging this. One issue I can see is that in the docker container, it should be run using the Environment: I installed this chart: https://github.com/helm/charts/tree/master/stable/openldap which is based on this docker image: https://github.com/osixia/docker-openldap and set the following parameters for the helm chart: I also changed the config map so that The certificate itself is generated by cert-manager from let's encrypt. The domain name of the certificate is The server startup logs to not show any errors, it appears like the TLS configuration and certificates are imported correctly: https://pastebin.com/raw/q9iEZCGN Would appreciate any help. Thanks. |
Write shell script to analysis log file Posted: 05 Aug 2021 09:51 AM PDT The log file is as below:- File keep going so on. Questions:
|
Add Prime OS (Android_x86_x64) to grub menu Posted: 05 Aug 2021 10:08 AM PDT I have debian dual boot with windows and try to install prime os also, while install it i didn't install it's grub because i have debian grub, but after installation i can't found it in grub . result in then it was added successfully but when i open it it's show |
yum doesn't pick up YUM0 environment variable Posted: 05 Aug 2021 10:28 AM PDT I have an environment variable set in my (docker) centos environment: Note that this also works when I prepend the As per the centos documentation;
However, when I try to install anything with I am running the following versions: Manually modifying my Running How can I make the |
Questions about minor page fault Posted: 05 Aug 2021 09:17 AM PDT From Stephen's reply and comment at https://unix.stackexchange.com/a/289446/674:
Thanks. |
Differences between keyword, reserved word, and builtin? Posted: 05 Aug 2021 10:13 AM PDT From Make bash use external `time` command rather than shell built-in, Stéphane Chazelas wrote:
We can verify it: It doesn't show that
|
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment