Start by installing the following package: $ sudo apt install trash-cli Then configure crontab like this: $ crontab -e Add a line to the crontab that looks like: 00 * * * * /usr/bin/trash-empty 7 Save the file and the crontab will update. This means the system will very hour, on the hour, delete any Fortsätt läsa Automatically take out the trash in Ubuntu
This is the config that worked for me. First generate an SMTP token and a separate address for the system to use within Protonmail, otherwise this is not going to work without installing mail-bridge or something similar. This will be special@domain.com MSMTP Configuration file Configuration file is /etc/msmtprcFile owner should be root:msmtpFile permissions 0660 Installation Fortsätt läsa Setting…
This is a useful hack for VPS servers to send an email as a login-notify to an email address. Prerequisites You need to have a working mail subsystem on your host so that the mail command works. This works with Ubuntu 22.04 and later versions. Modify PAM to notify on login Open the file /etc/pam.d/common-session Fortsätt läsa Ubuntu Login-Notify
Network manager has been working reasonably well in Ubuntu and other Debian derivatives for quite some time and then Canonical changes to netplan. This is causing some confusion and is clearly seen by many (myself included) as a step backwards. The original configuration file residing in /etc/netplan/01-netcfg.yaml contains the following: This leads to the conclusion Fortsätt läsa Set netplan to…
This script installs some stuff I pretty much always need. It can be invoked with -d for desktop configuration in Ubuntu as well as -t for adding documentation and text utilities I use often. Oh and it will also install zsh as your default shell including oh-my-zsh and the afowler theme. Can easily be adapted Fortsätt läsa Standard Linux installation script V1.0
It s quite easy, what you want to do is edit the file /etc/issue and use the special command \4 for the IPv4 address and \6 for the IPv6 address. If you want you can also specify a specific NIC by using it like \4{enp0s3} for example. Now everytime you boot, logout from the console etc Fortsätt läsa Show IP on console of linux servers
I grunden är det ganska enkelt att räkna på hur mycket energi som går åt när vi gör av med varmvatten. Det finns några grundbitar man behöver ha koll på. Vattnets specifika värmekapacitivitet i flytande form är 4.2 kJ per grad och liter vatten. Nästa steg är att förstå hur mycket vatten som går åt Fortsätt läsa Räkna på energiåtgång varmvatten
When logging in with mobile shell (mosh) sometimes in Ubuntu the locales will mismatch. This is easily fixed by using the following two commands: Substitute the locale for the one you wish to use in both places and then run this. For Swedish locale use sv_SE.UTF-8 as an example.
Many things have changed from the oh so abundant 18.04 server and there are a few surprises that one needs to be aware of. One thing that has changed is that changing the MAC address no longer changes the ID when the server requests a new IP from a DHCP server. This means that cloning Fortsätt läsa After cloning a Ubuntu 22.04 server
The longer this pandemic drags on, the better the technology decisions companies make. This is entirely due to the lack of executive exposure to enterprise software ads in airports. — Corey Quinn (@QuinnyPig) April 15, 2020
Making the stupid caps lock into something useful is simple. Bind the COMPOSE function to it and have great time writing special characters. Edit the file /etc/default/keyboard Find the line for XKBOPTIONS and edit that to read XKBOPTIONS="compose:caps" Reboot your system and be happy.
I found that my Lenovo laptops did not always get the mousepad right when coming out of sleep or hibernate. After a bit of research I found that a modprobe remove and insert of the psmouse kernel module did the trick. To automatize this you can insert a file in the systemd control structure to Fortsätt läsa Sleep resume in Ubuntu screws up mouse pad
Recent update to one of my laptops made the keyboard completely stop working. While rebooting to the previous kernels made it work again. The kernel that s the culprit is the generic kernel 4.0.15-29 which does not even work in recovery mode. I have disabled this kernel on my system but could not find information out Fortsätt läsa Ubuntu Linux kernel 4.0.15-29 diasbles keyboard on Lenovo T420s
Jag gillar ingefära och här kommer mitt recept på ingefärsshot. 1 st rot ingefära 1 liter vatten 1/2 pkt konc. äppeljos 1/2 st citron Kaffefilter Hållare för kaffefilter Börja med att riva ingefärsroten i en skål. Använd grova sidan på rivjärnet, det duger gott åt detta. Slå i ca 1/3 av vattnet. Knåda den rivna Fortsätt läsa Ingefärsshot
Det är få saker som förhöjer stämningen så pass när man är ute och vandrar, på picnic eller av annat skäl befinner sig på resa som att få en kopp riktigt gott kaffe. Jag har i ett par års tid haft med mig en portabel espressomaskin som kallas Minipresso när jag varit ute på olika Fortsätt läsa Espresso i fält
Teamviwer relies on a bunch of 32 bit dependencies you need to enable for it to install. This procedure should work: sudo dpkg --add-architecture i386 sudo apt-get update wget http://download.teamviewer.com/download/teamviewer_i386.deb sudo dpkg -i --force-depends teamviewer_i386.deb sudo apt-get install -f sudo teamviewer --daemon start I always suggest you take a snapshot before if your file…
I felt this needed to be shared with a broader audience. It may not be news to everybody but far from enough people understands we are just on the verge of something large happening. We are building a world sized robot Bruce Schneier writes in his latest CRYPTO-GRAM about something that has been bothering some people Fortsätt läsa The World Sized Robot
The Borg A very useful utility is the Borg Backup system, or just Borg. It s a deduplicating backup system meaning that is scans the files and when it finds data that is already in the backup the data in the second and all other subsequent files are replaced with a reference to the first instance Fortsätt läsa Borg Backup
Previously we have talked about how to block certain addresses using the firewall in Linux (iptables) but if you have a large number of CIDR blocks, say whole countries like China (about 7000 blocks) this will not be keen on the CPU in the server. Especially the script that inserts it by repeatedly calling iptables. Fortsätt läsa More effective CIDR-blocking
Most Linuxen these days runs bash as their native shell. While Bash is OK it s not my favourite actually. I ve always been partial to zsh which for example has outstanding completion qualities that Bash totally misses. If you run byobu which is an add-on for tmux or screen with lots of nifty features then you Fortsätt läsa Configure zsh in Byobu
In Ubuntu 16.x the systemd is used more than in the previous versions. This also means it is now responsible for setting up your network cards. Many people have been sort of surprised that their eth0 have changed to something like enp0s25. This is of course an improvement from before, there was no real telling Fortsätt läsa Ubuntu persistent network interface names