Tips and Tricks

Topics relating to MX Docs and MX Videos
Message
Author
User avatar
dolphin_oracle
Developer
Posts: 19924
Joined: Sun Dec 16, 2007 1:17 pm

Re: Tips and Tricks

#21 Post by dolphin_oracle »

asinoro wrote:Trash on Thunar disappears

This an incident back from MX-15 and continuous to MX-16 and also have experience since Mint.
Suddenly after resume or by adding new usb device Trash on Thunar disappears.
How I solve it, is not the ideal way but it is an option.
Open Task Manager > Find-select Thunar - right click and Kill > After open new Thunar and the Trash is there.
Interesting. I usually log in and log.out.

I think there is some kind of race condition with dbus and gvfs. We made some changes in mx16 that have improved this situation for me, but I have seen it (very very seldom maybe once in 2 months)
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: Tips and Tricks

#22 Post by Jerry3904 »

I wonder if this would work when that happens:

Code: Select all

thunar -q && thunar
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: Tips and Tricks

#23 Post by skidoo »

regarding "swappiness" in post #14

That post is okay as a "howto" (or as a 'trick') but it doesn't serve well as a "Tip".
It begs further explanation (and supporting reference links) along with a YMMV disclaimer.

Personally, I usually choose to permanently set swappiness at 5, or disable it completely.

ref:
(Feb 2017 redhat.com article) "Do we really need swap on modern systems?"
https://www.redhat.com/en/about/blog/do ... rn-systems

(Feb 2017 ongoing ycombinator discussion, 286 posts)
"Do we really need swap on modern systems?" https://news.ycombinator.com/item?id=13715249

see also: https://www.google.com/#q=is+linux++swa ... &tbs=qdr:y&*

User avatar
richb
Administrator
Posts: 10322
Joined: Wed Jul 12, 2006 2:17 pm

Re: Tips and Tricks

#24 Post by richb »

Here is a tip. Instead of referring to a post number you can right click the icon next to a post and copy the post link. Then paste it in your post. Clicking on it then takes you directly to that post.
If you have your preferences set to order descending by post date instead of ascending as I do, post no. takes you to the wrong post. For example in my case post 14 is the wrong post not dealing with swappiness.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#25 Post by asinoro »

Change user password from live USB, DVD
There is a moment I hope not, that you forget your password to login. What to do:
From your live medium follow the first step from 1 to 5 of the tutorial.
Once you enter your system to change your username password then:

Code: Select all

sudo passwd yourusername
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Ready you new password and don’t forget to visit via your live medium this tutorial from Tips and Tricks!
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

User avatar
eemaestro
Posts: 52
Joined: Wed Aug 02, 2006 12:12 pm

Re: Tips and Tricks

#26 Post by eemaestro »

To get a strong password, I use pwgen (from the Debian repositories).

Code: Select all

 pwgen -sy 16
or

Code: Select all

pwgen -s 16
You can evaluate it (or one very similar to it) here:
http://www.yetanotherpasswordmeter.com/
to see how crackable it is.

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: Tips and Tricks

#27 Post by Jerry3904 »

asinoro wrote:Change user password from live USB, DVD
There is a moment I hope not, that you forget your password to login. What to do:
From your live medium follow the first step from 1 to 5 of the tutorial.
Once you enter your system to change your username password then:

Code: Select all

sudo passwd yourusername
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Ready you new password and don’t forget to visit via your live medium this tutorial from Tips and Tricks!
The MX User Manager that is in translation now will handle this in a nice GUI.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#28 Post by asinoro »

How to make less heavy your MX due overload swap

This command is not for production servers, but for normal usage, when your swap is overload and your MX could nor respond fast the way you are used to. The command will kill the most heavy apps mostly browsers and will bring your MX in a previous good fast and health situation.

First:

Code: Select all

sudo su
and then:

Code: Select all

echo 2 > /proc/sys/vm/overcommit_memory && sleep 5 && sysctl -p
Pay attention at the folder:

Code: Select all

sudo leafpad  /etc/sysctl.conf
to have at the end the default adjustments of your system which are:

Code: Select all

# system memory commit
vm.swappiness = 60
vm.overcommit_memory = 0
vm.overcommit_ratio = 50
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#29 Post by asinoro »

The best until now Swappiness adjustment
After almost 2 months of trying different combinations I found the best swappiness adjustment for my Laptop with 2 GB RAM and 4 GB Swap.

Code: Select all

sudo leafpad  /etc/sysctl.conf
And at the end you paste this.

Code: Select all

# system memory commit
vm.swappiness = 90
vm.overcommit_memory = 0
vm.overcommit_ratio = 90
After you install the gnome-schedule from synaptic and you follow,

https://mxlinux.org/forum/viewtopic.php?t=39567#p381552

Where Description Swap.
Add the command:

Code: Select all

sysctl -p
Choose Basic > Every Minute > Add and you are ready.
You will be amazed how the performance of your laptop/pc with the low hardware capacity will fly. Now easily you can open two browsers and other applications.
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#30 Post by asinoro »

How to see Synaptic History if you cannot

Because of a bug if you cannot see Synaptic History from File > History, then at the field Find put the word package, Enter and you will see all packages, installed, removed, upgrade etc.
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

Locked

Return to “Documentation and videos”