Questions tagged as ['linux']

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.
Score: 0
tymur999 avatar
Can Serial I/O from a server be shared on an ethernet network switch?
ca flag

I have a network switch, a Linux server, and my computer. The computer and server are both connected to the switch. If I connect the serial port of the server to the switch through a Serial to Ethernet adapter, will my computer be able to access that Serial Console, or will I have to connect the server directly to the computer?

NOTE: the switch is a smart managed Ethernet switch, not a Serial COM ...

Score: 0
David Cowden avatar
How to minimize filesystem overhead
br flag

I have an application that uses a lot of space as essentially cache data. The more cache available the better the application performs. We're talking hundreds to thousands of TB. The application can regenerate the data on-the-fly if blocks go bad, so my primary goal is to maximize the size available on my filesystem for cache data, and intensely minimize the filesystem overhead.

I'm willing to sa ...

Score: 32
tymur999 avatar
Does a server need a GPU?
ca flag

Do I need a GPU on a text and console only server? No GPU as in no iGPU and dGPU. Im going to be using SSH, so I dont need a display out.

Im using Linux, but the OS shouldn't affect the results

Score: 0
Soheil avatar
apache doesn't show files which have different owner
fr flag

I have created a domain in WHM for user alex. now if I put any file in public_html folder of this domain which has the owner defined as root, apache does not allow visiting of the file in browser, it says not found. but if I change the owner of file to alex, everything works fine!

now I want apache to allow visiting every file in public_html, even if the owner is root and not alex. how to do that?

 ...
Score: 1
Philip Szalla avatar
ZFS performance: Extreme low write speed
pk flag

I am running a small home server. The specs are:

  • CPU: AMD Ryzen 5 2600
  • RAM: 32 GB ECC
  • System drive: 128GB NVMe SSD
  • Data drives: 3x 4 TB Seagate Barracuda HDD

The server runs some applications like Nextcloud or Gitea and I want to run 1-2 VMs on it. So there are some web applications, databases and VMs.

The applications and qcow2 images are stored on a raidz1 pool:

$ sudo zpool status
  pool: tank
 ...
Score: 0
ashanrupasinghe avatar
301 redirect for some pages and all other pages
gb flag

I have two websites. Let's say siteA.com and siteB.com. Now I want to add 301 redirect to siteB.com. Some of pages of siteB.com need to be redirected to some specific pages on siteA.com All other pages of siteB.com neet to redirect to the home page of siteA.com including siteB's home page. My final requirement is no one can access siteB after adding the redirection. These are two wordpress sites. How  ...

Score: 0
Disable Screen Saver for PyVirtualDisplay with xephyr
gb flag

How do I disable the screen saver for PyVirtualDisplay and xephyr?

The closest I've found is https://unix.stackexchange.com/questions/608187/xephyr-server-does-not-have-extension-for-dpms-option which says call “xset s off” from the command line. I'm running Python within an IDE so not sure how to call xset with my Python program.

I'm using CentOS 7, Python 3.9.7, and latest version of rest o ...

Score: 0
Ror avatar
Mariadb xtrabackup_binlog_info location
om flag
Ror

I want to set up replication on my existing Mariadb 10.6 servers. I backup the databases automatically everyday with a custom script. Basically, it runs the following command :

mariabackup --defaults-file=${defaults_file} --extra-lsndir=${todays_dir}" --backup --compress --stream=xbstream --parallel=8 --compress-threads=8 --target-dir=${todays_dir} > "${todays_dir}/${backup_type}-${now}.xbstream ...
Score: 0
Server stuck on "Intel Reference Code Execution"
us flag

Setup - Supermicro X10DRU-i+ motherboard, 2x Intel e5-2630v4:

  • server started rebooting at random times
  • had memory modules reseated and replaced, reseated CPUs
  • reset CMOS, updated BIOS
  • changed motherboard (!).

As soon as we replaced motherboard it actully booted and it got to load our live environment - but at initialization state we got kernel panic with error "Not all CPUs entered broadcast exception h ...

Score: 0
PieterV avatar
ipv6 route add with next hop fails
pl flag

I'm trying to add an ipv6 route on machine B to subnet behind next hop A:

2:2:2::2/64 +---+ 192:168:2::1/64      192:168:2::10/64 +---+
       -----| A |---------------------------------------| B |
            +---+                                       +---+

The next hop (192:168:2::1) is reachable (ping succeeds), yet I cannot add it as a next hop in an ipv6 route:

(B):~ > sudo ip -6 route add 2:2: ...
Score: 0
Simon Avery avatar
Crontab - day of month seems to override day of week?
sa flag

