Install Transmission on CentOS

Transmission web client

transmission is a torrent client. This come with a web GUI, that make it easy to installed on a remote server with no X-Windows. To install transmission on CentOS server, run yum install -y transmission-daemon transmission-cli Allow Web Access To access transmission web GUI, you need to white list your IP address. To do this, … Read more

How to protect .git folder using htaccess

GIT is popular version control software, this work like a time machine. You can easily get older versions of code. Each changes are stored as commit, so it work like a time machine for source code. If you put your .git folder in a publically accessable folder, others will be able to access your source … Read more

vnc

Install VNC server How to Install Xfce VNC remote desktop on Ubuntu Server Install Xfce VNC remote desktop on CentOS 7 VNC Client https://uvnc.com/download/index.html – Provide Viewer Only 64 and 32 bit available Open Source TightVNC Viewer Try Linux distro with out downloading ISO Connecting to VNC Server from a Mac computer Remote Desktop Setup … Read more

Install mitmproxy on Ubuntu

mitmproxy is a man in the middle proxy server for debugging. To install mitmproxy on Ubuntu, run sudo apt install mitmproxy -y On Ubuntu 18.04, this is broken. To insall i created a virtualenv mkdir -p ~/www/mitmproxy cd ~/www/mitmproxy virtualenv –python=/usr/bin/python3 venv source venv/bin/activate Install mitmproxy inside virtualenv with pip install mitmproxy To start, run … Read more

Logging Linux Commands for all users

To log commands executed by users on Linux shell, edit file vi /etc/bash.bashrc Add export PROMPT_COMMAND=’RETRN_VAL=$?;logger -p local6.debug “$(whoami) [$$]: $(history 1 | sed “s/^[ ]*[0-9]\+[ ]*//” ) [$RETRN_VAL]”‘ Create file vi /etc/rsyslog.d/bash.conf Add local6.* /var/log/commands.log Restart rsyslog systemctl restart rsyslog Now log off and login, you will be able to see all commends executed … Read more

How to upgrade Debian 9 to Debian 10

Debian 10

To upgrade Debian 9 to Debian 10, first make sure your system is up-to-date. Edit file /etc/apt/sources.list. Find all occurrences 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 … Read more

zip

To install zip on Ubuntu/Debian, run apt install zip unzip -y To unzip a file, run unzip FILE_NAME.zip To unzip to specific directory, run unzip FILE_NAME.zip -d DIR_NAME Create a ZIP file To create a ZIP file, run zip -r FILE.zip FILE_OR_DIR Example root@server:~# zip -r 1.zip organicinstinct.sql adding: organicinstinct.sql (deflated 85%) root@server:~#