Questions tagged [linux]

A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

How to run a simple DNS Proxy Server like CloudFlare?

Suppose the following situations: doamin1.com, domain2.com and domain3.com, and server1, server2, server3 and server4. What I want to have is simple servers like CloudFlare, that DNSs are pointed to ...
  • 285
0 votes
1 answer
16 views

How to use ssh-copy-id with vagrant? It keeps asking for .pub

I have been trying to use add ssh key to vagrant VMs through this command. ssh-copy-id -f -i .vagrant/machines/workers/virtualbox/private_key -o PasswordAuthentication=no vagrant@192.168.5.30 The ...
2 votes
1 answer
188 views

Client-side TLS proxy?

Does a client-side proxy exist that would transform my HTTP request into HTTPS before sending it to the server? Meaning that my software application sends an HTTP request to this client-side proxy, ...
-1 votes
0 answers
21 views

"sudo" does not work, ImportError: /lib64/libstdc++.so.6, after update gcc

sudo does not work, ImportError: /lib64/libstdc++.so.6, after update gcc after I did this sudo unlink /usr/lib64/libstdc++.so.6, My sudo is damaged immediately. This is actually a very dangerous step. ...
1 vote
1 answer
38 views

How to send and receive an UNIX datagram with socat?

I need to send a UNIX datagram to an open port in a running application with socat. When the application receives the datagram, it will answer back with another. I need to do this to get the resulting ...
0 votes
0 answers
14 views

On Linux, can you be notified when a network port is used and generate logs?

I'm trying to write a script that detects and logs when a network port is opened/closed. For example, say I open a port and close it using npm's http-server package: $ npx http-server -p 8080 [ctrl^c] ...
0 votes
0 answers
15 views

Conflicts between Windows 11 and Kubuntu 22 with peripheral devices

I have a new external monitor LG. I have installed dual boot (Kubuntu 22.10 and Windows 11) on my laptop (Dell Inspiron 15, 5000 Series). The first time that I connected the monitor I was on Kubuntu ...
0 votes
1 answer
27 views

krb5 kinit error after upgrade to ubuntu 20

I have an Ubuntu 18.04 computer where I connected (as client) to an AFS filesystem via openafs and kinit (krb5), hosted by my company (based on MIT Kerberos). This works well, here the log: KRB5_TRACE=...
0 votes
1 answer
38 views

Streaming local file through http with VLC

original question for reference using vlc -I qt a.mp4 '#http{mux=ffmpeg{mux=mp4},dst=:8080/stream}' --sout-all --sout-keep the video is playing locally fine with both audio and video but I got some ...
0 votes
0 answers
18 views

userinput File Type and Path validator - linux bash script [closed]

I need the user to insert the correct file path. The file type must be .txt The file path must be checked to ensure that the file exists. If the answer is not correct, repeat the question until the ...
0 votes
2 answers
17 views

How to measure the latency to a webserver?

I wish to measure the TCP network latency from my Linux server, to a websocket URL. I am using netperf like this: netperf -H ws.the_websocket_url.com -l 5 -t TCP_STREAM -v 2 -- -o min_latency,...
1 vote
0 answers
78 views

How can I set my system's default encoding to UTF-16?

My daily activity involves usage of English, French, Spanish, and when I save personal copies of web pages or other documents, the full character range of those languages finds its way into filenames ...
0 votes
1 answer
36 views

Pipe output from script as argument into next command

I'm trying to get information from a perl script piped to the next command to use in a docker script (so it needs to execute in a single pipeline). For some reason, the stdout from the command is not ...
  • 103
0 votes
1 answer
31 views

windows and linux, both on different drives. Any performance issues?

I dual-booted windows and Linux, in a different way. The way I did it is by having both operating systems on different hard drives. I am able to switch back and forth as the Linux one is installed on ...
0 votes
1 answer
34 views

Cannot get vlc to stream correctly through command line

I use the following command: vlc -I qt myfile.mp4 #standard{access=http,mux=ts,dst="8080/stream"} :sout-all :sout-keep and my error log is the following: VLC media player 3.0.16 Vetinari (...
1 vote
1 answer
18 views

ssh keys requests password while ssh on remote machine

I have ssh keys setup on my laptop and desktop, so I do not have any issues when I work on either the laptop or the desktop itself. However, when I ssh into the desktop computer and try to git pull or ...
  • 11
0 votes
0 answers
32 views

no supported authentication methods available (server sent publickey) Putty Windows

Good evening everyone , I created an instance on my OvhCloud host, I followed the whole process from key generation to configuration of the instance detailed on this link: https://docs.ovh.com/fr/...
-1 votes
0 answers
23 views

