Skip to primary content
Skip to secondary content

www.nordal-lund.dk

Release your inner geek

www.nordal-lund.dk

Main menu

  • Home
  • Support
  • Fellow blogs

Tag Archives: ifconfig.me

How-to: Get your public IP from a terminal

Posted on 1 February 2015 by Kasper Lund
Reply

How do you get your public IP from the terminal:

curl ifconfig.me

curl is a prerequisite, besides that, it’s super nice and easy 🙂

Maybe you’re on Windows and have powershell:

(Invoke-WebRequest -Uri ifconfig.me).content

Posted in Linux, Network | Tagged curl, ifconfig.me, Linux, public ip address, windows | Leave a Reply
  • SSH tunnels on steroids
    by Kasper Lund
    31 July 2025
    I have been using SSH tunnels for year, setting up a dynamic tunnel and configuring socks proxy in the browser has been my “way-to-go” tool for getting access to services at my home network, and to … Continue reading →
  • Puppetlabs apt GPG key expired
    by Kasper Lund
    8 April 2025
    Seems puppetlabs is trying to force people to the puppet core product, making live difficult for existing puppetlabs users.Lately the “official” apt GPG key expired at apt.puppetlabs.com, and trying to find help in the puppetlabs forum … Continue reading →
  • Resolve GNOME Calculator Currency Data Download Issue
    by Kasper Lund
    7 April 2025
    The calculator is trying to download currency conversion data but times out, disable this function by running this: gsettings set org.gnome.calculator refresh-interval 0 This should fix it!
  • Making the windows terminal great again
    by Kasper Lund
    14 January 2023
    Once again my employeer forces me to work from an inferior platform, so what are my options to get the best possible working environment? Heres some tips to what I’ve done so far. The windows terminal … Continue reading →
  • Re-Volt, even easier with rvgl launcher
    by Kasper Lund
    8 December 2022
    The RVGL launcher project has made it even easier to install and play the good old racing game ReVolt. To play on ubuntu, there are some prereqs you need to have in place, and not all … Continue reading →
  • Gnome NetworkManager and vpnc – use nm-connection-editor
    by Kasper Lund
    9 November 2022
    Gnome NetworkManager is awsome, supporting almost all kinds of VPN solutions, and all you need to do is install a plugin. My main issue is, that my customers often have a pre-build package (for Windows) containing … Continue reading →
  • systemd.mount replacing autofs
    by Kasper Lund
    11 January 2022
    I have been a very satisfied user of autofs for several years. Using a laptop in multiple location without reboot, could often cause annoying timeouts with hard mounted NFS shares. So I found autofs, which did … Continue reading →
  • Working with yaml files in vim
    by Kasper Lund
    16 November 2021
    when working with yaml files, indentation is crucial. You can setup vim to make it a little easier, like this: :set ai ts=2 sw=2 expandtab The above will set tabstop and shiftwidth to 2 spaces, and … Continue reading →
  • zfs filling up the /boot device with snapshots
    by Kasper Lund
    17 October 2021
    So, you are trying to update your system and get this: Requesting to save current system stateERROR couldn’t save system state: Minimum free space to take a snapshot and preserve ZFS performance is 20%.Free space on … Continue reading →
  • Scan for new drives on Linux – the easy way
    by Kasper Lund
    27 September 2021
    Adding storage to servers is part of every day work. this can be anything from a virtual disk on a virtual machine, to LUN’s presented from some external storage system. When the new disk has been … Continue reading →
  • Find and unmount CD drives with PowerCLI
    by Kasper Lund
    21 May 2021
    Sometimes someone forgets to unmount the CD drive of a VM. This will interfere with operation tasks like setting a host in maintenance mode or using Update Manager. I recently had this issue, and the “update … Continue reading →
  • Move the docker data directory
    by Kasper Lund
    11 February 2021
    The default location for the docker data directory, when using overlay2 storage driver is /var/lib/docker. Maybe you want to move it to another location, and it’s actually pretty easy. Stop the docker service: sudo systemctl stop … Continue reading →
  • Windows 10 missing ssh-copy-id
    by Kasper Lund
    19 December 2020
    Microsoft is finally shipping Windows with SSH. On my Windows 10 machine, it’s OpenSSH: PS C:\Users\Kasper> ssh -VOpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 Somehow they missed to get the ssh-copy-id tool implemented, so we need to find another way … Continue reading →
  • Postgresql not listening on docker interface after reboot
    by Kasper Lund
    12 August 2020
    /etc/postgresql/12/main/postgresql.conf is where you define the interfaces for postgresql to listen on. It’s done with the line “listen_interfaces =”So, to get postgresql to listen on a docker interface, you have to add the IP address to … Continue reading →
  • Ping not permitted in WSL
    by Kasper Lund
    11 June 2020
    Using Windows subsystem for Linux (WSL) is so nice, when you are forced to work from an inferior OS, sometimes also referred to as “a gaming console”Especially combined with the Windows Terminal, which I wrote about … Continue reading →
  • Finally a decent terminal for Windows
    by Kasper Lund
    10 June 2020
    Tip! Check out my new post about making the terminal great again here For years and years Windows users have had to work with disabled tools when trying to work in the command line interface. The … Continue reading →
  • Looking for clear text authentication with tcpdump
    by Kasper Lund
    17 May 2020
    Login services not using encryption, is unfortunately still often seen in the wild. I started out in the IT business around 2000, and even back then, clear text authentication was bad, but still we see it … Continue reading →
  • Balance your VMs across ESXi hosts in a vSphere cluster with local storage
    by Kasper Lund
    21 February 2020
    The Citrix guys in my company has a bad habbit of using local storage, probably because they have had some bad performance experiences in the past. Local storage is not good for the vSphere admin, as … Continue reading →
  • Powershell menu script
    by Kasper Lund
    21 February 2020
    Do you ever need to give some input to a script? Maybe its a long filename or some other long and complex string, or maybe you’re just lazy like me? I wrote a script for handling … Continue reading →
  • Nvidia MX150 mobile GPU on Ubuntu with secure boot
    by Kasper Lund
    13 December 2019
    I just got a replacement laptop, as my previous Thinkpad T580 started to freeze after > 10 minutes of usage. Luckily my company just replaced the thing, so I didn’t have to think about anything else … Continue reading →
Proudly powered by WordPress