Recent Questions - Unix & Linux Stack Exchange |
- Error installing flatpak softwares "Unacceptable TLS certificate"
- XFCE black splash icon background
- shell script, display users in the system
- bash replacing special characters in a variable
- RTNETLINK "file exists" error when attempting to create veth interface that was previously a dummy
- PHC2Sys and syscalls with intel NIC have insane high latency
- Access I/O From Startup Process on Ubuntu Server
- Slow Startup and Shutdown on KDE
- "<?php" at Beginning of File Makes it Unreadable by Owner
- How can I stop SSH server to send logs to syslog?
- Why qemu is extremly slow? How to fast it up?
- How to tar-gzip a directory and put it in the /tmp
- Port Mirroring to another localhost port
- Rsync all directories that contain a specific file
- How to make the cups client.conf file optional?
- Disk full but cannot find were is the used space (Ubuntu)
- Difference between `eval set -- "$opts"` and the direct call `set -- "$opts"` [duplicate]
- mkisofs error - boot image...efibot.img not an allowable size
- How to take only uniq rows based on a column using linux cmd?
- Logging script to email
- ThinkPad X1 Extreme Gen2 slow charging via USB-C on Ubuntu 20.10
- How do I tell an application (Brave in this case) to remember that I've allowed it access to Kdewallet?
- How do I determine the block size for ext4 and btrfs filesystems?
- Requirements to boot a rootfs.img
- Chrome: font size of tabs, bookmarks' bar etc
- sudo must be owned by uid 0 and have the setuid bit set
- Bash: Why is eval and shift used in a script that parses command line arguments?
- How to add/remove an element to/from the array in bash?
- How can I change my tmux color scheme based on the time of day?
- How to rip a scratched DVD-Video? (a "cdparanoia for DVDs")
Error installing flatpak softwares "Unacceptable TLS certificate" Posted: 29 Oct 2021 08:32 AM PDT I installed flatpak using after that i a added repo and it gives me error i added another following repo this got added without any error but if i install any software from flathub.org it gives me same previous error |
XFCE black splash icon background Posted: 29 Oct 2021 08:27 AM PDT I have observed the following problem in XFCE, which I hope somebody can help me fix: Case 1: When starting Mathematica the splash icon (the manifold) appears embedded in a black square . The black regions should, however, be transparent. Case 2: When I attempt to share my screen in a Zoom call I can observe a similar black 'border' around the control elements and often geet informed that the windows I'm attempting to show can be seen with large black boxes obscuring almost everything but the window boundaries. This appears to be a transparency/fill issue somewhere but I can't quite figure out how to fix it. |
shell script, display users in the system Posted: 29 Oct 2021 08:15 AM PDT the task is as follows: write a program that outputs information about users in the system after a certain time interval: who entered, who left. I showed this version of the program above to the teacher, but he said that I should compare the two files.As far as I understand, I have to write users to a file. .Can you tell me how to implement his idea? :( /also, instead of the lastlog line, I offered this option Maybe he just didn't notice.. / Please help me figure out how to do this by comparing two files, otherwise I already have nightmares about this program. |
bash replacing special characters in a variable Posted: 29 Oct 2021 09:51 AM PDT pipe (|) limited text file is transferred from Windows application for processing. While processing there is a special character in the first column in first line of the file. This is how file looks in notepad before transferring from Windows When I read When i do this I tried |
RTNETLINK "file exists" error when attempting to create veth interface that was previously a dummy Posted: 29 Oct 2021 07:56 AM PDT Linux Mint 20.2 I used this command to create a dummy ethernet interface called veth0: Once finished I removed it with: The interface was definitely removed. After a reboot I then tried to create a virtual ethernet type interface with: But when I do this I get the "file exists" error. It does allow me to recreate a dummy type interface with the first command again. Where could it be referencing the interface name to be preventing it from being reused as a virtual ethernet type? My research has thrown up a lot of similar posts but they all generally reference a problem with physical interfaces not being able to use the ifup command. The fix is to flush the addresses on the interface and make sure is not more that one gateway listed in /etc/network/interfaces. Neither fix applies here. I've found nothing about virtual interface names not being re-usable for different interface types after the previous type is removed. I realise I could just use a different interface name, but I'd like to clean up this configuration problem and understand what has caused it. |
PHC2Sys and syscalls with intel NIC have insane high latency Posted: 29 Oct 2021 07:50 AM PDT I'm currently working on a device wich is set to give out multiple different timing Protocolls from one PTP-grandmaster. For this i have an RockPro64 SOC with an Intel i350 NIC. For the Project I synched my Node 0 with the Upon further investigation I realized my systems have immense latencys to get the Times of the corresponding Clocks from the Intel Card. Here you can see the messages the service is printing to the terminal while im synching my 2 PHCs. Thinking i might have a problem with the scheduling or something inside the PHC clocks i tried to synch my ptp-slave Clock to my systemtime but the Problem seemed to prevail: after that i wrote a simple C-Script to test how fast i can get times from those clocks and the results seem to fall in line with my PHC2SYS problems: CODE: The results: as you can see my Problem is not only that i have massive access times (i can see some Microseconds here, since we are on a PCIe Bus. But 70-100+ µs seems just absurd to me) but also it varies a lot, wich significantly hinders the PHC2SYS service to work properly. Does anyone has any idea what could cause this? Could this be a driver issue? Thx in Advance Alex |
Access I/O From Startup Process on Ubuntu Server Posted: 29 Oct 2021 07:56 AM PDT I have installed an Ubuntu Server on my old PC, and put a Minecraft server on it (more specifically, a spigot 1.17.1 server, as per these instructions). It's run by a as arguments. The server starts and I can connect to it. My only problem is that I can't access the program output (logging info) and input (to give him commands to execute). Any way I could access it? Running |
Slow Startup and Shutdown on KDE Posted: 29 Oct 2021 07:21 AM PDT I'm using KDE and when I log in after entering user password, it takes almost 4-5 seconds to system to show desktop. While, when i shutdown, it takes almost 10 seconds to properly shutdown. But if i use $shutdown now command, the system shutdowns immediately. These slow login and shutdown and times were not there before i switched to Arch+KDE |
"<?php" at Beginning of File Makes it Unreadable by Owner Posted: 29 Oct 2021 07:21 AM PDT I have a situation I've never seen before and haven't been able to find in my searching. I have a PHP file that is not viewable or editable by the owner or any group owner. Oddly, Apache can read and process the file, so it's not corrupt as far as I can tell. Also, it can be viewed and edited with What I've discovered is that any file that has I put some text in it and save it. No problem. I can view the file: I edit the file again ( but: I edit the file again ( In fact, I don't even need the full I'm totally at a loss as to why this might be. Any ideas would be greatly appreciated. In case it matters, this is Red Hat Enterprise Linux 8. I've tried disabling SELinux but that made no difference. |
How can I stop SSH server to send logs to syslog? Posted: 29 Oct 2021 07:13 AM PDT Debian 10 I have a lot of log info like this: How can I stop sshd to send logging info to sysconf ? Thank you |
Why qemu is extremly slow? How to fast it up? Posted: 29 Oct 2021 07:11 AM PDT I have 4 kernels + 6G RAM notebook and run qemu+aarm64 there. then downloaded https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/debian-11.1.0-arm64-netinst.iso and run Emulator goes extremely slow, why? |
How to tar-gzip a directory and put it in the /tmp Posted: 29 Oct 2021 06:53 AM PDT Hey im stuck on a assignment and i dont know how to solve it really because iam quite new with working in linux. I have to place a directory in a tar-ball and zip it using gzip. At the moment this is my code but it wont work and i dont know what the problem is... dir=$1 tar -cv/tmp/backupfile.tgz $dir |
Port Mirroring to another localhost port Posted: 29 Oct 2021 07:09 AM PDT I have an application a running on Port Y (UDP). Is it possible to create a mirror without touching application A to receive the message in application a and additionally in application B (same host) on a different port Y? I tried with Unfortunately, I also read some solution with It needs to run on 2 different platforms:
I can not use a 2nd IP address in the subnet of my |
Rsync all directories that contain a specific file Posted: 29 Oct 2021 08:28 AM PDT I am working on a cluster that requires both public key and password, I have a complex file structure to organize my work on this cluster, and I would like to have a backup on my local machine of some directories only. I would like rsync to get only directories that have a file named "backup". Example: Because of this password thing, I would like to avoid any script that calls ssh multiple times, is there any advanced filter able to do that with rsync? |
How to make the cups client.conf file optional? Posted: 29 Oct 2021 07:02 AM PDT In order to print when I'm at the office, I need to add a file However, when I get home, the existence of this file makes Ubuntu 20.04 freeze when I log in to the graphical interface. So what I have been doing, as a workaround, is either deleting the file before going home, or logging in through a terminal, deleting the file, and only then logging in to the graphical interface. Is there a cleaner way to do this? For example, is there a way to tell cups to ignore the file if it cannot connect? |
Disk full but cannot find were is the used space (Ubuntu) Posted: 29 Oct 2021 07:11 AM PDT I have a small Intel NUC with a 30GB drive. My problem is that this drive is full but cannot find the cause of it.
Computing this it gives somewhere around ~14GB of used disk space. Running gives me a list with few processes that matters: Running So, basically I am out of ideas on how to find out were are the missing ~16GB that the system reports as being somewhere filling out my drive. An the report is actually behave as such, running Thank you in advance, and, any ideea is a good ideea, basically a have a device that at the current moment is unusable and my options are running low (basically a clean reinstall / buy a larger ssd for a device that should not use more than 20gb) |
Difference between `eval set -- "$opts"` and the direct call `set -- "$opts"` [duplicate] Posted: 29 Oct 2021 07:02 AM PDT What is the difference between and a direct call using Have seen To get some idea, I am using the following code Running the function as There is some difference in the result, but unsure about the consequences. |
mkisofs error - boot image...efibot.img not an allowable size Posted: 29 Oct 2021 08:09 AM PDT I am trying to create a custom ISO from a rhel-8 installation disk that can boot on either a BIOS or an EFI server. Everything goes fine until I try to create the iso. If I run the following command: I get the following output: However, if I delete two options ( |
How to take only uniq rows based on a column using linux cmd? Posted: 29 Oct 2021 06:53 AM PDT Here is my dataset: Expected output: Selection criteria: If anything occurs in Can I solve it using Linux |
Posted: 29 Oct 2021 07:08 AM PDT I have a script that scans a log for a list of words, then sends an email with the results. I would like to expand this to do the same for other logs in the same directory but make it a new email with each log. How would I do that? |
ThinkPad X1 Extreme Gen2 slow charging via USB-C on Ubuntu 20.10 Posted: 29 Oct 2021 08:29 AM PDT I recently switched my ThinkPad X1 Extreme Gen2 to Ubuntu 20.10. Everything works perfectly, except it seemed to charge a bit slow. I don't use the normal Lenovo charger usually, but rather USB-C with PD. So I started looking into the checks for that and I confirmed that via both the sensors command as well as directly interacting with UCSI's sysfs endpoints, the negotiation doesn't seem to proceed completely correctly. I can see the charger offers 15V or 19V, but the laptop always negotiates 5V 3A, resulting in slow 15W charging. On Windows 10 it correctly charges with the full ~90-100W the charger permits. Here is an example output from sensors showing the laptop even clearly see the charger's capability to use 15V: Is there a way to manually tell Linux to negotiate up the voltage? EDIT:I should also mentioned I checked the typec in sysfs and verified that the mode is "usb_power_delivery" and "usb_power_delivery_revision" shows 2, so negotiation is happening, except for some reason the laptop asks for 5V 3A and never a higher voltage. I have even tried another power supply that can deliver 19V via PD, still stuck at 5V |
Posted: 29 Oct 2021 08:56 AM PDT I've found many articles with instructions for disabling the wallet altogether, but I'd like to use it, just not have to authenticate every time I open Brave. Is there a way to grant permanent permissions for an application to access Kdewallet? Here are some links to similar questions where the only answers are to disable it: https://askubuntu.com/questions/1109179/kde-wallet-keychain I'd really like to be able to save encrypted passwords locally without needing to give permissions every time. Thank you |
How do I determine the block size for ext4 and btrfs filesystems? Posted: 29 Oct 2021 09:29 AM PDT I'm looking for the commands that will tell me the allocation quantum on drives formatted with ext4 vs btrfs. Background: I am using a backup system that allows users to restore individual files. This system just uses rsync and has no server-side software, backups are not compressed. The result is that I have some 3.6TB of files, most of them small. It appears that for my data set storage is much less efficient on a btrfs volume under LVM than it is on a plain old ext4 volume, and I suspect this has to do with the minimum file size, and thus the block size, but I have been unable to figure out how to get those sizes for comparison purposes. The btrfs wiki says that it uses the "page size" but there's nothing I've found on obtaining that number. |
Requirements to boot a rootfs.img Posted: 29 Oct 2021 09:07 AM PDT I have a Linux image from which I've extracted a "rootfs.img" file, the file seems to contain files and information, I would like to "boot into it" file contents: how can I install a bootloader to boot it? I've tried: getting a live ubuntu image, adding a partition, placing the contents of rootfs.img inside the partition and running "Boot Repair", which did find the other system as another bootable linux, but I can't boot into it, seems like I'm missing something |
Chrome: font size of tabs, bookmarks' bar etc Posted: 29 Oct 2021 08:08 AM PDT Depending on the DPI settings, the fonts used in the Chrome user interface may be the wrong size, because Chrome (2018.07.22) respects the DPI settings when it renders web pages' content, but not when it draws the UI. E.g., my 13.3", 1366x768 display has approximately 118 DPI both in the horizontal and the vertical direction and when I use that value a 12pt font in a web page is, approximately, 12 points on my screen but the font in the UI is a bit largish, the bookmarks' bar is truncated and the tabs are a bit crowded. Chromium developers made clear that changing the font of the UI is not something they're going to support, I see that it is possible to circumvent the problem on Windows, what can be done on Linux? |
sudo must be owned by uid 0 and have the setuid bit set Posted: 29 Oct 2021 08:30 AM PDT I have changed my Ubuntu super password by recovery mode; after that, I can't run my sudo command in normal user . I have attempted to crack my previous password in Recovery mode; I followed this link to crack my password.
I need to access my sudo command from the terminal from anywhere. |
Bash: Why is eval and shift used in a script that parses command line arguments? Posted: 29 Oct 2021 08:33 AM PDT As I was looking this answer https://stackoverflow.com/a/11065196/4706711 in order to figure out on how to use parameters like First of all what does the Afterwards what is the purpose to use the I tried to comment the line in script mentioned above and I got the following response: But if I uncomment it it runs like a charm: |
How to add/remove an element to/from the array in bash? Posted: 29 Oct 2021 09:01 AM PDT I have an array containing some elements, but I want to push new items to the beginning of the array; How do I do that? |
How can I change my tmux color scheme based on the time of day? Posted: 29 Oct 2021 07:44 AM PDT I just implemented a few lines into my .vimrc that changes the color scheme from SolarizedDark to SolarizedLight based on the time of day. Is it possible to do this for tmux and OS X terminal as well? |
How to rip a scratched DVD-Video? (a "cdparanoia for DVDs") Posted: 29 Oct 2021 07:52 AM PDT I usually use the very nice and simple However some of my DVDs have a few scratches and my DVD drive has some trouble reading a few sectors. So, is there a tool similar to |
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