How to set up FileZilla to connect to Digital Ocean Droplet

FileZilla is a free software, cross-platform FTP application, consisting of FileZilla Client and FileZilla Server.  Setting up FileZilla to access your Digital Ocean droplet is very easy. There are multiple ways to access it e.g. FTP, SFTP, using interactive mode, entering password everytime using keyfile etc. We will use simplest method, using SFTP and entering password everytime we try to login.

Step#1 Install FileZilla

Please refer to How to Install FileZilla on Ubuntu post

Step#2 Start FileZilla

Once you start the application, you will see below screen

Step#3 Go to File->Site Manager

Step#4 Set up “New Site”

  • Host” – you can find this information at your hosting provider. You can get ip by using following command ping <domainname.com>
  • Port” – You can leave this black, if you chose FTP, it will automatically select 21 and if you select SFTP, it will select 22.
  • Protocol” – protocol for exchanging files over any network. Please select”SFTP-SSH File Transfer Protocol”
  • Logon Type” – You can select whichever logon type is convenient to you. For now, please select “Ask for password”
  • User: The username having required access
  • Password: password


Don’t worry about any other tabs as of now.

Once done, clock on “Connect” and you will get connected to your Digital Ocean Droplet.

If you get any issue, please do let me know

How to Install GNU Paint on Ubuntu

GNU Paint (gpaint) is a simple, easy-to-use paint program for GNOME, the GNU Desktop. Gpaint starts as a port of xpaint and takes advantages of features unique to the GNOME environment. Gpaint is licensed under the GNU GPL, version 2 or later.

Current Features:

  • Drawing tools–ovals, freehand, polygon, text, with fill or shallow for polygons and closed freehand.
  • Cut and paste by selecting irregular regions or polygons.
  • Print support using gnome-print (still flaky, will be improved upon next release)
  • Modern, easy-to-use user interface with tool and color palettes
  • Editing multiple images at the same time without running multiple instances of the image editor
  • All image processing features present in xpaint

Installation

To install it type following command on terminal


$ sudo apt-get install gpaint

output


