Latest Server related questions

Score: 1
why are du -b and du -k different so much
kr flag
gyd

I am using Ubuntu 16.04.5 LTS, and the version of du is 8.25. Now I have a question:

$ du -b /var/log/lastlog
69788251412 /var/log/lastlog

the size matches command ls -al. While I use du -k, it has another result:

$ du -k /var/log/lastlog
80 /var/log/lastlog

The two result doesn't match, why?

Score: 1
Vaiaro avatar
Hostname instead of IPs for panel legends in Grafana with Prometheus metrics
cn flag

I want to monitor different servers with Prometheus fed by exporters like node-exporter or postgres-exporter. The metrices should be presented in Grafana as dashboards and alerts.

The exporters will be imported by following targets in the prometheus.yml:

global:
  scrape_interval:     15s

  external_labels:
    monitor: 'codelab-monitor'

scrape_configs:
  - job_name: 'node-exporter'

    scrape_inte ...
Score: 0
Uday Kiran Reddy avatar
How to copy a file to aws ec2 instance and use it in the user-data?
cn flag

I have an rpm file for an application which is generated daily that I want to install on an EC2 server using user-data of ec2-instance using terraform.

I got file provisioner in a search result, but found that it will do the step after user-data.

Any suggestions how to do that?

Score: 0
ahdgfd avatar
Antispam Exchange Online Permission Error
br flag

We have Office 365 Accounts and also an Microsoft hostet Exchange online Server. Normaly i could manage my antispam Rules and Policys in the Exchange Admin Center. A few months ago there was the new Exchange Admin Center launched and the antispam Rules were moved to the Microsoft 365 Defender side, there i get an error for not having Permission.

Microsoft 365 Defender Antispam

I checked with multiple Admin Accounts, also created ...

Score: 0
Guy Barash avatar
"ping" fails when running from google- cloud on specific IP
cn flag

I'm trying to access www.fastlane.co.il trough google cloud servers. I got the IP 81.218.67.65. When i ping it locally on my computer it works fine.

Local results:

Pinging www.fastlane.co.il [81.218.67.65] with 32 bytes of data:
Reply from 81.218.67.65: bytes=32 time=5ms TTL=118
Reply from 81.218.67.65: bytes=32 time=8ms TTL=118
Reply from 81.218.67.65: bytes=32 time=5ms TTL=118
Reply from 81.218.6 ...
Score: 0
S.Murtadha avatar
Apache2 Server Connected To AWS ALB With HTTP2
in flag

I have an Apache2.4 web server that is connected to AWS ALB. Since the ALB provides HTTP2, I have not configured the Apache server itself to enable the HTTP2 module and the HTTP2 seemed to be working fine when I inspected it in the browser. However, I am having issues with my website and from testing another instance with the HTTP2 module enabled by Apache itself (no ALB is connected to that instance) I ...

Score: -3
Alejandro Pagliari avatar
Speech to Text tool (transcript download format)
co flag

I'm using the Speech to Text tool. How can I change the download format of the transcript? Right now is a CSV. I want to change it to just Text or a Google doc.

Score: -1
Eli Stone avatar
I need to figure out how to buy a used server. What is the thing called that pulls out from a stack server an has a screen on it an keyboard?
in flag

I want to buy the computer that technicians use to repair or configure stack servers it looks just like a laptop but has hot swappable harddrives. I'm entering a i.t. program an I'd like to mess with building my own server while I do my schooling. Can anybody tell me what the hell that thing is called? It has a screen an keyboard an mouse pad I've searched the net for days an none of the pictures I've s ...

Score: 0
Tlink avatar
Selecting cli menu options from my bash script
ao flag

I'm running a bash script but the process freezes when it hit a menu where it have to make a selection I understand that for YES ican use -y in my commands, but in the case where:

  1. I need to select/enter a number from an options list

  2. Enter a name or an email

How can I do that?

Weird enough that most of the search results return how to create a menu using bash, but not how to make a script enter  ...

Score: 1
Bobrovsky avatar
Some of my emails do not get to clients without a warning
ru flag

I send emails from the web interface of Gmail Workspace (business email). Most of the clients receive my letters just fine. But some of the clients only receive messages with text and images.

Messages with links or PDF attachments do not get through. They do not return or end up in the client's spam folder. They silently go nowhere.

What could be the reason for this and how can I increase the chance ...

Score: 0
Codemonkey avatar
CentOS: What steps are needed to move my entire server (OS/boot/storage) from one mdadm raid 1 array to a new one?
ml flag

I have a pair of large nVME drives in my CentOS 8 Stream server, configured in mdadm raid 1.

I wish to install a pair of smaller (cheaper) nVME drives, move everything across, and then remove the larger drives.

df -h looks like:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         63G     0   63G   0% /dev
tmpfs            63G  147M   63G   1% /dev/shm
tmpfs            63G  1.3M   63G   1 ...
Score: 0
How to force SSL on Nginx & Varnish
cn flag

how can i redirect only to https in Nginx and varnish. I use varnish cache in port 80 and Nginx listening on 8080. Works fine in http, but i need to add SSL. my configuration is as follows

server {
    listen  443 ssl http2 default_server;
    listen  [::]:443 ssl http2;
    server_name afrim.com www.afrim.com;
    port_in_redirect off;

    ssl on;
    ssl_certificate /etc/nginx/ssl/afrim_com_crt. ...
Score: 0
Promise Kumalo avatar
Nginx more_set_input_headers throwing an error
id flag

i am running Ubuntu 16.04.2 LTS. i am trying to upgrade my Nginix from nginx/1.10.3 to nginx/1.21.0.

when i run the upgrade and test the configuration file i get the below error

root@myserver:/home/myuser# nginx -t 
nginx: [emerg] unknown directive "more_set_input_headers" in /etc/nginx/conf.d/exchangeRP.conf:31 
nginx: configuration file /etc/nginx/nginx.conf test failed 

This is whats i have in the con ...

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.