Recent Questions - Unix & Linux Stack Exchange |
- File names changing during googledrive or dropbox sync'ing
- MacOS: Installed openssh via brew, ssh-agent doesn't start by default
- No GUI Program for Network(Both for WiFi and Ethernet) {Ocurred after reinstalling some packages}
- How to mount a disk/volume only for specific users?
- How to open a visible filename in editor from terminal?
- how to diff automatically between file.txt.orig and file.txt
- Delete all files older than X days and all empty folder (linux/bash)
- file name completion in a subshell stopped working after moving to CentOS 7.6 from 6.*
- KVM CPU compatibility requirements for live migration on aarch64
- Adding and subtracting multiple columns into new column
- tail -1 file1 >> file2 without \n
- What are the options to create a single volume of multiple different hard drives with redundancy (i.e. heterogeneous RAID)
- Find command question - how to list subdirectories and files under a directory without listing the base directory
- awk: line 1: syntax error at or near {
- Error :“the command '/bin/sh -c source protected-env/bin/activate' returned a non-zero code: 127” while I'm trying to configure my first dockerfile
- Prevent pam_mount unmounting if there are other active sessions?
- Increase Firefox tabs in Plasma 5 on high DPI laptop with small screen
- Filter the data to generate the outermost points only
- How to start an X.org desktop session manually?
- GRUB2 Loading into CLI on reboot instead of bootloader
- Unable to rename files in samba share
- Linux installation not able to find the first partition of the disk during the boot up
- NFS Cannot allocate memory
- How to fix infinite bash loop (bashrc + bash_profile) when ssh-ing into an ec2 server?
- How to COMPLETELY turn off system beep sounds forever for good for real
- Changing the theme for default windows in Awesome WM
- Mounting efi disk on external USB
- How to disable beep tone in xfce when the delete button is pressed?
- How to have a newline before bash prompt?
- How to get core temperature of haswell i7 cores in i3status
File names changing during googledrive or dropbox sync'ing Posted: 03 May 2021 10:35 AM PDT when i copy/paste files or just move them from googledrive cloud their name's change to a long weird senseless sequence of characters. Anyone knows how to fix it? I am using manjaro. Thanks |
MacOS: Installed openssh via brew, ssh-agent doesn't start by default Posted: 03 May 2021 10:34 AM PDT I installed openssh via ... which throws the following error: And I still have to execute: And then do the following: even though I have the following in my ~/.ssh/config: (I had to add the IgnoreUnknown bit b/c the install from brew installs a version that breaks the UseKeychain bit.) But now, I don't know how to wire things up properly... Help appreciated! |
No GUI Program for Network(Both for WiFi and Ethernet) {Ocurred after reinstalling some packages} Posted: 03 May 2021 10:20 AM PDT I am using Kali Linux I accidentally deleted some packages such as I am assuming from above situation that my I have no Program for Network GUI. I founded some alternates to connect to unknown-WiFi using terminal, But it's very difficult to connect to wifi (To connect to encrypted WiFi, I would have to manually type the Hexadecimal/ASCII form of the password) Is there anyway to restore the old Network GUI program, in any ways ? lastly, I am not using any external adapters. |
How to mount a disk/volume only for specific users? Posted: 03 May 2021 10:27 AM PDT This is probably a basic question for most of you, but I don't have a good knowledge of this topic (yet). Please forgive my ignorance. use-case: Now I would like to hide that backup from the normal user by adding a second harddisk, which I only want to be visible to a specific user I used /etc/fstab in the past, but I guess that is for all users, right? Is there a way to only mount that disk for user Any pointers on how to achieve that? |
How to open a visible filename in editor from terminal? Posted: 03 May 2021 09:52 AM PDT Coming from MacOS iTerm2, I was able to open a file in my editor by clicking (or right click?) on the filename, especially useful in a git diff or when opening a failed unit test. There must be a way to set this up in default terminal and/or Terminator, Tilix ? |
how to diff automatically between file.txt.orig and file.txt Posted: 03 May 2021 09:24 AM PDT Currently, I am editing files on vim by setting
However, I would like to generate a diff without having to rename the Ideally I would really enjoy a workflow I could run
instead of The above does require me to manually edit the Perhaps there's an even better approach to this? Any suggestions would be appreciated. Both |
Delete all files older than X days and all empty folder (linux/bash) Posted: 03 May 2021 10:41 AM PDT I am deleting all files recursively with: Followed by all empty folders with: since I don't want to delete folders older than e.g. 100 days that might contain files younger than 100 days. But is there a more clean way to do this or am I misunderstanding something? |
file name completion in a subshell stopped working after moving to CentOS 7.6 from 6.* Posted: 03 May 2021 08:53 AM PDT Before the switch to the "new" OS I was able to type and I got filename completion. Now I don't. But I still can do this without the opening parenthesis! |
KVM CPU compatibility requirements for live migration on aarch64 Posted: 03 May 2021 08:52 AM PDT I'm trying to understand the CPU (and possibly kernel) requirements for a successful live migration of a KVM VM (OpenWRT) on aarch64 in order to decide on which SBC I should get as a second host. My primary host is an ODROID-N2 (Amlogic S922X, 4 x Cortex-A73 + 2 x Cortex-A53) running Arch Linux on a very recent mainline kernel. The machines are managed by libvirt. Due to the heterogeneous architecture on this host I had to pin two Cortex-A53 vCPUs to the two cores that model, otherwise the VM wouldn't start. I've also got an ODROID-C2 (Amlogic S905, 4 x Cortex-A53), also running Arch Linux. However, when I bought it I overlooked that its cores don't implement the AES crypto extensions. The cores also have a few more differences: /proc/cpuinfo on ODROID-N2 /proc/cpuinfo on ODROID-C2: The qemu documentation states that (unlike on x86) the CPU model always has to be passed through from the host. (This is why I had to pin the vCPUs: when I didn't do it, qemu/libvirt/the kernel would try to run vCPUs on random cores and fail most of the time, due to that reason.) There are some features that can be toggled (sve128, etc) but those don't map to the missing flags in cpuinfo. So I can't just deactivate features on one host or emulate them on another. The cores have to be identical. My question is, how similar do the cores on the hosts have to be? Would it be enough if Cortex-Axx model + cpuflags are identical on both hosts? |
Adding and subtracting multiple columns into new column Posted: 03 May 2021 10:19 AM PDT I have copied a partial csv file. I would like to find a shell command that will help me able to make a new column that will add up each entries (likes_count+ love_count + thankful_count) - (angry_count + sad_count) and name the column emotional_polarity. I have tried but it does not work for some reason the columns become mixed together. i think this may be because I am losing the comma when I perform this |
tail -1 file1 >> file2 without \n Posted: 03 May 2021 08:30 AM PDT it might be simple but after looking around I could not find a way to resolve my issue, I am recovering the last line from file1 using tail -1 file1 and want to add it to an existing file that is a table, so I can fill columns (that are separated by a comma) by doing: but my issue is that each new entry is done in a new row. how can I prevent this? best regards |
Posted: 03 May 2021 08:17 AM PDT I have about 8 hard drives lying around, and enough SATA ports in my main PC (running openSUSE Tumbleweed) to connect them all. Some of the drives are more than 5 years old, and the sizes range from 384GB to 2TB. I think it'd be a shame to let all that storage space go unused, so I'd like to install and use them, but obviously not as separate volumes. I used to run mdadm RAID5 and RAID6 arrays with older disks, but in this case, that would become tedious (one 8-drive array of 384GB per disk, one 7-drive array with the difference to the next-larger ... and so on). So I've been looking for alternatives. I've also been running a BTRFS RAID5 array on 4 identical drives for a while now, and given my experience with that (about one full restore per year needed, with some files lost...), and the fact that even the developers don't seem to expect they're going to make it work reliably without users having to stay very alert makes me doubt that BTRFS for a heterogeneous array like this would be a wise choice. I've heard miracoulous things about ZFS and its RAIDZ feature being able to accommodate different-sized drives with even 3 parity blocks but most of the advice I've been able to find so far only deals with identical drives, or at least identically-sized RAID partitions. My priority is neither speed nor access times as the machine is only used by me and hard drive throughput is very rarely a concern. My intention is to use the space on those hard drives in relative comfort for the remainder of their lives, and not have to worry about the occasional drive failure costing me data or copious amounts of time. I'd like to have some setup where I can just bundle them all together and if one of the drives fails, I'd remove it and carry on (or maybe add a new one if I need the space). I don't mind doing some extra up-front configuration as long as I can rest assured that it does not need my personal attention unless a drive breaks, and that it will let me know if/when that happens. Having 2 or 3 drive failures covered would be nice but I'd also be fine if I could use half the capacity (i.e. RAID10-like), as long as I can make use of all the drives, and most of the space on them.
|
Posted: 03 May 2021 09:10 AM PDT Find command - how to list only subdirectories and files under a directory without listing the base directory, which is passed as a parameter. Example: Above command output is also resulting in base directory being listed along with subdirectory and files inside. I want output to be just as below. The reason for this question is - |
awk: line 1: syntax error at or near { Posted: 03 May 2021 09:05 AM PDT I have been trying to get a maximum and a minimum value in the text file that have a numerical table. In order to do this, I opened up each column in the file using awk function for loop. But I got this error below. I am beginner to use awk, and I cannot find what the problem is. Please help me out! I got stuck in this problem with: This is my script: |
Posted: 03 May 2021 08:44 AM PDT I'm trying to learn docker. This is my first experiment. I have written this dockerfile : Unfortunately it does not work. This is the error that I'm getting : The command '/bin/sh -c source protected-env/bin/activate' returned a non-zero code: 127 the wrong line is this : RUN source protected-env/bin/activate Do you have any idea about how to fix it ? thanks. |
Prevent pam_mount unmounting if there are other active sessions? Posted: 03 May 2021 09:30 AM PDT I use This works well for a single tty. The problem is if I open another, though my How can I prevent In fact, with but then the next thing is everything complaining that 'transport endpoint is not connected', and sure enough I have no home dir in the first tty. I've also noticed if I then |
Increase Firefox tabs in Plasma 5 on high DPI laptop with small screen Posted: 03 May 2021 08:19 AM PDT In order to increase size I have used larger fonts (beside some other settings like toolbar icons size in Dolphin) and a global scale of 112%. This is how my panel looks for me to be comfortable with it. But Firefox tabs are too small. The fonts are OK, fallowing the system settings for font size, but tabs and buttons are not ok, global scaling seems to have no effect... This is on Fedora 34 KDE with Plasma 5.21 - KDE Frameworks 5.80. |
Filter the data to generate the outermost points only Posted: 03 May 2021 09:56 AM PDT I have the following data, when plotted gives me the following I would like to save and plot only the outermost points with a line plot. Pls do suugest on how to proceed with this and advise on how to filter the data |
How to start an X.org desktop session manually? Posted: 03 May 2021 10:15 AM PDT For example, I have these sessions: A want to disable GUI by How will I do that? P.S. My Distro: |
GRUB2 Loading into CLI on reboot instead of bootloader Posted: 03 May 2021 08:22 AM PDT I recently did a fresh install of Pop!_os after getting a little brave and wrecking some stuff on accident. I dual boot Windows 10 and Pop on separate drives. Upon restart, GRUB loads into its This will throw me into my bootloader menu without a problem, but the change does not persist on the next boot. I do a |
Unable to rename files in samba share Posted: 03 May 2021 10:08 AM PDT I'm accessing a samba share on a Windows Server 2019 from a PC with an updated Debian 10 buster OS with the command: On the top level I'm able to create and rename files without problems: However, if I try to rename a file in a subdirectory, it doesn't work anymore: Deleting the file created in the subdirectory with What could be the reason? I've tried looking online for the problem but cannot find a solution. In other shares on the same server ( |
Linux installation not able to find the first partition of the disk during the boot up Posted: 03 May 2021 09:29 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 1: After recreating the initial ramdisk and including the As seen above, the EDIT 2: I modified the Unfortunately, the system did not boot. I'll also add the There is an error about the |
Posted: 03 May 2021 08:13 AM PDT The other night I was trying to restart NFS services but then I received the following error messages: That is a weird error to get considering that the system had 12+GB of RAM left in buff/cache. As far as I understand buff/cache memory - that is memory that is used by the kernel to cache information but still available to applications to use if they need RAM. I then ran the following command: And the memory shifted from buff/cache to free and NFS started without any issues. Everything that I'm reading suggests that is basically one of the worst things to do. My question is that is this a bug in NFS or something else? It appears that this is a quite heated topic and I'm not arguing whether it is ok or not - all I can report is when I ran that NFS started without any issues and I am curious to know why. I'm running Debian 10, with proxmox 6.3-6, NFS version 1:1.3.4-2.5+deb10u1 Edit: I have also noticed issues with proxmox (ie VNC console not working or can't connect to different nodes) - running that mentioned command on both of my nodes clears up all of those issues. |
How to fix infinite bash loop (bashrc + bash_profile) when ssh-ing into an ec2 server? Posted: 03 May 2021 10:00 AM PDT I mistakenly have source Update 1: I tried the following: Nothing else showed up. Do you have any idea on what was going wrong? For sanity check, if I do Solution Just ssh onto the machine and immediately do Ctrlc and fix the bash files. |
How to COMPLETELY turn off system beep sounds forever for good for real Posted: 03 May 2021 09:47 AM PDT I use Nautilus to explore my files. I use a Debian-based OS with KDE Plasma 5. I use the keyboard a lot. When I press the key up when navigating files, if I'm already at the extremity of the list of files, Nautilus sends a big system beep which I will hear at 100% volume through my headphones. My reaction is comparable to getting electrified. I have placed the following lines in However, despite the beep going away from some places in the OS (such as erasing an empty line in the gnome-terminal), it's still in Nautilus. I believe it's because Nautilus doesn't source any of the How do I fix this? What I need might be at a deeper level than the |
Changing the theme for default windows in Awesome WM Posted: 03 May 2021 09:01 AM PDT How can I change the theme for default windows in Awesome WM? By default windows I mean the window that pops out when you open the preference window in gnome terminal, or pop out the noscript add-on in Firefox. Windows that theme wasn't specified otherwise basically. |
Mounting efi disk on external USB Posted: 03 May 2021 10:02 AM PDT Recently I bought new sshd to replace my old one on my notebook, but I have problem. I installed Ubuntu 15.10 on new one and put the old on usb case I have, but the disk on USB doesnt have partition (I screamed for 5 minutes because I can't lose data). So I moved back my old disk inside the disk bay and put the new on usb case, and all my data was here intact but the disk on usb shows no partition. Both of disks when in usb case show the model and factory correctly but not the partitions. The case is OK, tested with old HDD that doesn't have GPT/EFI partition. How can I mount the external disk so I can transfer my files? Ouput of commands: |
How to disable beep tone in xfce when the delete button is pressed? Posted: 03 May 2021 09:35 AM PDT I newly installed xfce on Arch Linux. xfce makes a beep noise every time I press the delete button or backspace, which is really annoying. How can I disable this? I tried un-commenting |
How to have a newline before bash prompt? Posted: 03 May 2021 09:03 AM PDT How can I configure my bash prompt to have a newline before it? Instead of: It should have: |
How to get core temperature of haswell i7 cores in i3status Posted: 03 May 2021 09:04 AM PDT I want to use i3status to display my CPU-Core temperatures (haswell i7). However the setting: doesn't display the correct core temperature. The numbers it shows seem to correspond to the value xsensors shows for temp1, if I change the 1 to 2 above it corresponds to xsensors temp2. Trying 3 or 4 doesn't have any effect. However I want to get the true core temperatures of all 4 cores with i3 status. How can I do 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