New answers tagged

0 votes

VLAN interface is not acquiring specified IP Address using systemd-networkd on Ubuntu

I got the solution after reading man page for systemd.network. I changed File: 30-static.network to [Match] Name=enp2s0 [Network] Address=192.168.1.44/24 Gateway=192.168.1.11 DNS=8.8.8.8 DNS=8.8.4.4 ...
user avatar
  • 359
0 votes

Conflict between mariadb-server-core-10.3 and mariadb-server-10.3 1:10.3.30+maria~bionic on Ubuntu 20

Looks like the issue was indeed a conflict between the manual repo installed a long time ago and the bundled MariaDB package with newer Ubuntu releases. I took the following steps - 1. Manually apt-...
user avatar
0 votes
Accepted

Ubuntu 18.04 multi-AD-User mount share in /home

After a long overdue period, I finally figured out what the issue was. Turned out the krb5 keys were expiring and users were not signing out of the ssh sessions. So after I put a timeout on SSH ...
user avatar
0 votes

Can I delete folders in /lib/modules/ after calling "apt-get purge"

The correct way to remove those is to uninstall unused linux-image- and linux-headers- packages. # apt list --installed | grep -P "linux-(image|headers)-" # apt remove linux-image-5.10.0-10-...
user avatar
  • 1,466
0 votes
Accepted

mdadm raid1 irregular degraded without reason

One drive goes bad is not enough reason for I/O errors appearing on the MD RAID device. It should never display I/O errors, even if some component device fails, this is why we are using it anyway. So ...
user avatar
3 votes

How to capture USB traffic using Wireshark in linux CLI?

It looks like it's tshark command in charge of capturing stuff from the command line. First, we need to identify the device we want to capture. Use tshark -D $ tshark -D 1. enp1s0 2. lo (Loopback) 3. ...
user avatar
  • 173
0 votes

How to prevent changing ownership of '/data/db' in mongodb pod

You need to add securityContext for your volume, something like following. securityContext have more options so you can adjust permissions according to your needs. spec: securityContext: fsGroup:...
user avatar
  • 184
1 vote

Grub incorrectly escapes $ character in its settings

Just a note for any newcomer like myself. I am working on Fedora 36 and by default GRUB2 uses BootLoaderSpec(BLS). BLS uses blscfg command to read a .conf file in /boot/loader/entries/. It seems that $...
user avatar
  • 11
1 vote
Accepted

How do I make an OpenVPN server access the internet using its second IPv4 when a client connects to VPN on a specific port?

You should use /24 instead of /8 in the -s matches of your SNAT rules. FINAL TOUCH: after changing the rules try iptables -t nat -F POSTROUTING and restart the ufw, and check with iptables-save -t nat ...
user avatar
  • 670
1 vote
Accepted

Error connection refused MERN APP on EC2

I'm not sure if you have solved this, but instead of using localhost:8080, have you tried to use the Public IPv4 DNS name from your AWS instance. So swap localhost:8080 to ec2xxxxx.eu-west-2.compute....
user avatar
  • 26
0 votes

IPv6 and LXC connectivity

In the IPv4 world it is fine, if you just to hide everything behind a NAT - and that is why connectivity works for IPv4 addresses. But as you have no doubt read NAT is basically not a thing in the ...
user avatar
0 votes

How to fix Docker build error

I am on Ubuntu image and the thing which I had to add to Docker file before apt-get update was: RUN echo Acquire::http::Proxy \"user:pass@proxy.com:port/\"\; >> /etc/apt/apt.conf.d/...
user avatar
0 votes

Add self-made certificate as trusted

The documentation for pdfsig on 22.04 there is an option -nssdir to specify the certificate database location. Otherwise it uses /etc/pki/nssdb or the database in the default Firefox profile, i.e. $...
user avatar
0 votes
Accepted

KVM bridge only assiging ipv6 adresses on VM

I had to explicitly disable dhcp4 and dhcp4 in the enp0s31f6 interface and restart both the host and the VM. This is the final netplan config i used: network: ethernets: enp0s31f6: dhcp4: ...
user avatar
0 votes
Accepted

Why Does Iptables rules not persisten by default?

There are several problems with that. Not everybody uses iptables program directly. Some people may use wrappers, e.g. ufw. In that case, it is better to not to store raw rules, but make a wrapper to ...
user avatar
0 votes

Nginx Bad gateway error code 502 archivematica

From what i know This error " failed (111: Connection refused) while connecting to upstream " means that the service that nginx wants to pass the connection to is not up or not responding ...
user avatar
  • 48
0 votes

How to change DefaultTasksMax in system.conf?

Okay I was just stupid, I forgot to remove the # before the statement.
user avatar
0 votes

Netplan (re)moving route from main routing table into different routing-policy

I wouldn't call this a solution, more a workaround. My problem was that I wanted to remove an unwanted route: the workaround is to create another route with a higher precedence! network: ethernets: ...
user avatar
0 votes

Add persistent bridge and tap in ubuntu 20.04 server

I simply added the ip link add and brctl addif to my /etc/rc.local script.
user avatar
  • 101
1 vote

spamass-milter[1403]: Could not retrieve sendmail macro "i"!. Please add it to confMILTER_MACROS_ENVFROM for better spamassassin results

Your milter expects a property of Sendmail which is not true for Postfix. As documented in the macro section of the postfix milter readme, the milter macro i provides the queue identifier, which is ...
user avatar
  • 6,563
1 vote

