Recent Questions - Unix & Linux Stack Exchange |
- How to attach to a tmux session on a remote machine that has been started locally on that machine?
- nftables: how to use a unique map (or set) for both dnat & forward rule?
- Loop a part of code for multiple variables
- trying to ssh: Connection Refused to a server from a local ip
- Pattern matching in if block in Alpine's `sh`
- Ubuntu cannot boot because no valid partition table. How to fix it?
- Extract ssh key algorithm
- Debian : How to add graphics card's firmware to kernel?
- Firewalld forwarded ports are reffusing connection
- How to show the filesystem of a logical volume (LVM)? (tldr:I/O error)
- Why don't browsers respect LC_TIME?
- Why does using -F flag work while explicitly changing field separator by using FS variable not work when field seperator to be changed is '\t' in awk?
- comparing and fetching words in two columns of different files
- Terminal title not changed after ssh [closed]
- How to display who logged in or logged out in last x seconds or minutes?
- How to restart Plasma 5 from terminal using nohup?
- I don't know how to download and install Dissenter Browser on Ubuntu 20.04
- How can I transliterate some characters 1-to-1, leave some unchanged, and replace others with the same target character?
- Is it possible to combine two pointer xinput devices into a single device?
- How to install docker-engine in macOS without docker desktop?
- libvirtd: No more available PCI slots
- Convert this particular .bash_profile to .zprofile
- Using filter condition in python -mjson.tool command
- Using sed to replace numbers with '@' inserts '@' between every character
- how to send input from one script to another using bash script
- Why did installing vim-nox give python2 support instead of python3 support?
- Get path of here document as a file
- dota 2 graphics problem in ubuntu 14.04
- How to know if /dev/sdX is a connected USB or HDD?
- Moving linux install to a new computer
How to attach to a tmux session on a remote machine that has been started locally on that machine? Posted: 26 Sep 2021 11:01 AM PDT There are two physical machines in front of me:
Is there are a way to attach to the already existing tmux sessions when connecting from a remote machine? |
nftables: how to use a unique map (or set) for both dnat & forward rule? Posted: 26 Sep 2021 10:43 AM PDT I am setting up a firewall + NAT using I want to use a common data structure (set or map) to configure both DNAT and filtering rules (forward). When I try ( Here is the example I use: It would work if Note: my original map is more like this (I simplified for the example, but would love to make it work as is): |
Loop a part of code for multiple variables Posted: 26 Sep 2021 10:20 AM PDT I am looking for an approach to build a script. I have 3 files with the below pattern: Each of these files has an associated sub_system. e.g cust has cus_edw, credit has cred_edw and account has acc_edw There is a common load script "RunFeed.sh <<sub_system>>" which takes sub_system ( cus_edw,cred_edw,acc_edw) and runs if the file is available at NAS location and has count> 0. What's the best approach I can use for this? In the above approach (which is raw and not run so far), how can i run the loop for all the variables above Can anyone please guide me, there is any better approach? I am relatively new to unix, still learning. |
trying to ssh: Connection Refused to a server from a local ip Posted: 26 Sep 2021 10:15 AM PDT I tried to ssh to a remote cluster from a remote machine, and got an error "ssh: connect to host XXX port 22: Connection refused". I tried to do the same thing, specifying port 22, and doing so from my local machine, with the same user. This works! Since I used the same user and the same port, I can tell that my problem has to do with the IP of the remote machine or something like that, which is weird, since the cluster and machine are a part of the University's Network! Any guidance with solving this problem would be much appreciated :) |
Pattern matching in if block in Alpine's `sh` Posted: 26 Sep 2021 10:53 AM PDT How do i replicate the following bash expression: in Alpine's Typing it in as-is throws an error: |
Ubuntu cannot boot because no valid partition table. How to fix it? Posted: 26 Sep 2021 09:39 AM PDT I am unable to boot. I have only Ubuntu installed on a computer, and it was working fine. But suddenly I am unable to boot. It says "no valid partition table". I have attached the output I received when I issue the command "fdisk -l". I am not very familiar with Ubuntu. Therefore any help is appreciated. |
Posted: 26 Sep 2021 09:58 AM PDT Is there a command to extract information about the algorithm that is used (RSA, ECDSA, 3DES ...) for SSH keys, regardless of the format (pem, der etc)? I looked into openssl, but I could not find anything about this. |
Debian : How to add graphics card's firmware to kernel? Posted: 26 Sep 2021 11:01 AM PDT I am using Debian 11(bullseye) Live from USB with "persistence" option. I had only problem remaining : loading my graphic card(Radeon HD 4350) correclty to kernel(5.10.0-8-amd64). I installed firmware-amd-graphics package and got the necessary firmware file under /usr/lib/firmware/radeon/ folder as RV710_uvd.bin. I used lspci | grep -i vga and get : File is there but I could not load it since xrandr gives : So I could not achieve to load firmware to kernel. I also tried to update the initramfs(sudo update-initramfs -u) to load necessary firmware after installing firmware-amd-graphics package but it gives : So I want to learn how to : A) make live-system media(medium) as writable ? I had a USB with partitioning as : sda1 - ext4 - for boot sda2 - ext2 - includes files of live system sda3 - ext4 - persistence storage partition B) update initramfs successfully to load available graphics card firmware file(/usr/lib/firmware/radeon/RV710_uvd.bin)to kernel ? I am a beginner in Linux. Please, any command line help is appreciated. |
Firewalld forwarded ports are reffusing connection Posted: 26 Sep 2021 07:57 AM PDT I have a problem with Firewalld port forwarding. The issue is that forwarded ports are refusing connections or are not responding (TCP flag RSET? on hypervisor where port forwarding is set up) OS: Oracle Linux 8.4, kernel 4.18 The firewalld configuration: Forwarded ports are open on target VM and its IPv4 address is correct (192.168.1.3): Port 80 and 443 are load balanced using Nginx (as HTTP Load Balancer) and forwarding works fine. IPv4 and IPv6 port forwarding are enabled: What can be the issue here? |
How to show the filesystem of a logical volume (LVM)? (tldr:I/O error) Posted: 26 Sep 2021 09:37 AM PDT
I'd like to know the Trying to mount one: |
Why don't browsers respect LC_TIME? Posted: 26 Sep 2021 09:22 AM PDT I'm using en_US for system language, but pl_PL for date format. It works OK in the entire system, and running But in any browser (Chrome, Chromium, Firefox) I have US format! For example in Date input, Date in JS etc... locale: To reproduce this use: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tolocalestring, or create a file called And then open this file using any value of Then, look at the javascript console (usually available by pressing F12) and you will see the date format ignores the LC setting. I also have en for language and pl for dates on a Windows machine and it works fine. Why can't Linux do this? I was dealing with this for year now. All I can find in google is people with similar issue but without solution or problems with date format in system. System: Linux Mint 20 Xfce |
Posted: 26 Sep 2021 08:24 AM PDT While experimenting with the Unix tool awk, I came across this subtlety which I couldn't explain. Suppose this is the file I am using as The columns are separated by a Tab. Now suppose I want to extract the first field in each row, so here are the two way I tried to approach this: Test 1: The output, as expected is: Now I tried another supposedly equivalent way to solve this problem: Test 2: The output which I got in this case was Only the first letters of the rows are being printed. As far as I know, both the methods should be equivalent but they are producing different outputs. I tried this out on different What is the explanation for this? |
comparing and fetching words in two columns of different files Posted: 26 Sep 2021 08:11 AM PDT I want to compare two different columns of different files and fetch the common entries among them: file1 file2 I want to compare column 1 of file1 to column 2 of file2. If there are any common entries, I want to print the match lines from file2: Expected result: I have tried below commands to fetch the result: or but didn't get the expected results. |
Terminal title not changed after ssh [closed] Posted: 26 Sep 2021 07:27 AM PDT I use debian in wsl2 and windows terminal, and I use openssh in debian as my primary ssh client, when I ssh from debian to remote machine, the windows terminal title changes acordingly, but now the terminal title become fixed. I tried to use openssh client from powershell in windows terminal, the termianl title can still changes acordingly. I'd like to know why my terminal title didnot change when I ssh from wsl2 as before I don't think the PS1 of the target machine matters, my PS1 setting is the same as when windows terminal can change title perfectly, and when I ssh from powershell (use windows termianl or stock powershell terminal) to the same machine, the title will change acording to the name of the machine |
How to display who logged in or logged out in last x seconds or minutes? Posted: 26 Sep 2021 10:17 AM PDT I am trying to achieve this on bash on Ubuntu 20.04. Any available command? |
How to restart Plasma 5 from terminal using nohup? Posted: 26 Sep 2021 10:30 AM PDT There are a lot of questions and answers about restarting Plasma 5. I realize that using KRunner is the best option, but today I could not access KRunner and had to use a terminal. After reading Difference between nohup, disown and &, I felt like these two topics (restarting Plasma 5 and nohub/disown/background jobs) need to be combined into one answer specific to restarting KDE Plasma 5 the right way. Almost every answer I have seen about restarting Plasma 5 ignores the issue of By following different answers about restarting Plasma 5, I have, at various times, found myself unable to close a terminal window without killing my newly started Plasma 5 session. The following script is from a few answers, mostly https://unix.stackexchange.com/a/499373, and is modified to include My specific question is about the last line: Is that correct in this context? |
I don't know how to download and install Dissenter Browser on Ubuntu 20.04 Posted: 26 Sep 2021 07:32 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 Dissenter. I am trying to download and install Dissenter Browser on my computer but I don't know how. I've looked into it, and I found that the version I've tried only works on amd64, but what I have is arm64. Can anyone help? |
Posted: 26 Sep 2021 09:09 AM PDT I have a file called I'd like the characters replaced as follows: I have the fixed characters covered with: Or: But how could I enforce the last two rules I mentioned? |
Is it possible to combine two pointer xinput devices into a single device? Posted: 26 Sep 2021 10:20 AM PDT I'm using VirtualBox and it comes with a "Mouse Integration" feature, which creates a 2nd pointer input called This thread has a lot more detail about this "multiple cursor inputs in VirtualBox" issue: Scrolling impossible while moving mouse - Fedora 28 VM guest on Win10 According to that thread, Is it possible combine these two input devices into one "virtual" input device, so that desktop programs can use that device as the active input device? Mouse input events can be checked with: On my machine it clearly shows mouse position and scroll events being sent by different devices: |
How to install docker-engine in macOS without docker desktop? Posted: 26 Sep 2021 09:08 AM PDT Recently Docker announced that Docker Desktop would cease to be free for some kinds of users. See announcement in blog post. I don't need any of the features that are exclusive to Docker Desktop®. I have used docker in a laptop with debian on it and that version is good enough for me. Is there a way to install the linux version of docker in macOS? I need both the engine and the cli tool, nothing more. I run build commands, push, tag, run, docker-compose, etc. |
libvirtd: No more available PCI slots Posted: 26 Sep 2021 08:03 AM PDT Ahoy. Today I wanted to set up a new virtual machine to manage my 8 hard disk devices. Currently I use Fedora 31 as host, and Debian 9 as guest system. I want to pass through the block devices to the virtual machine, but unfortunately it doesn't work, and it's quite hard to find proper information without being a RedHat subscriber. So what did I do? I try to attach the hard disk using, the following command. Unfortunately I receive the following error. So what did I try? I did some research, and found something what has worked on SUSE, adding Does someone knows how to deal with it, and how to add the hard disks to my guest VM? |
Convert this particular .bash_profile to .zprofile Posted: 26 Sep 2021 09:20 AM PDT I have this .bash_profile: and since MacOS updated to Catalina (https://support.apple.com/en-us/HT208050) zsh become the default terminal. How can I convert this to a zsh .zprofile? |
Using filter condition in python -mjson.tool command Posted: 26 Sep 2021 09:03 AM PDT Can I use a filter condition in python -mjson.tool command to select objects which has specific attributes? For example, I have a sample.json file with for objects out of which two has an attribute "test": "pi". And I need to fetch only those two objects. |
Using sed to replace numbers with '@' inserts '@' between every character Posted: 26 Sep 2021 09:15 AM PDT I want to replaced all number with '@' symbol. I am using the below sed command , but not getting the desired result. command - Result - |
how to send input from one script to another using bash script Posted: 26 Sep 2021 10:00 AM PDT I want to send input from one script to another through shell scripts when I stop this script it display the message do u want to continue I am stopping the script using another script.I need to send yes to this script when stopping the first.sh it ask for user input. do you want to continue? I should send yes.... |
Why did installing vim-nox give python2 support instead of python3 support? Posted: 26 Sep 2021 07:26 AM PDT I try to install vim with python3 support. After a quick research, I learnt that vim-nox installs by default the python3 support. Except that, in my case, I have python2 support. The result of apt-get install vim-nox The result of vim --version | grep python And the result of uname -a |
Get path of here document as a file Posted: 26 Sep 2021 10:01 AM PDT I have a program that takes input from an I've read that here-docs are implemented as files in Is there a way to inline my XML file within my shell script, and get a path for it that this xml parser could use? |
dota 2 graphics problem in ubuntu 14.04 Posted: 26 Sep 2021 08:06 AM PDT i installed ubuntu 14.04 in my laptop. then i installed steam and finally dota 2. but the graphics are very bad. i have amd raedon 7400 in my laptop. it seems like dota 2 is not running through my graphic card. i dont even know whether after installing ubuntu i have my graphic card driver installed or not. do i have to manually install the graphic card driver or it is already installed. and if so, how to enable it so that dota 2 runs with some good textures. |
How to know if /dev/sdX is a connected USB or HDD? Posted: 26 Sep 2021 10:42 AM PDT How can I know if OK, For local HDD: For USB key: |
Moving linux install to a new computer Posted: 26 Sep 2021 08:45 AM PDT I know that it can, in some circumstances, be difficult to move a Windows installation from one computer to another (physically move the hard drive), but how does that work on linux? Aren't most of the driver modules loaded at bootup? So theoretically would it be that much of a hassle? Obviously xorg configs would change and proprietary ATI drivers and such would have to be recompiled (maybe?). Is there more to it than I'm thinking of? Assume the 2 computers are from the same era, ie both i7s but slightly different hardware. Update: |
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