Latest Server related questions

Score: 1
eof avatar
Getting PID of dependency in systemd?
us flag
eof

I would like to write a systemd unit file that needs to pass to the exec command the PID of one of its dependencies. In the unit file I would like to have:

ExecStart=bar -p <PID of foo.service>
Requires=foo.service
After=foo.service

Is there a way to get the PID of a required dependency in some easy way? Couldn't locate anything in the manual nor an example in any of the unit files on an Ubuntu  ...

Score: 0
bytesandcaffeine avatar
Nginx - proxy_pass to another internal location block
mx flag

I am using Nginx to cache some responses. The backend that generates these responses, sets a common Cache-control header for all the responses. However, I need to cache some of the responses for a longer duration than the others. That is I need to modify the cache-control header before it is taken into consideration by the proxy_pass directive.

I am using the ngx_lua_module and want to modify the C ...

Score: 0
Jananath Banuka avatar
Unknown key name 'ExecRestart' in section 'Service'
cn flag

I have this systemd unit file in /etc/systemd/system/ei-integrator.service as below:

[Unit]
Description=Integrator
After=network.target

[Service]
ExecStart=/tmp/ei-6.6.0/bin/integrator.sh start
ExecStop=/tmp/ei-6.6.0/bin/integrator.sh stop
ExecRestart=/tmp/ei-6.6.0/bin/integrator.sh restart
PIDFile=/tmp/ei-6.6.0/pid.pid
User=wso2user
Group=wso2
Type=forking
Restart=on-failure
RestartSec=5
StartLimitInter ...
Score: 0
Tibor Nagy avatar
Why a postfix relay server doesn't sign relayed massges with DKIM?
ua flag

I have postfix mail server on ubuntu 18, which act as a relay email server for a couple virtual machines and as an imap/smtp server for our colleges. If I send an email from a mail client with smtp directly through the relay server, the email is signed by the server correctly.

However if I send an email from a VM, through the VM's postfix server, which forwards everything to the relay server, then th ...

Score: 0
MoonSweep avatar
Postfix : how to reject mail for local system users?
in flag

I'm trying to build a small Postfix/Cyrus server on my Linux workstation to act as a proxy between my e-mail client (Thunderbird) and my company's mail server, but also handle local system e-mails (stuff sent by crontabs for example).

On the Cyrus server I created a mailbox which mimics my company's e-mail address, configured aliases in /etc/aliases to send local e-mails destined to root or postmaster

Score: 0
Mike avatar
How to connect/reboot to PC without monitor or remote access? Accidentally enabled X11 and can't undo it
pk flag

I recently tried setting up an Intel NUC for remote access but it required a display to be connected -- I am using Ubuntu 18.04 (maybe 20.04, I can't check). So I installed the X11 dummy driver according to this: https://help.realvnc.com/hc/en-us/articles/360005081572-Display-issues-when-connecting-to-VNC-Server-running-on-Linux, but the NUC isn't attached to wifi/internet and I can't view via a mon ...

Score: 0
Wrapping Kubernetes with Wireguard
us flag
TRW

I've a scenario with many different nodes. Some have public IPv4, some have IPv6, some are dual stack. So I've created a wireguard network (10.11.12.0/24), so that any peer can reach any other inside a private network regarding of IP-stack and location. I'd like to build a Kubernetes over this wireguard networks.

I've build a small test cluster ...

node   public ip        wireguard ip
vm1    192.168.1 ...
Score: 0
MohammedSimba avatar
Can't ftp on active mode from ec2 instance (as a client)
cn flag

We need to ftp on "active mode" using Ubuntu ec2 instance as a client on a remote not ec2 ftp server.

Unfortunately we can't use sftp functionality. And we are able to connect using passive mode, but all we need is to use "active mode". I know active mode is problematic on NAT level (private-public IPs), but is there a way to overcome that?

On the client (ec2 instance), using active mode we got:

Score: 0
How to redirect nginx based on sub path?
kr flag

I have grafana and jenkins running on same azure vm. For jenkins: http://localhost:8080 For grafana: http://localhost:3000

I thought to set nginx in such a way. customdomain.com/grafana should go to http://localhost:3000 customdomain.com/jenkins or customdomain.com should go to http://localhost:8080

But even /grafana is going to jenkins only.

How to fix that?

The, default config file for mapping in nginx. ...

Score: 0
It looks like Apache2 fails to start
us flag

Sorry but i am new to Sysadmin stuff and really new to Linux (big noob) so i am asking you guys for help because i have no idea what is causing this (as i have already stated i am really new to Linux). I accidently removed (lucky me...) stuff with tasksel while trying to install GUI and then reinstalled some of them (atleast the ones i could remember). What i have right now is that apache2 fails to star ...

Score: 0
IT_User avatar
Stood up Domain Controller using a seperate domains DNS server. How do I create the dc/pdc/gc records in DNS?
mx flag

So we have a non-standard setup that appears to be supported by Microsoft. Pretty much a Domain controller not hosting DNS (Using another Domains DNS server).

Delving into creating all of the records required and so far I have created the forward zone and various records I need.

When attempting to join Windows clients to this new domain, they fail stating the following record is missing:

_ldap._tcp.dc._m ...
Score: 0
Filesystem mounted with sshfs throws error inside of docker when creating a symlink
us flag

What actual is

I have a server(EX42) and a storage box (BX21) both hosted at Hetzner. On the server runs a peertube instance and I want to save the data on the storage box. I installed sshfs on my Debian 10 root server and mounted the storage box: /etc/fstab:

<user>@<user>.your-storagebox.de:/data  /peertube/data  fuse.sshfs  ssh_command=sshpass\040-f\040/peertube/sftp.pass\040ssh,uid=999,gi ...

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.