Recent Questions - Unix & Linux Stack Exchange |
- Which linux browser + password manager can ask for master password every time
- VirtualBox CentOs installation
- `buildah unshare`: ERRO exec: "buildah-script.sh": executable file not found in $PATH
- Keyboard emulation using configfs usb gadget in boot and OS mode
- Adding options using bash arrays
- Is there a way to view or store file history (like browser history) in linux? [duplicate]
- Remote difference between "ip addr del" and "ip link set down"
- Extract/ get jpg or png file format out of mp4
- ./shell.sh: line 6: [: =~: binary operator expected
- How to list all tagged files in ranger
- How do I convert ubuntu 16.04 / partition from a standard partition to LVM?
- del route on kali linux on wsl2
- why the pid not split to an array in bash
- Create .desktop file that asks for command line options before running script
- I have a file with filename paths in it. Some paths have spaces. How do I pipe each path into grep as an argument?
- Recursively remove extension from all files with specific extension
- How to connect to old Samba-server with new smbclient?
- Only noise with alsa and pulseaudio
- How to add revision control to a Linux OS installation
- systemd-journald[356]: Failed to open system journal: Operation not supported
- Gnome Applications menu doesn't reveal locations of apps
- openSUSE 42.3 does not start up from USB - black screen after loading kernel
- Failed to start the Apache service
- Samba NT_STATUS_NO_TRUST_SAM_ACCOUNT
- make ACL to work perfectly
- How can I test for POSIX compliance of shell scripts?
- Uninstalling default VBoxGuestAdditions on Debian
- bash multi line command with comments after the continuation character
- Execute a command once per line of piped input?
- Do we have an undo in Linux?
Which linux browser + password manager can ask for master password every time Posted: 19 Jul 2021 10:06 AM PDT I want to find a Linux browser that can store passwords ant doesn't cache the master password. That is, I want to be asked for the master password every time a password is to be filled. Thanks |
VirtualBox CentOs installation Posted: 19 Jul 2021 09:58 AM PDT |
`buildah unshare`: ERRO exec: "buildah-script.sh": executable file not found in $PATH Posted: 19 Jul 2021 10:05 AM PDT The very command This is with, |
Keyboard emulation using configfs usb gadget in boot and OS mode Posted: 19 Jul 2021 09:15 AM PDT I'm currently working on a keyboard emulation using raspberry py zero, I'm using the configfs code found in this repo https://github.com/c4software/pi-as-keyboard this code have been working properly on windows but during the boot mode the raspberry py isn't working as a keyboard emulation, I've found here https://www.usb.org/sites/default/files/documents/hid1_11.pdf some additionnal requirements that should be added to the configfs file to make it work in both conditions (on OS and boot mode) but I didn't find a way to add these functions in the gadget. my current working gadget is as follows : |
Adding options using bash arrays Posted: 19 Jul 2021 08:32 AM PDT I am using a bash script to call Now I would like to add the --backup possibility to |
Is there a way to view or store file history (like browser history) in linux? [duplicate] Posted: 19 Jul 2021 09:47 AM PDT I want to know if there is any way to 'view' (or) 'store' file history (similar to browser history). For example if I have 10 files, and I open 2 of them, it should get stored in a file the following 2 details. This should happen whenever I open a file. So when I open that particular history file, I can see all the files that I have opened (not necessarily edited, Just if I have opened). If there is no in-build command for that (I know lsof is for viewing the list of all open files), how to create a custom command for the same purpose. |
Remote difference between "ip addr del" and "ip link set down" Posted: 19 Jul 2021 08:15 AM PDT I am working on a system where a remote SBC monitors the health of all linked servers and issues fault reports when certain behaviors are observed. Everything is running RHEL 7. I have an interface on a server "eth1" with the ip "10.0.3.16" and a subnet mask "255.255.255.0". If I run the command:
on the server, the remote SBC does not seem to notice that anything is wrong. However if I do:
Then I get the expected result. 10.0.3.16 is the only IP address assigned to the eth1 interface. I would like to understand the difference between the two commands, and why unassigning the IP address produces a different result than taking down the entire interface. Google has failed me so far, I can't seem to find anything relevant. |
Extract/ get jpg or png file format out of mp4 Posted: 19 Jul 2021 07:52 AM PDT how do we get jp(e)g or png file format out of mp4 one using some CLI tools ? |
./shell.sh: line 6: [: =~: binary operator expected Posted: 19 Jul 2021 08:28 AM PDT I'm trying to execute the following shell script, where I'm trying to keep executing a command in an infinite loop and until the output is not equal to a certain substring but I'm getting the following error |
How to list all tagged files in ranger Posted: 19 Jul 2021 07:40 AM PDT I have a nested directory with tagged files across the subdirectories. Is there any way to list all marked files in this nested hierarchy? |
How do I convert ubuntu 16.04 / partition from a standard partition to LVM? Posted: 19 Jul 2021 07:25 AM PDT How do I convert ubuntu 16.04 / partition from a standard partition to LVM ? |
del route on kali linux on wsl2 Posted: 19 Jul 2021 08:04 AM PDT I am kind of new to linux, it has only been about 2 month since I started. So I am having trouble with the route commands. My problem is that I don't have the same local IP address on windows that the one I have on wsl. However I managed to add another route, but is not the one by default, so I am trying to ether del 172.20.128.0 or make 192.168.1.0 the default/main one so that others devices can ping me, and other stuff like that. ipconfig (on windows) route (kali-linux on wsl) ifconfig (kali-linux on wsl) ip addr (kali-linux on wsl) thanks for reading and trying to help me I have been stuck on this whole ping problem and stuff for about a week |
why the pid not split to an array in bash Posted: 19 Jul 2021 08:39 AM PDT I want to restart celery from server, because the celery has many process, to I write this script to query all process id and kill it: from the log, I found the pid did not convert to array, the next step did not split correctly. I run this script remotely from GitHub Actions. This is the log output from GitHub Actions: I read my script and did not found where is going wrong, what should I do to make it work? |
Create .desktop file that asks for command line options before running script Posted: 19 Jul 2021 09:40 AM PDT I have a script that I run from time to time which takes command line options. I wish to create a Is there a way to create a desktop launcher that when run, asks for the command line options (maybe using |
Posted: 19 Jul 2021 09:46 AM PDT First, I think the fact that I'm using cygwin is highly relevant here. In theory, I already know how to do this: The problem is, some of the file paths in This causes errors. I read how to solve this: use |
Recursively remove extension from all files with specific extension Posted: 19 Jul 2021 10:02 AM PDT I have a directory with a bunch of subdirectories with a bunch of files with the extension I want to rename every file with extension So Can I do this in Bash? (I am on Ubuntu 20.04) |
How to connect to old Samba-server with new smbclient? Posted: 19 Jul 2021 09:19 AM PDT A Linux-based multimedia-box I have runs
I'm sure, this is due to some option being disabled in the latest versions of Samba -- but which one? Can I enable it back by editing With level-3 logging, as requested by @Marcus-Müller, I get: |
Only noise with alsa and pulseaudio Posted: 19 Jul 2021 08:44 AM PDT I've tried for multiple days to set up my headphones. Whenever I play something via Here is my
my
I've tried connecting the headphones to the front and back headphone jack, but both just produce loud noise when playing a sound. When it goes back to idle the noise stops. I would be very grateful if somebody could help me. I've googling various things for days now. |
How to add revision control to a Linux OS installation Posted: 19 Jul 2021 08:01 AM PDT I have an SD card image of an Armbian based Linux system. I have done several modifications at different places to this system and I'm looking for a solution to add some versioning information to this system and/or to track the changes of the system based on a given zero state. Are there any solutions to handle it? |
systemd-journald[356]: Failed to open system journal: Operation not supported Posted: 19 Jul 2021 09:50 AM PDT My /var/log/syslog and dmesg is being filled with errors from systemd. Searching the internet for: systemd-journald "operation not supported", gives no valuable results. Here is a sample of my syslog OS: Ubuntu 18.04 using Overlayfs root. I've been running this setup for years without problem, but recently I added a btrfs raid1 to the system for extra storage. I suspect my issue may be related to the new storage. I'm not sure what other information to provide. |
Gnome Applications menu doesn't reveal locations of apps Posted: 19 Jul 2021 09:10 AM PDT I've tried to use the following command, but it is missing the available applications listed in the Applications menu of the Gnome GUI/Desktop environment. I am not sure how to access the information for how these apps are being launched. In KDE or RHEL 6 Gnome (Gnome 2.x), it was easy to just right click on the application launcher and see the command it was using to launch the application. However with Gnome 3 on RHEL 8 I have had no such luck. |
openSUSE 42.3 does not start up from USB - black screen after loading kernel Posted: 19 Jul 2021 08:04 AM PDT I tried to install openSUSE on my desktop PC and load openSUSE 42.3 to my USB stick by using SUSE Studio Imagewriter (my laptop is running openSUSE). However, after a while the screen turns black and nothing happens. My desktop PC loads the GRUB (at least it looks like GRUB) from USB and I choose the option Installation. The kernel seems to be loaded and things are printed on the screen. The last things printed on the screen before turning black are:
After this, the PC seems to do nothing and my display turns black. First, I thought this was a problem of the USB stick, downloaded openSUSE a second time, checked its hash, and tried on my laptop (where everything seems to be OK) but nothing changed. Both, the DVD install and Net install showed the same issue or at least symptoms. So I assume it has something to do with my desktop PC. It has AMD CPU and NVidia graphics card (my laptop has both from Intel). Maybe this needs some special attention? Any suggestions what could be the problem or what to try next? Many thanks and have a nice day. |
Failed to start the Apache service Posted: 19 Jul 2021 09:15 AM PDT When I'm trying to run the apache it is showing me this error: |
Samba NT_STATUS_NO_TRUST_SAM_ACCOUNT Posted: 19 Jul 2021 09:07 AM PDT for a project we have several samba shares configured as following: The idea is that users connecting will be authenticated by the ldap server and every file written by them will be owned by a linux user with the same name. Apart from SAMBA the linux machine doesn't use ldap for anything else. Everything worked as expected, until something changed on the ldap server and we are now getting the The guides I see around are pretty much all focused on installing and using an OpenLDAP server on the linux machine, which we don't need, or configuring linux authentication to use LDAP users internally or do complex mappings other than the username, which we also do not need. We are using samba 4.2, and it is known that upgrading to a more recent version didn't work with the above configuration (even before the ldap server changes). Are you aware of any other (maybe more correct) way to configure samba to have the requested behavior? What we need is just the LDAP server answering "user auth ok", no user mapping, no machine in the domain, no complex configuration. |
Posted: 19 Jul 2021 10:02 AM PDT I know there are plenty of questions and answers about ACL and permissions, but to be honest they are so weak to make any coherent understanding! it's just like a mix of unorganized information. Hope this question will put an end to this confusion Problem: On my Ubuntu 14.04 web server, I want to:
My solution: I used ACLs: now already existed files and folders take the rules perfectly. Issue: Now I am logged as user Here is It looks like there is some conflict between rules! although I deleted all ACL before applying the new rules. P.S. I remember combining them in one command like below used to work... but it's not! If you know a correct short version please don't hesitate to provide :) |
How can I test for POSIX compliance of shell scripts? Posted: 19 Jul 2021 10:07 AM PDT Considering that POSIX is the closest thing to a common standard among all unices, I'm interested in knowing if there's a shell that supports it exclusively. While most modern shells provide support for POSIX (and will run POSIX compliant scripts without any problem), they don't do a good job at pointing out non compliant features. Is there any shell that implements POSIX and POSIX only, in such a way that it'd throw an error for any non compliant feature? EDIT I want to clarify that I'm not asking for general tips for writing portable shell scripts. The related question mentionned in the comments already covered this. I thought of this question when I found out that |
Uninstalling default VBoxGuestAdditions on Debian Posted: 19 Jul 2021 10:05 AM PDT When I ran How do I uninstall the VBoxGuestAdditions that was a default part of Debian? Edit: After reading and trying out jw013's answer, I suspected that maybe I just didn't know the proper package names. I did a bit more searching, and found out that I can see the list of packages installed by running then I got Then I removed each manually by running So far it looks like that might be the solution, though it's weird because when I run the command it wants to install 38 new packages, most of them with xserver related stuff. Edit2: I tried the above with a fresh install (reasonably minimal install -- used the businesscard.iso with nothing marked when tasksel came up) then followed the directions here, and everything worked perfectly! |
bash multi line command with comments after the continuation character Posted: 19 Jul 2021 10:03 AM PDT Consider This gives: After some searching on the web, I found a solution by DigitalRoss on sister site Stack Overflow. So one can do or alternatively However, DigitalRoss didn't explain why these solutions work. I'd appreciate an explanation. He replied with a comment:
But I'd like more details and context, including a discussion of portability. Of course, if anyone has other solutions, that would be good too. See also the earlier question How to comment multi-line commands in shell scripts?. Take home message from the discussion below. The A better choice is the following: |
Execute a command once per line of piped input? Posted: 19 Jul 2021 07:38 AM PDT I want to run a java command once for every match of |
Posted: 19 Jul 2021 08:47 AM PDT I renamed a few files in one batch script. Is there a way to undo the changes without having to rename them back? Does Linux provide some native way of |
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