Xfce Xubuntu Interface

A lightweight interface for Ubuntu

Refer: https://www.lifewire.com/ubuntu-15-04-vs-xubuntu-15-04-2201174

$ sudo apt-get update
$ sudo apt-get install xfce4

Logout Change settings by gear next to logon, you might need to reboot, if you are using auto logon.

User Admin GUI is missing on XFCE, use the following to add it:
$ sudo apt install gnome-system-tools

Launch it like this:
users-admin

Python Pathlib

Refer: https://stackabuse.com/introduction-to-the-python-pathlib-module/


import pathlib
current_dir = pathlib.Path.cwd()  
home_dir = pathlib.Path.home()  
print(current_dir)  
print(home_dir)

Though the code works, it looks clunky and is not readable nor easy to maintain. Imagine how this code would look if we wanted to create a new file inside multiple nested directories.

The same code can be re-written using Pathlib module, as follows:


import Path  
outpath = Path.cwd() / 'output' / 'output.xlsx'  

Dual Boot Ubuntu 18.04 and Laptop

In Windows, to to power settings, what to do, advanced settings
Turn off Windows fast boot

Inside BIOS use F2 to enter BIOS settings
Create a System Password, Reboot
Now turn off UEFI

Older article, refer:

http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html

Pylint Tweaks Print Statement Error

Refer: https://stackoverflow.com/questions/48626676/vs-code-shows-an-error-message-at-print-statement-in-python-2-7
Refer: https://code.visualstudio.com/docs/python/linting

Create yourself a default file:

pylint --generate-rcfile > .pylintrc

Update the following section and add this entry

[MESSAGES CONTROL]
disable=print-statement

Visual Source Code

Edit /home/mruckman/.config/Code/User/settings.json and update this section for pylint:

    "python.linting.pylintArgs": [
        "--max-line-length=120",
        "--rcfile=/home/mruckman/Documents/Scripts/Python/pylintrc"
    ],

Download: pylintrc.txt

Installing Latest Ubuntu Kernel

Trying to fix broken trackpad in Lenovo Ideapad 330

Refer: https://itsfoss.com/upgrade-linux-kernel-ubuntu/

From this article: https://askubuntu.com/questions/1049a787/lenovo-ideapaad-330-touchpad-not-working/

The following two items need done, to get the two finger and edge scrolling to work also:

sudo modprobe -r psmouse
sudo modprobe psmouse

Install Flash Plug-in Ubuntu 18.04

Refer: https://computingforgeeks.com/how-to-install-latest-adobe-flash-player-on-ubuntu-18-04-linux/

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt update
sudo apt -y upgrade

sudo apt install adobe-flashplugin
sudo apt-get install browser-plugin-freshplayer-pepperflash

Adobe Flash should now also be available on search menu too

Install Yeti Microphone on Ubuntu 18.04

Basically you just need to get into sound settings and use Yeti for input and speakers for output.   18.04 seems to recognize it right out of the box now.

Refer: https://www.omgubuntu.co.uk/2011/12/how-to-set-up-blue-yeti-mic-in-ubuntu