I am trying to get a simplified output of the cpu frequency to 3 digits, such that if the frequency is less than 1000 it will output xxx Mhz
and if it's above 1000 it will outpute x.xx Ghz
. I can get only the frequency with lscpu | sed -n 's/CPU MHz:[ \t]*//p'
, and the first 4 digits with lscpu | sed -n 's/CPU MHz:[ \t]*//p' | cut -c1-4
, however I'm not sure how to parse this to achieve the desired result.
James Palmer's questions
TLP helps make my laptop more conservative on power when on battery power, and more performance focused when on AC. The issue is that when I want to enable/disable TLP or change some settings with TLPUI, it requires a reboot before it takes affect. I've tried sudo systemctl stop TLP and sudo systemctl start TLP, but this doesn't seem to have any effect.
I signed into my Google account in Gnome, and I can access my files from nautilus, however opening any document opens google docs in my browser directly, and opening in LibreOffice Writer results in it opening the raw JSON which isn't formatted properly.
The file type is application/vnd.google-apps.document type (application/vnd.google-apps.document)
, and I can't seem to find a way to open these documents in Libreoffice, ooo2gd
is severely outdated and doesn't work anymore.
I have a Samba NAS that I would like to be able to backup to using Timeshift. I am able to mount it to a folder via cifs-utils, but it does not show as an available local drive in timeshift. Mounting it in the /timeshift folder does nothing either, timeshift copies to the local folder instead of the network one.
Is there a way to mount the NAS as a local drive so Timeshift can find it and backup to it?
I wanted to try dual booting my hp laptop with Ubuntu, so I downloaded the 18.04 iso, flashed it to an 8gb flash drive, and booted into it. My laptop's bios is on UEFI, and I disabled secure boot and fast startup.
However in the installer, after I select continue in the keyboard selection step, the cursor starts spinning and after a bit the entire system becomes completely unresponsive. I tried Ubuntu 20.04, and it freezes at boot. I've also tried using legacy support in my Bios, setting nomodeset in GRUB, and multiple flash drives, but it's the same result every single time.