Cron Docker container not rebooting properly after unattended upgrades

You don't have any restart policy configured. The default restart policy is: No: Do not automatically restart the container. Add the restart policy to your compose file. cron: # your definition ...
user avatar
0 votes

"postconf: warning: /etc/postfix/main.cf: undefined parameter: mail" when running the command "postconf default_process_limit" in Ubuntu 20.04 Server

My last line in /etc/postfix/main.cf file was smtp_helo_name = $mail.example.com, but I didn't have a $mail variable defined. Since my mail host is actually called mail.example.com I just had to ...
user avatar
  • 63
3 votes

"postconf: warning: /etc/postfix/main.cf: undefined parameter: mail" when running the command "postconf default_process_limit" in Ubuntu 20.04 Server

Your last line is smtp_helo_name = $mail.example.com But you don't have any variable $mail defined. Use the actual DNS name of your mail host, not a variable.
user avatar
1 vote

Unable to start php-fpm on ubuntu 20.04

It seems that you already have a process running on port 8002 in your localhost identify the process with netstat -ltnp | grep -w ':8002' and check if you can kill it or not If another process need ...
user avatar
1 vote

Get usernames and IP addresses via tcpdump (or another capture tool) connecting to a MySQL server

list currently active sessions In your mysql prompt, you may typ the following for displaying currently active sessions: mysql> show processlist; Or this mysql query (which return the same info): ...
user avatar
1 vote

OpenVPN Not Listening on Non-Default Port 1190

There's a couple of things here. The first code block in your post shows OpenVPN listening on UDP. The second code block shows TCP. nc attempts to connect to TCP port 1190, not UDP port 1190. Your ...
user avatar
  • 3,479
1 vote

Config HPE servers BIOS Settings By OS

I wouldn't do it like that at all, I'd just either write a script to ssh into the iLO and make the changes or write it in Ansible - either way will be more 'transportable' to other systems and be more ...
user avatar
  • 99.8k
1 vote

qemu-kvm: prevent host from accessing passthru LVM disks

Found global_filter under /etc/lvm/lvm.conf: devices { ... global_filter = [ "r|/dev/disk/by-id/scsi-SATA_ST5000LM000-*|" ] Very cool that it supports regexp AND symbolic links. Even ...
user avatar
  • 151
1 vote

How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?

If you want to turn back the time, you can install Docker on this EC2 instance and then load one of the legacy Docker images for PHP 5.5, https://github.com/devilbox/docker-php-fpm Like others ...
user avatar
  • 848
1 vote

How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?

The most straightforward way to achieve this is build 5.5 from sources with necessary extensions and FPM, install it under /opt and configure your webserver to use this particular FPM instance for ...
user avatar
  • 2,246
-3 votes

Cannot display default NGINX page

For ubuntu you will need to enable the firewall using ufw enable command Add the ports needed using ufw allow 22/tcp first to access post firewall enabled then ufw allow 80/tcp or 443/tcp ufw status ...
user avatar
0 votes

Slow DNS resolution inside docker container

I believe it is related to the bridge MAC address issue as outlined here. You have to add a dummy interface with low MAC address as a slave to the bridge
user avatar
2 votes
Accepted

postfix loops back to myself email issue (was working before apt upgrade Ubuntu)

The mydestination has mail.raizen.top but not newyork.raizen.top. Therefore, Postfix thinks this is outside of the local systems and tries to deliver it using the newyork.raizen.top. MX 1 mail.raizen....
user avatar
  • 42.9k
0 votes

postgres log file rotates after about one meg

The default value for log_rotation_size is 10MB. Your file sizes are 10MB. Nothing surprising here. If you only want to rotate after 1 day you need to set log_rotation_size to 0. 0 disables
user avatar
1 vote

Cannot install libopencv-dev on Ubuntu Xenial

Try the following: sudo aptitude install libopencv-dev When you get a question that asks about resolving the dependencies, you will see (Y/n/q)?. Enter n. See what the next (Y/n/q) question is. ...
user avatar
0 votes

Port 80 filtered can't open it . Ubuntu 20.04

This more information about the iptables iptables --table filter --list --numeric Chain INPUT (policy ACCEPT) target prot opt source destination MAILCOW all -- 0.0.0.0/...
user avatar
0 votes

How to determine "Predictable Name" of network interface

We're using the following "one-liner" in our company to map existing interfaces to their respective predictable name: echo; [ -e /etc/systemd/network/99-default.link ] && echo '!!! ...
user avatar
0 votes

RDP into VM without an OS

After looking into the properties of the .vbox file of the VM the following setting was found: <Property name="TCP/Address" value="127.0.0.1"/> This prevents connections to ...
user avatar
0 votes

How to use ssh-copy-id on remote server?

Got solution, at this link: https://superuser.com/questions/1264012/how-to-ssh-copy-id-2nd-key-when-the-server-only-allows-publickey-authentication ssh-copy-id -f -i ~/.ssh/dev_pub_key.pub -o ...
user avatar
0 votes

How to use d-i and preseeding on 22.04

Ubuntu already switched to cloud-init in 20.04, they only kept the preseed method for compatibility. Now it's gone for good. You need to create a .yml file with the filename user-data, as specified ...
user avatar
0 votes

How to use ssh-copy-id on remote server?

Assuming you are using publickey validation already (which from what I read you do) I would double check permission for both folders and files related to ssh public key that is ~/.ssh this should be ...
user avatar

Top 50 recent answers are included