Ubuntu

171 readers
3 users here now

The Ubuntu community

Matrix space: https://matrix.to/#/#ubuntu-space:xentonix.net

founded 1 year ago
MODERATORS
1
 
 

Is it possible to get a list of all the various tweaks I've made to my system? Over the years I've probably installed and uninstalled a bunch of apps, tweaked and untweaked a bunch of configuration settings, ran a bunch of scripts that did god knows what to my system. To be fair, it's probably my fault for not writing them all down.

However can I somehow figure out how different my system is from a clean install? For example my system didn't come with any swap space so I added some. I remember doing that recently. However suppose I forgot that I did that (because it might have been a long time ago) how would I have rediscovered that and other changes I might have made to the system?

Thanks 👍.

2
3
 
 

OK, I'm a bit confused at the moment. I was ware that Ubuntu is selling subscriptions. I was aware that some security updates required subscription plans; BUT I was under the impression this was for extended support (i.e. after 5 years for a LTS version) or maybe for less frequently used packages beyond what the core distribution ships with.

Now, i get a pop up that looks like the regular update screen, but lists updates I cannot install. So, essentially a sales pitch for Pro. This sounds like exactly the reason, why I'm no longer on Windows.

Can I securely run Ubuntu Desktop and Server, current LTS, without paying?

4
 
 

Basically the headline. I‘ve been told by a colleague to not upgrade ubuntu immediately but wait for a couple months for bugixes and such. Is that correct?

I‘m currently on 23.04.

5
 
 

Hi! I‘m very new to ubuntu desktop. I‘m a server admin so linux is not new to me but a gui/desktop very much is.

What aesthetic or functional tweaks do you make to your ubuntu desktop?

I have seen a lot of people make it more mac os like. Thats not my thing for some reason. I‘d like to know what else there is.

Have a good one!

6
 
 

Hi there,

i came from Manjaro to KDE to ZorinOS, which is, as far as I know, an Ubuntu with some tweaks?! However it's running gnome Desktop and I'm quite confused about an obviously less used feature by Chromium / Chrome.

In Chrome you can install Websites like Nextcloud as a kind of PWA, which means that I am able to create a shortcut for Nextcloud Contacts e.g. from the context menu of Chromium by using the function "install as an App" or "create shortcut" which basically does the same. After "installation" I was able to find the Web-Shortcut in the App Menu and could run it in a separate window beside browser, with specific Icon, which makes working in different web Apps way easier.

That has never been a problem on KDE Desktop but on Gnome. After some research I found out, that it has to do with Gnome security related settings and the point, that I can't simply put shortcuts on the desktop, what chromium actually does. All the few support articles I could found are more then 10 years old so it might be different today, but I still couldn't find a way to make it work, what is really annoying.

I recorded a short video to explain. Maybe anyone can help me out on that :)

7
 
 

Ubuntu Pro is a service offered by Canonical for expanded CVE patching, ten-years security maintenance and optional support. Anyone can use Ubuntu Pro for free for personal use on up to 5 machines. The site also states:

Server with unlimited VMs*

The * is interesting here. Its says:

Any of: KVM | Qemu | Boch, VMWare ESXi, LXD | LXC, Xen, Hyper-V (WSL, Multipass), VirtualBox, z/VM, Docker. All Nodes in the cluster have to be subscribed to the service in order to benefit from the unlimited VM support

I use Proxmox and also i could not find any information on how the VMs would actually find the host’s license. So i decided to mirror the packages myself and use it in my VMs.

Nginx proxies the requests and authenticates with an Ubuntu Pro token.

I This post only provides the basic nginx config part and the script to setup the sources. You have to take care of any security to prevent an open proxy here. Please do not blindly copy & paste this :) . I use SSL. But that is optional of course.

You can get your authentication token from /etc/apt/auth.conf.d/90ubuntu-advantage after you enabled Ubuntu Pro on the host.

To generate the Basic authentication for the config file you can use:

echo "bearer:YOURTOKEN" | base64 -w0

/etc/nginx/sites-enabled/esm:

