Talk:Mint Linux Distribution Reference

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 13:19, 3 December 2019 by Ke0etz (Talk | contribs)

Jump to: navigation, search

network applet

  771 ?        Ssl    0:00 /usr/sbin/NetworkManager --no-daemon
 1087 ?        S      0:01 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 
                           --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
13359 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.1 /org/gtk/gvfs/exec_spaw/2
28369 ?        Sl     0:02 /usr/bin/python2 /usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py network
28457 ?        S      0:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-enp0s20.pid 
                           -lf /var/lib/NetworkManager/dhclient-443a0f44-34d4-3427-9916-f2f01835e4ef-enp0s20.lease -cf /var/lib/NetworkManager/dhclient-enp0s20.conf enp0s20

To bring up the Network control panel type this:

/usr/bin/python2 /usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py network

Determine length of longest line in a text file

Use wc

wc -L filename

or use a shell script

#!/bin/sh

MAX=0 IFS=
while read -r line; do
  if [ ${#line} -gt $MAX ]; then MAX=${#line}; fi
done < "$1"
printf "$MAX\n"

Or the line number and length with egrep

egrep -n "^.{$(wc -L < filename)}$" filename | sed 's/:/ -> /'

HOWTO: Setup VNC Server (x11vnc) on Linux Mint 18

This tutorial was adapted from here.

1. Remove the default Vino server:

sudo apt-get -y remove vino

2. Install x11vnc:

sudo apt-get -y install x11vnc

3. Create the directory for the password file:

sudo mkdir /etc/x11vnc

4. Create the encrypted password file:

sudo x11vnc --storepasswd /etc/x11vnc/vncpwd

You will be asked to enter and verify the password. Then press Y to save the password file.

5. Create the systemd service file for the x11vnc service:

sudo xed /lib/systemd/system/x11vnc.service

Copy/Paste this code into the empty file:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

6: Reload the services:

sudo systemctl daemon-reload

7. Enable the x11vnc service at boot time:

sudo systemctl enable x11vnc.service

8. Start the service:

Either reboot or

sudo systemctl start x11vnc.service

source: https://community.linuxmint.com/tutorial/view/2334

Search for Mint Linux

title=Special:Search&profile=default&search=Mint+Linux&fulltext=Search

Sound Out of Left Speaker Only - Sound Blaster and Mint 18

Admin note: The suggestion to use AlsaMixer really did fix the problem. Procedure from Ubuntu forum:

Had the same problem and fixed it in a strange way.

Go to alsamixer (just type alsamixer in terminal)

Make sure your sound card is the one selected by pressing F6 which will show you a list for the available sound cards. Select yours! ...If you're not sure try them all. It's not dangerous ;)

alsamixer

...I noticed that I had many volume bars having their right part lower than their left part. (in this picture you see only one). So I just lowered all their volumes to zero and back up again and they became even. (to "navigate" just use your arrow keys. Right and left to select the bar, up and down to lower/raise the volume).

link: https://askubuntu.com/questions/496607/no-sound-from-right-speakers

doublecommander

DoubleCommander is a cross platform two window file manager. I tried it. It was very slow to load and would sometimes crash under linux. Uninstalled

Double Commander for Linux apt install doublecmd-gtk

I had tried the gtk.

Double Commander is not included by default in Ubuntu’s 11.04 repositories, but I included instructions on how to install it from a PPA. Double Commander offers both GTK and Qt interfaces (so the first one blends well in GNOME while I recommend the second one for KDE), comes with a twin-panel style and includes a big number of configuration options.

sudo add-apt-repository ppa:alexx2000/doublecmd sudo apt-get update sudo apt-get install doublecmd-gtk # for the GTK (GNOME) version sudo apt-get install doublecmd-qt # for the Qt (KDE) interface

Display applet in Settings causes system freeze

Display applet in Settings causes system freeze

Workaround:

   Use arandr tool to modify display. Downside: changes made here will reset after system sleep or restart.

Problem persists in the beta release of Mint 18.2 Sonya Cinnamon version.


Bad news: This driver is no longer maintained so it's very unlikely this will get fixed.

Good news: This driver is only useful for really old Intel GPUs (10 year old and more... the likes of i800x, i915, i965) and it is not recommended for recent Intel GPUs. Instead, it is recommended to use modesetting, not only to avoid this freeze issue, but also to get better performance.

Anyhow, there are two solutions to this problem: Solution 1 - Recommended for people with modern Intel GPUs (2007 and newer)

Remove the Intel driver to use modesetting instead:

apt remove xserver-xorg-video-intel

And then reboot the computer. Solution 2 - Recommended for people with old Intel GPUs (i965, i915, i8xx..etc)

Disable VSync:

echo CLUTTER_VBLANK=none >> ~/.profile

And then log out.


debugging tools

journalctl -p3 -b | cat
cat /var/log/Xorg.0.log
mhwd -li
cat /etc/X11/xorg.conf.d/*.conf

GTK+ File Chooser Dialog

GTK+ File Chooser Dialog

GIMP (GTK+ 2)

GTK+ file chooser

For GTK+ dialog, the location bar will not appear while viewing "Recently Used" in the file chooser. In this view, even Ctrl+L shortcut keys will not work.

KGtk is the hackish way to use KDE dialogs in GTK+ applications.

GtkFileChooser interface GtkFileChooserDialog

vi /etc/gtk-3.0/settings.ini

/home/nicolep/.config/gtk-2.0/gtkfilechooser.ini



As people already said here, you can set StartupMode=cwd in ~/.config/gtk-2.0/gtkfilechooser.ini. This file exists already, if it is GTK+2, but I am not sure if your screenshot shows GTK+3.

In this case insert this line into your ~/.config/gtk-3.0/settings.ini:

gtk-recent-files-enabled=false

If you want "/" to appear as first view, you need to chdir / before starting the application.

startup mode

In ~/.config/gtk-2.0/gtkfilechooser.ini

change

   StartupMode=recent

to

   StartupMode=cwd

"recent" and "cwd" are the choices available to the user. An app developer can set an arbitrary start up folder by calling gtk_file_chooser_set_current_folder ().

places

vi ~/.config/gtk-3.0/bookmarks