placing the REST server inside the VPN network so that only VPN clients can access it

I learned how to deploy REST server and VPN server separately but I don't have enough knowledge to make them work together. So my questions are the following: how to force the REST server to listen ...
  • 1
0 votes
0 answers
11 views

How to "kick" an ubuntu over telnet box to prevent suspending

I have a Ubuntu box that I'm playing a game over telnet on my box. The problem is my box goes to sleep on while playing. I have to remember to walk in and move the mouse on occasion to keep it awake. ...
  • 347
0 votes
0 answers
16 views

Expanding the boot drive in a Linux virtual machine without unmounting it

I wanted to know if I can expand the boot drive of a Linux machine (/dev/sda1) without unmounting it or without using any external tools (like bootable live CD or gparted disk). I basically have a ...
1 vote
1 answer
33 views

Ip route : access ip on different interface trough Wireguard VPN

I would like to access from my Windows PC a KNX interface that is wired to a Linux PC trought my wireguard VPN but the interface is on a different subnet. The KNX interface use UDP protocol on port ...
  • 21
0 votes
0 answers
15 views

How to make a TCP/UDP connection between my Windows host and Ubuntu Virtual Machine?

I'm currently learning the basics of how the network/internet works, I have an Ubuntu 20.04.5 VM installed on my Windows 10 host, I've successfully established a simple connection within my localhost (...
0 votes
0 answers
21 views

why my other disks not showing when I try to save?

Im using Endeavour OS right now. when I try to save an image from Firefox to my PC it doesn't show the other disks that I have in the section "Other Locations". I've used other distros like ...
1 vote
0 answers
4 views

ping6 echo requests from container get lost partially

Thanks to kasperd's response on "ipv6 ping host got destination host unreachable until run tcpdump" I learned about tcpdump putting the listened on interface into promiscous mode. When ...
  • 11
0 votes
3 answers
28 views

How to copy files from sub directories to one directory

Hi I have a folder full of music files on an ubuntu server. I am trying to copy all said music files *.mp3/flac to one directory without there subfolders. I used this command in rsync, which works to ...
0 votes
1 answer
23 views

Get output logs of previous command in ZSH

I'm working on a helper script that needs to run after every command to analyze its exit status and output logs. I understand that stdout/stderr buffers are not stored on pseudo terminals. I therefore ...
-3 votes
0 answers
14 views

How to know which PipeWire session manager I'm running?

How can I know which PipeWire session manager, e.g. wireplumber or pipewire-media-session, I'm running?
1 vote
1 answer
24 views

Chromebook Linux Hypnos Lullaby V2

Ok so I have linux on my chromebook and I cd title && wine title.exe --disable-frame-limit but I do this with Hypnos Lullaby but even though it works with every mod I've tried so far it just ...
1 vote
0 answers
15 views

How to deprioritize a font on Linux?

I have been studying Akkadian and therefore need to write cuneiform text on Linux. I have installed a cuneiform font for this purpose. However, it seems that there is another font called "...
  • 111
1 vote
0 answers
28 views

Poor network performance over internet, but flawless iperf3 results

I'm using a linux system as a router/firewall, with the following kernel: Linux gentoo 6.0.8-gentoo-stripped-wireless #1 SMP PREEMPT_DYNAMIC Tue Nov 15 08:54:22 CST 2022 x86_64 AMD FX(tm)-8150 Eight-...
  • 186
0 votes
0 answers
12 views

GParted dual boot expanding encrypted fedora disk

gparted live disks /dev/sda3 is NTFS /dev/sda6 is LUKS encrypted fedora btrfs I want to move unallocated space from /dev/sda3 to /dev/sda6 /dev/sda3 (windows disk) has been resized and I want to use ...
0 votes
0 answers
16 views

lsilogic did the trick for virtualbox to get rid of hardware detection issue how to do it for real system?

I wanted to try an old linux distribution , so i installed it on virtualbox got an error no device detected while partitioning my disk foun a solution to change controller type to lsilogic . Now I ...
0 votes
1 answer
32 views

Unable to ping VirtualBox host only interface

On my macOS Monterrey machine I am running Ubuntu as guest on VirtualBox 6.1.30 r148432. In VirtualBox I've enabled the host-only adapter, and I see interface vboxnet0 on macOS: ifconfig vboxnet0 ...
-1 votes
0 answers
13 views

Booting linux after inserting my internal HDD into a usb hard drive enclosure fails, fallback to grub rescue menu

I installed Arch on my internal HDD while it was inside my laptop. Then I bought an SSD, so I took out the HDD as I planned to do everything on my SSD from then on. I still wanted to boot into my HDD ...
1 vote
0 answers
17 views

Can't connect to machine via RDP running Cisco AnyConnect VPN (linux) on destination machine

Hello I have a personal machine a Mac where is my principal work station and from here I connect to a Linux machine, the Linux machine needs to connect to Cisco AnyConnect, I installed linux64-4.10....
  • 11
0 votes
0 answers
8 views

node.js app symlink relative path resolution

I have a node.js application that lays under /opt/myapp. There is a folder called "plugins" (/opt/myapp/plugins). In the plugins folder (oh wonder) are stored plugins that are loaded on ...
  • 235
0 votes
0 answers
4 views

Why is SLURM reporting "NO NETWORK ACCESS" for two new hosts when they are, in fact, up and reachable?

I'm new to the operations side of HPC, after being asked to take over administration of a small slurm-based cluster. We recently added two new hosts to our cluster, but slurm has repeatedly drained ...
0 votes
0 answers
24 views

Processes on a CPU

How do I monitor/list the processes currently running on a specific CPU core. Basically I'm looking for an output similar to 'top' or 'htop' command but filtered for a specific CPU core id. Or the ...
  • 1
0 votes
0 answers
16 views

Adding user and new machine to Samba server running Rocky Linux

I'm trying to add a brand new machine onto our network and I'm currently struggling at the moment. A little preface...my network administrator retired a few months ago and my company has no intention ...
  • 11
0 votes
0 answers
9 views

mdadm.conf not applied to RAID 1 volume Ubuntu

I run a server under Ubuntu 22.04 LTS, on which I have a RAID 1 volume which I re-installed from a previous server installation (on Ubuntu 20.04). Here is the interesting part of my mdadm.conf ARRAY ...
  • 113
0 votes
2 answers
47 views

Remove the lines before and after the exact match - linux

I have a file like this in /etc/test/host.conf : # this is a test host = example.com private = 192.168.1.1 # end of test # this is a test host = example.com private = 192.168.1.2 # end of test I ...
0 votes
0 answers
16 views

discard buffered output when displaying binary file by mistake

It happens that I send by mistake the content of binary files to the terminal. Eg: I run a cat file or curl http://some.url/ when I was expecting the result to be plain text. In such cases I need to ...
  • 343
0 votes
0 answers
47 views

VMware Workstation - Xrandr: Can't open display

I'm stuck trying to make Sway work on a fresh installation of arch linux, running on VMware Workstation 16. It looks like there is no Virtual-1 display that I specified in advance for Sway's config. ...
0 votes
0 answers
15 views

How to modify the IP packet destnation IP address in Android [migrated]

Here, I can type this in Termux su iptables -I OUTPUT -d 1.2.3.4 -j REJECT iptables-save to reject the packet so as to forbid the Application to visit a certain host. It works well. However, now I ...
  • 1
0 votes
0 answers
22 views

See executing script's filename path in htop - Ubuntu 18.04

I want to see the current processes that are running now. Let's say I run www.example.com/script.php Then I want in www.example.com/seescripts.php to see processes running: /path/to/process/script....
  • 1
3 votes
3 answers
583 views

IPTables how to nat 10.8.a.b to 10.0.a.b?

The problem -- Translate 10.8.a.b to 10.0.a.b ? I have a VPN setup to a bastion host. I'm attempting to map 10.8.0.0/17 into 10.0.0.0/17 so that the IP address 10.8.1.1 gets mapped to 10.0.1.1 in my ...
  • 145
-1 votes
0 answers
12 views

Android camera access [migrated]

I mean if when one app is using camera in background , is using another camera app at the same time possible?? Some people say it depends on how the applications is coded. Also the app “sound ...
  • 1
0 votes
0 answers
12 views

Rooting android phone [migrated]

In rooted android , apps can have root permission so they can do everything. I want to know if an app perform factory reset of command rm-rf, Will it reset everything including system partition? Cuz ...
  • 1
0 votes
0 answers
9 views

Remapping key which produces two keycodes

I have an HP EliteBook 840 G6 running Debian 11. This laptop does not have an 'insert' key, so I would like to remap the 'hang up' key. When I run xev, this key produces two keycodes, 37 (Control_L) ...
  • 121
0 votes
1 answer
28 views

How do I add a non-Steam game from an SD Card in SteamOS?

I have an .exe file saved to my Micro SD card that I want to play in in SteamOS. Normally in desktop mode I can access my SD Card under "removable devices", but when I use Steam's "Add ...
  • 12.8k