New answers tagged ubuntu
0
votes
How is it possible to connect multiple devices using the same IP to a machine with multiple interfaces and have them all work?
You might look into bonding ports together. It might be necessary for switch support to make this work as you desire.
0
votes
How is it possible to connect multiple devices using the same IP to a machine with multiple interfaces and have them all work?
For each device that has a mac address you need to assign a seperate ip. Or setup simple dhcp server and assign the ips dynamically. You can't assign the same ip to two different devices,that will ...
0
votes
Accepted
not able to send mails from linux ubuntu : 20.04 by using email mailutils (sendmail or mail keyword)
You need to configure the sasl_password parameter:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level ...
1
vote
SSH Permission denied (publickey) fails on Ubuntu but succeeds on MacOS
RSA SHA-1 hash keys are depricated on new ubuntu version. For quick solution you can enable the RSA keys on the local computer, add these line in ~/.ssh/config or /etc/ssh/sshd_config and restart the ...
1
vote
Accepted
How to upgrade kubernetes repos on ubuntu
Read the documentation you are linking to again.
Quote from it:
Change the version in the URL to the next available minor release, for example:
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring....
0
votes
Installing Ubuntu on a Dell R210 with S100 raid controller
I found a solution.
The issue occurs when ubuntu need to make disk changes.
Download DBAN linux image (https://dban.org)
Burn ISO in usb or cd or dvd
boot with this disk
Execute a Wipe in your disk(s)...
2
votes
Accepted
What is the meaning/cause of this extra entry in the output of `ip address` when another device connects to the network?
The likely cause of the observed symptom: a new IPv6 address appears on a node (which happens to be running microk8s) in the LAN after booting an IPv6 router on the same LAN is that the router sent ...
1
vote
Why am I not able to resolve names on subnet behind a lab network?
It seems like your dns server is not reachable on 10.150.0.5, because you forward everything to 172.16.0.2.
You could try to change your iptables rules for dns forward to something like this
iptables -...
0
votes
Is opening SMTP port with default Sendmail config safe?
Outgoing SMTP is not a problem. Incoming could be.
Make sure in your sendmail config that you are not an open relay.
You could run this to prevent an open relay
sudo sh -c 'echo "FEATURE(`...
1
vote
Accepted
Is opening SMTP port with default Sendmail config safe?
Yes, you're very probably running a wide-open mail server and will shortly become a spam source if you aren't one already. You do not need to be able to receive email in order to send it. In your ...
1
vote
Forbid characters in Ubuntu password
As recommended by @HBruijn you can use the pam-script module.
Example /etc/pam.d/common-password
# here are the per-package modules (the "Primary" block)
password requisite ...
0
votes
Very low resource usage on Openlitespeed (LOMP) on Ubuntu 22.04
Figured it out. I noticed this issue didn't exists with MySQL. Turns out mariaDB has a max_connections parameter. I edited it under the file /etc/mysql/mariadb.conf.d/50-server.cnf and then ran the ...
1
vote
How can I route traffic over IPSec tunnel?
I up this intersting post. I have a similar problem. Normaly ipsec manage the main route via the file ipsec.conf and the directive leftsubnet=10.0.0.0/8 and rightsubnet=192.168.0.0/16. So for he main ...
0
votes
virt-manager Spice copy paste doesn't work
I don't have enough reputation in order to comment so I'll just leave this as an answer.
Since Debian 12, I've had to manually run spice-vdagent as the user even though the service/socket are running ...
0
votes
How to replace failed disk on Linux Raid (mdadm)
About the only clue I see is this:
/dev/sda1 2048 3886718975 3886716928 1.8T fd Linux raid autodetect
It appears that your /dev/sda partition table, and probably /dev/sda1, is so messed ...
0
votes
If I have multiple versions of Postgres installed, how do I use a version specific tool?
2 things:
Your "viceversa" not working actually is not true. pg_dump is able to connect to databases of an older version. So a pg_dump version 14 should work with a postgreSQL 12 database.
...
2
votes
Recover ZFS mirror from pool with unavailable device
SHORT ANSWER: restore from backup. If that fails, try the suggestion below. If even that fails, contact a professional recovery service.
LONG ANSWER: you basically added the disk as a top level vdev (...
0
votes
Accepted
How can I keep track of nginx restarts and reloads?
With some auditd rules
-a always,exit -F path=/usr/sbin/nginx -k nginx_exec
-a always,exit -F arch=b64 -S kill -F a0=1 -F a1=9 -k nginx_restart
-a always,exit -F arch=b64 -S kill -F a0=1 -F a1=1 -k ...
0
votes
How to get URLs for requests currently served by Nginx?
To show the full url, add the following
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$request_uri $server_protocol" '
...
1
vote
Accepted
Set stack limit on WSL2 permanently
/etc/security/limits.conf are used by pam_limits. You need to authenticate via ssh, su, sudo, for PAM and limits.conf file to be taken in consideration.
I see as alternative to set the limits in ~/....
0
votes
Postgres /root": Permission denied
Step 1
stat -c "%G" .
Step 2
sudo usermod -aG <the output from the step 1> postgres
df.tips/t/2063/2
1
vote
Nginx Embedded Variables - How do you get the domain name used in a request?
From server_name variable documentation, you can try with "named capture groups". This handles subdomains (but not the subdomain-less corner cases...):
server {
listen 80;
listen [::]...
2
votes
Turn off buffering in systemd unit-file?
You may be encountering a long-standing systemd bug. For more info, see the accepted answer to:
systemd does not consistently capture and log stdout
1
vote
Accepted
Configure nginx running locally to server the port running docker container locally
Firstly, open the configuration file located at /etc/nginx/sites-enabled/default.
Check the file's content; you will easily find a location /. Add these three proxy lines inside the location /.
...
0
votes
Accepted
How to properly do ip specific routing on sbc gateway/router? Not forwarding responce
Try adding a NAT on the VPN interface, the issue could be the destination serve/ the network from the other VPN side is not ware of the 192.168.100.0/24 try adding a nat on the VPN Interface.
iptables ...
0
votes
How to properly do ip specific routing on sbc gateway/router? Not forwarding responce
The remote end needs a route for how to reach 192.168.100.0/24.
That route will be via the VPN server. Remember that routing works both ways, and need not be symmetrical; a packet is a discrete unit, ...
0
votes
Configure nginx running locally to server the port running docker container locally
Did you added these lines in your nginx configuration for configuring reverse proxy from 9000 to 80 port.
location /some/path/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $...
0
votes
Configure nginx running locally to server the port running docker container locally
You need to bind the docker container 9000 port to your localhost. Use the following command for binding.
docker run -d -p 9000:9000 <your_container_image>
1
vote
pm2 process kill the server by running pm2 update multiple times
Try using below command options while starting pm2 process.
It will automatically restart pm2 according to adjusted RAM or Cron time
pm2 start app.js --max-memory-restart 1G
pm2 start app.js --cron-...
0
votes
Rkhunter reports file properties have changed
Since you mentioned Ubuntu which indeed comes with APT, this happens because you update executable files via apt update && apt upgrade but the dabatase of rkhunter is not updated accordingly.
...
0
votes
How to install postgres and create new user and db using ansible playbook?
You can read in this link that:
Ansible modules are executed on the remote machine by first substituting the parameters into the module file, then copying the file to the remote machine, and finally ...
0
votes
poor docker / nginx throughput when running with bridge network on ubuntu
Do you need PHP - and PHP-FPM? Your question speaks about profiling using a static HTML file. The response will clearly be different for static vs dynamic PHP.
If you are only interested in static ...
0
votes
Remotely use root over ssh for unison
Running Unison as root on a remote system carries security risks, and it's generally not recommended. However, if you have a specific use case that requires it, you can use sudo and SSH to execute the ...
1
vote
Swap file is not recognized by the Ubuntu server
You probably can find out better where the OS has it swapfile mapped by executing cat /proc/swaps before doing anything "in the blind".
Anyway, to create a new swapfile is follow this steps:
...
0
votes
ufw blocking apt
This issue has been driving me mad for days, ended up resolving it by just completely uninstalling ufw and cleaning up any leftover resources and then doing a clean install again with the same port ...
5
votes
Is it bad that I don't update the server?
Yes, it is always a bad idea to ignore updates, as this will make your server vulnerable to known exploits / zero-days (And by the way, it is possible to revert an update in linux).
Your ...
0
votes
Strongswan on host, docker container unable to pass through
That NAT rule is incorrect as that is basically what Docker already does anyway (NAT private Docker networks to the IP of the host).
Since the local traffic selector (leftsubnet) for the VPN is the ...
1
vote
Accepted
Did I just watch my NVMe drive fail? Or possibly my motherboard?
I just had a look at your pastebin and that doesn't look good :(
I'm going to throw ideas your way anyway:
NVME tend to run hot when heavily used. If it's overheating, it could cause premature wear ...
0
votes
Accepted
LACP between Ubuntu 22.04 and Open vSwitch: Ubuntu neither responding nor sending LACP PDU
I took another stab at this on another set of VM and it's now working!
The difference I can see is that I added the interfaces in netplan yml ie:
network:
ethernets:
ens1:
addresses:
...
2
votes
Accepted
In apt, How to move package from direct package to transitive package?
You can use apt-mark to set a package to automatically installed.
Example:
$ sudo apt install php8.1-cli
$ apt search php8.1-cli
php8.1-cli/jammy-updates,jammy-security,now 8.1.2-1ubuntu2.14 amd64 [...
1
vote
How do I restart the Samba service?
You might want to try this:
systemctl restart smbd
systemctl restart nmbd
This will work if you are using systemd.
1
vote
Missing php8.0-fpm sock file
Support for Ubuntu 18.04 was removed from Ondřej Surý's PPA on June 15, 2023 as that version of Ubuntu is no longer supported.
If you really must use PHP 8 on an Ubuntu 18.04 server, then your only ...
0
votes
Missing php8.0-fpm sock file
You don't install it - it is created automatically when PHP-FPM is run. It is created in the location defined in the FPM config.
The valid use-cases for running multiple PHP versions on the same host ...
1
vote
Accepted
How Can I Automatically Restart MariaDB After Memory-Induced Crashes to Reduce Website Downtime?
Based on my research the best practice is this:
# Restart crashed server only, on-failure would also restart, for example, when
# my.cnf contains unknown option
Restart=on-abort
RestartSec=5s
In this ...
2
votes
Accepted
connection refused mysql with telnet
Your mysqld is only listening on the loopback interface. Add the bind-address parameter to the [mysqld] section and restart mysqld.
[mysqld]
bind-address=0.0.0.0
0
votes
How i can init kubeadm on containerd or cri-docker?
I had the same problem and I solved it by doing what is written in this tutorial :
https://www.jjworld.fr/kubernetes-installation/
1
vote
Accepted
Apache2 not listening on SSL on Ubuntu
If the Apache process is not listening on port 443 you are missing the Listen 443 directive in your configuration. It should be enabled by default if the ssl module is active, so make sure the module ...
2
votes
Apache2 not listening on SSL on Ubuntu
Also (check other answers) you chould change the files in the config. This:
SSLCertificateFile /root/cert/ca-bundle.crt
SSLCertificateKeyFile /root/cert/Private.key
SSLCertificateChainFile /root/cert/...
0
votes
Apache2 not listening on SSL on Ubuntu
It looks like your domainname.conf file is not enabled.
Checkout the /etc/apache2/sites-enabled and to find out which configuration file is enabled.
0
votes
Apache2 not listening on SSL on Ubuntu
Configuration from /etc/apache2/sites-available is not included in the apache2.conf, but configuration from /etc/apache2/sites-enabled. Create a symlink using
sudo a2ensite domainname
Top 50 recent answers are included
Related Tags
ubuntu × 16462linux × 3557
apache-2.2 × 1147
nginx × 1018
ssh × 856
networking × 843
mysql × 690
php × 564
postfix × 505
iptables × 486
amazon-ec2 × 479
debian × 438
apt × 416
domain-name-system × 353
security × 353
apache-2.4 × 343
amazon-web-services × 335
ssl × 296
email × 296
permissions × 267
ubuntu-12.04 × 249
bash × 246
docker × 241
openvpn × 239
linux-networking × 234