#linuxtip — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #linuxtip, aggregated by home.social.
-
I'll just write here what I think I know about dual booting
So,
1. Set up windows, turn off/on some settings (mainly the clock and the fast boot) and to install windows as it can mess up Linux.
2. After the windows installation, remove the SSD with windows on it (so that Linux doesn't mess up the windows)
3. Install the new ssd drive
4. Linux time thanks to the usb drive
5. Reattach windows ssd after everything's doneCan someone with experience with dual booting on two separate SSD's tell me if this plan right here is good?
#linux #LinuxTip #Windows11 #windows10 #linuxdesktop #dual_boot #dualboot -
#LinuxTip #KDEtip --
Have a #Flatpak app that is refusing to obey your system "GTK+ Application Style" settings?
Use #FlatSeal and adjust the flatpak permissions for the app and give it access to everything in your $HOME directory.
Relaunch your app.
Then re-apply your #GTK+ Application Style settings in #KDE #Settings.
Bob's your uncle. -
#LinuxTip #KDEtip --
Have a #Flatpak app that is refusing to obey your system "GTK+ Application Style" settings?
Use #FlatSeal and adjust the flatpak permissions for the app and give it access to everything in your $HOME directory.
Relaunch your app.
Then re-apply your #GTK+ Application Style settings in #KDE #Settings.
Bob's your uncle. -
#LinuxTip #KDEtip --
Have a #Flatpak app that is refusing to obey your system "GTK+ Application Style" settings?
Use #FlatSeal and adjust the flatpak permissions for the app and give it access to everything in your $HOME directory.
Relaunch your app.
Then re-apply your #GTK+ Application Style settings in #KDE #Settings.
Bob's your uncle. -
#LinuxTip #KDEtip --
Have a #Flatpak app that is refusing to obey your system "GTK+ Application Style" settings?
Use #FlatSeal and adjust the flatpak permissions for the app and give it access to everything in your $HOME directory.
Relaunch your app.
Then re-apply your #GTK+ Application Style settings in #KDE #Settings.
Bob's your uncle. -
#linuxtip: if after updating your kde session even having the kwayland package installed, you got a black screen after the login, I fixed it changing the following line in /etc/environment file as root:
▶️QT_QPA_PLATFORMTHEME="wayland;xcb"
and then I was able to login normally after a reboot.. 👨💻 :linux: -
🇬🇧 Arch Linux PSA: please remember to clean your pacman cache regularly!
Pacman, your system's package manager, keeps all versions of packages you have ever downloaded on your system. This is to ensure that you can roll back or downgrade your system to an earlier point easily if something breaks.After years of using the computer though, this cache becomes really really big and can grow indefinitely in size.
Use the
paccacheutility (part of the packagepacman-contrib, install that if necessary) to clear that cache.paccache -ddoes a dry run, showing you how much space is taken up by useless package caches you no longer need.paccache -rremoves all but the three latest versions of the packages you cache, so you're still safe and can still roll-back your system if needed.
More information, including on how to automate this, on the ArchWiki:
https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache -
@SynAck @BustaMarx The program for disk recovery I used was something that works at the disk sector level. It's called ddrescue I think, and has nothing to do with dd. It's brilliant. It creates a map file of your disk's sectors, then repeatedly tries to read sectors, forward, backwards, random read, for hours on end. It keeps its progress in the map file so you can cancel and resume it at any stage, and it applies different methodologies to try to scrape data back from a dying drive.
#linuxtip -
linux tip: if you're using debian 12 with xfce and want to copy files off an android device with mtp it might not automatically work on a fresh install, you'll need at least two packages for it to work with thunar file manager,
gvfs-fusemay already be installed, butgvfs-backendsmight not be and you'll need both of them -
Started a long-running file operation but forgot to put verbose output to monitor progress? Or tool is missing a such option.
With 'pv' command you can give '-d PID' option to monitor files opened by progress PID.
(In the example sudo is needed because dd command in other terminal is run as root. And yes, you could also send USR1 signal to dd to find out how much it has written)
#linuxtip #commandLine -
Configurar una impresora por red en Debian #LinuxTip
https://malagaoriginal.blogspot.com/2021/10/configurar-una-impresora-por-red-en.html -
Today's Linux Tip: Rollback Updates or Uninstall Packages in Fedora and RHEL #Dnf #Linuxcommands #Linuxtip #Cheatsheet #Fedora #RHEL
-
Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.
> for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done
The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.
The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience
-
#linuxtip: there could be several ways to check the expiration dates of ssl certificates, but here's an easy and quick one:
▶️ printf Q | openssl s_client -servername "domain_name" -connect "domain_name":"port" | openssl x509 -noout -dates -
#linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr
`alias ghist="history | grep $1"`
```
9763 history | grep xrandr
9765 xrandr --query
9786 xrandr --listmonitors
9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
9905 xrandr-tv
9951 xrandr --auto
```You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.
-
#linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr
`alias ghist="history | grep $1"`
```
9763 history | grep xrandr
9765 xrandr --query
9786 xrandr --listmonitors
9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
9905 xrandr-tv
9951 xrandr --auto
```You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.
-
#linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr
`alias ghist="history | grep $1"`
```
9763 history | grep xrandr
9765 xrandr --query
9786 xrandr --listmonitors
9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
9905 xrandr-tv
9951 xrandr --auto
```You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.
-
#linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr
`alias ghist="history | grep $1"`
```
9763 history | grep xrandr
9765 xrandr --query
9786 xrandr --listmonitors
9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
9905 xrandr-tv
9951 xrandr --auto
```You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.
-
#linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr
`alias ghist="history | grep $1"`
```
9763 history | grep xrandr
9765 xrandr --query
9786 xrandr --listmonitors
9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
9905 xrandr-tv
9951 xrandr --auto
```You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.
-
Je ne sais pas encore si cette durée de batterie est réaliste, mais encore 6 heures et 44 minutes !? Si c'est le cas, c'est notablement plus performant qu'avec Windows 11.
Pour y arriver, j'ai installé l'utilitaire auto-cpufreq et choisi la gestion "powersave" (c'est pas compliqué, enfin si vous savez vous débrouiller avec un terminal), car "out of the box", Ubuntu 23.10 annonçait seulement dans les 4 heures d'autonomie.
-
#linuxtip if you're trying to mount an external HD (with a nfts partition) and you get the error:
"mount: wrong fs type, bad option, bad superblock on /dev/sdbX missing codepage or other error"
just follow the next steps:
1. verify you have installed the packages: nfs-utils and ntfs-3g
2. run lsblk to locate the device
3. run sudo ntfsfix -d <path of your device> example: sudo ntfsfix -d /dev/sdb2
then just normally mount your device from your file manager.that's what worked for me 🤷♂️
-
For years I have been annoyed that the 'cal' command showed Sundays as the start of the week. Today I discovered that cal does not support the -M variable which is supported by ncal to fix that nonsense. New alias for my .zshrc:
alias cal="ncal -M -b"
-
Running out of space on your laptop? Remove the French language pack:
sudo rm -fr /
#linuxtip -
What's the easiest way to clean up a bit of the background hissing and noice from an audio file online or on Linux? #linuxtip
-
-
How to run multiple parallel processes in #BASH subshells
#Linux #GNULinux #sysadmin #devops #fedora #debian #BSD #FreeBSD #opensource #ubuntu #freesoftware #redhat #LinuxTip #LinuxTips #Terminal #HowTo #cli #Arch #ArchLinux #Shell #Script #Scripting #Coding #code
-
Useful #find use cases:
How to remove all empty directories?
How to recursively count all the files in a directory?
How to find files based on owner name, owner id, group name, or group id?
Or the files which are not owned by any user or group?
#Linux #GNULinux #sysadmin #devops #BSD #fedora #debian #FreeBSD #opensource #tool #freesoftware #redhat #LinuxTip #LinuxTips #Terminal #HowTo #cli