I have five servers running an eventstore cluster. I want to run a crontab command on each one on separate days.

  1. Run on Monday
  2. Run on Tuesday etc

But I also want to run a different command on the fourth week of every month.

I set them up like this, thinking it should work - and checking crontab.guru confirmed what I thought should happen;

Machines 1-5:

  1. 30 6 1-21 * Mon /first-command-to-run
  2. 30 6 1-21 * ...
Score: 0
master lfc6 avatar
Which Encryption Method Is Being Used in My OpenVPN server?
us flag

When I try connecting to my OpenVPN server , the log on OpenVPN software is a bit confusing .

Fri Nov 19 04:16:29 2021 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Nov 19 04:16:29 2021 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Nov 19 04:16:29 2021 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Nov 19 04:16:2 ...
Score: -1
DLB555 avatar
When is EOL for Oracle Linux 8.5
us flag

I found the EOL information on Oracle site a bit confusing - https://www.oracle.com/us/support/library/elsp-lifetime-069338.pdf The above link shows EOL for premier support. They offer basic support as well which is less expensive than the premier support. What will the EOL for Oracle Linux 8.5 if no support package is bought from Oracle?

Score: 0
Ahmet Buğra BUĞA avatar
Google Cloud Virtual Machine SSH Terminal Could not connect
ng flag

I have a machine installed in Google Cloud VM, I was making the SSH connection here without any problems, but when I wanted to log out and connect again, I started to get no results here.

I stay on the Could not connect, trying screen and when I look at the logs, the output of Updating keys for user and then [UFW BLOCK] catches my attention. Can you help me with this?

Score: 1
Paweł avatar
Accept both MD5 and SHA512 hashes is /etc/shadow
id flag

I recently upgraded debian server with many users to a recent version. The old server used MD5 password hashes (the shadow passwords begin with $1$) and new one is configured to use SHA-512. I want to migrate users from one server to another.

Is there any way to allow both MD5 and SH512 hashes in /etc/shadow? Of course I need MD5 hashes just to allow old users to login until they change password  ...

Score: 0
The Beast avatar
Create a multi-architecture docker image from a running docker container?
in flag

I have a docker container running on Linux server (x64 architecture). I need to move this container to another Linux server (ARM architecture). This container has a lot of configurations involved in it, so I don't want to build an image from it's Dockerfile. I want to create an multi-architecture image of this container.

Thanks

Score: 0
Scheintod avatar
ipv6 distribute an ula prefix without an router
bz flag

I have a network which has no ipv6 connectivity to the internet. But I'd like to play a little with private networking.

So I want to use ULAs for my devices and automatically distribute the prefix.

I know that ipv6 uses router advertisement to do so. But (hence the name...) it advertises a router, too. In my case using dnsmasq it's the address of the server running it. So it ends up in my clients as ...

Score: 0
Ansible playbook - defining var based on condition
cn flag
Sam

I want to create a var based on condition so I created the below :

hosts: test

vars: vtarget_backup_folder_in_progress: "{{ "{{ folder }}/{{ target }}/test{{ hostvars['localhost']['tstamp'].stdout }}{{ type }}" if node_type == "master" else "{{ folder }}/{{ target }}/prod{{ hostvars['localhost']['tstamp'].stdout }}_{{ type }}" }}"

but it fails with me with below error :

We could be wrong, but this one ...

Score: 0
jwbensley avatar
Can't chain more than one network namespace together
de flag

Problem Statement

With the below configuration a veth pair is created between the default/main net namespace and a netns called ns1.

The config also creates a second veth pair: veth2 is in netns ns1 and veth3 is in netns ns2, this joins ns1 to ns2 creating the chain: default netns-veth0 <-> veth1-ns1-veth2 <-> veth3-ns2.

sudo ip link add veth0 type veth peer name veth1
sudo ip -6 addr ad ...
Score: 0
iptables: modify output flow
cn flag

When i trace some raw output packets from a specific application, i get the following output where a packets destination address is magically changed from 10.10.20.20 to 127.1.1.1. Is there any way of bypassing this by getting the raw packet "as is" to the output?

trace id fd9543bc ip raw OUTPUT packet: oif "br0" ip saddr 10.10.10.10 ip daddr 10.10.20.20 ip dscp cs0 ip ecn not-ect ip ttl 64 ip id 2 ...
Score: 0
Reading the list of all disks in a *degraded* MD array
bd flag

It just so happens that a disk failed in my RAID-1 software array in Linux. cat /proc/mdstat displays only active partition:

Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
md0 : active raid1 sdb1[1]

