Recent Questions - Unix & Linux Stack Exchange |
- Create new directories with Python on Linux
- Not being able to run appimages?
- Replace the header of a given column with the filename
- How could I make a partition of my ssd boot to linux without harming the rest of the data?
- sed command to replace last occurrence of a word in a file with the content of another another file
- dot sourcing doesn't work within shell script [duplicate]
- How should I cope with the 16TiB limit on linux software RAID (md)?
- Delete and merge all windows partition from arch linux installation
- How can you change ./configure to use a specific binary over /usr/bin?
- CamelCase-aware backward-kill-word in readline
- Compare two files based on first column
- Low resolution in GRUB and tty
- Cursor moving erratically on its own (not a duplicated)
- Cannot change ownership/permissions of disk
- awk script to prepare csv file
- Raspberry Pi remote desktop gateway tunnel
- chromium: change scrollbar color
- Why is the headphone audio not working on Fedora 34?
- Should I change the "etc_t" SELinux context for a custom application?
- Why does my USB flash disk continue heating while it is unmounted?
- How can the move command cause data loss?
- Match curly brace with new line
- How do I configure a network interface bridge from WiFi to Ethernet with Debian?
- keyserver receive failed (on every keyserver available)
- actual usage of 'grub-mkimage --config= '
- How can I make my user services wait till the network is online?
- Mint 17.1 - installation reverts to Grub - UUI
- Can we install puppet without touching the servers?
- How to SSH from host to guest using QEMU?
- Changing a file's "Date Created" and "Last Modified" attributes to another file's
Create new directories with Python on Linux Posted: 25 May 2021 09:53 AM PDT I'm running a Python script on a fresh installation of Ubuntu 20.04.2. The script checks if a directory exists and creates it if not. The code is: I get the following error: In the command prompt, I would just add a sudo but I need my Python script to be able to make these directories so, my question is how can I allow Python to make new directories? |
Not being able to run appimages? Posted: 25 May 2021 09:25 AM PDT So, i have a problem with even a new and fresh partition of Pop!_OS (still applies to ubuntu because Pop!_OS is a fork of it), and it is not letting me run appimages, even though it seems like it should. I tried right clicking, going into preferences, permissions, then enabling the file to run as an executable, but when i try to run the thing again, it does nothing. This same exact problem happened to me on a different partition which is Manjaro, Although I mainly need help with running appimages on Pop!_OS. Any ideas as of why this is happening? Thanks for the help, appreciate it |
Replace the header of a given column with the filename Posted: 25 May 2021 09:45 AM PDT I have many vcf files in the 10th column of EACH file the colum header is $i. In each file, I would like to replace $i with the basename of the files. For example for file HR001.vcf, $i=HR001, for HR002.vcf $i=HR002 etc... is there a simple way to do this in unix. I own a macbook pro but I am new to this. |
How could I make a partition of my ssd boot to linux without harming the rest of the data? Posted: 25 May 2021 08:51 AM PDT I recently installed openSUSE on my laptop. The installation appears to work fine, until you turn it off, and find that the laptop doesn't recognize that the OS is bootable. However, if I plug in the USB installation drive again, it does recognize the OS, and I can boot to it just fine. I have seen several users have the same problem, and as far as I can tell, none of them solved it. My best solution I have come up with involves putting the ISO on a partition of the ssd, and just booting from that every time. The main problem, though, is that I don't even know if that's possible without wiping the rest of the drive. tl;dr (if you do that here), I need to make a partition of my drive bootable without wiping the whole thing. |
sed command to replace last occurrence of a word in a file with the content of another another file Posted: 25 May 2021 09:32 AM PDT
sample.txt: sample1.txt: Expected output (sample.txt): |
dot sourcing doesn't work within shell script [duplicate] Posted: 25 May 2021 08:48 AM PDT I am using WSL and try to automate a build process via shell script. The process starts with sourcing some exported variables from a file, say Now I try to source this from a shell script Executing this results in an error: However, sourcing from the shell directly works just fine: What am I doing wrong with the script? |
How should I cope with the 16TiB limit on linux software RAID (md)? Posted: 25 May 2021 08:29 AM PDT I have used a RAID6 based on partitions on 2TB disks for around 10 years, now. Which I have extended multiple times up to around 12TB by adding disks a few times. With the time, I have progressively replaced my failing disks with 4TB ones in order to extend it to 3.5TiB partitions and then remove the disks in excess ('t would be sooo nice to be able to close this computer case at some time ;-p X-D) However, it appears to be a 16TiB limit on md RAIDs. When I tried grow it to --size=max, mdadm and /proc/mdstat reported having grown my units to 3663892.5MiB and my whole RAID space to 21983355MiB. However, trying to read from the disk only allowed me to access 5206139MiB = 21983355MiB - 16TiB Searching for information about this limit told me that you can create a new RAID Volume of any size but you can't expand an existing Volume past 16TiB, which is a bit short :
I haven't found much accurate information about this. Do you know more about how to manage this problem ? EDIT: This problem is NOT about filesystem size, but about the bare unpartitionned RAID space (and btw, my raid version is 1.2) |
Delete and merge all windows partition from arch linux installation Posted: 25 May 2021 08:56 AM PDT Newbie here. I tried to install arch linux to my laptop which has 2 partitions and windows 10 installation. I could not delete and merge partitions with fdisk, so googled and ran the following command. as per the this question. Now I don't see my partitions, all I see with
How do I make |
How can you change ./configure to use a specific binary over /usr/bin? Posted: 25 May 2021 09:16 AM PDT Running macOS Catalina 10.15.6. My question is more related to compilation with GNU tools, so it may be more suited for a different SE site — I'll be happy to close and ask somewhere else if that's the case. I'm trying to compile software (namely Using To fix it, I thought modifying The weird thing is, just trying to run bison uses the right binary. I also tried messing with the |
CamelCase-aware backward-kill-word in readline Posted: 25 May 2021 09:15 AM PDT
results in
My question is: is it possible to customize upon pressing |
Compare two files based on first column Posted: 25 May 2021 09:09 AM PDT I have two files, and I would like to get a new file with only the lines that we have in the first file, but not in the second one. Example: file1: file2: Output: I tried using comm, but that also gives the rows where something was changed, so for example the ID 2 and 3. Can you please help me with this? |
Low resolution in GRUB and tty Posted: 25 May 2021 09:47 AM PDT After upgrading from Fedora 33 to 34, the resolution in GRUB and ttys is low resolution and the wrong aspect ratio, seemingly 1024x768, instead of the native 1920x1080. Tried adding
At grub's command prompt, the often suggested Original Any suggestions of what to try? |
Cursor moving erratically on its own (not a duplicated) Posted: 25 May 2021 09:20 AM PDT I've read this post that is very similar to mine, but the difference is that I have the touchpad disabled and my xinput show as if I have more than one mouse installed when I only have just one wireless Genius mouse since a long time. I have an Asus K501U, intel core i7, nvidia Geforce 940MX, with 12GB of RAM and SSD drive of 512 GB. I'm using Ubuntu Focal Fossa. It's the development brunch (I tried to install the latest stable version, but by mistake I installed this one). Anyway, the Ubuntu installation occurred about a year ago, and I've installed the latest security updates since then. If I try What can I do?? |
Cannot change ownership/permissions of disk Posted: 25 May 2021 09:17 AM PDT I have an EXT4 disk mounted on However, I need to be able to write to it without being root. Running I have tried accessing it via a Windows laptop via a program that allows EXT4 access, and I can write data and it persists (including when plugged back into my Arch PC). Why can't I change permissions/ownership, and how do I fix it? |
awk script to prepare csv file Posted: 25 May 2021 09:56 AM PDT I'm stuck creating an awk script that prepares a csv file before analysis. I need to create an output file with columns 1-2, 10, 13-15, 19-21. Also I need to replace the numbers on column 2 to the days of the week (so, 1 = Monday, 2 = Tuesday...) and convert the 21th column from nautical miles to km; and delete Input: Output: So far, I've got the command to take the columns needed: And also the code to replace the numbers in column 2 with their respective days of the week: I am also missing a way to wrap all the code into the script to execute it later. |
Raspberry Pi remote desktop gateway tunnel Posted: 25 May 2021 09:40 AM PDT For a university project, I have to remotely work on a raspberry pi. Currently, I connect to it via Win Home PC --ssh--> uni-gateway-domain.com --ssh--> Pi. Now, I want to use remote desktop to work more efficiently. I followed this tutorial (german). These are the settings I set: On both the gateway and the pi, |
chromium: change scrollbar color Posted: 25 May 2021 09:36 AM PDT Is it possible to change color of the scrollbar in Chromium browser, without having to install yet another extension? Perhaps by modifying some css file somewhere? I am using chromium 83 on Debian 10. I know how to achieve this in Firefox. I just added following lines to Is there something similar I can do to achieve same for Chromium? |
Why is the headphone audio not working on Fedora 34? Posted: 25 May 2021 09:39 AM PDT Even though my headphones are a valid device, it does not output any sound. It is listed as one of the "Items" in Alsamixer, but toggling it in Pavucontrol does not work. When I disconnect the headphones, the sound comes out of the speaker without any issues. Using the headphones on Windows seems to be working without a problem either(no hardware problems). Is there a bug in the new version of Fedora and is there a way to fix it? |
Should I change the "etc_t" SELinux context for a custom application? Posted: 25 May 2021 09:49 AM PDT I'm using SELinux (targeted mode) to confine a custom application . I used the command However, I'm surprised that the configuration files under Is there a reason why |
Why does my USB flash disk continue heating while it is unmounted? Posted: 25 May 2021 09:40 AM PDT I am using Debian-Buster Linux. I use a USB flash disk and mount it when it is needed. Then I unmount it without unplugging. However, it continues to heat up (like it is being used) while it is unmounted. Why does it contiune to heat up? How can I prevent this problem? |
How can the move command cause data loss? Posted: 25 May 2021 09:38 AM PDT I tried to move a large (40 GB) folder between locations on my computer using This is what I did: This should move the file from |
Match curly brace with new line Posted: 25 May 2021 09:44 AM PDT Trying to match a string + line break + left curly brace using to become this My expression regex looks like this: Tried to find the reason why open curly brace doesn't match at the beginning but no clues. Thank you in advance. |
How do I configure a network interface bridge from WiFi to Ethernet with Debian? Posted: 25 May 2021 09:53 AM PDT I am using Raspberry Pi using Raspbian which is just Debian. I would like to bridge from the primary WiFi network router that connects to Cox Cable to my cabled router here for my subnet to have reliable internet access. It needs to be a WiFi-to-Ethernet bridge. I have set /etc/networks for a static address for the USB wlan1 with the external adapter and hi-gain antenna. wpa_supplicant is configured to log in to the master router properly. So right now it is set up so I can login to the proper network with the password, on external wlan1. Static address is set in /etc/networks. Gateway and nameserver are OK. I can browse web pages, etc. The missing link is to bridge this to the eth0 port so my router can connect also, to provide service to my subnet. No need for any extra network services like routing or nat or dhcp, etc. Just a simple bridge. Can anyone please point me in the right direction to make this happen? |
keyserver receive failed (on every keyserver available) Posted: 25 May 2021 09:14 AM PDT I recently installed Ubuntu 17.04 and I'm not able to add any ppa. Error Received: Error Received: It is the same case with other keys. I'm not able to add any PPA. |
actual usage of 'grub-mkimage --config= ' Posted: 25 May 2021 09:53 AM PDT On Linux, with GRUB 2 Bootloader, I try to figure out the actual usage of the
My first guess would be Question: What file, or kind of file, could be meant? UPDATE: Found this one in the gnu.org documentation for GRUB 2, among commands for the GRUB prompt:
Probably the same file? Funny sidenot: The online manual seemingly doesn't mention this option. UPDATE 2: Found the following line in the output of
So UPDATE 3: |
How can I make my user services wait till the network is online? Posted: 25 May 2021 09:29 AM PDT I have written a couple of systemd user service files which I want users to enable and which need a working network connection. I thought that would be as easy as: However, the services seem to start too early, and in Then I searched more and tried and did Now I have in And again the service starts too early. Is that message supposed to be there? How can I debug my problem? EDIT: the reason is simple and specifically stated in the Arch Wiki:
This forum post seems to suggest a simple solution: I should After doing that, I don't see any However, I can see |
Mint 17.1 - installation reverts to Grub - UUI Posted: 25 May 2021 09:00 AM PDT I'm attempting to install Mint 17.1 and have succesfully used Universal USB Installer to create a bootable USB stick. When booting up Mint the pleasing loading screen fails to make an appearance and instead the Grub menu is shown. How should I proceed to install Linux Mint on this machine? I have attempted the same proces using YUMI but in this case the machine reverts to the BIOS settings instead of loading Mint / Grub from the USB stick. To clarify, I'm not intent on dual booting with Windows 8 but replacing the Windows installation with Mint. |
Can we install puppet without touching the servers? Posted: 25 May 2021 09:51 AM PDT I heard that puppet need to be installed on server side, not just desktop side, from where we want to launch commands on the servers. My question: Are there any other methods for using puppet? I mean we don't want to install it on server side, just run scripts from our Desktop on the servers.. |
How to SSH from host to guest using QEMU? Posted: 25 May 2021 09:30 AM PDT How do I setup ssh from the host to the guest using qemu? I am able to use port redirection when I boot the VM without any special parameters, as follows: But when I try to boot using the following: I get the following error and the VM does not boot: Please note that I am able to boot the VM without the EditI have tried using as well as but still the error persists and the VM does not boot. |
Changing a file's "Date Created" and "Last Modified" attributes to another file's Posted: 25 May 2021 09:06 AM PDT I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's attributes like "Date Created" and "Last Modified" to that of the first one. Is there anyway to do this? I try to access the merged files over a samba server (Ubuntu). So that an extractor function can access auto extract the files to D folder. But as the created date will be changed for the merged file the extraction fails. Is there anyway to fix this? |
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