Configure Ubuntu 18.04.3 with Intel AX200

I recently received a new ThinkPad P1 Gen 2 Laptop with an Intel AX200 Network Adapter and installed Ubuntu 18.04.3 LTS. Ubuntu didn’t recognize the adapter right off the bat (“No Wi-Fi Adapter Found”), so I searched around and saw the AX200 is supported starting in Linux 5.1, meaning my version falls short:

$ uname -rs Linux 5.0.0-23-generic

I read thru a bunch of posts surrounding similar problems which all pointed towards backport as a solution, so I followed the instructions on the bottom of this page in the “How to install the driver” section (and reproduced in this post). I had no problems with the install, but nothing has changed after rebooting: still no wireless adapter found.

I’m out of ideas at the moment. Does anyone see what I’ve done wrong or have ideas for other solutions?

Configure GRE via Netplan (headless/aws)

How to translate the below to a Netplan yaml file with networkd as the renderer?

At the command line these commands work and build a GRE tunnel with an MTU of 1476.

ip tunnel add gre1 mode gre remote [x.x.x.x] local [y.y.y.y] ttl 255 ip link set gre1 up ip addr add [z.z.z.z]/30 dev gre1 

Where [x.x.x.x] is the remote GRE endpoint, [y.y.y.y] is the private IP of GRE endpoint and [z.z.z.z] is the address assigned to the local GRE interface.

Tried using the following yaml fragment the tunnel is defined but MTU is ‘ignored’ and the LAN i/f MTU-24 is set.

    tunnels:         gre1:             mode: gre             local: [y.y.y.y]             remote: [x.x.x.x]             mtu: 1476             addresses:                 - [z.z.z.z]/30 

The output from various commands:

# systemctl status systemd-networkd | grep gre1 Sep 16 11:49:40 ip-y-y-y-y systemd-networkd[1283]: gre1: Cannot enable IPv6 for interface gre1: No such file or directory Sep 16 11:49:40 ip-y-y-y-y systemd-networkd[1283]: gre1: Could not bring up interface: Address family not supported by protocol  # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000     link/ether 16:74:7e:e0:07:46 brd ff:ff:ff:ff:ff:ff     inet [y.y.y.y]/24 brd [y.y.y.255] scope global dynamic ens5        valid_lft 2631sec preferred_lft 2631sec     inet6 fe80::1474:7eff:fee0:746/64 scope link        valid_lft forever preferred_lft forever 3: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN group default qlen 1000     link/gre brd 4: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN group default qlen 1000     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff 5: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1000     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff 6: gre1@NONE: <POINTOPOINT,NOARP> mtu 8977 qdisc noop state DOWN group default qlen 1000     link/gre [y.y.y.y] peer [x.x.x.x]     inet [z.z.z.z]/30 brd [z.z.z.255] scope global gre1        valid_lft forever preferred_lft forever 

How can I configure Ubuntu to require answers to random math problems in place of a password?

For the home Linux laptop (running Ubuntu 18.04), for the kids, I would like to be able to configure the computer to require answer(s) to randomly selected math problems to log in, rather than requiring a password. (For a specific user account only, for graphical login only.)

I’ve searched the internet but haven’t found anything about this. It doesn’t seem likely that I’m the first one to think of this idea, but internet searches do suggest that. 🙂

Security isn’t an issue since the only people with physical access to the computer are all trusted. (If there is anything I should configure to disallow SSH access or for other security concerns, you could mention it, but I doubt my ISP would let port 22 traffic through from the internet anyway.)

The benefits should be obvious, but to be explicit about them – the point is that there could be a mild barrier to “getting screen time” that would involve something a little bit educational.

I am currently using Gnome with sddm as the display manager, but I don’t know if that really matters.

Configure gRPC with Burp Suite

I have been given a task to do security auditing of the APIs which are running in gRPC. I am using BloomRPC for querying the gRPC Services. But there so no such option in BloomRPC to proxy the requests to a port. Is there a way I can configure gRPC requests with Burp Suite so I can intercept those requests.

P.S: I don’t know if this the correct place to ask this question. If it’s not then please refer me somewhere else

Configure specific NIC for incoming local network

I currently have an Ubuntu 18.04.3 I have 2 NICs setup with, both NICs point to different router’s. 1 is my normal network that is reachable through all my other devices and has access to the internet, the 2 one is a PFsense router that’s connected through VPN to the external network. The PFsense router is NATed behind my existing router and devices under this router can’t be reached by my other devices that aren’t under this router.

Here is my route table Route table

I want to be able to reach external internet through ens19 but still can connect to other devices on ens18 in my internal network

I’ve partially achieved this, i’m reaching the external network through ens19 and can reach the internal devices through ens18 from this machine, however if I try to connect to this device through ens18 it won’t work.

thank you in advance.

How to configure Apache in Ubuntu to work with Certbot?

In my Arch Linux, I configured my Apache in /etc/httpd/conf/httpd.conf as follows for using certbot:

uncomment the following three lines for SSL:

LoadModule ssl_module modules/ LoadModule socache_shmcb_module modules/ Include conf/extra/httpd-ssl.conf 

uncomment the following two lines for Proxy:

LoadModule proxy_module modules/ LoadModule proxy_http_module modules/ 

add port 443 and 8888 as listening ports:

Listen 443 Listen 8888 

Also add SSLCertificateFile & SSLCertificateKeyFile to /etc/httpd/conf/extra/httpd-ssl.conf:

SSLCertificateFile "/etc/letsencrypt/live/" SSLCertificateKeyFile "/etc/letsencrypt/live/" 

As I know that Apache in Ubuntu does not use httpd.conf, but how do I do all these above in Ubuntu 19.04?

Any ideas?

Configure error: could not find the zlib library

I am trying to install lalsuite on ubuntu according to the instructions here:

Everything went smoothly until I ran

./00boot ./configure --prefix=$  {VIRTUAL_ENV}/opt/lalsuite --enable-swig-python 

And the error I get is:

configure: error: could not find the zlib library 

I am doing all this inside a virtual environment using virtualenv. I’m fairly certain I have the zlib library as I installed it with:

$   sudo apt install zlib1g 

After a thorough search for a solution I found someone with the same problem:

But I do not really understand their solution. My interpretation of their fix was to do the following:

First reinstall pkg-config:

sudo apt-get update sudo apt-get install pkg-config 

Then write the line suggested by the answer:

echo 'export PKG_CONFIG=/usr/bin/pkg-config' >> ~/.bashrc 

(I am doing all this inside the virtualenv by the way).

Then restart everything and try the same thing again:

./00boot ./configure --prefix=$  {VIRTUAL_ENV}/opt/lalsuite --enable-swig-python 

Sadly the same error appears.

Any help is appreciated.

How do I configure Apache web server to be a reverse proxy server?

Using RHEL 8.x and Apache Web Server, I tried modifying httpd.conf. I based my modifications on this Apache website.

But my results were that in the web browser I saw "Service Unavailable." If I bypassed the Apache web server, the destination web server works fine. I accessed the destination server with an IP address. How do I configure Apache web server to be a reverse proxy server? (I know I have to modify the httpd.conf file. But using "proxypass" variations in the syntax of the…

How do I configure Apache web server to be a reverse proxy server?