mdadm -v --detail --scan also lists only active disks/partitions.

/etc/mdadm/mdadm.conf doesn't seem to contain information on nominal disks/partitions contain ...

Score: 0
Stunnel outgoing packets strangely modified
es flag

I have a box with two nics setup as bridge. Ebtables redirects http traffic to iptables. The br0 ip address is 10.10.10.10. Stunnel is setup with transparent = source. It accepts connections on 127.1.1.1:8080 and always connects to the same ip address (10.10.20.20) on port 80.

I have the following iptables rules in place:

iptables -t nat -I PREROUTING -p tcp --dport 80 -i ens192 -j DNAT --to-destinati ...
Score: 1
SSC Fan avatar
Amazon EC2 instance is out of space because "root" file is gigantic
cn flag

I've been working lately on an AWS EC2 instance with ubuntu. This is my first experience working with servers, so I'm really new to this.

Lately I've noticed my free space has completely filled up for some reason. When I run

df -h

it gives me

Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.7G  7.7G   65M 100% /
devtmpfs        479M     0  479M   0% /dev
tmpfs           485M     0  ...
Score: 0
Linux kernel firewall logging - how to change where it goes?
cn flag

I'm using an iptables based firewall, Firehol. It's great but it generates a lot of logs. These logs go (a) to /var/log/syslog and (b) get echoed onto the virtual terminal.

This makes it very hard to use the virtual terminal as whatever you type gets flooded with messages.

Is there a way to get these messages to go into - for ex. /var/log/firewall.log - and not to be echoed to the virtual terminal?

 ...
Score: 0
Ror avatar
Failed to get properties: Unit name mariadb-extra@.socket is missing the instance name
om flag
Ror

I've recently upgraded my MariaDB servers from 10.1 to 10.6 and now when I restart services for example wildfly, I get this message :

sudo service wildfly restart
Failed to get properties: Unit name mariadb-extra@.socket is missing the instance name.
Failed to get properties: Unit name mariadb@.socket is missing the instance name.

How can I get rid of this ?

Score: 0
Petr Javorik avatar
rsync over multiplexed SSH connection and multiple jumphosts
id flag

I need to rsync a file from remote hosts to my local machine over multiple jumphosts. I'd like to use shared SSH connections so that I don't have to submit 2FA multiple times at some jumphosts.

The idea is I create a master connection

ssh user@jumphost01

then other connections

ssh -J user@jumphost01,user@jumphost02 root@target01
...

Shared connections control files in ~/.ssh/ look as follows

co ...
Score: 1
Exim Unable to Read DKIM Key
cn flag

Exim is spitting out (what looks like) a privilege error:

# tail -n1 /var/log/exim/paniclog
2021-11-15 16:38:35.955 [682275] 1mme43-002rUN-QV unable to open file for reading: /etc/opendkim/keys/xxxxxxxxx.com/mail.private

despite the fact it looks as though Exim should be able to read the file

# namei -mo /etc/opendkim/keys/xxxxxxxxx.com/mail.private
f: /etc/opendkim/keys/xxxxxxxxx.com/mail.privat ...
Score: 0
Zulqarnain Habib avatar
Install Logcheck / Logtail in Rocky Linux 8
us flag

I need to install logtail / logcheck in Rocky Linux 8. We have an application that uses it and we are migrating that from Centos 7 to Rocky 8.

Yum doesn't find it.

[root@myserver ~]# yum provides logtail
Last metadata expiration check: 0:37:59 ago on Mon 15 Nov 2021 12:43:04 PM CET.
Error: No Matches found

[root@myserver ~]# yum repolist
repo id                                          repo name
apps ...
Score: 0
Litespeed - NextJS app in DigitalOcean Droplet - Restart Custom Server
cn flag

Am using the DigitalOcean OpenLiteSpeed NodeJS image from marketplace for setting up the Droplet, for running my NextJS app.

I have setup everything and when tested, the home page was displaying properly. When I clicked the Login button (that uses NextAuth v4) it was throwing an issue because of another package. So using yarn, I removed the package and re-installed it.

So after installation, I ran the

Score: 0
Root avatar
Jitsi-Meet: poor video quality and video failure
br flag

I use "Jitsi-Meet" as a video chat for my community. Unfortunately, the video of some users simply drops out. And the video quality levels off at around 180p-360p, although 360p was specified as the minimum and 720p as the maximum.

The users themselves mostly have cams with 720p or 1080p, but the others only see 180p-360p. So you only see a heap of pixels

Do you understand what I mean?

  • The serve ...