List kernel modules

To list kernal modules, use

Example

Google Meet

Google Meet

Google Meet allow you to scaren screen with multiple users.

https://meet.google.com

Google Meet

To start a meet, click on “Join or start a meet” and click continue. On next page, click “START MEETING”

On next page, you will get a link, that you can share with others to invite them to the meeting.

Once meeting have started, on right lower side of the screen, you have option to start prestentation, this allow you to share screen. You also have option to use webcam/microphone.

mitmproxy-foxyproxy

Install mitmproxy on Ubuntu

mitmproxy is a man in the middle proxy server for debugging.

mitmproxy

To install mitmproxy on Ubuntu, run

On Ubuntu 18.04, this is broken. To insall i created a virtualenv

Install mitmproxy inside virtualenv with

To start, run

This will listen proxy on port 8080, you can verify with command

If you get error like

Run

To configure in browser, you can use it as HTTP proxy. Here is how i configure it on Firefox FoxyProxy.

Run PostgreSQL in Docker

To run PostgreSQL on docker, create a directory for saving the data presistant

run docker container

In above, change the value for POSTGRES_DB, POSTGRES_USER and POSTGRES_PASSWORD as needed.

Connect to PostgreSQL server

To connect to PostgreSQL server, run

Now you are inside PostgreSQL conainer, to login, run

It will ask for password. Once you enter password, you will be in PostgreSQL command line.

See docker

Disable 2 Factor Authentication in Cpanel

To disable 2 Factor Autentication for WHM in Cpanel Server, SSH into server as user root, run

Or run

This will create a link for WHM login, using this link won’t require 2 Factor Authentication. After logging into WHM, you can disable 2 Factor Autentication.

If you want 2 FA disabled for a cpanel user, run

Logging Linux Commands for all users

To log commands executed by users on Linux shell, edit file

Add

Create file

Add

Restart rsyslog

Now log off and login, you will be able to see all commends executed by users on bash shell in file /var/log/commands.log

Log rotating

edit

Find

Add below

video sharing script

youtube clone script

Youtube clone script allow you to start your own video sharing web site like youtube. vShare youtube clone script is is created using PHP and MySQL run on cpanel servers. This script use ffmpeg to convert video into MP4. You can add multiple media servers to serve videos. This allow your site to gow bigger.

https://www.vshare.in

video sharing script

Here are some sites using vShare youtube clone script

https://sdarot-il.gq/

https://video.bizhat.com

http://videoworld.in/

https://tophealthandfitnes.com

Debian 10

How to upgrade Debian 9 to Debian 10

To upgrade Debian 9 to Debian 10, first make sure your system is uptodate.

Edit file /etc/apt/sources.list. Find all occurance of “stretch” and replace it with “buster”.

Or use following

Now update the system

run dist-upgrade

During the upgrade, you will be asked to replace some of the configuration files. If this is a fresh server, you can always replace these files with newer version. If your server have these files modified, you should be careful as replacing these files will lose the changes you made.

Debian 10 upgrade

Reboot the server.

After reboot, you can verify server is running Debian 10 with commands

Debian 10