Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Tips and Tricks

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

Re: Tips and Tricks

#21 Post by dolphin_oracle » Sun Feb 26, 2017 7:56 am

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
eeepc 904ha antix 17 32 bit (streaming media player)
lenovo ThinkPad T530 - MX-17
lenovo s21e - antiX-17, MX17(live-usb)

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21796
Joined: Wed Jul 19, 2006 6:13 am

Re: Tips and Tricks

#22 Post by Jerry3904 » Sun Feb 26, 2017 8:23 am

I wonder if this would work when that happens:

Code: Select all

thunar -q && thunar
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

skidoo
Forum Regular
Forum Regular
Posts: 817
Joined: Tue Sep 22, 2015 6:56 pm

Re: Tips and Tricks

#23 Post by skidoo » Sun Feb 26, 2017 3:30 pm

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: 16754
Joined: Wed Jul 12, 2006 2:17 pm

Re: Tips and Tricks

#24 Post by richb » Sun Feb 26, 2017 3:38 pm

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

Rich
SSD Production: MX 17.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

User avatar
asinoro
Forum Regular
Forum Regular
Posts: 494
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#25 Post by asinoro » Wed Mar 01, 2017 11:54 am

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.
Don’t forget to Backup your system
Fix your Grub

User avatar
eemaestro
Forum Guide
Forum Guide
Posts: 1010
Joined: Wed Aug 02, 2006 12:12 pm

Re: Tips and Tricks

#26 Post by eemaestro » Wed Mar 01, 2017 2:30 pm

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
Forum Veteran
Forum Veteran
Posts: 21796
Joined: Wed Jul 19, 2006 6:13 am

Re: Tips and Tricks

#27 Post by Jerry3904 » Wed Mar 01, 2017 2:51 pm

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: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
asinoro
Forum Regular
Forum Regular
Posts: 494
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#28 Post by asinoro » Fri Mar 31, 2017 6:18 am

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.
Don’t forget to Backup your system
Fix your Grub

User avatar
asinoro
Forum Regular
Forum Regular
Posts: 494
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#29 Post by asinoro » Sat May 06, 2017 1:57 pm

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.
Don’t forget to Backup your system
Fix your Grub

User avatar
asinoro
Forum Regular
Forum Regular
Posts: 494
Joined: Mon Feb 22, 2016 12:26 pm

Re: Tips and Tricks

#30 Post by asinoro » Wed May 10, 2017 11:09 am

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.
Don’t forget to Backup your system
Fix your Grub

Post Reply

Return to “Documentation and videos”