Questions tagged as ['ubuntu']
I have a problem, I've two virtual machines, but the problem is that when I turn on the second VM I lost the connection on the first one and vice versa.
Here is the bridge netplan configuration on the host server :
network:
version: 2
renderer: networkd
ethernets:
enp1s0f0:
dhcp4: no
dhcp6: no
bridges:
viifbr0:
addresses:
- 135.xxx.159.xx/24
- 2001:xxx ...
I'm trying to use VirtualBox to set up an Ubuntu Linux VM to emulate the server I'm developing for. The server has three network interfaces.
On the server, there is a web page hosted by ng
and an instance of Mosquitto. We want these to be available from one interface, the management interface, but not the other two. We use a VRF to isolate the management interface.
The VirtualBox adapters are ...
I'm having a recurrent issue with custom .deb packages and their triggers. We have made some "meta packets" for our deploys to force & check some configurations. The idea is to keep many servers with the "same" config without needing to check manually on each update. Let's call them as an example: grafana-conf and elasticsearch-conf.
In order to execute the reconfiguration scripts when the "child p ...
I am using Hetzner cloud where I created 2 servers in a subnet (10.1.0.0/24) - one only with local ip, another one has public IP and is used as a NAT gateway for the first server.
On private server I configured an ip route
ip route add default via 10.1.0.1 dev enp7s0 onlink
Here is a resulting list of routes
root:~# ip route show
default via 10.1.0.1 dev enp7s0 onlink
10.1.0.0/16 via 10.1.0.1 dev ...
I've got an ovpn config to connect to private network from Ubuntu 20.04 LTS. But every time after starting the vpn I have to run those commands
resolvectl dns tun0 10.0.0.255
resolvectl domain tun0 "~domain1.com"
resolvectl domain tun0 "~domain2.com"
to make dns work with private subdomains. Is it possible to include those commands into ovpn config and execute them automatically, when I connect to thi ...
So I have a site hosted on VPS Hosting Plan 2 of Hostinger, and it uses MySQL for the database, with the OS of my Virtual Machine being Ubuntu 18.04.
I have to keep MySQL's strict mode
disabled globally the entire time for some parts of the site to work. For context, I am only managing the server end at the moment, so I cannot fix the parts of this site that require me to disable strict mode
. Those f ...
The configuration I have set (below) works for localhost
but not for my domain. The goal is to access port 3000 externally with basic auth so only I can access it. When I go to localhost
, it is upgraded to https
, I have to complete the authentication, and then port 3000 is shown, just as it's meant to. However, going to api.example.com
does not prompt authentication, does not upgrade the connection, and ...
I have an existing openldap server on Ubuntu Server 22.04 and am trying to set up a kerberos server with it, following this guide: https://ubuntu.com/server/docs/service-kerberos-with-openldap-backend
The accounts are created and tested, they work fine (I reference them by cn, but they have a uid; I just created them in apache directory studio first). I've done "dpkg-reconfigure krb5-config" and edi ...
Would you please help me . I have a 2 vps (Ubuntu) I want to forward all traffic from one vps(1.1.1.1) to another (2.2.2.2) vps except ssh port on A vps(1.1.1.1) A server is 1.1.1.1 B server is 2.2.2.2
1st try:
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -i eth0 -d 1.1.1.1 -j DNAT --to 2.2.2.2
iptables -A FORWARD -i eth0 -d 1.1.1.1 -p tcp --dport 22 -j REJECT
iptables -A FORWARD -i et ...
I have a new test case for https://github.com/xdp-project/bpf-examples here https://github.com/tjcw/bpf-examples/tree/tjcw-integration-0.3/AF_XDP-filter . It is for filtering flows; the idea is to send the first packet of a flow to userspace, have the userspace determine (by looking at the fivetuple of the packet) whether the flow is acceptable or not, and setting an entry in an eBPF map accordingly. ...
I am currently trying to set up multiple devices with Ubuntu (20.04.5 LTS) and the drive must be encrypted, so I used LUKS during the installation. (I checked "Use LVM with the new Ubuntu installation" + "Encrypt the new Ubuntu installation for Security" in the process)
However, the encrypted drive is much slower (as expected), but I read this article about the possibility to speed up dm-crypt I/O ...
I need your help
I am using AWS and ubuntu os 20.04. The web server uses nginx and uses php mail I installed php 7.3 pfm.
I used postfix for mail function and connected to SMTP. It's not Google, it's an e-mail called NAVER Works used in Korea.
On the server
server code
"This is Test" | mail -s "This is the subject" xxxxx@grigompictures.com - aFrom:xxxxx@grigompictures.com
I checked that the mail was s ...
2 VLANs
- 10.160.32.0/24 on ens160 -> * (assume multiple non-merging subnets)
- 10.192.16.0/24 on ens192 -> management
Through ens160 I can hit other networks via routing. Through ens192 is my management interface which isn't routeable via ens160.
ping -I ens160 10.192.16.240
PING 10.192.16.240 (10.192.16.240) from 10.160.32.240 ens160: 56(84) bytes of data.
^C
--- 10.192.16.240 ping statistics ---
2 ...

