Latest Server related questions

Score: 1
solveit avatar
How to delete the grepped iptables
ar flag

I have iptables starting from cali-

 root@Ubuntu-18-VM:~# iptables -S | grep -oP '(?<!^:)cali-[^ ]+'
    cali-FORWARD
    cali-INPUT
    cali-OUTPUT
    cali-cidr-block
    cali-from-hep-forward
    cali-from-host-endpoint
    cali-from-wl-dispatch
    cali-from-wl-dispatch-5
    cali-fw-cali2847b154969
    cali-fw-cali4bb24809f90
    cali-fw-cali531f8f2e712
    cali-fw-cali5a82b3ff301
    cali-pri-_CV ...
Score: 0
Min avatar
How to start a VNC viewer to display all previously saved VNC viewer desktops (that are now destroyed)?
au flag
Min

Problem:

  1. My current VNC viewer (let say VNC viewer 'A') resides on a machine (let say machine 'A') that need to be killed because our IT department need to rebuild the machine 'A'.
  2. I have a lot of xterms, GVIM windows opened in this current VNC viewer 'A'.
  3. We are advised to move all our works to a new machine.

Question:

  1. I would like to ask is it possible to save all opened xterms and GVIMs in al ...
Score: 0
Brandon Pham avatar
Cron Tab as specific user and python virtual env
us flag

Wanting to run an hourly cron job as a specific user (xfeautomation) and python virtual environment. Running as a specific user, will I have to add the script location into PATH? My current cron job looks like this:

0 * * * *  xfeautomation /opt/scripts/wf_venv/bin/python /opt/scripts/wf_api_linux.py 2>&l /opt/scripts/log.txt

Is this the correct or optimal way? TIA

Score: -1
sfgroups avatar
Kube-proxy pod not starting v1.21.3
cn flag

I have delete kube-proxy pod from my master nodes to get the new kube-proxy configmap values, when I reboot the node still kube-proxy is not coming up ?

How to start the kube-proxy?

# crictl ps
CONTAINER ID        IMAGE               CREATED             STATE               NAME                ATTEMPT             POD ID
19376bdbc55eb       c4d75af7e098e       17 minutes ago      Running             calico- ...
Score: 0
김남진 avatar
AWS Elastic Loadbalancer Traffic Calculation
in flag

Currently, in my environment, there is no other way to check the amount of traffic processed by ELB, so I was able to get the average number of bytes processed per hour by linking Cloudwatch metric data to grafana. (EstimatedProcessedBytes_Average)

But this is literally average traffic per hour, and you need to know the average daily or total monthly traffic(bandwidth)

How to calculate bandwidth for ...

Score: 1
TinoB avatar
Postfix "postmaster" and double-bounce emails are causing a TON backscatter
cn flag

.. and got the IP on a couple BLs..

This postfix server is set up to relay mail to and from an Exchange server.

I am seeing a lot of postmaster or root @mail.mydomain.com going out from postfix and NOT the proper mailing address @mydomain.com

The server is running SpamAssassin, Amavis, PostScreen, and OpenDMARC. I have triple checked that no configuration file states mail.mydomain.com except for extern ...

Score: 1
carlitobrigante avatar
Permission denied for gitweb.cgi on CentOS
cn flag

I've set up gitweb on my web server. I have created projects on the server. I can add commits to them and also clone them remotely.

The gitweb "homepage" does display and the static files like css, logo, favicon are loaded when I visit my git.website.

Issue is I only see the message: No such projects found found.. Every time I refresh the webpage I see the following in my /var/log/httpd/error_log

Score: 0
phpldapadmin not respecting min uidnumber
in flag

The first hit on this question as a suggestion is:

phpldapadmin uidNumber stopped auto-updating on new user creation

I looked at that and while my error is smilar, it seems it is a rather old question and the version of phpldapadmin I am running is different.

When I create a new user it uses 1001 as the uid everytime. I want to start in the 2000s, so I changed the config.php to use that:

$servers-&g ...
Score: 0
Workhorse avatar
Permission denied (publickey). ERROR: exited with return code [255]
cn flag

I have been trying to figure out this problem for some time now. I have been connecting to my VM to access RStudio (an IDE). Furthermore, I run the following command:

gcloud beta compute --project "project-name" ssh "my-rstudio" --ssh-flag="-X"

and get the following error:

Permission denied (publickey).
ERROR: (gcloud.beta.compute.ssh) [/usr/bin/ssh] exited with return code [255].

Tried to figure out w ...

Score: 0
Domain name does not work
cn flag

I created an app with azure, a such link https://viva.azurewebsites.net I got in the end. After that I bought a domain name. The domain provider created a A-Record and CNAME-record, everything is well done. A couple of hours later I saw that the webisite does not work. It only shows the start page. When I log in the brower shows a blank page the following message: https://viva.azurewebsites.net refu ...

Score: 0
Convert thin logical volume to thick
ru flag

I have a volume group that has a thin pool with logical volumes. I don't want these to be thin -- I want them to be regular logical volumes.

How can I move them out and convert them to thick allocation?

$ sudo vgdisplay -v centos
  --- Volume group ---
  VG Name               centos
  System ID             
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  34
  VG Access  ...
Score: 0
Christopher Martinez avatar
Change bin-address on mysql ubuntu 18.04
sk flag

I'm trying to change the bin-address of my localhost database instance on a ubuntu 18.04 computer

i went to /etc/mysql/mysql.conf.d and then modified the file mysqld.cnf to assign the ip address i want 192.168.0.100.

From bind-address = 127.0.0.1 to bind-address = 192.168.0.100

When i try telnet 192.168.1.100 3306 after a while is see this message

telnet: Unable to connect to remote host: Connection re ...
Score: 0
Setting tcp option to packet header
my flag

I'm trying to debug some networking issues and I'd like to add the "router alert" flag to some SYN packets that are being sent from my server. Is there a way to do that using iptables?

I'm looking at the mangle table but I couldn't find anything on adding arbitrary tcp header options to the packets. I imagine it would be something like iptables -t mangle -I OUTPUT -p tcp --dport 22 --tcp-flags SYN SY ...

Score: 0
thran avatar
Nginx puts browser into a redirect loop when using multiple server blocks
cn flag

I'm using Nginx to host a number of virtual hosts (or server blocks in Nginx nomenclature). These hosts all share the same domain with each assigned its own subdomain. One subdomain enters an endless redirect loop, obviously undesirable behavior.

NB: I've redacted my domain name and replaced it with <mysite>.

The root domain - www.<mysite>.com receives requests as expected. It also red ...

Score: 0
Johannes Linkels avatar
Find which GPO matches a Folder ID in administrative templates
us flag

I am trying to trace back where a certain policy value was set. So I can change it. For example, when I run in the user session

 GPResult /v /r 

I get this output:

Administrative Templates
-------------------------
<snip>
 GPO: MyCompany - RDS User Policy
Folder Id: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives
            Value:       1, 0, 0, 0
            State:    ...

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.