Linux KVM Bridge network on Ubuntu

On Ubuntu 18.04 server, first i get Ubuntu to use /etc/network/interface, by default Ubuntu 18.04 and newer use netplan.

First install ifdown

Now you can configure your network interface by editing file

Here is my network configuration on an OVH server.

To convert this interface to bridge network, do the following

1) Replace all occurance of “eno3” with “br0”

2) Add following lines

In above, replace “eno3” with name of your physical interface.

Here is my final network configuration.

See Linux KVM, Networking @ linux-kvm.org

xfce-vnc

Install Xfce VNC remote desktop on Ubuntu

XFCE is a light weight desktop for Linux. XFCE + vnc allow you to setup remote desktop on a VPS or dedicated server located on a data center or cloud. You can connect to remote desktop using VNC client and work like it is local computer.

To instal XFCE run

Next install vncserver

It is bad idea to use root user for logging into desktop. Create a normal user to run desktop.

It will be good to make this user an admin, so user can install software or update system.

Now login as the user

Create a vnc password for this user.

Create vnc startup file

Add

Make it executable

Now exit the user with “exit” command. You should be user “root” now.

Create service file

To auto start vncserver on boot, you need to create a service file.

Add

Enable the service with

You can start/stop vncserver with

Now reboot the server. You should be able to connect to VNC server using SERVER_IP:1

Install HandBrake on Ubuntu 18.04

HandBreak is an OpenSource Video transcoder available from https://handbrake.fr. It can convert video to various format.

Latest version of Handbreak available in Ubuntu PPA. To install, enable Handbreak PPA

Install handbreak with

kvm-os-image

Install Linux KVM on Ubuntu

Linux KVM is virtualisation software that allow you to create virtual machine under linux. To install on Ubuntu, run

Install libvirtd, this allow you to easily create KVM virtual machines and allow remote connection from virt-manager GUI application.

Enable and start libvirt

At this stage, you should be able to connect to KVM server form your computer using virt-manager.

You need to create a bridge network interface (“br0”), for this, follow instructions at Linux KVM Bridge network on Ubuntu.

Downloading ISO

Before you can setup any VM, you need to download ISO image for the OS. Here i downloaded ISO image for Ubuntu 19.04

Once downloaded, you should be able to select this ISO image in virt-manager when creating a VM.

See Linux KVM

Ignore a folder in maldet

maldet is malware scanner for linux. On a shared hosting server, maldet detected one cusomer files as malware, on checking i found it is false positive. It is just a log file written by the application. To avoid getting further email from this application, i added this folder to maldet ignore_paths.

To add a folder to ignore list, edit file

Add the folder you need to ignore to end of this file as a new line.

Example

See maldet

Download RPM package from yum repository

To download RPM file from yum repo, you need to install yum-utils package.

Now you can use command

Example

This will download and store all rpm files in /var/yum folder. –resolve will resolve dependency and download them. This will be helpful if you need to install a package on a system with no direct internet connection.

See yum

Enable Passive FTP in ISPConfig

To enable Passive FTP in Debian/Ubuntu installation of ISPConfig, run

Restart pure-ftpd

Now open ports 40110-40210 in firewall.

On CSF Firewall, edit

Add

At ened of TCP_IN line.

Example

See ispconfig