Latest Server related questions

Score: 0
Romain T-BIGOT avatar
Cannot boot on Arch Linux after modifying kernel parameters with GRUB
uz flag

Looking for a way to set my backlights on my laptop running Arch Linux (and Windows on a dual boot), I edited the /etc/default/grub file to change a kernel parameter. Here is what I changed:

# before edition
# GRUB_CMDLINE_LINUX_DEFAULT="lsm=lockdown,yama,apparmor,bpf loglevel=3 quiet acpi_backlight=vendor"

# after edition
GRUB_CMDLINE_LINUX_DEFAULT="lsm=lockdown,yama,apparmor,bpf loglevel=3 qui ...
Score: 2
Saaru Lindestøkke avatar
How to deal with hardcoded requests of a webapp when using path-based location blocks?
us flag

I am trying to create a reverse proxy route using nginx-proxy and docker for OpenTripPlanner (OTP) version 1.5.0 and 2.2.0 on the same machine.

If I have a simple location block like:

location /otp2 {
        proxy_pass http://127.0.0.1:8081;
    }

The majority of calls OTP makes gets passed on to the upstream server, however the OTP web-app also has some hardcoded calls to http://host/otp and htt ...

Score: 0
FeRcHo avatar
error installing php dependencies on ubuntu
cc flag

I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd so run the command:

sudo apt-get install php7.4-gd

but when installing I get the following error: php7.4-cli : Depends: php7.4-common (= 7.4.3-4ubuntu2.18) but 7.4.3-4ubuntu2.17 is to be installed

an ...

Score: -1
spirit123 avatar
Azure aks private cluster - How show list workload
cn flag

I learning work with aks in azure. I want create private aks. I know manage or deploy to cluster over az aks command invoke.... But I have problem with portal.azure.com. When I click to list Worlkloads I get error:

"Unable to reach the api server 'https://fa925f1ecc55291698ec4fd8a0ecc5fe-priv.portal.hcp.westeurope.azmk8s.io' or api server is too busy to respond. Check your network settings and r ...

Score: 0
Scott Kirkpatrick avatar
How to use Apache's mod_rewrite to change the HTTP version in a request?
io flag

I have an old system sending a POST to an old version of Apache(2.4.9) that is not sending the HTTP version. The old system has no issue but I want to update Apache to the latest. When I do, Apache logs an error that only a GET is valid with HTTP/0.9. I tried writing a mod_rewrite to append a version to the request but I still get the errors.

RewriteEngine On  
RewriteCond %{THE_REQUEST} HTTP/0\ ...
Score: 1
Sakshi Arora avatar
Validate all public keys in authorized_file
hk flag

In my authorized_file i have multiple public keys against one private key. Now i want to add a task in ansible which will validate that all public keys are valid keys and good for connection. My aim is to remove bad/faulty key from authorized_file.

Score: 0
carbide20 avatar
AnonymousFox Malware Constantly Recreating Files
us flag

I had a Wordpress site infected by the AnonymousFox malware.

  • I've cleaned / removed all affected files.
  • I've removed the cron job which was set to reinfect the system.
  • I've removed extra DB accounts.
  • I've removed infected Wordpress plugins.
  • I've removed malicious email addresses.

At this point, I thought I was rid of this AnonymousFox - however when I try to edit or delete the site index.php file, it ...

Score: 0
sekthor avatar
How to handle declarative Nginx Configuration with Let's Encrypt?
kg flag

I manage an nginx instance, that does http loadbalancing and TLS-Termination.

So far I generated TLS certificates manually using certbot --nginx and selecting the Host I would like to lease a certificate for.

I would like my server to poll a git repository, that serves as the single source of truth for my nginx configuration (GitOps).

How would I handle the automatic ACME generation & renewal of ...

Score: 0
jng77 avatar
Stuck at Verify kubectl configuration
se flag

I'm using Mac Terminal and I'm stuck at the "Verify kubectl configuration", whereas when I run this command --> kubectl cluster-info as the result:-

E0331 23:39:48.601633 27402 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused E0331 23:39:48.602018 27402 memcache.go:265] couldn't get cu ...

Score: 0
Paulo Ricardo Bruck avatar
how to get rid off raise at python3-ldap3
vn flag

Using: ubuntu22.04 python3-ldap3-2.8.1-1

Code:

conn = Connection(server, user=user, password=password, auto_bind=AUTO_BIND_TLS_BEFORE_BIND, raise_exceptions=False)

     conn.start_tls()
     if not conn.bind():
         print('não conectou')
         return False
     return True

