Difference between revisions of "Talk:Mint Linux Distribution Reference"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(HOWTO: Setup VNC Server (x11vnc) on Linux Mint 18: new section)
(Search for Mint Linux: new section)
Line 84: Line 84:
  
 
source: https://community.linuxmint.com/tutorial/view/2334
 
source: https://community.linuxmint.com/tutorial/view/2334
 +
 +
== Search for Mint Linux ==
 +
 +
[[title=Special%3ASearch&profile=default&search=Mint+Linux&fulltext=Search]]

Revision as of 16:04, 12 February 2018

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