Recent Questions - Unix & Linux Stack Exchange |
- Minicom: send string when newline is detected
- xinput custom.conf file only applies when terminal is opened
- Redirecting STDOUT to STDERR 1>&2 with sh [duplicate]
- Couldn't download an URL using curl or wget but it works in browser
- VirtualBox won't open in Linux Mint
- No loop device in container even with loop module loaded
- repair arch linux console
- How to use pipe with "sudo -ui"?
- automount SSHFS on Ubuntu 20.04
- /etc/resolv.conf gets modified regularly
- SSH connect to a docker container directly, without ssh the host first
- Is "running a folder" possible in Linux?
- Cannot perform Symbolic Link with Splunk and Linux
- Manually telling EXT4 about bad sectors?
- Making Xinput commands permanent "For complete noobs"
- Change text using bash
- How to create an ephemeral user-level systemd timer on the commandline without unit/timer files?
- How to use clipboard-cli on Wayland?
- Bash completion appends a space after a word - how can I stop this?
- How to follow journalctl since boot?
- Slow download speed with rtl8821ce on Pop!_OS 18.04
- Error in scp connection in Linux
- Remote SSH command fails only in shell script with error: "No such file or directory"
- Automating dirb for scanning several URLs
- How can I restart Firefox from the command-line?
- Any non-whitespace regular expression
- How to install AMD Catalyst on Fedora 22 with GNOME?
- how to execute commands on remote server as different user
- Can w3m automatically search the entered text?
- Move every file that is not a directory
Minicom: send string when newline is detected Posted: 23 May 2022 02:20 PM PDT I have 3 different USB-to-UART FTDI cables and use minicom to debug some device. My problem is only one of these cables can buffer characters until I send a newline. Eg when I type the string "help", the device on the other side will not output the help string until I press Enter. The two other cables don't seem to wait for a newline when sending, typing the same string "help", I am seeing no output and newline will just add new lines to whatever I have typed. I have enabled the following settings each time I start the minicom session:
The cables I am using are:
Initially, I thought this was an issue with the cable but because another TTL-232R-3V3 has not worked, I think this may be a minicom configuration. But I can't find any configuration that would control this behaviour for my minicom session. |
xinput custom.conf file only applies when terminal is opened Posted: 23 May 2022 01:57 PM PDT Backstory: I need to rotate my touch input at boot so that I can use my touch display. I am successful in rotating the input with the following entered into the terminal: After having help elsewhere and a bit of probing, I needed to create a custom.conf file in /usr/share/X11/xorg.conf.d In that file I have: Now here's the tricky bit that I need help with: The touch input STILL does not automatically rotate with this in that file, until the moment that I open the terminal. This appears to be some kind of bug. Why does the touch input not change it's matrix until I open the terminal? Is there a way around this? |
Redirecting STDOUT to STDERR 1>&2 with sh [duplicate] Posted: 23 May 2022 01:48 PM PDT I am having a hard time understanding the difference between the order of 1>&2 and >. For example, I have However, if I reverse the order as the output is different. Why is this? and if the STDERR and STDERR are merged by 2>&1, will the file descriptor 2 be empty? and can anyone point to a reference about >& and <& ? Thank you. |
Couldn't download an URL using curl or wget but it works in browser Posted: 23 May 2022 01:28 PM PDT I'm trying to download the below URL via terminal: https://wallpaperaccess.com/download/8k-graphics-4312822 I tried the below methods: The downloaded file did not open and looking at the size(4KB) that wasn't surprising. 403 Forbidden Copied from Chrome. Got the same 4KB file but did not open as expected. But the same URL prompts me for a download in the browser or all download managers I've tested. Usually, any URL that didn't work with cURL would work after copying from chrome with headers for me. But this time, I can't figure out not why it isn't working. What am I doing wrong here? |
VirtualBox won't open in Linux Mint Posted: 23 May 2022 01:27 PM PDT I installed VirtualBox from a deb file. The link to that file is below. I used the following command to install the deb file: After the installation was complete, I moved VirtualBox to my desktop and double clicked on it, but nothing happened. I waited a minute or two then double clicked on it again. Still, nothing happened. Did I install the package incorrectly, or is my particular version of VirtualBox not supported on my current OS? My Linux Mint details are below: |
No loop device in container even with loop module loaded Posted: 23 May 2022 01:13 PM PDT I am trying to make it possible to make and mount loop devices from within a container. This happens to work on my own development system, but is failing to work on our build server where it must be done for an automated build. I am ensuring that I'm starting the container as This should provide me the next unused loop device and have associated it to /dev/loopn. However, instead I'm presented with the following (and showing that the loop module is loaded and On my own dev box, this works. I loaded |
Posted: 23 May 2022 02:50 PM PDT I was configuring my new arch linux that I just installed. When I was installing How to fix my console? Do I need to move the configuration of some files or something like that? |
How to use pipe with "sudo -ui"? Posted: 23 May 2022 01:31 PM PDT I have this command How can I do the same thing but with "sudo -iu user1" before the 2nd |
automount SSHFS on Ubuntu 20.04 Posted: 23 May 2022 03:09 PM PDT looks like all the "automount SSHFS" are outdated and not working anymore on today desktops. If I have a microSD card, that is shared via SFTP on an rpi, how can I auto-mount it on eg.: Ubuntu 20.04 desktops? Tried with ex.: but it doesn't work.. what only works so far is: but this requires me to do a "mount -a".. which is not very automatic :) The question: as a normal user, how can I mount an SSHFS share only on demand? So if I am in that directory (in eg.: GNOME os in the terminal, ls or cd or "cp from tothatshare") Havin SSH key login with no password. Many Thanks. |
/etc/resolv.conf gets modified regularly Posted: 23 May 2022 12:39 PM PDT I'm running Ubuntu 20.04 on my home server (including Pi-hole with DHCP). Frequently, including but not just after reboots, DNS resolution on the system breaks entirely because The The file says As this server handles DHCP for my network, I've disabled dhcp4 and used this to force my network settings. (All of the other values in here work perfectly, constantly.) When I run As you can see I've even tried adding the LAN IP of the server to the network config, but to no luck. I've also tried different Is there a way I can fix this? It's breaking a few of the services I run on here! |
SSH connect to a docker container directly, without ssh the host first Posted: 23 May 2022 12:20 PM PDT On my local computer, I connect with ssh to a distant VPS: In this VPS, a docker container is running (for example What is the standard way to connect directly from my local computer to this container via SSH and directly have a bash prompt? Is it possible to do it in one step instead of: |
Is "running a folder" possible in Linux? Posted: 23 May 2022 01:39 PM PDT Is there a philosophy behind running a folder as an executable in linux? Permission denied implies that it may be allowed. If it's not, then why is it Or is it just a weird artifact of the API when directories are involved in this way? P.S. I am aware that x flag is adopted in the directory context to allow/deny cd-ing into them and long-listing (ls -l) them, this is not what this question is about. P.S.S. In Python, a directory can be treated as a python "executable" if it has a certain file structure inside. (I.e. It's possible to pass a directory instead of a python file to be run by the python interpreter). |
Cannot perform Symbolic Link with Splunk and Linux Posted: 23 May 2022 03:26 PM PDT |
Manually telling EXT4 about bad sectors? Posted: 23 May 2022 01:23 PM PDT The drive is currently in NTFS. After running |
Making Xinput commands permanent "For complete noobs" Posted: 23 May 2022 01:06 PM PDT As the title suggests, I need to rotate the touch input on a DSI display. I am successful in rotating the input with this entered into the terminal. I need this to happen on boot.
However I do not know where .xsessionrc OR .xinputrc are located, and even if I did, I do not know how to add a command to those files to make them work. Please advise for the total noobs please.
|
Posted: 23 May 2022 02:51 PM PDT I have a program called I want to change "gamemode is active" to "<an icon that doesn't show on this website>" and change "gamemode is inactive" to some other icon. |
How to create an ephemeral user-level systemd timer on the commandline without unit/timer files? Posted: 23 May 2022 12:31 PM PDT Suppose I want to run the command I know how to create a corresponding unit file and a timer file, then I want to simply do the above in commandline without needing to create 2 files. Something like: |
How to use clipboard-cli on Wayland? Posted: 23 May 2022 04:05 PM PDT I am using this module more info here-> https://gtts.readthedocs.io/en/latest/cli.html Basic syntax is I want to write a bash script where the highlighted text (from firefox for example) is sent as a variable to the text portion (in quotes) in the above syntax. I'm on Wayland so I can't use Is there an easier way to achieve this? |
Bash completion appends a space after a word - how can I stop this? Posted: 23 May 2022 03:37 PM PDT I'm writing a tab completion script for Bash, using Python to deliver the results of the completion. I'm using a dummy script to show the problem I'm having, the content is not important. I've got a Bash script called I've also got a script which creates the tab-completion for And the (simple) content of The Python script just prints the string to STDOUT, and this is then captured by the Bash completion function, and used to generate possible matches for tab completion. Now, what I want to do with this script is, when I type I've tried changing the contents of the Python to the following, and all with the same result: Even: And all of my attempts are fruitless, as they achieve the same result. It doesn't matter whether there are zero, one or twenty spaces on the string: if the Python outputs the string Is there an obvious solution here that I've missed? For either the Bash or the Python? |
How to follow journalctl since boot? Posted: 23 May 2022 03:35 PM PDT
Version info: |
Slow download speed with rtl8821ce on Pop!_OS 18.04 Posted: 23 May 2022 01:07 PM PDT I recently bought a HP 15-da0206ng laptop and since my goal was to finally switch from Windows to Linux I installed the Linux distribution Pop!_OS 18.04 LTS which is built on Ubuntu 18.04 LTS. After I installed the OS, I encountered a problem: No WIFI Adapter was detected. The WIFI Adapter in the HP 15-da0206ng is a Realtek RTL8821CE 802.11b/g/n/ac, according to HP. I quickly found a solution for this: I disabled secure boot in BIOS, connected my Laptop via cable updated and upgraded and installed the driver and my WIFI Adapter was detected and worked. However, my download speed via wifi is very slow. The terminal and the browsers (Firefox and Chrome) download everything with a speed of around 85 kb/s. According to this site (it is a German site): my download speed is at 0.6-0.7 mbit/s. My upload speed is at 5 mbit/s which I consider normal. I did the same speed check with my Samsung phone and it reaches a download speed of 102 mbit/s and an upload speed of 5 mbit/s. Something is clearly wrong with the download speed of my Notebook. After researching this problem I found this thread: https://askubuntu.com/questions/1148030/slow-wifi-connection-ubuntu-18-04/1148065?r=SearchResults#1148065 but switching antennas resulted in no difference. Selecting a specific antenna explicitly seems to be a working solution if your wifi signal is not strong, as it is explained here: https://askubuntu.com/questions/1058379/wifi-signal-is-weak-in-ubuntu-18-04-with-rtl8723be In my case I would say that the signal strength is not a problem. As you can see in the results of running I also turned of power saving for the wifi adapter as described at the bottom of this readme: https://github.com/tomaspinho/rtl8821ce/blob/master/README.md but it did not make any difference as well. I upgraded the kernel from 4.18 to 4.19 but there was no change. I tried to install Ubuntu (instead of Pop!_OS) 18.04 but here I did not manage to install the rtl8821ce drivers at all. Currently I am running Pop!_OS 19.04 where I can install the drivers again but the download speed is still painful slow. Furthermore I went through this troubleshooting: https://support.system76.com/articles/wireless/ which means I tried to change the router configuration, I disabled IPv6, I enabled Antenna Aggregation, I tried to disable the N mode in /etc/modprobe.d/iwlwifi.conf and I disabled bluetooth coexistence. I am not quite sure what to try anymore and my next steps will be to buy a usb wifi adapter or, the worst case, install Windows again. It seems that most questions related to the rtl8821ce are about getting it not working at all. In my case it works but very slowly. I am not sure if I am missing something obvious and that is why I decided to post this problem here. Here is some additional hardware information: Thanks in advance. |
Error in scp connection in Linux Posted: 23 May 2022 04:02 PM PDT I have got an below error while executing the below command while placing a file in gatekeeper example server through a script. The error is: But, when I ran this command manually and able to place file in the server. |
Remote SSH command fails only in shell script with error: "No such file or directory" Posted: 23 May 2022 03:38 PM PDT I am trying to run a script on a remote system using ssh, when i run the command on the terminal it executes fine but when i embed the command in a shell script it returns an error. Command 1: for the above command i tried the following suggestions from stack exchange: Command 2: Note: All these commands work on the terminal. Edit: If I run the command on the terminal it executes fine and displays the output. Now if the same command is added to a script (.sh), I see the following error: |
Automating dirb for scanning several URLs Posted: 23 May 2022 03:00 PM PDT I have a bit of a problem making this script work and was wondering if anyone knew what the problem is. It is supposed to take a list of urls as input, scan them for sub directories and then output it to different files. This script does correctly remove slashes for the new file but I get the error (translated from Swedish) that ": no such file or directory". Probably from the > $fn part. And trying to use dirb's own output I instead get an error like And some clarification regarding the one liners: The supposed output file names look fine to me but aren't working. Does anyone know why that is? |
How can I restart Firefox from the command-line? Posted: 23 May 2022 02:52 PM PDT How can I restart Firefox from the command-line and restore the previous state completely (or as much as possible) after restart? Sure, I can do something like |
Any non-whitespace regular expression Posted: 23 May 2022 04:34 PM PDT Im trying to match a string agains a regular expression inside an if statement on bash. Code below: Match should be a string that starts with 'b' followed by one or more non-whitespace character and ending on a letter a-z. I can match the start and end of the string but the \S is not working to match the non-whitespace characters. Thanks in advance for the help. |
How to install AMD Catalyst on Fedora 22 with GNOME? Posted: 23 May 2022 02:02 PM PDT today I installed AMD Catalyst on Fedora 22. After rebooting my computer, my screen was black. I have read several guidebooks, but I have not found a way to run "Catalyst" on GNOME on laptops. If someone has managed to run GNOME on Fedora 22 and has a laptop, let me know please. |
how to execute commands on remote server as different user Posted: 23 May 2022 12:17 PM PDT I am trying to connect to server B from server A using ssh and executing commands using some other user. However, when I try searching for a pattern in log file it says "cannot open log file" below is the sample code once I run the script, it says, I can't stay logged in on server B and run multiple commands. |
Can w3m automatically search the entered text? Posted: 23 May 2022 01:22 PM PDT Is there a way to configure w3m so that with 'U', i.e. after entering text into the URL field, the browser will automatically prepend "google.com/search?q=" to it? Or can some other command be used or defined to obtain the same effect? I tried calling a shell script via "#" but it just passes output into buffer. |
Move every file that is not a directory Posted: 23 May 2022 12:12 PM PDT I have a directory that I am trying to clean out that contains both files and subdirectories. What I am trying to do is simple: move all the files into another directory, but leave all the sub-directories as they are. I am thinking something like: It seems like there should be a simple way to do this with wildcards Anyone have ideas? |
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