Latest Server related questions

Score: -1
hutchuck avatar
Remote control automation on windows/Ios
in flag

I am working for an educationnal center and I have some question. I have 20 iMac, and 50 Windows, all of them with specific software. Due to the covid, I am looking for a way to remote control to those equipments. For now, I am using Teamviewer, and it's working well, but it is time consuming because: There is a group of student from 2pm to 4 pm then another group from 4pm to 6pm.

I change the pa ...

Score: 0
aschkant avatar
Bash: improper function/usage of command basename
ca flag

What I want in the following command is to find particular files and move them to the other directories while appending ".log" to the destination filename.

find /src/dir/ -type f -mtime +3 -exec mv {} /dst/dir/`basename {}`.log \;

But it fails because the basename command enclosed in the backticks does not operate properly. $(basename {}) has similar result too.

mv: cannot move /src/dir/foo to /ds ...

Score: 1
RewriteRule with flag [L] stopping caching?
cn flag

I use server management software plesk with apache and nginx. I set in apache and nginx a expired header for javascript files for one year. That's working. I can see one year for "expires" in header.

Now I want access javascript and php files with a rewrite (without redirect).

APACHE

ExpiresActive On
ExpiresByType text/javascript A31556952

RewriteEngine On
RewriteRule fake/(.+\.(?:js|php))$ origi ...
Score: 0
maar avatar
repmgr for streaming replication - standby register
gb flag

I'm testing repmgr tool and I'm a little bit confused. Everything's fine until standby register step.

What should I have configured on standby server? From docs I assumed that standby should't have the cluster, but it didn't configure a new one. When the postgres cluster exists repmgr have a problem with existing data. When I'll stop the cluster service and delete the data manually and run the migrati ...

Score: 0
carmik avatar
Advice needed on migrating shares from a 2003 DC to a new 2012: how can I avoid breaking my software install GPOs?
cn flag

I've finally virtualized our entire server infrastructure and I'm ready to start migrating to our bought Windows server 2019. Since our current setup is based on Windows Server 2003 we obviously have to do the migration step via an interim installation of say 2012 R2 (AFAIK 2016 would be ok too).

My problem is the following. Our 2003 DC hosts a number of file shares. Some of them are very easy to ...

Score: 1
civo avatar
Windows server failover clustering dependencies
cn flag

I have 3 servers which with the following processes:

  • Server 1: 1 process
  • Server 2: 4 process
  • Server 3: 1 process

What i need to configure after a failover is the following :

  • On server 2 start the first 2 process
  • On server 1 start the process
  • On server 3 start the process Wait for a x amount of time then start the last 2 processes on Server 2

Can this be configured in WSFC ?

Score: 1
Number of disks in relation to rows and columns in Windows Storage Spaces
in flag

I have been reading through the documentation for Windows Storage Spaces, trying to understand drive provisioning for parity storage spaces. What isn't exactly clear to me is whether the number of columns is a hard limit for the number of disks, or a storage space can be created with a number of drives that is a multiple of the column number.

For example, could a Storage Space set up with single  ...

Score: 0
WallyKaye avatar
Auto Virtual Host - Single Nginx config
cn flag

I am trying to create a single Nginx config for multiple hosts based on a directory. I followed a guide which seems to work well with standard HTTP setup but when I add the HTTPS 301 redirect, I can an error "invalid redirect". Any ideas on this? Below is my config. Tx

server {
  listen x.x.x.x:80;

  server_name ~^(?<sname>.+?).domain.com$;

  return 301 https://$server_name$request_uri;

}
 ...
Score: 1
debug avatar
Ansible: How to joint string and integer to become new string
lr flag

I need assistance for ansible playbok on how to joint/combine string (linux) and number (0002) to be linux0002. Also how I can use %04d to format the integer 2 after arithmetic operation.

Score: 0
Leder avatar
AWS budget cannot do stop RDS action
bt flag

I do not want to create an IAM user: I am logged in as root in AWS console.

How can I create a role such that my RDS instance stops on budgeted amount?

I do always get the error when I configure a budgeted RDS action:

Budgets permission required to assume [ExecutionRole: arn:aws:iam::351811911299:role/aws-service-role/trustedadvisor.amazonaws.com/AWSServiceRoleForTrustedAdvisor]. Please follow the instru ...
Score: 0
Phone Min Khant avatar
Websites do not loaded properly in Nginx loadbalancing
np flag

I have 3 Nginx Servers like this -

  • lab01.net => 192.168.89.128 (load balancer)
  • lab02.net => 192.168.89.129 (backend)
  • lab03.net => 192.168.89.130 (backend)

-------------- lab01.net configuration ----------

upstream backend {
        server  lab02.net:443;
        server  lab03.net:443;
}



server {
        listen  80;
        listen  [::]:80;

        server_name     lab01.net;
        return   ...
Score: 0
thecomputerguru avatar
Change the BIND query log file destination
in flag

I am trying to change the file that my BIND server stores query logs from the messages file in /var/log/messages to /var/log/named/named.log. When I restart the BIND service, for the changes to take effect, it fails to start because the service doesn't have permission to access the new log file. How can I give BIND permission to access the new log file? Here is the output from the error. I am running th ...

Score: 0
Pass SSH connection to different server on connect
za flag

Good evening,
I'm currently trying to get my hands a bit more deeper into linux then im familiar with.

Lets get straight to my problem:
First, lets talk about my setup.
I have 3 servers, with each having a public IP.
Each server is part of a VLAN.
Server #1 (vlan 10.0.0.2) is not protected by a firewall.
Server #2 (vlan 10.0.0.3) and Server #3 (vlan 10.0.0.4) are completely blocked of from the internet ...

Score: 1
The Tablet avatar
How do I create separate mailbox configurations per virtual user with Dovecot?
id flag

Let's say I have two virtual users: [email protected] and [email protected].

I want the mailboxes for bugs to be configured like this...:

mailbox Sent {
  special_use = \Sent
}
mailbox Drafts {
  special_use = \Drafts
}
mailbox "Priority 1" {
  auto = subscribe
}
mailbox "Priority 2" {
  auto = subscribe
}
mailbox "Priority 3" {
  auto = subscribe
}
mailbox Unreplied {
  auto = subscribe
}
mailbox Resolve ...
Score: 0
Hard Drive Recovery - I/O Error - Bad Partition Table and Filesystem
cn flag

I am attempting to recover an external hard drive. It is western digital (like always).

Force mounting does not work:

user@linux:/home/user# mount -t vfat /dev/sdb1 /media/test1 -o force,umask=000
mount: /media/test1: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.

I get IO Errors when I attempt to run gparted. If I try to boot with the d ...

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.