Latest Server related questions

Score: 0
IonutN avatar
Send keys over ssh connection to nano editor
ru flag

I have a situation where I am deleting the crontab and then recreate it. So I do crontab -r and then crontab -e.

The problem I have is that crontab -e opens up nano, and I'd like a command line that can do crontab -e then send the F3 and F2 keys, which are for save and exit.

I need to this happen since I will be sending the commands via an ssh connection so nano will not be used interactively.

I am doi ...

Score: 0
Parsing dhcp-parameter-request-list
us flag

I am actually trying to parse the dhcp-parameter-request-list and see if it contains option 143 in the list. If it contains 143 option, then I have to respond with a 143 message with bootstrap server list.

But based on current eval options, I can only see whether option 55 exists in the request message. substring() also does not work, since I have to mention the offset and length to match, but 14 ...

Score: 0
Chainsaw avatar
OpenVPN - Server gives an IP address, but don't make it default
uy flag

everyone. I have 2 VM's, that are connected by OpenVPN. Server sends an IP, but I have to make it default on client to make it work. I know, that this should be set somehow in server.conf. But I don't know how exactly.

server.conf - https://pastebin.com/5PbfT4b8

client.conf - https://pastebin.com/fjVK3KaV

Thank you!

Score: 0
Apache with PHP FPM and requests spikes, how to set optimal configuration?
vu flag

I was lucky enough that my website went viral, and the server of course wasn't ready for it.

Unfortunately my setup is quite bad, a single server with Apache, PHP (Laravel), Mongodb and redis.

The backend (laravel) mostly serve a REST API. I currently have 1000+ concurrent users trying to use the website, and everything loads really slowly. MongoDB seems to be working fine, since I can access it thr ...

Score: 0
LibVirt: PXE-boot over HTTPS?
aq flag

The title summarizes it all. I have a VM solution that involves LibVirt, QEmu, and KVM. PXE-boot over HTTP works, but doesn't work on HTTPS. There are no firewall problems, I've checked that already.

Everything is CentOS Linux.

Any ideas how to debug this? Googling doesn't lead me anywhere, just how to enable PXE-boot (which is done and works fine over HTTP).

Score: 0
Andy Sukowski-Bang avatar
NGINX proxy_pass without changing URL
ua flag

My Goal

My goal is to redirect to a different web page without changing the URL in the address bar. So for example I want to redirect from https://my.site.com/path to https://external.com/other, but only the content of the page should change, not the URL.

Current configuration

This is what I have tried. I thought, that proxy_redirect might be a good idea, so I based the configuration on the NGINX docs

Score: 1
Wildfly Elytron container managed authentication with federated SAML2 IDP
cm flag

I'm trying to set up container-managed authentication with Wildfly 24 and would like to use an existing (federated) Shibboleth IDP.

I haven't found docs detailing that use case, so I opted for the proxy auth scenario, e.g. Apache + Shibboleth SP connecting via AJP to Wildfly.

The Elytron docs mention "external" http authentication, meaning passing on REMOTE_USER as a principal. What it doesn't include  ...

Score: 0
Missing SRV Records
in flag

I'm trying to replicate a Server 2016 domain controller. It appears to complete correctly, everything looks good in AD UC and AD SS with no errors from the DC promotion in Server Manager and I can authenticate to my old domain controllers to log into my domain.

However, all the SRV records for the new domain controller are missing in DNS (kerberos, ldap, gc) and I cannot use the new DC to join n ...

Score: 0
Licensed Slacker avatar
How to stream tar archive using plink?
in flag

I'd like to stream a .tar archive from a Windows machine using PowerShell to a Linux machine and extract the archive from the stream. PowerShell pushes archive content to stdout and plink.exe stream content to receiving command line's stdin.

I've come up with the following command.

Get-Content file.tar | & plink.exe -C -agent "remote_host" "tar xf -"

However, the tar command does recognize the file's ...

Score: 0
systemd mount unit name different on different VMs
id flag

I see that on some VMs, the unit that mounts hugepages is called mnt-huge on some and just huge on others:

# systemctl list-units | grep huge 
mnt-huge.mount            loaded active mounted   /mnt/huge

Is there a way to change this (make it uniform) ?

# systemctl list-units | grep huge
huge.mount             loaded active mounted   /huge

The version of systemd is same on both these VMs (and both runn ...

Score: 0
Tawfik avatar
Nginx 400 bad request and nothing interesting in logs
cn flag

I can't stop getting 400 bad request. After some research, I found out that this meant that the request had bad headers due to a bad configuration

Here is my nginx.conf file:

user  nginx;
worker_processes  auto;

events {
    worker_connections  1000;
}

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

http {
    include       /etc/nginx/mime.types;
    default_type  applic ...
Score: 0
jumbot avatar
Deploying a Serverless site behind CloudFront
cr flag

I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files.

I have set up a CloudFront distribution, and created an origin with the origin domain name set to that of the Lambda API gateway, i.e. foobarbaz123.execute-api.eu-west-2.amazonaws.com (note: I can access the static files if I visit this U ...

Score: 0
Ketil Malde avatar
RAM compatibility issues with Intel motherboard
fr flag

I have a computer with an ASUS C422 SAGE 10G motherboard and a Xeon W-2125 CPU. It has 4 Kingston 16 GB DIMMS with ECC installed. Recently, I wanted to upgrade the memory, and ordered 4 new 32 GB DIMMS, also with ECC. But these are not detected by the system at all, the BIOS shows 64 GB memory, and Linux likewise shows the slots as empty (from dmidecode).

The only notable differences I can find is th ...

Score: 0
Anthony avatar
Why the certificate Authority always failed the temporary challenge file created by Certbot?
th flag

i'm using jonasal/nginx-certbot image for letsencript certificates generate.

docker-compose.yml:

version: '3'
services:
  nginx:
    image: jonasal/nginx-certbot:latest
    restart: unless-stopped
    environment:
      - CERTBOT_EMAIL=your@email.org
    env_file:
      - ./nginx-certbot.env
    ports:
      - 80:80
      - 443:443
    volumes:
      - nginx_secrets:/etc/letsencrypt
      - ./user_con ...
Score: 0
Sator avatar
Connecting Huawei P10 Lite to Citrix and IGEL environment
ng flag

this is my first post and I hope some of you can help me with my problem. I am an admin in medium sized building company, which is using Citrix XenApp and XenDesktop in combination with IGEL OS to connect to the VMs. Most people in the office are using the Huawei P10 Lite (I know it is pretty old :D) as a company phone.

The XenDesktop VMs are based on one master VM. The same counts for the XenApp ...

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.