How to share folder with Xubuntu, Ubuntu and Mint

Sharing folders with xubuntu out of the box requires adding a few packages and using the command line.

Here are the steps:

sudo apt install system-config-samba gksu

Then from the command line

gksudo shares-admin

Then you will add the folder you want to share the the dialog and choose the user(s) that will be allowed to access the share.

The share you created will not be available on the network. Typically this will be displayed undre Windows Network, then you will see your computer name in the list.

On the remote machine you will be prompted for a username and password once you try to access the share. Use the same account information that you used on the machine on which you created the share.

 

 

How to enable Low Graphics mode on Ubuntu 16

Prior releases of Ubuntu would allow the user to choose a 2D mode. With the modernization of Ubuntu Unity this has gone away.

The alternative is now to set a Low Graphics mode using Compiz Settings Manager.

Here are the steps to do this.

sudo apt install compizconfig-settings-manager

 

Open compizconfig-settings-manager

 

Click “Ubuntu Unity Plugin”

 

Scroll to the bottom of the General tab and ensure that Enable Low Graphics Mode is checked.

 

Boost your Cloud Machine Performance

If you’re looking for a way to boost your cloud instance performance this swapiness tip might just be just the tip you’ve been looking for.

You can find in system monitor that Ubuntu is using swap space although you have plenty of free physical RAM.

The value of swappiness is between 0 ~ 100. Lower value means Linux will use swap space less whereas higher value causes Linux to use swap space more often. The default value on Ubuntu is 60 which means when your computer uses up 40% of physical RAM, Linux kernel begins swapping.

You can use the following command to check the current value.

cat /proc/sys/vm/swappiness

It’s recommended to set a low value for swappiness so that Linux kernel will use as much physical RAM as possible. For example, to set swappiness to 10:

sudo sysctl vm.swappiness=10

Do not add space before and after the equal sign. This command tells Linux kernel to use swap space when 90% or more of physical RAM is used up. This setting isn’t persistent.

To make it persistent across reboots, you need to edit a file.

sudo nano /etc/sysctl.d/99-sysctl.conf

At the end of this file, append the following line.

vm.swappiness=10

 

Credits: https://www.linuxbabe.com/ubuntu/4-tips-speed-up-ubuntu-16-04

 

How to fix “An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures”

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.

SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl
.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning

 

Cause:

Certificate verification in Python 2

Older versions of Python 2 are built with an ssl module that lacks SNI support and can lag behind security updates. For these reasons it’s recommended to use pyOpenSSL.

If you install urllib3 with the secure extra, all required packages for certificate verification on Python 2 will be installed:

pip install urllib3[secure]

You may also have to upgrade you current version of Python.

If you are working with open stack the following commands is a good idea.

$ sudo pip install --upgrade setuptools

Retry your command

$ sudo pip install python-novaclient --upgrade


Fix X2GO keyboard mapping MacOSX, Ubuntu, Mint, VirtualBox keyboard layout

Many posts written about this topic.

The solution that will work is to add a keyboard mapping on the host machine that you will connect to.

This new keyboard layout must be the only keyboard layout on the system. If another keyboard layout is in the list you will want to remove it as it may be the cause of the issues.

Once your client and host both have the same keyboard layouts installed you will need to end your x2go session and restart it for the keyboard mapping to take effect.

 

Install / Updating / Upgrading NVIDIA drivers

Reboot your PC.

At the login screen, do not login to any account, press Crt-Alt-F1

Login with your user account

run

pgrep dm -l

look for process ‘begin with dm’

issue a kill command to stop the dm process (x server)

sudo kill 2654

This will exit you from the session.

Log back in with the same account you used earlier.

Now you should be able to proceed as normal with the NVIDIA installation.