Recent Questions - Unix & Linux Stack Exchange |
- How to use Wi-Fi bridged adapter on Kali Linux Virtualbox
- Uncompressed files by content double gzipped by mistake
- Incorrect selinux context for user's home dirs created durign ssh login
- ip netns exec cannot start ONLY mate-terminal and gnome-terminal?
- grep Output Multiple Files in .bashrc Function
- sed replace multiple matches per line
- Installation of "darling" on Debian 10 is failing
- Sort and Join with letters and numbers
- Combine multiple awk functions
- EFI USB install
- No Wifi Adapter found using externel wifi dongle
- Sort the data to plot a sphere
- How to convert a CSV with multiple sub-row items (from a column) to new columns in Awk?
- Exiftool on WSL cannot write
- Jq --- converting nested json to csv
- How to run subsequent commands after invoking a shell
- Are data compression algorithms in *nix systems modular?
- Linux installation not able to find the first partition of the disk during the boot up
- Mopidy with pipewire-pulse
- Camera stops working on Ubuntu 20.04
- Running Android Emulator sets audio volume to 100%
- What is /dev/mapper/cachedev1?
- Delete all folders inside a folder except one with specific name
- ssh remote file execution is not working
- What happens to a multithreaded Linux process if it gets a signal?
- Old ATI Video Card on Debian 8 - Xpress 200 - model: 1150
- No output from locate command
- Gnome, nautilus copy files to USB stops at 100% or near
- Print the string between two parentheses
- How to print certain columns by name?
How to use Wi-Fi bridged adapter on Kali Linux Virtualbox Posted: 29 Apr 2021 10:11 AM PDT I have created a Kali Linux virtualbox and want to use my wifi card not wired connection. The standard NAT adapter gives me internet just fine, but when I change that to bridged adapter and select my wi-fi card "TP-LINK 802.11ac Network Adapter" with "promiscuous mode: Deny" and "Cable Connected" ticked. Kali does not change to wireless network and show me the available networks, it stays as ethernet network with wired connection 1. The network symbol is spinning and it cannot connect to the internet. Hopefully this is a matter of turning off ethernet and turning on wifi but I don't know. Thank you in advance. |
Uncompressed files by content double gzipped by mistake Posted: 29 Apr 2021 10:03 AM PDT I have some files that I gzipped twice by mistake with no file extension For example I would like to run a command to be able to find the double gzipped files in a folder (not all of them are double gzipped, but all of them are at least once) and automatically revert them to a single gzipping state |
Incorrect selinux context for user's home dirs created durign ssh login Posted: 29 Apr 2021 08:59 AM PDT When new user's home folder is auto-created when I su - user from root shell, then context is correct: But the new user's home folder is created during ssh login, context is wrong: It is leading to problems with ssh functionality because of wrong context for .ssh stuff afterwards and Selinux complains about it (login with public key does not work because of this) Only after I run restorecon valid context is set for the user's home folder and then ssh stuff is created in correct context: Why there is wrong selinux context set for home directory when a user logs in via ssh for the first time, when his home dir is auto-created? |
ip netns exec cannot start ONLY mate-terminal and gnome-terminal? Posted: 29 Apr 2021 08:43 AM PDT I am using the https://superuser.com/questions/983727/route-only-specific-traffic-through-vpn ... except on this system: So, the thing is, I have changed to But then, when I want to repeat the procedure - the terminal does NOT start anymore, but there is no error either?! I have eventually reduced it to this line (once the network namespace MYNS is made): Every once in a while, it might run once, but 99% of the time, re-running this command results with nothing. Here is the funny part - if I replace ... it works every time! But I do not want to use Just for fun, I tried running VLC here, too: ... and at least it starts fine (though it complains "vlcpulse audio output error: PulseAudio server connection failure: Connection refused"; "dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-CRRGy7gvlN: Connection refused" etc ...) So, finally I installed This file ... it is most definitely not present on the system. So, my guess is, this might have something to do with DBUS - unfortunately, I do not really know or understand dbus. My question is - is there a workaround I could do, so |
grep Output Multiple Files in .bashrc Function Posted: 29 Apr 2021 08:58 AM PDT I was trying to create a function in my bash profile that would pass in a variable (mainly a directory), and run two different programs. The variable would typically be something like The first line runs a python script, which on the command line will return the results for all 25 files, but when I run it within the function, it only returns the results for 1 file (the very first in the directory) The second line is supposed to grep through that same set of log files in |
sed replace multiple matches per line Posted: 29 Apr 2021 07:41 AM PDT I am trying to replace some html links such that they open in a new tab (Except links that point to the same page). Here is a dummy html page to illustrate my issue. I call it test.html. I am using this code to find and replace links with some addition. The result looks like this: Note the addition of Looking into this a bit, I found a suggestion to add a negation to split the detection blocks. So I added a negation for closing tag But this doesn't seem to do anything. Perhaps, I am doing this wrong. Running/testing now on sed 4.7. Intended to be run on sed 4.4. |
Installation of "darling" on Debian 10 is failing Posted: 29 Apr 2021 08:44 AM PDT I'm trying to install I've got two .deb files from here, the first is just darling, and the second is darling-dkms. Trying to install the first one, I get the following dependency error: I tried running The second package is no better: trying to download it, I get a build error: I've tried stright away compilling the githup repo, but it was not any better. I have gcc, clang, make and cmake installed, I'm not sure what is wrong thou. Any help with resolving this issue will be greatly appreciated! P. s. I am very new to Unix-like systems, so just have that in mind |
Sort and Join with letters and numbers Posted: 29 Apr 2021 07:24 AM PDT I have two files (file1 and file2) and I would like to mount a third (file3) containing a column that the two do not have. I usually do the sort and then together with the join. But it is not working, because it has values with letters and numbers from the example below: File1: File2 I notice that I use the same sort command for both and note that the final SNP_Name 11805 is above 1180 and the other is not. |
Combine multiple awk functions Posted: 29 Apr 2021 09:48 AM PDT I'm very new to awk, I'm trying to do the following in an environment that doesn't support Given I have a list of env variables starting with a prefix, I want to generate an argument list based on those variables, without using the prefix. So, for example, if I have I'd like to generate I've came up with but this doesn't strip the prefix, With Any idea how to chain/pipe multiple awk functions properly? Thanks |
Posted: 29 Apr 2021 07:57 AM PDT I am having some issues installing a ubuntu on a USB. Well installing it is the easy part, making the partitions and getting it to boot is ok (following this) https://ubuntuforums.org/showthread.php?t=2338836 The problem however is only one ever wants to boot. if the USB boots, the grub on the main system needs repairing, if the main system boots or is restored the USB grub needs repairing. I honestly have no idea why im having so many issues with this. any help? THIS IS NOT ABOUT A LIVE USB My goal is to have a usb with dev op tools on that I can plug into a system, it boots without interaction and configures the main system. the usb is ubuntu 20 and the main system 18 |
No Wifi Adapter found using externel wifi dongle Posted: 29 Apr 2021 07:36 AM PDT Im using linux Ubuntu 20.04. My computer has only enthernet but I needed also wi-fi, so I bought wifi dongle 8188eu. First i tried installing drivers and maybe I succedded(or maybe not). Now it is is showing me the wifi to turn it on but also that 'No wifi adapter is found". Can someone help me? Thanks in advance! |
Sort the data to plot a sphere Posted: 29 Apr 2021 09:50 AM PDT Here I have a data which I would to plot with line using gnuplot. Using the code I get below figure but, using I get the following: Can anyone suggest as to how to sort the data such that I can plot |
How to convert a CSV with multiple sub-row items (from a column) to new columns in Awk? Posted: 29 Apr 2021 10:11 AM PDT I have a CSV file with the general format shown in the picture below. In that CSV there are multiple rows that belong to a certain column ( Original Structure: Expected Structure: The original CSV: Expected resulting CSV: where name would take the place of the first row in desc. UPDATE: I might not have been clear, but the number of sub-rows in the Adding the following item to the above, ...you will see the problem: So two important points:
Q: How can I remap those sub-rows into new columns, using Awk? Possibly related (but not very helful) Questions: |
Posted: 29 Apr 2021 09:40 AM PDT Using exiftool on Windows Subsystem for Linux (WSL, Ubuntu) I can print exif data: However, I cannot change or delete them, e.g. the following command throws an error which I do not understand. I was not sure about write privileges, so I copied (duplicated, from within WSL) the (Windows-created) original file and renamed it to test.pdf, but this did not solve the problem.
|
Jq --- converting nested json to csv Posted: 29 Apr 2021 08:31 AM PDT I have sample JSON like below I was to get value as below I want only value where name="US" in There will be maximum of 1 |
How to run subsequent commands after invoking a shell Posted: 29 Apr 2021 09:14 AM PDT I have a script called The first command (line 3) invokes a shell and I want the subsequent commands to run within the invoked shell. How do I get this to work properly. |
Are data compression algorithms in *nix systems modular? Posted: 29 Apr 2021 09:30 AM PDT I find the term "data compression" as can mean different operations without a necessary common denominator:
Are data compression algorithms in *nix systems modular (in accordance with Unix philosophy)? |
Linux installation not able to find the first partition of the disk during the boot up Posted: 29 Apr 2021 09:43 AM PDT I have an hard disk image of an This starts the boot process which always ends here: Can I modify the disk settings of the EDIT: After recreating the initial ramdisk and including the As seen above, the |
Posted: 29 Apr 2021 08:00 AM PDT I run Mopidy as a service for my mpd because of the nice Spotify integration. I've followed the documentation's instructions to use it with pulseaudio by setting in my in my I searched around and found the |
Camera stops working on Ubuntu 20.04 Posted: 29 Apr 2021 08:40 AM PDT I have a USB camera and it's behaviour is really weird. I test it on the webcam testing website, and after giving priviliges to the website everything goes well, the camera works just fine. But I found out that after several refreshes of the website my camera just stops working (I can't see the output on my screen, earlier it was there). The only solution I managed to find is unplug & plug the USB again, then the whole thing repeats - camera works for a few website refreshes, then it stops again. Does somebody know what's happening? It seems really weird to me EDIT: If it'd help, my camera model is "A4Tech Co., Ltd. A4tech FHD 1080P PC Camera". EDIT 2: when camera works: when camera stops working: also output from |
Running Android Emulator sets audio volume to 100% Posted: 29 Apr 2021 09:42 AM PDT I working with Android Studio now, and when I test my app on real device connected to PC, everything is OK. But if I run Android Emulator (Pixel 2, level 29 API), sound volume of my PC is being set to maximum somewhy, which can deliver little problems if u work at Night. I tried either to download 30th API level or use Nexus emulator instead of Pixel one, but nothing of that helps. My application doesnt deal with audio for now, and error occurs even before any activity starts. My DE is Cinnamon, OS is Void-linux if it does matter. Any help is appreciated, thank you. |
What is /dev/mapper/cachedev1? Posted: 29 Apr 2021 07:22 AM PDT I just got my first QNAP NAS, used to work mostly with Synology before, and I'm currently trying to figure out how the system uses LVM. Mostly out of curiosity. In my specific case, it's a 2 bay NAS that I'm setting up as RAID 1 "storage pool". Within that pool, I created a "thick volume". These naming conventions do seem a bit confusing. When the "storage pool" gets created, QNAP seems to immediately create a LVM thin pool (i.e. a volume) across all of the free space. Any "thick" or "thin" volumes are then created within that pool. Here is the output of vgs and lvs right after the creation of the storage pool and one 250GB thick volume: After I created the volume, I tried to find out where it was mounted but neither
So, there is a device called I don't have the knowledge to make sense of this configuration. What is |
Delete all folders inside a folder except one with specific name Posted: 29 Apr 2021 08:40 AM PDT I need to delete all folders inside a folder using a daily script. The folder for that day needs to be left. Folder 'myfolder' has 3 sub folder: 'test1', 'test2' and 'test3' I need to delete all except 'test2'. I am trying to match exact name here: OR This command always tries to delete the main folder 'myfolder' also ! Is there a way to avoid this ? |
ssh remote file execution is not working Posted: 29 Apr 2021 09:09 AM PDT I have a bash script And the When I execute the script with I don't receive any error, but the Does anyone have an idea what the problem might be? |
What happens to a multithreaded Linux process if it gets a signal? Posted: 29 Apr 2021 07:46 AM PDT If a Unix (Posix) process receives a signal, a signal handler will run. What will happen to it in a multithreaded process? Which thread receives the signal? In my opinion, the signal API should be extended to handle that (i.e. the thread of the signal handler should be able to be determined), but hunting for infos on the net I only found year long flames on the linux kernel mailing list and on different forums. As I understood, Linus' concept differed from the Posix standard, and first some compat layer was built, but now the Linux follows the posix model. What is the current state? |
Old ATI Video Card on Debian 8 - Xpress 200 - model: 1150 Posted: 29 Apr 2021 08:08 AM PDT Well, my problem is very complicated, I've an old machine (Dell Vostro 1000) where I'm using Debian 8 with XFCE. This machine have an integrated video card (ATI MOBILITY RADEON XPRESS 200 - Model: 1150), and it doesn't work with Debian default configuration. Let's see what I already have tried:
NOTE: The xorgs and firmware-linux are installed but doesn't work. I really don't need 3d acceleration, but I need to resize my screen. Actually it's 1024x768 but the hardware can show 1280x800. |
Posted: 29 Apr 2021 09:35 AM PDT I usually find the answers to all my Unix related problems already posted as questions and answers. However, this particular issue has had me stumped for the past hour so I thought I'd ask my first question on this site. ProblemI have a development / staging server server running CentOS 5.11. Running However, running the command as the superuser prints a list of valid results:
Check permissionsI checked the ownership and permissions of the There are also no unusual file attributes: Compare with working systemMeanwhile, everything works as expected on the Production server. Running For comparison, I also ran this command through
So, unfortunately, I can't use I compared the results of all the above commands between the Staging and Production servers and there's no difference between them. Both systems have the Other considerationsI thought it might be related to the fact that on the problematic staging server, my login is authenticated using Winbind but I created a regular local user on the same box and I still have the same issue. There's obviously something else that I'm missing but I simply don't know what it is. I suspect it is related to the setgid file permission, maybe PAM or possibly SELinux. I don't know much about either PAM or SELinux: I've only ever looked at PAM when configuring Winbind authentication while SELinux was installed with the OS but I've never used it. Note: the production server has been subject to far fewer modifications than the development server which has had some experimentation. |
Gnome, nautilus copy files to USB stops at 100% or near Posted: 29 Apr 2021 07:58 AM PDT I had similar issues before but i don't remember how i solved it. When i try to copy something to USB stick, with FAT, it stops near the end, sometimes at 100%. And of course, when i transfer the memory stick somewhere else, it doesn't contain complete file. (file is a movie!) I tried to mount device with mount -o flush, but i get same issue. Also, i did format the USB stick with new FAT partition... Any idea what cold i do? p.s. I believe it's not related to OS, which is Debian, and i believe that coping from SSD drive doesn't make it stuck. |
Print the string between two parentheses Posted: 29 Apr 2021 09:10 AM PDT I have file with these lines I need the output as How can I do it with sed/grep command or using perl? |
How to print certain columns by name? Posted: 29 Apr 2021 07:47 AM PDT I have the following file: I want to print just the However, this requires knowing the column numbers. Is there a way to do it where I can use the name of the column (specified on the first row), instead of the column number? |
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