My OS is Ubuntu 22.04
I started out by installing php 8.1
I then installed Apache/2.4.52 (Ubuntu) Server
Then I added the following:
sudo apt-get install -y php php-cli php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-bcmath libapache2-mod-php
The command: php -v, produces:
PHP 8.1.2-1ubuntu2.8 (cli) (built: Nov 2 2022 13:35:25) (NTS)
Then I modified:
/etc/apache2/mods-enabled/dir. ...
I am running an Ubuntu 18.04.6 LTS server with the postfix 3.1.0-3ubuntu0.4 package.
Both the Apple Mail client and the Postbox client experience a weird delay when first sending an email to the smtp service. Eventually Apple Mail retries and works but Postbox gives up.
In the initial exchange, the email client appears to send a '???' as a command after the server greeting, or at least it is logged ...
long time reader, first time poster...it's been over a decade, crazy.
Today, I've set up a left over server from my old job in a local data center for a friend of mine and myself.
As by my contract, the data center colocation includes 2 separate switch ports and a /29 net of public ips.
To split my friend's server stuff from mine entirely and to be able to use the distro of choice, I have set up the se ...
on my ubuntu server (DigitalOcean droplet) I'm trying to send an email for first time.
I downloaded mailutils and mailx with following command:
sudo apt install mailutils -y
On configuration screen I chose default options: Internet site and then name sender as my droplet name.
To send email I do the following (replacing myemail@example.com):
echo "Hello world" | mail -s "Test" myemail@example.com

My setup:
ubuntu 22.04
Apache/2.4.52 (Ubuntu) Server
I created /etc/apache2/sites-available/test.mysite.conf:
<VirtualHost *:80>
ServerAdmin admin@xxxxxxxx.com
ServerName test.xxxxxxxx.com
DocumentRoot /home/test/deploy/current
<Directory /home/test/deploy/current>
AllowOverride all
Options -MultiViews
Require all granted
</Directory>
ErrorLo ...
Here is the problem: I have integrated Ubuntu Desktop with Active Directory authentication. Adding domain user or group to /etc/sudoers.d wasn't so difficult. But with graphical interface and the sorry piece of software called polkit there is a problem:
- Every "elevated" action requires the password. And not any sudoers' user password but first local user password.
- Depending on environment many set ...

I am setting up a pacemaker cluster with two nodes on Ubuntu Server 22.04.
Both are Dell servers with a fully licensed idrac module, so I would like to use the drac5 stonith agent to make the cluster happy without a third node. The problem is that I cannot seem to figure out how to specify a password for the agent. Password is simply not a config option in either the pcsd GUI or with "pcs resou ...
I have a a server with single NIC which has 4 pci ports. I already tried DPDK binding so before binding "dpdk-devbind.py -s" returns this :
Network devices using kernel driver
0000:01:00.0 'OneConnect NIC (Skyhawk) 0720' if=eth0 drv=be2net unused=vfio-pci *Active*
0000:01:00.1 'OneConnect NIC (Skyhawk) 0720' if=eth1 drv=be2net unused=vfio-pci
0000:01:00.2 'OneConnect NIC (Skyhawk) 0720' if=eth2 drv ...
I have 3 computers hooked up to a local network. I have written a python script to open a dedicated iperf server and an iperf client on separate threads. I want every computer to connect to the other 2 computers and at the same time, accept connections from the other 2 computers. For this, I am running 4 different threads (2 server threads that accept incoming client connections, 2 client threads that c ...

After following the steps given in the README of the open source tool provided by Jaguards, I always get the "Database configured incorrectly" warning icon, and can't manage to login with the default credentials, or worse, a "checkDB error : com.google.gwt.user.client.rpc.StatusCodeException: 500 The call failed on the server; see server log for details" popup.
Steps followed :
- Install a tomcat serve ...
I have been running into an issue with the package of e2fsprogs
under ubuntu for weeks. It keeps me from installing updates to my system and to upgrade the system.
I am using Ubuntu 18.04
on my server. All updates are blocked because of the required installation of e2fsprogs
that blocks e2fsprogs-l10n
.
If I try to run the installation, if breaks with E: Sub-Process /usr/bin/dpkg returned an error code ...
I have an old laptop with an external HDD as a home server. The server runs Ubuntu 22.04. It is my DNS server (pi-hole), file server (smb), a web server for local sites, a bunch of python scripts on corn, and much more.
I have an additional identical laptop and external HDD. I would like to backup my entire server: my files, but also configs, cronjobs, python libraries, and stored web credentials ...
I am looking to redirect all HTTP traffic to a proxy server and the these iptables commands doesn't work:
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp –dport 80 -j DNAT –to-destination 10.0.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 80 -j REDIRECT –to-ports 3128
Error message:
iptables v1.8.4 (legacy): unknown option "-m"
My netplan config, with multiple interfaces and networks, works perfectly apart from ping to (or from?) local network.
Here's my setup:
network:
version: 2
ethernets:
ens160:
dhcp4: no
addresses:
- 172.16.1.114/16
match:
macaddress: 00:50:56:aa:00:1d
mtu: 1500
nameservers:
addresses:
- 172.16.1.11
- 172.16.1.20
searc ...
I recently had some problems with setting up bond interfaces during deployment with canonical maas. Two server stuck with the same mac address as virtual mac address and I have no idea where I can set or clear this. Within Ubuntu the virtual mac is treated as the physical address.
I would appreciate any help.
Kind Regards
I have 4 VMs running Ubuntu within Parallels (host machine is OS X). I am trying to set up SSH so that I can SSH into them, but I can't connect to them individually. They are all reporting the same IP with ip -a
. I've tried it with both the Shared and Bridged networking modes, and get the same thing both times. They all have unique hostnames, but if I try to connect via hostname from OS X, the hostna ...