If I try a user w/ a valid password it all goes write, but if I use a wrong password openldap stops with this error: ...

Score: 0
Nauman Shakir avatar
How can I increase the boot volume size on an IBM Cloud VPS to more than 100 GB, similar to AWS EC2, for CyberPanel installation?
sa flag

Overview

I'm trying to install CyberPanel on a new IBM Cloud VPS, but I'm running into storage limitations. My websites require more than 100 GB of storage, but IBM Cloud only offers boot disk(disk0) options of 25 GB or 100 GB SAN storage. In comparison, AWS EC2 allows increasing boot volume size to accommodate larger storage requirements.

Attempted Workaround

I attempted to work around this issue  ...

Score: 0
user31929 avatar
Php and shell_exec are a good way to process many detached process on a CentOs server?
jp flag

During execution of a php webservice, i need to detach a "time consuming function" to maintain a quick response to the user. That's an example of the flow :

enter image description here

I know that php does not manage multi-thread operation by itself, but anyway there are some other methods to works in async way. Googling and here on stackoverflow i have found a possible solution in the shell_exec command.

i have create this exa ...

Score: 0
Teemu Sa avatar
Wierd firewalld block after recent update, Centos Stream 9, blocks icmp replies as invalid state
qa flag

I am running Centos Stream 9 on VMware. I recently used dnf update and now there is a weird problem that some ping-replies are stopped by the firewalld. If I stop the firewall, ping works ok.

The problem presents itself like this:

  1. I ping from the server "SRV" to address say 10.0.0.1 and it responds
  2. I ping from the same server 10.0.0.2 and that does not respond
  3. I can telnet to the 10.0.0.2 no pro ...
