Latest Server related questions

Score: 0
HDB avatar
Connect redis-cluster(running in docker) from host machine
fr flag
HDB

I have used docker-compose with static ip to create redis-cluster, everything ran successfully but now I am stuck at how do I connect my host application to redis-cluster running in side docker.

version: '3'
services:  
  hdbrediscluster:
    container_name: hdbrediscluster
    image: redis:6.2.7-alpine
    command: redis-cli --cluster create 172.20.0.10:6380 172.20.0.11:6381 172.20.0.12:6382 172.2 ...
Score: 0
file system error during bootup
at flag

I am getting below errors through console of the linux machine.

Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.
systemd-fsck[160090]: /dev/sda3: Inodes that were part of a corrupted orphan linked list found.
systemd-fsck[160090]: /dev/sda3: UNEXPECTED INCONSISTENCY; RUN  ...
Score: 0
TvEtoffes avatar
Apache 2.4 : Redirect a subdomain to a new domain except one url the / (index.html)
cn flag

I just changed the domain name, and i would redirect the following links :

  • All old urls from subdomain.example.com/url.html --> subdomain.newdomain.com/url.html

Except one url (the /) (implies index.html) but not specied by user in the browser :

  • The domain itself subdomain.example.com ---> subdomain.newdomain.com/newpage.html

How can i do that please?

this is what i tried (without succe ...

Score: 0
ubuntu 20.04 - ChrootDirectory in sshd_config wont work with tokens %h or %u
in flag

I am trying to lock users into their home directory using a dedicated group in the sshd_config. The section of my group looks as follows

Match Group sftponly
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

Using %h or even /home/%u wont work when I try to connect with any user. I checked all permissions on their home directories and everything looks ok.

Interestingly, ...

Score: 0
Routing between 2 networks on Linux
az flag

My system topology:

On an ubuntu machine with 2 ethernet ports (eth0, eth1) i have connected another ubuntu machine as client and an OCRCamera (also client).

the requirement is that the main ubuntu machine will be DHCP server and router, so that the ubuntu-client and the camera will both get IP address from the main ubuntu machine. The ubuntu-client and the camera need to be able to ping/ssh one ano ...

Score: 0
mavavilj avatar
How to access PostgreSQL database with psql after it has been created via initdb and pg_ctl?
in flag

How to access PostgreSQL database with psql after it has been created via initdb and pg_ctl?

Particularly, in my project folder, I see:

> pg_ctl status -D db
pg_ctl: server is running (PID: 17159)
/usr/lib/postgresql14/bin/postgres "-D" "db"

But how can I connect to this with psql?

Score: 0
trash2 avatar
How to change mail.log save configurations to make gzips for one month?
my flag

I want to change the postfix or system configuration to have all the information of each month saved in mail.log, mail.err, and mail.info.

The system or postfix make new empty files after reaching some kb or maybe it has another form when the gz files are created.

How and where can I change that in system or postfix cfgs?

os is debian + standard postfix/dovecot cfgs.

Score: 1
Flo avatar
dns cifs share entry in fstab not re-mounted on IP change, while used by smbd
ph flag
Flo

I set up a CIFS share on my ubuntu

Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04

using an fstab entry:

//mystr.myserver.com/backup /mnt/mystr       cifs    iocharset=utf8,rw,_netdev,credentials=/etc/smb/mystr-credentials,uid=someuser,gid=0,file_mode=0660,dir_mode=0770 0       0

which works as expected.

now i do have smbd running to provide this share to users on my LA ...

Score: 0
Citizen avatar
How many simultaneous users can a dockerized shiny app support?
in flag

I have developed a shiny app and I have dockerized it. This app is static and there is an authentication page to access only to the content of one tab of the app. I run this app on my own domain and it works fine. I have 100 tabs opened at once in my browser and I can see my app running in all of them. I would like to know what would be the maximum number of simultaneous users that the app supports and  ...

Score: 0
run task in the background
in flag

i have powershell script that check if the service is up and of not it starts it up,

$ServiceName = 'mapguideserver3.1'
$arrService = Get-Service -Name $ServiceName

while ($arrService.Status -ne 'Running')
{

    Start-Service $ServiceName
    write-host $arrService.status
    write-host 'Service starting'
    Start-Sleep -seconds 60
    $arrService.Refresh()
    if ($arrService.Status -eq 'Runnin ...
Score: 0
Aghori avatar
How to use remote proxy server on Linux cli for all protocols (non-http traffic too)
mr flag

Is there any Linux environment variables similar to http_proxy, https_proxy in order to forward any spefic port traffic exp: port 5000 or port 3233 via a proxy server which is running on x.x.x.x:3128

Score: 0
Black avatar
403 after pointing A-Record of subdomain to IP of other server
id flag

I have two servers X and Y.


Server X:

I have a VHOST for the subdomain test.api.konfigurator.company.de pointing to a directory which simply has a index.html containing the word "it works!".

First I tested it locally, by editing my hosts file in windows. That worked, the text "it works!" is showing if I call test.api.konfigurator.company.de from the browser.

So this made sure that the VHOST works. ...

Score: 0
Available Disk Space
us flag

I have an ubuntu server with 2x 4Tb hard drives. This was set up with Hetzner's install image using software RAID 1.

I'm confused by the output of df -h. It lists 1.9T available for / and 1.6T for /home.

What confuses me is that /home is a sub-directory of /, so does this mean that the total available space here is 1.9T, or does it mean that the total space available is 3.5T of which 1.6T is allocat ...

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.