[sudo] password for USERNAME:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libglade2-0
The following NEW packages will be installed:
gpaint libglade2-0
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 161 kB of archives.
After this operation, 915 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libglade2-0 amd64 1:2.6.4-2 [44.6 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 gpaint amd64 0.3.3-6.1build1 [117 kB]
Fetched 161 kB in 10s (15.4 kB/s)
Selecting previously unselected package libglade2-0:amd64.
(Reading database ... 164728 files and directories currently installed.)
Preparing to unpack .../libglade2-0_1%3a2.6.4-2_amd64.deb ...
Unpacking libglade2-0:amd64 (1:2.6.4-2) ...
Selecting previously unselected package gpaint.
Preparing to unpack .../gpaint_0.3.3-6.1build1_amd64.deb ...
Unpacking gpaint (0.3.3-6.1build1) ...
Setting up libglade2-0:amd64 (1:2.6.4-2) ...
Setting up gpaint (0.3.3-6.1build1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

Once installation is done you can find gpaint in list of installed application and its ready to use. Here is screenshot of gpaint

How to Install FileZilla on Ubuntu

Installing FileZilla on Ubuntu is very easy, simply follow below steps

Step#1 Update the system


$ sudo apt-get update
[sudo] password for user:
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 252 kB in 17s (15.3 kB/s)
Reading package lists... Done

Step#2 Install FileZilla


$ sudo apt-get install filezilla
[sudo] password for iser: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  filezilla-common libfilezilla0 libpugixml1v5 libwxbase3.0-0v5 libwxgtk3.0-0v5
The following NEW packages will be installed:
  filezilla filezilla-common libfilezilla0 libpugixml1v5 libwxbase3.0-0v5 libwxgtk3.0-0v5
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 9,359 kB of archives.
After this operation, 38.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 filezilla-common all 3.28.0-1 [2,301 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libfilezilla0 amd64 0.11.0-1 [48.3 kB]                                                                                                            
Get:3 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libpugixml1v5 amd64 1.8.1-7 [82.8 kB]                                                                                                             
Get:4 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxbase3.0-0v5 amd64 3.0.4+dfsg-3 [954 kB]                                                                                                      
Get:5 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxgtk3.0-0v5 amd64 3.0.4+dfsg-3 [4,182 kB]                                                                                                     
Get:6 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 filezilla amd64 3.28.0-1 [1,791 kB]                                                                                                               
Fetched 9,359 kB in 27s (345 kB/s)                                                                                                                                                                                
Selecting previously unselected package filezilla-common.
(Reading database ... 163752 files and directories currently installed.)
Preparing to unpack .../0-filezilla-common_3.28.0-1_all.deb ...
Unpacking filezilla-common (3.28.0-1) ...
Selecting previously unselected package libfilezilla0.
Preparing to unpack .../1-libfilezilla0_0.11.0-1_amd64.deb ...
Unpacking libfilezilla0 (0.11.0-1) ...
Selecting previously unselected package libpugixml1v5:amd64.
Preparing to unpack .../2-libpugixml1v5_1.8.1-7_amd64.deb ...
Unpacking libpugixml1v5:amd64 (1.8.1-7) ...
Selecting previously unselected package libwxbase3.0-0v5:amd64.
Preparing to unpack .../3-libwxbase3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package libwxgtk3.0-0v5:amd64.
Preparing to unpack .../4-libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package filezilla.
Preparing to unpack .../5-filezilla_3.28.0-1_amd64.deb ...
Unpacking filezilla (3.28.0-1) ...
Setting up libpugixml1v5:amd64 (1.8.1-7) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up filezilla-common (3.28.0-1) ...
Setting up libfilezilla0 (0.11.0-1) ...
Setting up libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up filezilla (3.28.0-1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...

Now you are all set, you can see FileZilla in installed application list

How to install packages using snap Ubuntu

Snap is Canonical’s attempt to refine the app packaging and delivery mechanism on the Linux platform.  The Snap packages enable developers to bring much newer versions of apps to Ubuntu 16.04 LTS. Currently, the list of available snap packages is short, but soon we’ll be able to install more packages through the new snap package manager.

It is possible to install snap packages alongside traditional deb packages. These two packaging formats live comfortably next to one another. ( Read more about it here)

If you are on Ubuntu 16.04 LTS or later, you would already have snap installed on your machine, if you are on earlier version, install snap using following command.

$sudo apt install snapd

If you want to cross check if snap is installed or not, run following command.

~$ sudo apt list snapd
[sudo] password for conquistador:
Listing... Done
snapd/xenial-updates,now 2.34.2 amd64 [installed,automatic]
N: There is 1 additional version. Please use the '-a' switch to see it

Check the snap version

$ snap version
snap 2.36.1
snapd 2.36.1
series 16
ubuntu 16.04
kernel 4.15.0-39-generic

Now let us see how to find a package and install it.

Search package by name

$ snap find vscode
Name Version Publisher Notes Summary
vscode 1.29.1-1542309157 snapcrafters classic Code editing. Redefined.
ampareinvertcolor 1.0.0 juthawong - Simply Invert CSS Color - Made For Web Designer

You can search for keywords as well. If keyword has multiple words, please enclose it in single or double inverted commas.

$ snap find "image editor"
Name             Version         Publisher          Notes  Summary
pencilsheep      5               pencilsheep        -      Free professional image editor with full GPU acceleration
amparepngtoico   1.0.1           juthawong          -      Convert PNG Image To Windows Icon File in Clicks
nomacs           3.11.7          diemmarkus         -      nomacs is a free, open source image viewer.
imeditor         0.7             huluti             -      Simple & versatile image editor.
anituner         2.0             mmtrt              -      AniTuner lets you create, edit and convert Windows animated cursors ani files.
gimp             2.10.8          snapcrafters       -      GNU Image Manipulation Program
paintsupreme-3d  1.0.41          braindistrict      -      PaintSupreme 3D
goxel            0+git.5cabc00   guillaume          -      Goxel. Free and Open Source 3D Voxel Editor
carnet           0.9.0           alexandre-roux-m   -      Powerful note taking app with sync, online editor and android app
anifx            1.0             mmtrt              -      AniFX is a free cursor editor with many features.
tiled            1.1.6           bjorn              -      Your free, easy to use and flexible tile map editor.
polarr           5.2.1           polarrco*          -      Powerful and easy-to-use photo editor.
skrifa-lite      0.1.0           hyuchia            -      A simple word processor built with web technologies
skrifa           0.2.6           hyuchia            -      A simple word processor built with web technologies
photoscape       latest          merlijn-sebrechts  -      PhotoScape is a fun and easy photo editing software that enables you to fix and enhance photos.
kstars           master+38b187e  kde*               -      KStars is a desktop planetarium for amateur and professional astronomers.
gitkraken        4.1.1           gitkraken*         -      For repo management, in-app code editing & issue tracking.

Installation.

sudo snap install <package>

For some application you might need to use word –classic.  I got an error which installing visual studio code (vscode) using snap e.g.

$ sudo snap install vscode
[sudo] password for conquistador: 
error: This revision of snap "vscode" was published using classic confinement and thus may perform
arbitrary system changes outside of the security sandbox that snaps are usually confined to,
which may put your system at risk.

If you understand and want to proceed repeat the command including --classic.
$ sudo snap install --classic vscode
vscode 1.29.1-1542309157 from Snapcrafters installed

Snap packages are automatically updated, if you want to update any package manually, use following command.

sudo snap refresh <package>

Check list of packages installed on your computer

$ snap list
Name           Version            Rev   Tracking  Publisher     Notes
core           16-2.36.1          5897  stable    canonical*    core
vscode         1.29.1-1542309157  69    stable    snapcrafters  classic
wine-platform  3.0.3-3.21.0       36    stable    mmtrt         -

Removing the application

sudo snap remove <package>

One the application is installed, it can be run as any other application.

If you want to go into details, please refer to official tutorial and documentation

How to install Visual Studio Code on Ubuntu

Visual studio has been one of the leading code editor. I mostly use sublime text for its simplicity but many a times, Visual studio code feel more comfortable considering many add on features like git integration, debugging tools, autocomplete and not to forget inbuilt terminal.

Method#1 Install Visual Studio Code using .deb package

Step#1 Download Visual Studio code .deb/ *.rem package from https://code.visualstudio.com

Step#2 Install downloaded package using following command

sudo dpkg -i DEB_PACKAGE

Alternatively, you can simply double click on *.deb package. It will open software center page as below. Simply click on install. One you click on install, it will prompt you for password. Install the password and hit enter / click Authenticate.

Method#2 Install Visual Studio code from Ubuntu Software

Got to Ubuntu Software. ( by searching Ubuntu software in search box). Type Visual Studio in the Ubuntu Software sear box and you will see the Visual Studio Code, click on “install” button and you are good to go.

One you click on install, it will prompt you for password. Install the password and hit enter / click Authenticate.

Method#3 Install Visual Studio Code using snap

This is easiest method. Simple run following command and visual studio code will be installed immediately.

$ sudo snap install --classic vscode
vscode 1.29.1-1542309157 from Snapcrafters installed

If you want to know more about what is snap and how to use it ? please read this article

How to remove Visual Studio from Ubuntu

Method#1  Using Ubuntu Software

Got to Ubuntu Software. ( by searching Ubuntu software in search box). Type Visual Studio in the Ubuntu Software sear box and you will see the Visual Studio Code, click on “remove” button and you are good to go.

One you click on remove, it will prompt you for password. Install the password and hit enter / click Authenticate.

Method#2  Using Command Prompt

Just to check if Visual Studio Code is installed, run following command.

$ sudo apt list code
Listing... Done
code/stable,now 1.29.1-1542309157 amd64 [installed]

As you can see, name of the package is code. Now run following command

$ sudo apt-get remove code
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
code
0 upgraded, 0 newly installed, 1 to remove and 197 not upgraded.
After this operation, 193 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 323562 files and directories currently installed.)
Removing code (1.29.1-1542309157) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...

Method#3  Using snap

Use this only if you have installed If you have installed Visual Studio code using snap then use following command

$ sudo snap remove  vscode
vscode removed

Note: You can use snap command to uninstall if you have installed using snap or installed from Ubuntu software center, however, if you have installed using .deb file, snap will not be able to remove the package

Upgrading Visual Studio code
Following command will upgrade all packages install on Ubuntu to their latest version

sudo apt update && sudo apt upgrade

How to Install Notepad++ on Ubuntu

Notepad++ is one the best tool for developers. Notepad++ is a free and powerful source code editor and Notepad replacement that supports several languages. There are 3rd party plugins available to extend the functionality of the Notepad++.

If you are using windows, you can simply go to this link and download exe file to install it.

If you want to use it on Ubuntu, you would need to make some changes. Good news is that Notepad++ is now (unofficially) available as a Snap package for Linux user.

Step#1 install snapd

check if you have snapd install on your machin by using following command

$ sudo apt list --installed | grep -i snapd

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsnapd-glib1/now 1.13-0ubuntu0.16.04.1 amd64 [installed,upgradable to: 1.33-0ubuntu0.16.04.1]
snapd/xenial-updates,now 2.34.2 amd64 [installed,automatic]
snapd-login-service/now 1.13-0ubuntu0.16.04.1 amd64 [installed,upgradable to: 1.33-0ubuntu0.16.04.1]
snapd-xdg-open/xenial-updates,now 2.34.2 amd64 [installed]

If you don’t see last line “snapd-xdg-open”, please run following command

sudo apt-get install snapd snapd-xdg-open

Step#2 Install Notepad++

After snap installation is completed, you can install notepad++ using following command

sudo snap install notepad-plus-plus

it will take some time based on your network speed. in my case, it was stuck at following for lot longer

Automatically connect eligible plugs and slots of snap "notepad-plus-plus"

Once installation is complete, you can start using notepad++

How to Install Google Fonts on Ubuntu

Google Fonts large collection and different types of fonts. These can be used not just for your websites but also on your desktop/Laptop as well.

And yes, google officially allows downloading and install google fonts on your computer. Please follow along.

Step#1 Download required google fonts

Go to Google fonts home page and click on + sign of the font that you would like to download.

 

Once you select require font, it will get added to selected font window(just like shopping cart). Click on the window header to open it fully. In this article we will try to install font called as “Lora”. Selection window will open something like below.

Click on download sign on right hand upper corner to download the files. It will download a zip file “Lora.zip”

Step#2 :Unzip and Install the Google Font

Now extract the zip file. Once you double click on the TTF (TrueType Fonts) or OTF (Open Type Fonts) file, it will open with Font Viewer. Click on install at right hand upper corner.

Note: Downloaded and unzipped folder will contain Lora-Bold.ttf, Lora-BoldItalic.ttf, Lora-Italic.ttf and Lora-Regular.ttf. You need to install all files individually.

You installation is complete, “install” buttom at top right will get changed to “Installed”

Now open and application like Libre Office or GIMP and you will be able to access the installed fonts

Another way to install the fonts ?

The fonts that you have installed are kept at following location

~/.local/share/fonts

If you want to install a font using command prompt or want to install multiple fonts, simple move fonts files to this folder (either manually from GUI or from terminal) and it will be accessible in your application.

How to resolve error “The requested nginx plugin does not appear to be installed”

I had installed letsencrypt ssl as per this tutorial and these were working fine, however when I tried to install new certificate I got following error

$ sudo certbot --nginx -d vatadya.com -d www.vatadya.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested nginx plugin does not appear to be installed

I reinstall PPA from repository ppa:certbot/certbot and reinstalled “python-certbot-nginx”, still it did not resolved the problem. Finally, following installation resolved the error.

$ sudo python3.6 -m pip install certbot-nginx

Once this was installed, following command worked fine

$ sudo certbot --nginx -d example.com -d www.example.com