Ubuntu users FYI: You can freeze any package including kernel packages by: example-1: sudo apt-mark hold example-2: sudo apt-mark hold linux-image-generic linux-headers-generic
Quick tip: When you type a command that should have been done with 'sudo' but you forgot it, you can type: sudo !! This will rerun the last command given under sudo without having to retype the entire command.
with Bleachbit never run free hard drive space on an SSD! You'll unnecessarily write zeros to your drive, thus wearing it out faster. On the other hand it's extremely handy to do that now and then on mechanical drives.
If you use the APT package manager, I would recommend using nala to upgrade your packages. It's meant to be more user friendly, has a cleaner terminal output, and automatically does certain things for you (autoremoves/autopurges files that are dependencies no longer needed, automatically updates the source list before upgrading so you only need to run sudo nala upgrade, etc.). You also aren't replacing apt, so you can still go in and run maintenance scripts without needing to rewrite them first. Of course, the apt command family is going to be your de-facto option for more advanced operations, but with nala upgrading is simple and enjoyable.
I love conky. It's one of my favorite add on apps. I love configuring it lol. It can be an insanely useful tool for monitoring your system...and it looks cool.
Greetings, I have been transitioning to Linux exclusively for a few months now. This video has been very helpful. This and your other videos have been very helpful. Ciao!
Ah, you forgot to add that on Arch-based system we also need to: - clean pacman cache (all downloaded packages are stored there and taking space) - uninstalled orphaned packages or packages that were removed from the repo (and we cannot do that blindly, because it often happens that packages are marked as orphaned mistakingly) - update our configs with pacnew files, this is a manual intervention that is needed to be done once in a while - update git packages if you have any - they rarely show as an update and this is usually a manual action, although there are commands that can mass update git packages
One correction: 'apt-get autoremove' removes packages that are no longer needed i.e. packages that were installed as dependencies for another packages that were removed and these packages were left of and are no longer needed. On Arch there is no such command. You'd have to combine 2 commands: 'pacman -Qdtq' which gives you the packages that are no longer needed and remove them with 'pacman -Rsn' or combine them into 1 command: 'pacman -Rsn $(pacman -Qdtq)'. Also if you use Arch it's probably a good idea to remove packages with 'pacman -Rsn' which removes packages that were installed as dependencies for the package you remove and are not needed by another package and also remove their config files in /etc, instead of 'pacman -R'.
I would say, be careful with what you remove with pacman -Rsn as it is entirely possible to accidentally get cross-dependencies and end up removing something that you actually NEED on your system. Source: I've done this by installing a Gnome tool, not thinking about it before issuing the command, and wiped out my entire DE including my network manager, so I had to fix it from a chroot.
Chris Titus Tech: Chris. Just a tip. I was always told to never stop bleachbit when it is in the process of cleaning. That you must let it finish or you will have problems.
That's really neat. I didn't know that you can keep Linux running indefinitely without a reboot. It's kinda ingrained into me that a computer is going to need a reboot eventually, because of memory leaking or whatever. That's mighty impressive!
Yeah I hear you! I still reboot often because I change tons of things, but yeah... It is not unheard of that many closed systems like elevators, electronic posters, etc... have run linux on a battery backup for 10+ years.
Yea, I know it can be run indefinitely but I still shut down my computer every evening to control my electricity costs, just like I turn off all lights when I go to sleep.
I’ve had macOS with an uptime of nearly three months as well. Memory leaks can happen in software, but especially in the OS it should only be in corner cases. If it’s not in the OS, the OS should be able to clean it up when the offending app is quit.
@@ChrisTitusTech I've just started using Ubuntu and I'm new to Linux. Love your channel. I've noticed that every time I reboot, especially shutdown, I get the black screen and there's a lot of broken code running across the screen. Then it shuts down or reboots. Goes by really fast and bothers the crap out of me. Is this an issue with the bootloader? Any ideas?
I find it easier to manage the repositories from synaptic (for a debian system). Just pull down the menu and tick/untick the repositories you have, you can also add new repositories and delete old ones. If you want to remove a package it will show you what else you would need to remove at the same time. There's really no need to edit /etc/apt/sources.list directly. I also almost never reboot after an upgrade, if there are new graphics drivers, I tend to just kill Xorg and that does the job.
I don't recommend doing most of these except verifying your backups, installing updates, and removing no longer needed and orphaned packages (dependencies of older version of packages that are now no longer needed). Especially that thing you do with Bleachbit or similar tool is going to cause more problems than it solves. Unless you have a particular problem with a specific application, you generally shouldn't micromanage these cache files. It won't make your system any faster, and more likely than not it will just slow down programs and cause data corruptions. In low disk system, it may be worthwhile to clean the package managers' download caches, but if you aren't running low on disk space, you don't need to worry about it. One maintenance that I recommend that hasn't been mentioned, if you're using Ubuntu-based system on btrfs system, you may need to remove the automatically created btrfs snapshot that apt created before a major system upgrade. Once you've confirmed the upgrade is successful and you decided you likely won't be rolling back, you can just delete the snapshot using btrfs tools. apt won't remove them automatically, and these snapshots take up quite a lot of disk space (and because of copy on write, they'll take even more space the longer you keep them).
Yeah once in a while I'll just see how much storage space I have left. Linux can get loopy if you get up to 90% full. Up to then no worries though. Right now my root partition is at 32% so no problem there. If I get up around 80% I'll think about maybe ditching something then. Or I'll just get more storage space. Probably the latter knowing me.
You do the best tutorials Chris! Clear instructions, reasons why you're doing stuff, great explaintions and poiniant tips. But best of all is your smooth delivery and non-intimdatng predisposition. Love your work mate, it gets me pumped about the future of the world. Thank you kind sir. 👍💯
Awesome video man, this is the kind of stuff I'd love to refer to people who are just getting started with Linux. I would also add `htop` to the list too as for me it stands in place of windows task manager. Love the channel. :)
I'm currently doing a personal experiment with my Manjaro KDE system. After a couple of update breaking (that i restored with Timeshift), i decided to completly stop doing any updates whatsoever. That was back in May of this year. So far everything i have installed back then work fine. I did install one or two other programs that work fine, but some others i could not because the dependancies are not up to date. I have another system on another SSD, Pop Os, that is up to date and can utilize for whatever reason. But in conclusion, my Manjaro still works like a charm and i use it every day as my main system!
In addition to `apt autoremove` I do recommend running `apt-get auto-clean`. It looks like `apt` likes to hoard every downloaded package and that could easily get over gigabytes. I had switched to 'testing' that had regular updates. It has gotten around 8GB of cache... on my 32GB sdcard. To empty the whole cache you can do `apt-get clean`, this however would remove the archives of the currently installed packages too.
Thanks Chris for warning users about doing a backup before purging packages, purging packages is a very dangerous operation, you can mess up your system beyond recognition.
Just to expand on the no need "no need to defragment" part on linux. The reason linux and most unix/bsd filesystems do "not need" defragmenting is because they leave more space between files to allow them to grow on the block level unlike ntfs which uses the immediate space (pretty much) after a file is done being written so any newer data for the file has to be written elsewere and a reference pointer is added to the end of the old data ("continues at XYZ") rinse and repeat, however you can run into situations where defragmenting the filesystem will be needed, however it is done in the background and a manual run might only be needed when the disk is close to being almost full (which in most cases will be rare) so yes you dont need to defragment your system like you have to do on windows unless your disk is pretty full before you will need to do a manual run (we talking maybe 80-90% full) before that, all defragmenting is done as needed in the background without you noticing any impact from it but you have to go over 50% disk space used by average before defragmenting is even done in many cases, as no files will be fragmented (for the most part) before that limit is reached.
HikariKnight keep in mind that SSDs should never, ever be defragged. Not only does it waste lifespan, but if the controller is cheap you can brick the drive.
@@jadosrd8950 If this ["brick the drive"] would be true, any IO access pattern could brick your drive: You should just not (and don't want to) use such drives. There are applications where "defragging" an SSD can make sense but that needs special defraggers that care about reducing IOPS for your specialized application and not moving files around as most classical defraggers do (moving files around is pointless on SSD, and introduces additional write load). But "never ever" is also: Your SSD wouldn't just die the next day just because you defragged it yesterday. It lost maybe 0.5% of it's life span, on modern drives probably even less. The bigger the drive, the less prone it is to this problem: Bigger SSDs have a exponentially longer live span for non-suitable write patterns.
Kai Krakow again back to the controller chip. A good, or even half decent, chip can withstand defragging, but it also makes it a moot point as THAT IS it’s JOB to read/write a bunch of scattered data as if it were in one chunk. A bad controller, and Im mainly talking $10 Ali junk here, has been shown multiple times to not “keep up” with knowing where data is and subsequently “losing” important data (Windows files).
"FAT is event worse...". MS has just open sourced the exFAX spec and is supporting exFAT being added to the Linux Kernel. Let's see if MS will pull this off. I think they will.
Chris I believe Fedora uses DNF package manager instead of YUM, REL/CentOS still uses YUM for the moment but with REL 8 I believe they will ship it with DNF. Also to complete the update you need to run sudo apt upgrade.
@@JohnMiller-mmuldoor A lot of people get that mixed up these days (I do it sometimes too) The only reason REL doesn't use DNF is because Red hat hasn't had a major feature update since DNF was released. and REL and CentOS also provide you with a path to replace YUM with DNF if you so choose, however most people don't and in my opinion if you do use REL or CentOS then it's not worth switching it out until the next major release comes out, YUM works just fine.
I use Discover and Synaptic Package Manager to uninstall broken PPA and residual config. Also with the autoclean, autoremove commands. However I'm reluctant to use Bleachbit, had problem with it in the past.
Bleachbit is too aggressive and too complex for an average user. I thought I know what I was doing but after some time I discovered some small breakages, lack of data that most probably was "cleaned" by bleachbit and I was very, very careful and set only most general and basic cleanup and yet it was still too invasive.
Ironically one of the things I learned from this video is the package name for kcharselect. I really badly needed a program like this and Kubuntu didn't ship with it. Also tried bleachbit and got 20GB of space back, which is great :3
I love your videos, but as a brand new user, it would help me if you slowed down just a little bit and included a few explanations of some of your terms. Otherwise, you have been a lifesaver for me!
Had to clean the cache every couple months or the root partition would fill up and I couldn't update my Arch. Started to annoy me, so decided to mess around in package manager and keep less copies/versions. Now it''s fine.
Many of my users are running my software on Win 2000 still. No maintenance required, but using very few Windows facilities. POS/Inventory and such. Linux is better, but less familiar and has fewer available third party programs. In Windows, I wrote my own scheduler as I did not trust the one that came with it. This can be done. There is push back on Linux desktops. Linux servers are well received, is my experience.
On the linuxmint forums, they warn that bleachbit is bad, that it can break your system, and that you shouldn't use it. I have used it for a while and I have had no problems.
Many People duel boot so they will be using NTFS. Timeshift is not compatible with Linux Ubuntu MATE, at least not on my PC because it screwed up my system and broke it when I did a restore.
should do a: when i upgrade to a new major change distro version. Something i noticed when upgrading from pop os 19 to 20 it broke alot of app installs. i use alot of different tools to install: pop shop, apt, flatpak, snap, chocolatey. it can really mess things up appwise.
From what I understand, most Linux filesystems defrag silently in the background while the filesystem is being used. Fragmentation can still build up over time, but it takes years of constant use for it to reach any significant level. I use XFS on all my drives, and once in a while I'll run 'xfs_fsr', but not very often.
Makes me wonder why Microsoft just doesn't create their own distro like RedHat. I mean the biggest thing is software, but if they created it alongside windows, then use something like a .NET virtualized container, while supporting developers that create main ports to their vision of a linux OS. I mean powershell and windows server is a huge hurdle to overcome, if they were to do that, because powershell is object oriented and linux is textual. Windows Server has implementations all over enterprise environments. So actually fundamentally changing Windows may be too volatile for them.
Chris... I'm running MX-Linux on a DELL Latitude 6520. In this Video I was following you in the terminal to update Repositories, I did the "sudo pacman - Syu" command, Terminal said pacman command not found..! I then went to Synaptic Package Manager and looked for it, it's not installed but all files referred to "PACMAN" the Game.. where your pacman eats all the dots...! Later in the video you mentioned pacman, Package Manager..? I tried that and it doesn't work either, so what can I use...? Thanks in advance..! =)
Hey Chris. Just noticed that this video is from 2019. Can you make an updated version of this? Like maybe there's something new or noteworthy that you can show us in 2020. Thanks!
Linux systems can get fragmented if you have very little disk space, but otherwise it almost never happens in ext4 (which is the defacto fs on most distros)
Well it still happens with a lot of disk space actually. It’s just that it doesn’t happen for long, because when the disk isn’t super active it’ll reallocate things (pretty quickly) to fix it itself
Whenever I am booting up my Linux, my left click on the mouse is not working and I have to run serval commands to disable and enable device again. Same things happening with my Wi-Fi - it's just spontaneously not working and when I am trying to open "network", my desktop environment crashing and I have to reboot the whole system. I am using Mint 19.3 and cinnamon DE. I am so close to give up Linux and return to the boring Windows OS.
For Fedora 31 you will want to run the following in the terminal prior to launching bleachbit once installed: sudo dnf install python2-gobject -y It works fine once you do this. This is from their News segment on their site (link: www.bleachbit.org/news/bleachbit-30). Enjoy!
Hi I’m on Mint, i formatted an old hard drive to ext4, mounted it but was unable to write on it and had to revert to ntfs to be able to put files on it. Why did this happened? Thanks in advance
I am not very fond of command-line. I am not afraid of it, I just use GUIs whenever available. Call me lazy if you like. I used Mint Software Manager to install Bleachbit. So, let's continue with the video.
I don't know anything about btrfs, zfs and HAMMER, but it appears to me that there is some performance increase after defragmentation a ext4 volume. Ubuntu even comes with e4defrag utility preinstalled. Here is the article I am referring to: www.linuxsecrets.com/kdocs/ols/2007/ols2007v2-pages-179-186.pdf
too bad, the one thing I hoped for wasn't there. :/ I uninstalled some programs and afterwards still found their configs in home. I hoped you'd show a quick way to remove configs and other files for programs that are nolonger installed.
I would recommend System76. They make great Linux laptops and desktops. All their hardware have excellent Linux compatibility and all their machines are preinstalled with either Pop!_OS or Ubuntu. Preinstall is great if you are just starting out using Linux and want a quick start without having to learn how to install Linux in your existing machine.
Honestly dam near any laptop runs linux fine....as long as it's not like 10 years old....I use a Alienware laptop deleted windows and put Linux on it as my gaming laptop
I have AsusPro and I can't use linux. Something must be wrong with my laptop. After installing Linux my eyes hurt so much. I dont know what is going on but it is so uncomfortable.
Some Linux hardware h has to be defragged. SSDs and M.2 drives need periodic trimming. This is usually scheduled by Linux on a regular basis such as "every 200 hrs of use, or after xxx gigs have been written. Same requirement for Windows systems. Eventually, the SSD bios will have an extension to where the SSD itself, without Linux, will do its own trim.
Hi, i've got a problem with the boot menu - at first i've installed linux mint mate, was all fine, and then i've tried linux mint cinnamon, but was something wrong with handbrake - and I thought that will be better to try many versions of linux, manjaro, pop os, and ubuntu, but now in the boot menu i can see 3 options of different linux versions, the last one is ubuntu, i'm able to install back all this three versions of linux back as a fresh install, but I can't install linux mint back, maybe is something wrong with the grub, when im trying to boot linux mint from usb stick, I get this - error: invalid magic number and also this error:you need to load the kernel first. I want to go back and install a fresh copy of linux mint and try xfce, but I don't want to see in the boot menu the names of the linux versions which I don't want to use - so how can I delete the previous installations from the boot menu and then to be able to go back and install mint, at the moment i'm running ubuntu 19 and i'm planning to install ubuntu mate as a trial. Thank you, bye
`sudo` will run a program as another user. By default, if you don't specify any other options, it runs the program as root (like Adminstrator privilege in Windows), which gives the program full system permission.
The other commenters explained, but wanted to add that you should use it when you need those administrator privileges. If what you are doing does not strictly require them try and dig deeper as to what might be failing. Just a caution.
im relativity new to the linux world , but i believe my pc experience carries through .. for clarification i remember when Microsoft released there first operating system and have used cpu's measured in hertz not kilohertz or even gigahertz! and ram was measured in k's so i believe that dates my usage experience. from my experience all os;s degrade with user input.. all os;s have recommended maintenance.. all will sorta fix the issues and take time... installation of every os ive ever done takes around an hour solving cleaning and troubleshooting always takes longer,, having an archive of all drivers and software installed says if data is saved to non stand locations a full install of the os and software is less effort and time than "maintenance" ever was and has far better results for me anyways mileage may vary
Are you running Cinnamon desktop? (P.S., you should leave your package list from your main machine in the description) Edit: It looks more like KDE, but still could be Cinnamon
Ubuntu users FYI:
You can freeze any package including kernel packages by:
example-1:
sudo apt-mark hold
example-2:
sudo apt-mark hold linux-image-generic linux-headers-generic
Same with Vanilla Debian ;). Ohhh and don't use PPAs in Vanilla Debian, they will break you install,= only use PPAs with Ubuntu and it's forks.
@@PenguinRevolution can you use PPAs in Mint?
@@matuzaato Linux Mint is a direct fork of Ubuntu. So yes you can use ppas in Mint.
@@PenguinRevolution Are you referring to Arch Linux 32?
@@stephenhunter70 Never mentioned Arch Linux 32. I was talking about debian and Ubuntu
Quick tip: When you type a command that should have been done with 'sudo' but you forgot it, you can type:
sudo !!
This will rerun the last command given under sudo without having to retype the entire command.
when i run linux i run as root lol sudo whats that but i also tend to run it as a live session i have learnt sudo su
though
That's pretty sweet! thank you! I didn't know about this.
"sudo -s" automatically puts sudo in front of the commands you run. You can just type exit to stop doing that.
I'm newish to linux. "Learn to sudo" is basically just putting sudo in front of the commands you're trying to run correct?
@@ghost101049 sudo basically means run as administrator what it does it give you the access to mess with some system files
I've been running Ubuntu on my main laptop, which I use intensively, for 5 years now. Haven't done anything to it and works perfectly
switch to mint, thank me later , yes its "ubuntu" minus the input lag
with Bleachbit never run free hard drive space on an SSD! You'll unnecessarily write zeros to your drive, thus wearing it out faster. On the other hand it's extremely handy to do that now and then on mechanical drives.
Yes never do that on an SSD I prefer Stacey as it is more pleasant to look at and it's more friendly and safer
@@marconyewtv4477 Stacer, not Stacey. right? Genuinely asking as I might install Linux on a laptop soon.
Because of LTT i can't stop reading you channel as "Chris Tech Tips" or "Titus Tech Tips"
LTT = UA-cam brand masters! lol.
At least Chris doesn't drop everything he touches like Linus.
@@corey8704 Nice. 👍
Literally why im here
"Titus Tech Tips" +2
then we can call him "Triple T"
If you use the APT package manager, I would recommend using nala to upgrade your packages. It's meant to be more user friendly, has a cleaner terminal output, and automatically does certain things for you (autoremoves/autopurges files that are dependencies no longer needed, automatically updates the source list before upgrading so you only need to run sudo nala upgrade, etc.). You also aren't replacing apt, so you can still go in and run maintenance scripts without needing to rewrite them first.
Of course, the apt command family is going to be your de-facto option for more advanced operations, but with nala upgrading is simple and enjoyable.
I love conky. It's one of my favorite add on apps. I love configuring it lol. It can be an insanely useful tool for monitoring your system...and it looks cool.
Greetings, I have been transitioning to Linux exclusively for a few months now. This video has been very helpful. This and your other videos have been very helpful. Ciao!
Ah, you forgot to add that on Arch-based system we also need to:
- clean pacman cache (all downloaded packages are stored there and taking space)
- uninstalled orphaned packages or packages that were removed from the repo (and we cannot do that blindly, because it often happens that packages are marked as orphaned mistakingly)
- update our configs with pacnew files, this is a manual intervention that is needed to be done once in a while
- update git packages if you have any - they rarely show as an update and this is usually a manual action, although there are commands that can mass update git packages
And updating ur mirrorlist.
One correction: 'apt-get autoremove' removes packages that are no longer needed i.e. packages that were installed as dependencies for another packages that were removed and these packages were left of and are no longer needed. On Arch there is no such command. You'd have to combine 2 commands: 'pacman -Qdtq' which gives you the packages that are no longer needed and remove them with 'pacman -Rsn' or combine them into 1 command: 'pacman -Rsn $(pacman -Qdtq)'.
Also if you use Arch it's probably a good idea to remove packages with 'pacman -Rsn' which removes packages that were installed as dependencies for the package you remove and are not needed by another package and also remove their config files in /etc, instead of 'pacman -R'.
I would say, be careful with what you remove with pacman -Rsn as it is entirely possible to accidentally get cross-dependencies and end up removing something that you actually NEED on your system.
Source: I've done this by installing a Gnome tool, not thinking about it before issuing the command, and wiped out my entire DE including my network manager, so I had to fix it from a chroot.
Subbed. Just starting my linux journey. Years late I might add. Lol. I want to move my family over from windows and Microsoft.
Note the difference between 'update' and 'upgrade'.
Arch is great. Just type “yay” and you’re done.
Chris Titus Tech: Chris. Just a tip. I was always told to never stop bleachbit when it is in the process of cleaning. That you must let it finish or you will have problems.
Stacer is a really nice system cleaner worth trying out. Then there is Sweeper, Deborphan and Debfoster
That's really neat. I didn't know that you can keep Linux running indefinitely without a reboot. It's kinda ingrained into me that a computer is going to need a reboot eventually, because of memory leaking or whatever. That's mighty impressive!
Yeah I hear you! I still reboot often because I change tons of things, but yeah... It is not unheard of that many closed systems like elevators, electronic posters, etc... have run linux on a battery backup for 10+ years.
I like when ubuntu requires reboots! Not my
Yea, I know it can be run indefinitely but I still shut down my computer every evening to control my electricity costs, just like I turn off all lights when I go to sleep.
I’ve had macOS with an uptime of nearly three months as well. Memory leaks can happen in software, but especially in the OS it should only be in corner cases. If it’s not in the OS, the OS should be able to clean it up when the offending app is quit.
@@ChrisTitusTech I've just started using Ubuntu and I'm new to Linux. Love your channel. I've noticed that every time I reboot, especially shutdown, I get the black screen and there's a lot of broken code running across the screen. Then it shuts down or reboots. Goes by really fast and bothers the crap out of me. Is this an issue with the bootloader? Any ideas?
I find it easier to manage the repositories from synaptic (for a debian system). Just pull down the menu and tick/untick the repositories you have, you can also add new repositories and delete old ones. If you want to remove a package it will show you what else you would need to remove at the same time. There's really no need to edit /etc/apt/sources.list directly.
I also almost never reboot after an upgrade, if there are new graphics drivers, I tend to just kill Xorg and that does the job.
Great tips! Definitely love information like this for cleaning out old junk that builds up over time.
3:23
I see Your transparency effects are grainy. I suggest changing composer from OpenGL 3 to OpenGL 2. It helped in my case.
Best wishes ;)
Thanks for the tip Tom!
Thank you, Chris. I love apt.
I don't recommend doing most of these except verifying your backups, installing updates, and removing no longer needed and orphaned packages (dependencies of older version of packages that are now no longer needed).
Especially that thing you do with Bleachbit or similar tool is going to cause more problems than it solves. Unless you have a particular problem with a specific application, you generally shouldn't micromanage these cache files. It won't make your system any faster, and more likely than not it will just slow down programs and cause data corruptions.
In low disk system, it may be worthwhile to clean the package managers' download caches, but if you aren't running low on disk space, you don't need to worry about it.
One maintenance that I recommend that hasn't been mentioned, if you're using Ubuntu-based system on btrfs system, you may need to remove the automatically created btrfs snapshot that apt created before a major system upgrade. Once you've confirmed the upgrade is successful and you decided you likely won't be rolling back, you can just delete the snapshot using btrfs tools. apt won't remove them automatically, and these snapshots take up quite a lot of disk space (and because of copy on write, they'll take even more space the longer you keep them).
Yeah once in a while I'll just see how much storage space I have left. Linux can get loopy if you get up to 90% full. Up to then no worries though. Right now my root partition is at 32% so no problem there. If I get up around 80% I'll think about maybe ditching something then. Or I'll just get more storage space. Probably the latter knowing me.
You do the best tutorials Chris! Clear instructions, reasons why you're doing stuff, great explaintions and poiniant tips. But best of all is your smooth delivery and non-intimdatng predisposition. Love your work mate, it gets me pumped about the future of the world. Thank you kind sir. 👍💯
I like your videos, man! Based on your teachings, I finally decided to get rid of Windows ...
BleachBit is an excellent program. I didn't know I could do a sudo bleachbit though. Thanks Chris.
Awesome video man, this is the kind of stuff I'd love to refer to people who are just getting started with Linux. I would also add `htop` to the list too as for me it stands in place of windows task manager. Love the channel. :)
I find that top is a bit easier to uses and easier for a new guy to figure out.
That is an amazing UI, and configuration that you have going on there, any insight to what all you have installed on there for that?
Great video, really useful information on keeping Linux running smoothly. Thanks Chris
I’ve been watching your videos recently and they are awesome!! Keep up the good work!!
I'm currently doing a personal experiment with my Manjaro KDE system. After a couple of update breaking (that i restored with Timeshift), i decided to completly stop doing any updates whatsoever. That was back in May of this year. So far everything i have installed back then work fine. I did install one or two other programs that work fine, but some others i could not because the dependancies are not up to date. I have another system on another SSD, Pop Os, that is up to date and can utilize for whatever reason. But in conclusion, my Manjaro still works like a charm and i use it every day as my main system!
In addition to `apt autoremove` I do recommend running `apt-get auto-clean`. It looks like `apt` likes to hoard every downloaded package and that could easily get over gigabytes. I had switched to 'testing' that had regular updates. It has gotten around 8GB of cache... on my 32GB sdcard. To empty the whole cache you can do `apt-get clean`, this however would remove the archives of the currently installed packages too.
Thanks Chris for warning users about doing a backup before purging packages, purging packages is a very dangerous operation, you can mess up your system beyond recognition.
WHAT!?! Zero playtime on World of Warcraft? Have you noticed, the WoW Classic has just been released?
allmost weekend, nice video chris....
Just to expand on the no need "no need to defragment" part on linux.
The reason linux and most unix/bsd filesystems do "not need" defragmenting is because they leave more space between files to allow them to grow on the block level unlike ntfs which uses the immediate space (pretty much) after a file is done being written so any newer data for the file has to be written elsewere and a reference pointer is added to the end of the old data ("continues at XYZ") rinse and repeat, however you can run into situations where defragmenting the filesystem will be needed, however it is done in the background and a manual run might only be needed when the disk is close to being almost full (which in most cases will be rare)
so yes you dont need to defragment your system like you have to do on windows unless your disk is pretty full before you will need to do a manual run (we talking maybe 80-90% full)
before that, all defragmenting is done as needed in the background without you noticing any impact from it but you have to go over 50% disk space used by average before defragmenting is even done in many cases, as no files will be fragmented (for the most part) before that limit is reached.
HikariKnight keep in mind that SSDs should never, ever be defragged. Not only does it waste lifespan, but if the controller is cheap you can brick the drive.
@@jadosrd8950 If this ["brick the drive"] would be true, any IO access pattern could brick your drive: You should just not (and don't want to) use such drives. There are applications where "defragging" an SSD can make sense but that needs special defraggers that care about reducing IOPS for your specialized application and not moving files around as most classical defraggers do (moving files around is pointless on SSD, and introduces additional write load). But "never ever" is also: Your SSD wouldn't just die the next day just because you defragged it yesterday. It lost maybe 0.5% of it's life span, on modern drives probably even less. The bigger the drive, the less prone it is to this problem: Bigger SSDs have a exponentially longer live span for non-suitable write patterns.
Kai Krakow again back to the controller chip. A good, or even half decent, chip can withstand defragging, but it also makes it a moot point as THAT IS it’s JOB to read/write a bunch of scattered data as if it were in one chunk. A bad controller, and Im mainly talking $10 Ali junk here, has been shown multiple times to not “keep up” with knowing where data is and subsequently “losing” important data (Windows files).
@@jadosrd8950 Yep, that's probably the type of controller you don't want to trust your data - no matter if you defragment or not.
"FAT is event worse...". MS has just open sourced the exFAX spec and is supporting exFAT being added to the Linux Kernel. Let's see if MS will pull this off. I think they will.
Why would we want it! And why add it again?
@@stephenhunter70 it's used on many external drives. Nobody is using it for the system drive even in Windows.
@@Alex11223l2 Exactly, I rest my case.
@@stephenhunter70 my external SSD uses it, so I can't use it on my Pi.
It's gonna add support so they are not going to switch the linux file system. You can just use it without formats.
6:18 and 12:43 when you forget "sudo" in front of a command, you can look 110% more cool if you run "sudo !!". It's a proven scientific fact.
@callam85 Ladies like men who use "sudo !!". You're just jealous.
callam85 depends on the shell. Standard bash logs “sudo !!” as the full command string
There is defrag for ext4 and xfs. Run e4defrag -c /location/ to check your non ssd drive for fragmentation.
Great video! Thanks for the tips and tricks Chris!! Nicely Done!!
Chris I believe Fedora uses DNF package manager instead of YUM, REL/CentOS still uses YUM for the moment but with REL 8 I believe they will ship it with DNF. Also to complete the update you need to run sudo apt upgrade.
Penguin Revolution Yeah I was about to mention the same thing
@@JohnMiller-mmuldoor A lot of people get that mixed up these days (I do it sometimes too) The only reason REL doesn't use DNF is because Red hat hasn't had a major feature update since DNF was released. and REL and CentOS also provide you with a path to replace YUM with DNF if you so choose, however most people don't and in my opinion if you do use REL or CentOS then it's not worth switching it out until the next major release comes out, YUM works just fine.
I use Discover and Synaptic Package Manager to uninstall broken PPA and residual config. Also with the autoclean, autoremove commands. However I'm reluctant to use Bleachbit, had problem with it in the past.
This video is missing out on handling RPM-based systems like openSUSE.
Bleachbit is too aggressive and too complex for an average user. I thought I know what I was doing but after some time I discovered some small breakages, lack of data that most probably was "cleaned" by bleachbit and I was very, very careful and set only most general and basic cleanup and yet it was still too invasive.
@BlackWorm trying to find that but don't see it. Can you please share the link mate?
9:59 What is that otter thing? I have seen it a few times online but I can't find it for the life of me.
Ironically one of the things I learned from this video is the package name for kcharselect. I really badly needed a program like this and Kubuntu didn't ship with it. Also tried bleachbit and got 20GB of space back, which is great :3
exactly what I needed, thank you very much man! :D
"sudo pacman -Syu" 6:22 mine doesn't work. Why? I use sudo apt-get update
Pacman is for Arch systems. Apt and apt-get are for Debian based systems. Are you on Ubuntu?
@@KubuntuYou i was using linux mint
I love your videos, but as a brand new user, it would help me if you slowed down just a little bit and included a few explanations of some of your terms. Otherwise, you have been a lifesaver for me!
apt autoremove in some case may remove critical stuff. Its basically all packages with no deps.
Had to clean the cache every couple months or the root partition would fill up and I couldn't update my Arch. Started to annoy me, so decided to mess around in package manager and keep less copies/versions. Now it''s fine.
Many of my users are running my software on Win 2000 still. No maintenance required, but using very few Windows facilities. POS/Inventory and such. Linux is better, but less familiar and has fewer available third party programs. In Windows, I wrote my own scheduler as I did not trust the one that came with it. This can be done. There is push back on Linux desktops. Linux servers are well received, is my experience.
On the linuxmint forums, they warn that bleachbit is bad, that it can break your system, and that you shouldn't use it. I have used it for a while and I have had no problems.
Many People duel boot so they will be using NTFS.
Timeshift is not compatible with Linux Ubuntu MATE, at least not on my PC because it screwed up my system and broke it when I did a restore.
I had to fsck? After sometime of use, I told followed info i found on the net, can you explain what that is and how i can not have to do it in future
should do a: when i upgrade to a new major change distro version. Something i noticed when upgrading from pop os 19 to 20 it broke alot of app installs. i use alot of different tools to install: pop shop, apt, flatpak, snap, chocolatey. it can really mess things up appwise.
Chris, what did you use as FPS-counter while running Minecraft?
Peter, I just used the built-in game FPS counter.
@@ChrisTitusTech
I never played Minecraft.
Fragmentation/defragmentation is possible on ext filesystem ;)
But usually not required
From what I understand, most Linux filesystems defrag silently in the background while the filesystem is being used. Fragmentation can still build up over time, but it takes years of constant use for it to reach any significant level. I use XFS on all my drives, and once in a while I'll run 'xfs_fsr', but not very often.
Chris, how did you reboot your machine whilst recording the video?
bleachbit is an underrated lifesaver
Alright. Needed this. Nice Video Chris
You should also keep an eye on cron. Make sure nothing got put into your (or root's) crontab and remove old cron jobs that you don't need anymore.
Makes me wonder why Microsoft just doesn't create their own distro like RedHat. I mean the biggest thing is software, but if they created it alongside windows, then use something like a .NET virtualized container, while supporting developers that create main ports to their vision of a linux OS. I mean powershell and windows server is a huge hurdle to overcome, if they were to do that, because powershell is object oriented and linux is textual. Windows Server has implementations all over enterprise environments. So actually fundamentally changing Windows may be too volatile for them.
Chris... I'm running MX-Linux on a DELL Latitude 6520. In this Video I was following you in the terminal to update Repositories, I did the "sudo pacman - Syu" command, Terminal said pacman command not found..! I then went to Synaptic Package Manager and looked for it, it's not installed but all files referred to "PACMAN" the Game.. where your pacman eats all the dots...! Later in the video you mentioned pacman, Package Manager..? I tried that and it doesn't work either, so what can I use...? Thanks in advance..! =)
Hey Chris. Just noticed that this video is from 2019. Can you make an updated version of this? Like maybe there's something new or noteworthy that you can show us in 2020. Thanks!
How do you safely clear out the log directory that always fills quick from /var/log?? ;)
13:45 Your kdenlive repo list is zero size (empty), so it looks like it removed your repo link to kdenlive.
i am on mint and like how that desktop/menus look, i wanna try it my self :) any pointers on package names, icons etc what do i need
I have a problem that makes me reboot, which's random sudden lasting CPU spikes, once CPU goes crazy, only way to fix's a reboot.
Linux systems can get fragmented if you have very little disk space, but otherwise it almost never happens in ext4 (which is the defacto fs on most distros)
Well it still happens with a lot of disk space actually. It’s just that it doesn’t happen for long, because when the disk isn’t super active it’ll reallocate things (pretty quickly) to fix it itself
old habits die hard, no reboots neccesary :p
just need to figure out what needs to be restarted xD
Hi Chris!
What do you think about coreboot and its variants? Have you ever tried installing it?
Whenever I am booting up my Linux, my left click on the mouse is not working and I have to run serval commands to disable and enable device again. Same things happening with my Wi-Fi - it's just spontaneously not working and when I am trying to open "network", my desktop environment crashing and I have to reboot the whole system. I am using Mint 19.3 and cinnamon DE.
I am so close to give up Linux and return to the boring Windows OS.
I like to run straight Debian. maintenance is via the apt command and this seems simple enough
Hey, nice video, man, but I saw you play minecraft over lutris. Minceraft has native Linux suppor, you should try it
In my experience, "sudo bleachbit" and "sudo rm -rf /" are similar in effect.
what's the program at 2:40 to look for files and other programs?
@Mubashir Haroon oh, ok, thanks!
I need your help; How to remove old kernels packages and fast up my fedora 29 ????
Could you give me an educated guess on how much space time shift needs?
For Fedora 31 you will want to run the following in the terminal prior to launching bleachbit once installed:
sudo dnf install python2-gobject -y
It works fine once you do this. This is from their News segment on their site (link: www.bleachbit.org/news/bleachbit-30). Enjoy!
Hi
I’m on Mint, i formatted an old hard drive to ext4, mounted it but was unable to write on it and had to revert to ntfs to be able to put files on it.
Why did this happened?
Thanks in advance
Thank you very much for the video!
what does it mean when installation candidate is not found?
Great video! I'm sure you may have said before, but I'd like to know what desktop environment you're using on this machine. It looks great.
The Arch machine, to clarify.
Just saw it in another video. KDE looks slick.👍
Chris, when will you learn to use "sudo !!" ?
Hey Chris, nice video as always! Could you make a more thorough arch install video sometime in the future? :)
@@rdangdev UEFI
I am not very fond of command-line. I am not afraid of it, I just use GUIs whenever available. Call me lazy if you like. I used Mint Software Manager to install Bleachbit. So, let's continue with the video.
Hi Chris, which Linux distro you use
I don't know anything about btrfs, zfs and HAMMER, but it appears to me that there is some performance increase after defragmentation a ext4 volume. Ubuntu even comes with e4defrag utility preinstalled. Here is the article I am referring to:
www.linuxsecrets.com/kdocs/ols/2007/ols2007v2-pages-179-186.pdf
One question, you know sudo !! will run the previous command as sudo?
i am very new to linux, could you plesae make videos on doing the same thing in GUI instead of CUI
too bad, the one thing I hoped for wasn't there. :/
I uninstalled some programs and afterwards still found their configs in home. I hoped you'd show a quick way to remove configs and other files for programs that are nolonger installed.
I am looking for a laptop that will work under Linux. What can you reccomend ?
I would recommend System76. They make great Linux laptops and desktops.
All their hardware have excellent Linux compatibility and all their machines are preinstalled with either Pop!_OS or Ubuntu. Preinstall is great if you are just starting out using Linux and want a quick start without having to learn how to install Linux in your existing machine.
Honestly dam near any laptop runs linux fine....as long as it's not like 10 years old....I use a Alienware laptop deleted windows and put Linux on it as my gaming laptop
i have laptop 12 eyars old nad it runs debian minimal installation with openbox and xorg with no problem
I just bought HP Probook 645 G1 from Allegro.pl - it is running Debian with no problems.
I have AsusPro and I can't use linux. Something must be wrong with my laptop. After installing Linux my eyes hurt so much. I dont know what is going on but it is so uncomfortable.
Some Linux hardware h has to be defragged. SSDs and M.2 drives need periodic trimming. This is usually scheduled by Linux on a regular basis such as "every 200 hrs of use, or after xxx gigs have been written. Same requirement for Windows systems.
Eventually, the SSD bios will have an extension to where the SSD itself, without Linux, will do its own trim.
Hi, i've got a problem with the boot menu - at first i've installed linux mint mate, was all fine, and then i've tried linux mint cinnamon, but was something wrong with handbrake - and I thought that will be better to try many versions of linux, manjaro, pop os, and ubuntu, but now in the boot menu i can see 3 options of different linux versions, the last one is ubuntu, i'm able to install back all this three versions of linux back as a fresh install, but I can't install linux mint back, maybe is something wrong with the grub, when im trying to boot linux mint from usb stick, I get this - error: invalid magic number and also this error:you need to load the kernel first. I want to go back and install a fresh copy of linux mint and try xfce, but I don't want to see in the boot menu the names of the linux versions which I don't want to use - so how can I delete the previous installations from the boot menu and then to be able to go back and install mint, at the moment i'm running ubuntu 19 and i'm planning to install ubuntu mate as a trial. Thank you, bye
Anyone has any idea ?
Defragging the drive? What is this 1998?
Hi everyone. I am a linux super baby. Just getting into it. What does "sudo" mean and do in the terminal?
Thanks for not insulting or killing me... :)
`sudo` will run a program as another user. By default, if you don't specify any other options, it runs the program as root (like Adminstrator privilege in Windows), which gives the program full system permission.
SUDO = Switch User DO. It grants your user account administrator privileges. man sudo for more information.
Paul Frederick im pretty sure it stands for Super User DO not Switch User DO.
Good to learn things you didn't know since you probably used Windows and therefore are familiar with it and new things to learn are different.
The other commenters explained, but wanted to add that you should use it when you need those administrator privileges. If what you are doing does not strictly require them try and dig deeper as to what might be failing. Just a caution.
im relativity new to the linux world , but i believe my pc experience carries through .. for clarification i remember when Microsoft released there first operating system and have used cpu's measured in hertz not kilohertz or even gigahertz! and ram was measured in k's so i believe that dates my usage experience. from my experience all os;s degrade with user input.. all os;s have recommended maintenance.. all will sorta fix the issues and take time... installation of every os ive ever done takes around an hour solving cleaning and troubleshooting always takes longer,, having an archive of all drivers and software installed says if data is saved to non stand locations a full install of the os and software is less effort and time than "maintenance" ever was and has far better results for me anyways mileage may vary
BLESS YOU CHRIS
Very interesting and informative.
What command do you use in Deepin
Are you running Cinnamon desktop? (P.S., you should leave your package list from your main machine in the description)
Edit: It looks more like KDE, but still could be Cinnamon
It's kde plasma
are you only doing youtube? or are you still consulting ?