Recent Questions - Unix & Linux Stack Exchange |
- Why is git bash so slow to give me a command prompt and how can I fix it?
- Restrict xRDP access to multiple groups
- Path not found by non-root service
- How to batch process a storing all folder names in a file
- Migrating from turnkey Linux appliance to Debian 10 VM
- Java systemd service without specifying java -jar
- Two processes mapped in the same address space
- Sorry mime the second (mate-control-center vs. firefox)
- mdadm 10 far raid uneven read speed
- I had two grubs but not anymore, and I want both back
- what timedate value is always greater than any timedate?
- What's the point of naming Iptables' tables as "tables"?
- Escaping UTF-8 encoded URLs
- How to identify the python, pip and installed modules location on linux?
- Connect namespace to internet using Second public ip address
- How to copy target files using symlinks and a list of file names
- It's possibile to delete some file with a range af number in a name? [duplicate]
- How can I get the count of specific characters using vim in a file
- Why I am asked for the password of a different account when trying to mount a disk?
- Bightness Issue, Lenovo, Fedora 33
- Intel Graphics driver install Ubuntu
- How do I source in "/Users/<usr>/.ghcup/env" to $PATH in .zshrc after installing Haskell?
- NVIDIA drivers installed, but nvidia-smi not working on CentOS
- webp animation to gif animation (cli)
- automatic change wallpaper automatically by day,night
- How do I change the modules directory that the kernel searches
- how to restart pam.d service after changing of common-account-pc or common-auth-pc
- How can I change the IP and gateway addresses permanently?
- Move position of an application window from the command line on OSX
Why is git bash so slow to give me a command prompt and how can I fix it? Posted: 30 Mar 2021 10:47 AM PDT I used tcsh for decades on cygwin and just started using git-bash on my new Windows PC. It's generally a step up but the time from when the last command finishes until I receive the next command prompt is abysmal, like almost one second. I did a slo-mo video of hitting Enter five times and found that it was 950 ms to show each command prompt. Yikes! For comparison, cmd and cygwin+tcsh+mintty are well under 50 ms. So what is causing this? Is there anything I can do about it? This is a little bit jarring at times and knocks me out of my groove. But the bigger issue is that it seems to screw up my typing ahead. If I can finish typing the whole next command and press enter before it finishes making the command prompt then it seems to capture it all correctly, but if it finishes prompting while I'm in the middle of typing then it often discards everything I've typed so far. That is super annoying. Are others seeing that? $ bash --version GNU bash, version 4.4.23(1)-release (x86_64-pc-msys) $ git --version git version 2.30.1.windows.1 |
Restrict xRDP access to multiple groups Posted: 30 Mar 2021 10:41 AM PDT I administrate an LDAP-managed network of Linux servers. My groups is currently setting up xrdp for remote desktop access, and we want to limit access to multiple groups. However, This GitHub issue points us to only be able to restrict access to a singular group. Is it possible to add multiple groups to access xrdp? What workarounds exist? |
Path not found by non-root service Posted: 30 Mar 2021 10:30 AM PDT I have a Centos 7 VPS where I have published a .NET Core application. The solution is ran as a service. It is published in the path: At startup it registers a location to log all the info that I need to be logged. The log path is fixed: I have created a service file under as follows The myappbe user and group are created with nologin with the following commands: The working directory and the log location are both owned by myappbe user and group with 0775 permission. Running the service configured like this I can see from journalctl an error: even though that location exists and myappbe is owner. Changing the User and Group lines in the service to: runs the service as root with no errors. And the path is found and i can see the logs being written . Why is the path not found when running the service as non-root? |
How to batch process a storing all folder names in a file Posted: 30 Mar 2021 10:48 AM PDT I am looking to store all the folder names in a text file. I use this commands
I repeat this on another server Essentially i want to create a script that can run from one server and store the outputs from all servers in one location. |
Migrating from turnkey Linux appliance to Debian 10 VM Posted: 30 Mar 2021 08:25 AM PDT I have a turnkey Linux appliance that's based on Debian 8.6 and I have a new Debian 10.9 Gen 2 VM I'm running on Hyper-v since Turnkey Linux still does not support UEFI. What simple approaches are there to move everything over without having to manually rebuild it all? Is there a way to convert a base Debian install to Turnkey Linux and just use TLKBAM to migrate or do I just have to do everything manually? |
Java systemd service without specifying java -jar Posted: 30 Mar 2021 10:47 AM PDT I'm struggling to make a SpringBootApp to run as a service at the moment. The biggest issue is that Devops doesn't allow us to make changes on the Ansible scripts that deploys the artifact and creates the service (sample shown below). Technically, If I were to add java -jar on the ExecStart it will run correctly, but as we cannot edit the Ansible scripts I need to find a workaround. I've read a few guides where the service does not use java -jar instruction, but not sure what would be missing for this to run correctly. I've added java to the PATH as I thought that would help me. But it didn't. Any other ideas? to workaround this issue? Thanks in advanced. PS. I'm a Dev, but got root access to the server, so any help is pretty welcome. (edit extra info) When I don't have java -jar on the ExecStart command. I get the following error in the /var/log/messages But I've already confirmed the architecture of both platform where jar is built and server that is deployed. Both are x84_64 |
Two processes mapped in the same address space Posted: 30 Mar 2021 08:22 AM PDT I have noticed that when I open two processes with GDB for debugging, /proc/PID/maps indicate the same address regions for the two : I don't understand how this is handled, I thought each process should have its own page table ? |
Sorry mime the second (mate-control-center vs. firefox) Posted: 30 Mar 2021 09:02 AM PDT My OS is Debian stretch (mate Desktop) Since about 2 years I have a problem with default setting for application browser(in mate-control-center) and firefox. whenever I let firefox set itselfs as default browser in (about:preferences) my prefered application settings in mate-control-center changed from firefox-esr to thunderbird for default browser. And the other way around. Both seemed somehow registert How can I remove thunderbird as registered application for |
mdadm 10 far raid uneven read speed Posted: 30 Mar 2021 08:59 AM PDT Why sequential read speed from raid 10 growth only with very huge I expect sequential read speed at least 100MB*n_drives=800+MB/sec. But: If I test single drive: Only when I set My workload contains mostly sequential reads, but I'm not sure that app will issue IO reads with such huge sizes. Since test is performed on block device directly - this mean that problem is not in FS. DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS" Linux 5.4.0-67-generic #75-Ubuntu SMP Fri Feb 19 18:03:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux EDIT I was wrong about Despite it is still hard to understand why speed grows with bs growing(for example from 256M to 512M), it shows not bad read speed starting from |
I had two grubs but not anymore, and I want both back Posted: 30 Mar 2021 10:09 AM PDT I have Ubuntu Linux 20.04 and Kali 2021 installed, and before reinstalling both, I had two grubs, the main one showed up when I started the pc, it was the Ubuntu one, and the second one showing up when I selected the Kali option in the Ubuntu Linux's grub. The grub on which the pc started was the Ubuntu one, and if I chose to start Kali, it would start again and show me a Kali grub menu. How can I get both back to what they were ? Thanks for your replies, but please, do not say "It is not possible", as I did have both of them fine and working. Thanks |
what timedate value is always greater than any timedate? Posted: 30 Mar 2021 08:44 AM PDT What timedate value is always greater than any timedate? In a script, I want to provide an argument to variable |
What's the point of naming Iptables' tables as "tables"? Posted: 30 Mar 2021 09:29 AM PDT After reading some guides (e.g. this one) and playing with Iptables tuning I found that I see no reason for naming Iptables' tables as tables. Thus it should be not "table contains several chains" but something like "chain contains groups of rules with specific global priority (and some other common properties)". Doesn't it? Or do I misunderstand something? |
Posted: 30 Mar 2021 08:27 AM PDT I want to replace a variable expansion with a URL --- directly inside a file. Here is a replaced-replacement pattern I work with (currently without escaping): I could add a backslash before the The above URL pattern is quite "light" or "easy" but some URLs might have lots of forward slashes ( How would you do suggest to escape UTF-8 encoded URLs? |
How to identify the python, pip and installed modules location on linux? Posted: 30 Mar 2021 08:19 AM PDT I started learning python but I am finding it difficult to understand on linux.
Can you please help me ? |
Connect namespace to internet using Second public ip address Posted: 30 Mar 2021 08:50 AM PDT I have an ubuntu18 server with Two public addresses How can i create a namespace and connect to the internet through the second public ip? (need to launch a program and force it to use the second ip to connect to the internet) ip a : ip route : I have reached some solutions stated here:
But after days of testing , still couldn't make this work. The process looks confusing to me specially that I'm not sure which addresses I need to use in netns commands (ip addr , route , gw ,...) latest steps I tried: |
How to copy target files using symlinks and a list of file names Posted: 30 Mar 2021 10:05 AM PDT I would like to copy many files. I have their location as a set of symbolic links whose names are stored as lines in a txt file. So I am using cp and need to combine the readlink and cat/pipe functions. I haven't seen other questions deal with this combination. The command:
A simpler example works where the symlink names are used explicitly in the argument of the readlink (but I have too many file names to do this manually), e.g.:
The issue is in how I am combining the 'readlink' and the pipe, but I can't figure out what. EDIT: here's an example of what's in the first lines of the list.txt file:
each row is a unique symlink name. |
It's possibile to delete some file with a range af number in a name? [duplicate] Posted: 30 Mar 2021 08:42 AM PDT I have many images captured from my webcam and their name are: I want to delete images shooted by night. I found script to obtain sunrise (and sunset) times, now I have to filter my files and delete. I start to try with ls command. If I use: the result is correct. By if I insert a variable with the time of sunrise, encounter of problems. But the result are: |
How can I get the count of specific characters using vim in a file Posted: 30 Mar 2021 08:46 AM PDT My question is similar to this one: How can I count the number of words in a file whilst editing the file in vim But with a different task where I have to count characters with the search function in vim and write them at the of the file. For example, if I have to count how many numeric characters are there, I would need something like this: Edit: I'm trying a method where I first select all the characters that I want to count with |
Why I am asked for the password of a different account when trying to mount a disk? Posted: 30 Mar 2021 09:57 AM PDT I am on Debian 10 Buster. When using Nautilus (aka Files), I am always asked for my password when trying to mount another HDD. All normal. A few days ago, I am not asked for my account password anymore, but for another account password. So, my main account is in the sudo group. I also have a second account named 'guest'. I am not sure what happened so now every time I try to mount a secondary HDD I am asked for the 'Guest' password instead of my main account password (where I am logged in). Any help? Thanks Edit: If anyone want to know more about this, you can also read the answers on this question: question |
Bightness Issue, Lenovo, Fedora 33 Posted: 30 Mar 2021 08:49 AM PDT I'm having the brightness issue, where screen brightness doesn't change, on a Lenovo Legion Y740 with Fedora 33 that I haven't been able to solve yet. Here's the output of It defaults to the Intel graphics card. Here's what my Here's some information that may be helpful. I tried the suggestion the modify the I've also installed I think the following two paragraphs may be indicative of the main issue. When I find the file that holds the numerical value for brightness, in my case, this is Next, on install I noticed that there are settings for I've installed appropriate Does any one have any idea what might be the issue? Thank you in advance for any links, suggestions, or consideration. |
Intel Graphics driver install Ubuntu Posted: 30 Mar 2021 09:53 AM PDT I'm using an Intel UHD Graphics 605. That's part of the output of What do I need to install so that Ubuntu sees it? The computer is extremely laggy and hangs up or locks up with multiple windows open. I looked at Intel's support page and I was unable to find a Linux download. |
How do I source in "/Users/<usr>/.ghcup/env" to $PATH in .zshrc after installing Haskell? Posted: 30 Mar 2021 09:38 AM PDT I cannot seem to get the I installed ghc & cabal-install via ghcup: Hint during installation process:
I can get the binaries to run after adding Content of
How do I incorporate that into my |
NVIDIA drivers installed, but nvidia-smi not working on CentOS Posted: 30 Mar 2021 10:18 AM PDT I have an NVIDIA driver installed, verified by the output of
However, running More info: I am running CentOS 7, and trying to a) get nvidia-smi working and b) then install CUDA. |
webp animation to gif animation (cli) Posted: 30 Mar 2021 09:25 AM PDT I was surprised today to find apparently how difficult it is to go from a Anyway, I used the following script: Which creates a gif animation from the extracted frames of the file supplied in the first argument. I tried it on this file and the resulting file was kind of artifacty. Is it proper form to post in this forum for suggestions of improvement of the procedure/invocations? And: If there are custom tools for this conversion, please share your knowledge! :) |
automatic change wallpaper automatically by day,night Posted: 30 Mar 2021 10:11 AM PDT I am having 2 wallpaper and i want to change them day and night. If it day change it to wallpaper1.png or if it night change it to wallpaper2.png. How can i do that? I am running parrot OS 3.8 on Mate desktop enviroment 1.18.0. |
How do I change the modules directory that the kernel searches Posted: 30 Mar 2021 08:03 AM PDT I am new to rebuilding the kernel and kernel modules and such, so I apologize if this is a poor question. I am running Centos 6.8 , 2.6.32.642.el6.x86_64. I am trying learn about device drivers and such, and my reference text starts with rebuilding the kernel. It's instructions seem kinda dated, so I've also been googling. I rebuilt the kernel, with a minor change to main.c I then moved the resulting bzImage into the boot directory: I then added an entry to etc/grub.conf, that is identical to the one already there, but with the different kernel name. I then reboot, and on reboot, I get a kernel panic, which indicates that it can't find modules.dep in /lib/modules/2.6.32 But everything I've read indicates that the modules should be located at /lib/modules/2.6.32-custom.el6.x86_64, So to try that, I softlinked /lib/modules/2.6.32-642.el6.x86_64 to /lib/modules/2.6.32-custom.el6.x86_64: but as expected it didn't fix the error, because it (the kernel?) is looking in /lib/modules/2.6.32/ instead of /lib/modules/2.6.32-custom.el6_x86_64 My question is, where SHOULD the kernel be looking for modules and/or how do I change it, and/or what is driving it to look where it is looking? |
how to restart pam.d service after changing of common-account-pc or common-auth-pc Posted: 30 Mar 2021 08:44 AM PDT I am having trouble with a configuration line in It seems that this line causes some problem when trying to access multiple times the SUT and i assume that it things that it is an attack via ssh. But it is actually a test tool that tries to send several times commands via ssh root@ to the SUT (100.100.100.100) from server (10.10.10.13). Since the password is always correct, but still after some time it starts to through exception (pexpect) Account locked. But according to passwd root is not LK labeled: Manually it is always possible to access the SUT via ssh root@!!! So, for the moment the only that can cause this is the pam configuration. But how do i restart or activate the changes? Does someone else have any other idea? Thanks in adv. |
How can I change the IP and gateway addresses permanently? Posted: 30 Mar 2021 08:44 AM PDT I recently installed Linux Ubuntu 14.04 to my computer. To enable internet connection I needed to change my IP and Gateway address. I did the following as a root user It works fine for a couple of minutes but then goes back to the previous settings every time. So, How can I change the IP and the gw addresses permanently? |
Move position of an application window from the command line on OSX Posted: 30 Mar 2021 08:27 AM PDT An application — iA Writer — somehow got stuck off screen with only the corner showing. I can't grab it or use other means to move it from that position. All new windows open in that position, regardless of if I open/close the application. Is there a terminal command for moving a specific window's position? |
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