resolver 8.8.8.8 8.8.4.4 ipv6=off;
server {
    #listen [::]:80;

    server_name YOURHOSTNAME;
    #access_log /tank/steam/access.log main;
    error_log /tank/esm/error.log;
    access_log /tank/esm/access.log main;

    location / {
        proxy_cache esm;
        proxy_max_temp_file_size 1509600m;
        proxy_set_header Host esm.ubuntu.com;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        add_header X-Upstream-Status $upstream_status;
        add_header X-Upstream-Response-Time $upstream_response_time;
        add_header X-Upstream-Cache-Status $upstream_cache_status;

        proxy_ignore_client_abort on;
        proxy_redirect off;

        set $endpoint esm.ubuntu.com;
        proxy_cache_lock on;
        proxy_cache_lock_timeout 1h;
        proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
        proxy_cache_valid 200 90d;
        proxy_cache_valid 301 302 0;
        proxy_cache_revalidate on;
	proxy_cache_methods GET;
	proxy_cache_background_update on;
        proxy_set_header Authorization "Basic YOURAUTHTOKEN";
        proxy_pass https://$endpoint$request_uri;

    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/YOURHOSTNAME/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/YOURHOSTNAME/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
    if ($host = YOURHOSTNAME) {
        return 301 https://$host$request_uri;
    } # managed by Certbot
    listen YOURIP:80;
    server_name YOURHOSTNAME;
    return 404; # managed by Certbot
}

install-esm.sh:

#!/bin/bash
function list_include_item {
  local list="$1"
  local item="$2"
  if [[ $list =~ (^|[[:space:]])"$item"($|[[:space:]]) ]] ; then
    # yes, list include item
    result=0
  else
    result=1
  fi
  return $result
}

if [ ! -f /etc//os-release ]; then
   echo "Could not find /etc/os-release"
   exit 1
fi

. /etc/os-release

ESM_FILE=/etc/apt/sources.list.d/esm.list
codenames="bionic focal jammy"
if ! `list_include_item "$codenames" "$UBUNTU_CODENAME"` ; then
   echo "Codename $UBUNTU_CODENAME is not suppported"
   exit 1
fi

wget -qO /etc/apt/trusted.gpg.d/ubuntu-esm-AB01A101DB53907B "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe8a443ce358113d187bee0e6ab01a101db53907b"
rm -f /etc/apt/trusted.gpg.d/ubuntu-esm-AB01A101DB53907B.gpg
gpg --dearmor /etc/apt/trusted.gpg.d/ubuntu-esm-AB01A101DB53907B

wget -qO /etc/apt/trusted.gpg.d/ubuntu-esm-4067E40313CB4B13 "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x56f7650a24c9e9ecf87c4d8d4067e40313cb4b13"
rm -f /etc/apt/trusted.gpg.d/ubuntu-esm-4067E40313CB4B13.gpg
gpg --dearmor /etc/apt/trusted.gpg.d/ubuntu-esm-4067E40313CB4B13

cat > $ESM_FILE <<EOF
deb https://YOURHOSTNAME/apps/ubuntu $UBUNTU_CODENAME-apps-security main
deb https://YOURHOSTNAME/apps/ubuntu $UBUNTU_CODENAME-apps-updates main
deb https://YOURHOSTNAME/infra/ubuntu $UBUNTU_CODENAME-infra-security main
deb https://YOURHOSTNAME/infra/ubuntu $UBUNTU_CODENAME-infra-updates main
EOF

apt update

echo ""
echo "Added Ubuntu $UBUNTU_CODENAME ESM sources to $ESM_FILE"

#ubuntu #ubuntupro #linux #opensource #mirror #nginx

8
 
 

Nautilus is the default file browser in Ubuntu. To assign a shortcut (F12) to the command “Open in Terminal” you can execute the following commands. Tested on Ubuntu 22.02. Should also work on 18.04 and 20.04.

To change the shortcut edit ~/.config/nautilus/scripts-accels

nautilus -q
mkdir -p ~/.local/share/nautilus/scripts
mkdir -p ~/.config/nautilus/
echo '#!/bin/sh' > ~/.local/share/nautilus/scripts/Terminal
echo 'gnome-terminal' >> ~/.local/share/nautilus/scripts/Terminal
chmod u+rx .local/share/nautilus/scripts/Terminal
mkdir -p ~/.config/nautilus/scripts
sed -i 's/F12 Terminal//g' ~/.config/nautilus/scripts-accels
echo 'F12 Terminal' >> ~/.config/nautilus/scripts-accels
echo '; Commented lines must have a space after the semicolon' >> ~/.config/nautilus/scripts-accels
echo '; Examples of other key combinations:' >> ~/.config/nautilus/scripts-accels
echo '; <Control>F12 Terminal' >> ~/.config/nautilus/scripts-accels
echo '; <Alt>F12 Terminal' >> ~/.config/nautilus/scripts-accels
echo '; <Shift>F12 Terminal' >> ~/.config/nautilus/scripts-accels
sed -i '/^$/d' ~/.config/nautilus/scripts-accels

#ubuntu #nautilus #terminal #linux #opensource

9
1
Matrix Space (matrix.to)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Join our Ubuntu Space on Matrix

10
1
Teams for Linux (github.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Unofficial Teams client for Linux