Score: 1
namaiiee avatar
iptables v1.8.7 (nf_tables): unknown option "--tcp-flags"
ao flag
# iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1300                   
iptables v1.8.7 (nf_tables): unknown option "--tcp-flags"
Try `iptables -h' or 'iptables --help' for more information.

I get this error while adding iptable commands. Any ideas? my OS: Operating System: Ubuntu 22.04.2 LTS
Kernel: Linux 5.19.0-35-generic Architecture: x86-64

Score: 0
Prithvi Boinpally avatar
Do firewalld rich-rules apply irrespective of the allowed services in a zone?
za flag

Context: I have firewalld running on an AWS EC2.

Goal: I want to add a rich rule to the default zone (public) that allows traffic from a certain CIDR range/IP address range/subnet over port 443 (HTTPS) via the TCP protocol. I'm adding this rule to the public zone via firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="[CENSORED]" port port=443 protocol=tcp accep ...

Score: 0
cfs3corsair avatar
Unable to connect to local Fedora Samba share. What am I doing wrong?
vn flag

New to networking. Created a samba share in Fedora Server. This samba share is supposed to connect to a raid0 pool (2x4TB WD Red) that I created. The mount point of the raid0 pool is /raid0pool. The share file is set to be /raid0pool/raid0share

But, I am unable to connect from other local machines, including Windows 10 and Fedora Workstation. On windows 10 client I have tried entering connection addr ...

Score: 0
daci karima avatar
OPENLADAP Monitor running on ubuntu 20.4
np flag

I tried to configure the Account monitor with OpenLDAP on ubuntu 20.4.I've followed the steps in fisrt time i check to enable monitoring then i creat account monitor with file user_monitor.ldif objectClass: SimpleSecurityObject objectClass: organizationalRole cn: monitor description: LDAP monitor userPassword:Secret

i check it will aplay correctly.

i configure the ACL for monitor with file call moni ...

Score: 0
drop sip avatar
Atxfer does not transfer
az flag

I have two agent A and B.

Agent A has a call online and wants to transfer the call to agent B.

I already have axtfer => *2 configured in the features.conf file and I have alltransfer set to YES on my platform with Magnusbilling, but I still can't transfer the call to agent B.

Score: 0
N. J avatar
Should you partition disk for instances in cloud?
cn flag

I've always been taught that it's practical to partition your disk using LVM, where each partition is given to a specific directory, e.g (/var, /opt, /home, /usr and /tmp). However, I'm now looking at an environment in the cloud (OCI) where such schema is not used. The only thing that exists is an own partition for /boot/efi, /boot and / (root).

This made me think: Shouldn't such practice be applied ...

Score: 0
mdzz avatar
vm machines cannot ping each other via bridge network
pa flag

I created vhost1 and vhost2 by using virt-manager which run on a Ubuntu server 22.04
The Host and VMS connected via a bridge network. So here's the thing: The ping working fine between Host and VMS, but it doesn't work between VMS(vhost1 and vhost2)

Network configuration of Host:

br0: 192.168.110.161/24

/etc/netplan/netcfg.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    enp24s0f1: ...
Score: 0
Supun Madhusanka avatar
rsync Connection getting failed to remote server
cu flag

I've configured a rsync server on a Windows Server 2019 (Server Name - ServerX). rsync is working fine within the ServerX. But none of my local machines are connected to ServerX via rsync. rsync is getting failed between my local machine and ServerX. I'm using a host entry with a url to connect to the ServerX.

protocol version mismatch -- is your shell clean? (see the rsync man page for an explan ...

Score: 0
null avatar
How do I convert raw data to text in data field in LPD protocol from wireshark?
py flag

I have captured the data sent to a receipt printer (https://starmicronics.com/support/products/tsp100iii-support-page/) using Wireshark. It seems that the printer uses LPD protocol. How do I convert the raw data to human readable format?

Score: 0
Russell Fulton avatar
Dell R620 - problems with boot setup
hk flag

I have an "old" R620 that in a previous life was used as a ESX host. The machine has a 1GB SD card with which had the VMware software on it. I have installed ubuntu on the HD.

No matter what I do the machine always defaults to booting from SD card.

The problem is that The boot order just has HD C: which does not have separate entries for the SD and the HD. It always boots from the SD unless one e ...

Score: 1
Raul Cejas avatar
multipass moving data directory fail
mu flag

I am following:

https://github.com/canonical/multipass/pull/1789 and https://lucasroesler.com/posts/2020/multipass-data-partition/ to move MULTIPASS_STORAGE to another location, but I am not lucky.

I am setting MULTIPASS_STORAGE=/pendrive/multipass:

/etc/systemd/system/snap.multipass.multipassd.service.d/override.conf

[Service]

Environment=MULTIPASS_STORAGE=/pendrive/multipass

If I run sudo journ ...

Score: 1
Noughtnaut avatar
Unifi USG-3 vs ISP (PPPoE): I can ping the ISP's network, but not outside of it
in flag

Our network is based on Ubiquiti Unifi devices and has some printers and assorted clients, and a Synology NAS running DSM7.

A few days ago the network suddenly developed problems, although I have made zero changes to any of the network devices these past two weeks. It's beginning to become a critical issue, but I'm stumped.

It's not a large network:

  • Fiber connection enters the premises
  • Fiber/ether ...
Score: 2
joyoy avatar
Is sudo -u username command the same as doing sudo -i -u username then command?
cx flag

Is a terminal prompt sudo -u username command

same as doing

sudo -i -u username then command in the next line?

If no, what is the differences? What are the use cases when doing the first is better or preferable than doing the later and vice versa.

If anyone could explain what the command do step by step or parameter per parameter, that is even better.

Score: 1
Noughtnaut avatar
Logging into DSM7 NAS hangs after entering password
in flag

My network is based on Ubiquiti Unifi devices and has some printers and assorted clients, and a Synology NAS running DSM7.

A few days ago the network suddenly developed problems. It's beginning to become a critical issue, but I'm stumped.

Of note is that I can access the NAS via SSH, and I can access the login page, but I cannot login. What happens is that I provide the admin name and hit enter, and th ...

Score: 0
S. Imp avatar
apt update throws warnings - how to fix?
gb flag

I'm migrating a website to a fresh Ubuntu 22 server hosted by Rackspace. I'm doing some initial config and hardening and I start with the usual:

apt update
apt upgrade

The apt update command spits out a couple of warnings:

W: https://stable.packages.cloudmonitoring.rackspace.com/ubuntu-22.04-x86_64/dists/cloudmonitoring/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see t ...
Score: 0
laplasz avatar
is it possible to log out the MARK of a packet which was generated by HMARK target using ulogd
in flag

I have rule in iptables chain which give a mark to the incoming packet using the HMARK target:

-A GIVEMARK -j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-rnd 0xc175a3b8 --hmark-mod 64 --hmark-offset 4096

And there is another rule which logs out packet info using the NFLOG tarket

-A GIVEMARK -m limit --limit 12/min --limit-burst 1 -j NFLOG --nflog-prefix  "PKT HMARK"

I know that ulogd c ...

Score: 0
user180574 avatar
How to use top without interactivity?
ca flag

I want to periodically monitor the CPU usage and plot in time series. Not having much knowledge, I plan to use the top command, something like this question (Monitor cpu usage (and perhaps memory using) for a single process simple as possible). However, when I issue command like "top -c -p PID", I want it to output then exit automatically without manually type q or ctrl-c. And if not using top, what oth ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.