Recent Questions - Unix & Linux Stack Exchange |
- How to transform the text file to the given XML Schema
- Bash commands using smb:// -> No such file or directory
- Suddenly cannot change ownership nor permissions of files/folders on internal drive: chown, chmod
- ALSA/Pipewire: Make both internal speakers and headphone jack visible for selection
- Text Input GUI CLI for Gnome
- I can run progam from my terminal just fine, but not vs code terminal
- `gpg: error retrieving "email" via WKD: No data` when trying credential storage for DockerHub login
- Can't change my resolution
- User not getting forced to change password
- Mounting NTFS hard drive on boot
- Does writing tcpdump output to a file on ramdisk have effect on the number of packets dropped?
- Describe an implementation of an imaginary "read-only" type in C [closed]
- Preserve permissions and ownership with install command
- wondershaper has no effect
- How to auto-mount a prerequisite mountpoint for the one I'm mounting?
- Raspbian running headless doing scripted procedures on a internet page using text browser
- Duplicate Timeshift backups name
- Ubuntu frozen boot after moving root partition
- I don't know how to download and install internet explorer on raspberry pi running Ubuntu 21.04
- Failed to start nfs-server.service:Transaction order is cyclic
- zsh completion: only offer specific file extensions for completion
- Watch systemd service status with systemctl
- How to verify a checksum using one command line?
- Debian increase ulimit for Asterisk
- Asterisk v13 on Kali Linux: No RTP engine was found. Do you have one loaded?
- What are the POSIX "mandatory utilities"?
- apache2 debian mod folder location
- gnome-keyring-daemon components and their use
- How can I increase the acceleration of the mouse wheel via xinput?
- How can I wrap text at a certain column size?
How to transform the text file to the given XML Schema Posted: 06 Nov 2021 10:23 AM PDT I have to write a script that take as input EBCDIC encoded file and after that to transform it to given XML schema needed for later that I will extract the information between the tags and use it as input file for database. So far I have done the decriptiting using the txtTestFile.csv looks like that: p.s thats just 1/100 of the text file I currently have this is just an example. I should select and export only segments that are like the following: The XML Schema I am given is: After getting the correct segments I have to use awk/sed to get the data like the following: So I can use it as input file for SQL Database. |
Bash commands using smb:// -> No such file or directory Posted: 06 Nov 2021 10:09 AM PDT I have an smb share that I see in the Files explorer as smb://whitebox.local/photos/ If I try to use commands on this smb share using the smb:// syntax, I get a "No such file or directory" error message: How do I solve this? |
Suddenly cannot change ownership nor permissions of files/folders on internal drive: chown, chmod Posted: 06 Nov 2021 09:37 AM PDT I have suddenly lost the ability to use chmod and chown. I am operating within my /home directory. I can still create and delete files. In verbose mode, they both say that the requested changes have been made, but they haven't. I am trying to change ownership from jim:jim to root:root so that my Python app can run from /usr/bin. I have done this many times, but suddenly, I cannot. I also tried using 'sudo nautilus' to make the changes. The ownership briefly shows as changed, then flips back to jim:jim OS: ZorinOS 16 based on Ubuntu 20.04 (I've been using it for over 5 months) Drive: /home partition of system SSD on my private, home machine File System: ext4 Read/Write: can still create and delete files in the same folders Example command: $sudo chown -v root:root password.py Results: chown states the ownership has been changed, but it has not. chmod also says it worked, but it hasn't.a Please help me to step back out of the twilight zone. |
ALSA/Pipewire: Make both internal speakers and headphone jack visible for selection Posted: 06 Nov 2021 09:03 AM PDT I am running Fedora 35 (previously 34) on a laptop. All is well except that I can't make the system auto-detect the sound card. So I manually created the ~/.asoundrc file: This sent sound to internal speakers. To send sound to headphones, I manually: 1/ Change the contents of .asoundrc to: 2/ Restart the pipewire service: Is there a way to specify BOTH device 0 and device 5 in this file (or elsewhere) so that I can select one or the other from the Sound control panel? Many thanks!!! |
Posted: 06 Nov 2021 10:13 AM PDT I'd like to set up the following workflow on my (Gnome) Ubuntu 21.10 laptop.
I know how to implement each part, except which CLI to use to prompt for text from a GUI (rather than a CLI). Question
|
I can run progam from my terminal just fine, but not vs code terminal Posted: 06 Nov 2021 09:36 AM PDT I have just installed gradle on my ubuntu machine, and now I can run it in my terminal like this: But, if I try to open from the terminal in vs code: It cannot find it at all. Why could this be? EDIT If I instead write |
`gpg: error retrieving "email" via WKD: No data` when trying credential storage for DockerHub login Posted: 06 Nov 2021 08:27 AM PDT I want to use the
So, it seems that all goes right until here, but then, when I try either However, as I said before, I use often Further, the solution in gpg: error retrieving 'me@example.com' via WKD does not seem suitable to my issue, since when I look for my key with the So, which is now the problem and what can I do? I work on Debian 11. Maybe the issue is related to the next claim under https://github.com/docker/docker-credential-helpers: What should I do if this is the problem? I have also tried doing Thanks in advance! |
Posted: 06 Nov 2021 07:52 AM PDT Just to say I'm new to Linux. I just installed Manjaro with KDE Plasma. Tried running a game through Lutris and it changed my resolution 800x600. Now I can't change it to my resolution of 1680x1050. When I run xrandr I get this: I try and it says What do I do? EDIT: Maybe I should mention that the resolution is good on the login screen and then when I log in it gets smaller. |
User not getting forced to change password Posted: 06 Nov 2021 07:29 AM PDT Any one has idea why user don't get prompted to change password after running below command on user account |
Mounting NTFS hard drive on boot Posted: 06 Nov 2021 06:54 AM PDT I am trying to mount a hard drive with an NTFS filesystem on it on boot. It doesn't need a special location. /mnt/ or something similar should be enough. I had already done that with a drive but it is way back and i can't remember how I did it. Also I am too scared to just go dive into the fstab file. I am on the latest Arch Linux 64 bit version The drive is called /dev/sda1 (idk if thats important) |
Does writing tcpdump output to a file on ramdisk have effect on the number of packets dropped? Posted: 06 Nov 2021 06:49 AM PDT When running Based on the man page of tcpdump, it seems like it happens due to a lack of buffer space, which means I need to change and ran Is there really any difference between those two commands? |
Describe an implementation of an imaginary "read-only" type in C [closed] Posted: 06 Nov 2021 07:31 AM PDT Currently, I'm reading the M.Bach book "The design of the UNIX operating system". There is a tricky question (ch7, q22) I'm struggling with. Could you help with this/give some hints?
|
Preserve permissions and ownership with install command Posted: 06 Nov 2021 06:32 AM PDT When running I am aware that |
Posted: 06 Nov 2021 08:50 AM PDT I want to use wondershaper to limit my bandwidth. I used This should limit my download to 1 MBit/s and my upload to 9 MBit/s However, when I run a speedtest in Google Chrome, I still get a result of 50 MBit/s in download. How is that possible? Edit: I cannot tell the version of wondershaper certainly. For -v or --version wondershaper says In man wondershaper there's also no version. says version 1.1a-10. But is this the version of wondershaper or the version of the apt package? I am using debian buster LTS. |
How to auto-mount a prerequisite mountpoint for the one I'm mounting? Posted: 06 Nov 2021 07:35 AM PDT I'm running Arch Linux and systemd. In I currently have to mount I also have to I need to simplify that to just one I need to use the exact I can change I have been reading about recursive bind mounts, shared, private, slave and other mount options, but I have not seen a way to achieve what I'm seeking. (I'm also so unfamiliar with this topic that I don't even know the best title for the question. It's not a recursive mount, so I called it a prerequisite mount.) |
Raspbian running headless doing scripted procedures on a internet page using text browser Posted: 06 Nov 2021 09:15 AM PDT I am somewhere between a new and intermediate linux user. I am setting up a local network for a small group, and I need to configure an automatic sign-in to a webportal when internet connectivity is lost. I have this working when I run my bash script with a monitor on the raspberry (RASPBIAN OS) itself, the sequence of things are: Check if internet is down with fping --> Open xterm --> have xdotool open w3m and automate the clicks and inputting password. Here is my code in condensed form: So when I connect a monitor and mouse and run this it works just fine. I want to have this running headless and with the script in crontab, and after 2 days of trying I feel like I'm just going in circles. The problem is that both the new xterm session and xdotool requires a DISPLAY defined to run. To that end I have installed xvfb which creates a simulated display. That runs without any errors, but it also does not work. If I run: It adds the echo to the file, so I know that my display is running the xterm session, and I conclude the simulated display and xterm session is all working. If I do: It does not work. In conclusion, xdotool is working (no errors), but not doing anything! So I'm thinking xdotool is not typing into the xterm terminal because the window is not selected, and I try to select the xterm window and I get: And at this point my project is so unique that I can't find any good suggestions on what to do. A few people have tried to exchange the windowmanager for Xvfd but it's few and complicated. Put in simple words:
My network is private and I have no issue with solutions that can compromise the security on the raspberry, so disabling whatever xhost etc is fine, I just don't see how/what. Thanks in advance. |
Duplicate Timeshift backups name Posted: 06 Nov 2021 06:16 AM PDT So I have 3 different linux distros using the same partition to store backups using timeshift.
I installed one of the arch linux a few days ago, and now after doing all the base setup to get me started, I finally setup the timeshift in the end. But the problem is that both the arch linux installations have the same name when opening the timeshift app. See the image. See, both the arch installations have the same entry under All are rsync backups, if that makes any difference. |
Ubuntu frozen boot after moving root partition Posted: 06 Nov 2021 06:46 AM PDT I have a dual boot system with Ubuntu and Windows 10. I have enlarged and moved (to the left) Ubuntu's "/" partition with GParted. When I boot my system, I correctly visualize the grub menu from which I can select either Ubuntu or Windows 10. Windows is perfectly working, whereas when I try to boot Linux it gets stuck on a black screen. I have tried to launch the kernel in recovery mode, but it freezes after having printed the following: I guess the partition data was not damaged. Do you know a solution better than system reinstall? Update I have also tried the followin 3 strategies, without success. 1. Reinstall grub from |
I don't know how to download and install internet explorer on raspberry pi running Ubuntu 21.04 Posted: 06 Nov 2021 09:57 AM PDT I just installed ubuntu desktop 21.04 on my raspberry pi 4b. I want to switch from mozilla firefox, the default browser, to Inetrnet explorer. The only download I could find was an .exe and those are for wondows. I've looked into it, and I found that I need wine, I've intslled that, but the version I've tried only works on amd64 processors, but what I have is an arm64 procesor. Does anyone know were to find an emulator for arm64 that is free and easy to configure? I've looked around for one and I could not find how to do it on a pi 4b anywhwere at all. Not even a download for an emulator. |
Failed to start nfs-server.service:Transaction order is cyclic Posted: 06 Nov 2021 09:36 AM PDT OS: CentOS 7.5 1804 nfs not start at boot, and failed when start manually. Found same issue at https://support.oracle.com/knowledge/Oracle%20Cloud/2649787_1.html but don't have oracle support account. |
zsh completion: only offer specific file extensions for completion Posted: 06 Nov 2021 09:24 AM PDT currently, I have this in my In addition to using menu for how can I integrate that into my existing rule ? |
Watch systemd service status with systemctl Posted: 06 Nov 2021 07:12 AM PDT Is there any option that allow watching the status of a What I actually do: For example: |
How to verify a checksum using one command line? Posted: 06 Nov 2021 08:34 AM PDT Suppose I type and run the following command: After a delay, this outputs the following: Then, I realize that I should have typed the following command to more rapidly assess whether the SHA‐256 hash matches: Is there a way to act on the first output without using the
|
Debian increase ulimit for Asterisk Posted: 06 Nov 2021 10:05 AM PDT I've been facing an issue with Asterisk 13.11.2 on Debian 8 where it's crashing after reaching the limit of open files I have managed to increase the limit from 65536 to 150000 using the I have added the following: The result of When i try check the limit for the Asterisk process I still get the old limit! How to solve this? |
Asterisk v13 on Kali Linux: No RTP engine was found. Do you have one loaded? Posted: 06 Nov 2021 07:05 AM PDT I installed Asterisk and tried to make a call with zoiper but I get an error [call failure 401 forbidden] and Asterisk return this message : I opened the menuselect and selected When I try to reinstall (recompile!) Asterisk, I do This says it's ok! But when I put |
What are the POSIX "mandatory utilities"? Posted: 06 Nov 2021 10:09 AM PDT The POSIX docs here and here refer to "mandatory utilities", but I can't find any listing of such utilities. Is there one somewhere in the POSIX docs? Granted, the links given above point to older version of the docs. Maybe the nomenclature has changed since then (E.g., maybe what used to be called "mandatory utilities" are now called "required utilities", or "obligatory utilities", or "core utilities", etc.) or the mandatory/optional distinction has been dropped altogether? Clarifications welcome. |
apache2 debian mod folder location Posted: 06 Nov 2021 06:13 AM PDT I have apache folder on Debian with configuration (apache2.conf file, not httpd.conf) in /etc/apache2. On another configuration I hasn't this folder, but it was located in /usr/local/apache2/bin. Config file was httpd.conf. I need location of folders bin, and especially apxs. Thank you very much. The point is, that I want install PHP from source, and don't know apxs folder. |
gnome-keyring-daemon components and their use Posted: 06 Nov 2021 08:03 AM PDT When reading However, I couldn't find any detailed explanation on these four options. Could someone detail the use and the field of use of each component of (For instance it is obvious to me the |
How can I increase the acceleration of the mouse wheel via xinput? Posted: 06 Nov 2021 10:24 AM PDT I have a Microsoft wireless USB mouse whose scroll wheel seems to have absolutely no acceleration whatsoever on Linux. On Windows and OSX, the faster I scroll, the faster the page scrolls, and vice versa. I managed to use xinput to change the mouse sensitivity settings following this guide, and it worked great. But when I follow the same steps to change the mouse wheel settings, nothing seems to change. Here is the output of I've modified properties 274 to 278, but no changes resulted. My distribution is Debian Linux, desktop environment is Xfce, and computer is a Lenovo Thinkpad X201, though this problem seems to only be specific to this mouse rather than any of those things. Am I missing something via the xinput method, or should I try something else entirely? edit: I should specify that I am trying to increase the speed of the mouse wheel, preferably via acceleration, as scrolling is painfully slow at the moment. |
How can I wrap text at a certain column size? Posted: 06 Nov 2021 09:47 AM PDT I know that I can use something like What's the best way to force a text file with long lines to be wrapped at a certain width? Bonus points if you can keep it from breaking words. |
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