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
asinoro
Forum Regular
Forum Regular
Posts: 494
Joined: Mon Feb 22, 2016 12:26 pm

Tips and Tricks

#1 Post by asinoro » Thu Dec 29, 2016 7:15 am

At this topic you can add your tip or trick which will help somebody else.


LibreOffice send a file via Thunderbird

If you like to make LibreOffice to send documents as email using Thunderbird then do this.
From Tools > Options > Internet > E-mail – E-mail programm enter /usr/bin/thunderbird > OK, next time you select Document as E-mail will start Thunderbird.
Last edited by asinoro on Sun Jan 01, 2017 2:32 am, edited 4 times in total.
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

#2 Post by asinoro » Fri Dec 30, 2016 3:49 am

Create strong passwords easily and safely

It is the best way to have different strong passwords on different websites using only your personal master password.

How it works

Supposedly you want a strong password for forum.mxlinux.org open the terminal and give the command:
strongpw forum.mxlinux.org
Αfter asks you Enter secret: where you put your personal master code. Let assume that the secret personal master code to use is mycode then:
$ strongpw forum.mxlinux.org
Enter secret: mycode
The code generated by combining forum.mxlinux.org and mycode is:
oHwQhgKMihjnu4FwzfsJ
where it is used for forum.mxlinux.org. So if you forget your password forum.mxlinux.org, open the terminal and the combination forum.mxlinux.org and mycode finds again it.
Thereby having the mycode password and the name of the site you are interested you make a new different strong passwords for each website separately.
With this code process the advantage is that nowhere are store your passwords but only the time you use it, and always on the basis of the combination of password and the name of the website.

How you make it work

Start by opening your document manager:

Code: Select all

sudo gedit /etc/bash.bashrc
Where you place at the end of the document the following code, then save and close the document.

Code: Select all

strongpw () {
echo -n "Enter secret:"
read -r
echo '' # line break
echo -n "$ REPLY: $ 1" | sha256sum | perl -ne "s / ([0-9a-f] {2}) / print chr hex \ $ 1 / gie" | base64 | tr + / Ea | cut -b 1-20
}
After from the terminal the command strongpw and the website's name with the master password will create a strong password. Just use a master password that always you remember and of course the name of the website.
Advantage you do not need to write and store codes disadvantage if you ever forget a password you need your Linux or another Linux, so again to put the code in /etc/bash.bashrc.
Don't worry because there is a website which will give you exactly the same result if you remember your password and the website you are interested, but don't make it a habit because there are keyloggers, without that this means to have something like it the particular website.
http://ss64.com/pass/
It gives exactly the same result password as the example above. Of course if you do not remember the webpage visit again the " Tips and Tricks" to rediscover.
Enjoy it!
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

#3 Post by asinoro » Sun Jan 01, 2017 2:41 am

Some commands you should know

If for any reason you do not have internet connection.

Code: Select all

sudo apt-get install --reinstall network-manager
And restart.

Code: Select all

sudo service network-manager restart
See your technical specifications of your hardware.

Code: Select all

inxi -Fdpluo
View your hard drives info.
How much usage you have.

Code: Select all

df
And more info:

Code: Select all

sudo parted -l

Code: Select all

sudo blkid

Code: Select all

lsblk
BIOS and memory info.

Code: Select all

sudo dmidecode
View the memory info of your system.

Code: Select all

cat /proc/meminfo
You can see all the USB ports and devices.

Code: Select all

lsusb
Network info.

Code: Select all

ifconfig

Code: Select all

sudo ip addr
Find your public IP.

Code: Select all

dig +short myip.opendns.com @resolver1.opendns.com
Fix broken packages and configure them, if apt-get shows problems.

Code: Select all

sudo apt-get install -f

Code: Select all

sudo dpkg --configure -a
View your recent terminal history.

Code: Select all

history
Delete the recent history.

Code: Select all

history -c
Scan your network to see devices that are connected. You need to install the arp-scan if it is not installed.

Code: Select all

sudo apt-get install arp-scan

Code: Select all

arp -a
To copy Ctrl + C and to paste Ctrl + V, but from the terminal Ctrl + Alt + T it can be done with Ctrl + Shift + V.
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
linexer2016
Forum Regular
Forum Regular
Posts: 308
Joined: Thu Dec 15, 2016 9:15 pm

Re: Tips and Tricks

#4 Post by linexer2016 » Sun Jan 01, 2017 4:36 am

Thanks asinoro, to be able to receive tips such as these is a very useful testimony to the benefits of forum membership. Well done.

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

Re: Tips and Tricks

#5 Post by Jerry3904 » Mon Jan 02, 2017 12:20 pm

Moving back to the GUI world, where I spend most of my time: I discovered another good use of Shotwell Viewer when setting up the user face thing. That application does not show up in the menu, but does when you right-click an image > Open with... Here are the two really handy uses for that:

1) the crop function (image) is much better than what is available in Mirage and much easier than using GIMP.
2) conversion jpg < > png is clumsy for me in Mirage, and much easier than using GIMP: File > Save As > menu in Format box.

Image
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
asqwerth
Forum Veteran
Forum Veteran
Posts: 3086
Joined: Sun May 27, 2007 5:37 am

Re: Tips and Tricks

#6 Post by asqwerth » Mon Jan 02, 2017 1:14 pm

I think I just used "save as" in Mirage, and changed the file name extension from jpg to png. The gnome3 collection of user avatar pixmaps come in jpg format and I was able to change a few to png format that way, in mx16.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

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

Re: Tips and Tricks

#7 Post by Jerry3904 » Mon Jan 02, 2017 1:31 pm

I always run into problems that way, so edited my description above to make it more subjective. I find the pull-down menu easier and faster.
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
linexer2016
Forum Regular
Forum Regular
Posts: 308
Joined: Thu Dec 15, 2016 9:15 pm

Re: Tips and Tricks

#8 Post by linexer2016 » Mon Jan 02, 2017 9:15 pm

Asinoro wrote .... At this topic you can add your tip or trick which will help somebody else. ...

Not sure if this is too basic to be called a tip but here goes (BTW, it's something I've described in a testimonial for MX16) ...

An effective backup routine is as follows:

1. From MX Tools select Snapshot and follow the steps to do that
2. From MX Tools select Live USB and having placed an appropriate USB stick in your computer, follow the relevant steps to burn to the USB the Snapshot you made in step 1.

Repeat this process as regularly as you are comfortable with and take note that the snapshots themselves are saved (usually to your home directory and under snapshots). So, to avoid backing up to the latest snapshot those previous iterations, you may wish to delete some of the earlier snapshots from the HDD/SSD.

Again, hope this tip qualifies as a tip :happy:

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

Re: Tips and Tricks

#9 Post by asinoro » Tue Jan 03, 2017 1:35 pm

How to test if the flash player works with your browser.

This is introduced by Jerry3904 and I thought to put it as a tip.
You can check your browser at this website.

https://helpx.adobe.com/flash-player.html
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

Shay2
Forum Regular
Forum Regular
Posts: 170
Joined: Sat Nov 05, 2016 5:32 pm

Re: Tips and Tricks

#10 Post by Shay2 » Wed Jan 04, 2017 12:19 pm

Keys

F4 opens terminal
PrintScreen opens Screen shot.

Post Reply

Return to “Documentation and videos”