Latest Server related questions

Score: -1
Fernando Suarez Ornani avatar
Server virtualization: what to virtualize?
br flag

Several years ago we virtualized our "new" Windows Server 2016 with Microsoft Hyper-V Server 2016 on a Lenovo TS120 with a Xeon E3-1245, 32GB (4x8GB) and 2x2TB@7200RPM (RAID1) (the motherboard has 4 SATA ports). It runs a file server (30 computers accessing office files and small AutoCAD files locally, 10 devices accessing from the outside with a VPN), DHCP and DNS for a small network (~50-70 devices wi ...

Score: 0
jwalker avatar
Changing the name of a single Kubernetes master with a temporary master
cn flag

I have a lab environment for studying Kubernetes.
It has Calico CNI installed.
Kuberentes version: 1.20.
I would like to rename the single master node in the cluster.
Preferably, without recreating the whole Kubernetes cluster or overriding the master node name.
The idea is to learn to do it right too.
I tought about adding a temporary master node in addition and remove the original master node ...

Score: 0
Pascal K. avatar
Azure VirtualMachineSet change IP-Configuration
it flag

In azure it is possible to update the IP Configuration of a given Virtual Machine (like here: https://praveenkumarsreeram.com/2020/09/27/azure-virtual-machines-change-the-subnet-of-a-virtual-machine-or-network-interface-card-using-azure-portal/). This feature has not been implemented yet for Virtual Machine Sets, as I can see.

Is it possible to change it through the Azure CLI? I am able to see the V ...

Score: 0
devmb avatar
Postfix: Use transport for specific provider
vn flag

I'm using postfix 3.4.13 on ubuntu-server 20.04.

Intro

I'm required to use myrelay.com transport to send mails to provider.com, otherwise they are rejected. I'm using postfix (3.4.13) with transport_maps to fulfill this requirement, here is my config.

main.cf

transport_maps = hash:/etc/postfix/transport

transport

provider.com     smtp:[myrelay.de]:587

This works as expected.

My problem

provider ...

Score: 1
Launching Instance from AMI Creates two disk devices when only one is expected
cn flag

First some background. I am migrating an Ubuntu Instance-store backed ec2 instance to EBS using the steps outlined in Create an AMI from an instance store-backed instance.

Everything works correctly and I am able to create and register my AMI using:

aws ec2 register-image --region us-east-1 --name MASTER_EBS_AMI --block-device-mappings DeviceName=/dev/xvda,Ebs={SnapshotId=snap-0dd...} --virtualization ...
Score: 0
Elkrat avatar
Rate Limiting Only the Home Page With NGINX limit_req_zone
in flag

I have a Wordpress multisite installation and I have some bots hammering the home pages. I would like to set a rate limit only on the home page(s) of the site(s) but leave the other pages unlimited.

My trouble is crafting an NGINX location that will match the home page's "blank" address of /index.php I can limit the entire site by matching "/" but that's not what I need.

I've tried using "index" as ...

Score: 0
Stephen Daniel avatar
How to move a Linux software RAID setup from 1 server to another (Debian)
de flag

Currently, I have three USB drives running as a RAID-5 set on a Debian-9 server. All is well. I would like to safely move them to a different server, running Debian-10.

The host name of the current server is stored in the metadata for that RAID set. How do I change it to reflect the new server name?

Or am I better off just telling mdadm to ignore host names by using "HOMEHOST ignore" in my mdadm.c ...

Score: 0
How to get HTTP_X_FORWARDED_FOR in Apache config files
us flag

I have a protected admin area that is only accessible for my IP. However, I am using a proxy that has a lot of IPs. It's not practical to whitelist all its list of IPs.

The proxy sends the HTTP_X_FORWARDED_FOR header that contains the real IP.

I can get that information in PHP with $_SERVER['HTTP_X_FORWARDED_FOR'].

My objective is to whitelist that IP contained in "HTTP_X_FORWARDED_FOR" if it equals my ...

Score: 0
Install a self-signed certificate in .p7b format, created on another machine, on Ubuntu Tomcat
va flag

I am a Microsoft stack guy who is in desperate need for some linux administration...

As stated in the title, there is a .p7b file (10kb size) that I need to install on Tomcat, running on Ubuntu. At the same folder there was another "self-signed.txt" (2kb size) file. Those files were created elsewhere.

When I search "how to install .p7b certificate on Tomcat" I found a command

keytool -import -trustcacert ...
Score: 0
Zork avatar
Issue using dd to write 1GB file to zfs dataset on FreeBSD 13
cn flag

Hey guys I am turning up a little FAMP stack on an Azure VM. 4 Xeon cores 16GB ram. Second SSD is using ZFS and the boot drive is UFS2 (Default). When I dd if=/dev/zero of=testfile bs=1024 count=1024000 to my home directory which is located on the boot drive I can see a full 1GB file. When performing the same action on my ZFS dataset it appears to only be writing 512b. Not sure what is going on here. I  ...

Score: 0
Bobys avatar
Set MacVLAN in Portainer to get IP from DHCP server
ru flag

I have a Portainer VM with 3 interfaces attached (eth0-eth2). I would like the containers to request IP from the DHCP Server that is located on each interface at x.x.x.1.

Lets take as an example eth0:

The subnet of this interface is 172.16.0/27 and I would like my containers get in IP in the range of 172.16.0.17-30. Under Portainer networks, I added another network with the following settings:

  • Na ...
Score: 2
9hax avatar
Setting up password only authentication in apache
cn flag

I have a folder on my website using apache basic authentication. The Auth is controlled by a .htaccess file which has been placed into the directory that should be protected.

This is the content of the .htaccess file:

AuthType Basic
AuthName "Please enter your credentials to continue."
AuthUserFile /my/path/here/.htpasswd
Require valid-user

However, I do not want to give every person that is using the pr ...

Score: 0
adnan ijaz avatar
Where to find the website folder in ubuntu server?
sb flag

So someone gave me the task to find where is the website code exist on ubuntu server when I look at the the index.html file path it is /var/www/example.com/html

but when I go to /var/www directory I am not able to find example.com folder. Can anyone help In this regard or where to find the website code?

Score: 0
jomal j avatar
Ubuntu use ovpn on existing tun interface
mn flag

Is it possible to configure OPENVPN on existing tun interface using .ovpn config file?

I have interface tun1 sudo ip tuntap add mode tun dev tun1 and config file ./vpn.ovpn and i need to configure vpn on this device without changing routing for another interfaces, is it possible?

Score: 0
How to find the listener
jp flag

I have created a services that should listen on port 50051, but is is already in use.

So I need to find and kill the listener?

Step 1:

sudo lsof -i tcp:50051                                                                                                                                                                                                  
Password:
COMMAND PID USER   FD   TYPE             DEVI ...
Score: 0
Soufiane Odf avatar
SSL not working in Nginx docker container
cn flag

I have a project structure like this:

├── docker-compose.dev.yml
├── docker-compose.prod.yml
├── docker-compose.yml
├── homeid
│             ├── Dockerfile
│             ├── nginx.conf
│             └── website
├── reverse-proxy
│             ├── Dockerfile
│             ├── dev.homebooker.conf
│             ├── homebooke ...

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.