tor browser

Tor Hidden Service in Ubuntu/Debian

tor browser

To install tor on Ubuntu/Debian, run

Default configuration file for tor is /etc/tor/torrc

To enable hidden service, edit /etc/tor/torrc

uncomment lines

Create folder for your hidden service

You need to install Apache/Nginx etc.. to serve your web application. Make sure to configure web application listen on 127.0.0.0:80

Now restart tor with command

Ubuntu/Debian support multiple instances of tor. You can use command “/usr/sbin/tor-instance-create” to create new tor instance. Configuration for instanced tor available at /etc/tor/instances/INSTANCE_NAME/torrc

To see URL for your Hidden service, run

Example

You should be able to visit the application using .onion link in Tor Browser.

You need to take backup of tor folder (/var/lib/tor/hidden_service) as it contains your secret keys, this is needed to use the .onion domain name. If you lose this, you will lose the .onion url.

To start the service on boot, run

See Tor

Install ShadowSocks server on Debian 10

To install ShadowSocks server on Debian 10, run

Create config file

Add following

You can change server_port if required.

To enable service, run

To start shadowsocks proxy, run

For status/restart

Install RabbitMQ on Ubuntu/Debian

To install rabbitmq on Ubuntu/Debian, run

To start RabbitMQ server, run

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

Installing r1soft server backup agent on Debian/Ubuntu

To install r1soft server backup agent on Ubuntu/Debian, add repository

Install agent

Install kernal headers

Install kernal modules

Verify backup agent works with

Start backup agent

Now you can add the server to R1Soft Backup Manager.

debian linux

Upgrade Debian 8 Jessie To Debian 9 Stretch

debian linux

Upgrading server on a remote location is not safe unless you have KVM access. I did many Debian 8 to Debian 9 upgrade on remote server with out probem. On one server, network card name chaned from eth0 to new enp4s0 format. I had to access the server using KVM and fix network configuration by editing /etc/network/interfaces

First you need to upgrade all software on your server to latest Debian 8

Now replace content of /etc/apt/sources.list file with following

Add

Update the software again with

It can take some time for the upgrade to finish. Once update complete, you can check with lsb_release -a command, you will see

debian upgrade

Remove unused packages with command

At this stage, server stil use old debian 8 kernal.

To boot to new Debian 9 kernal, reboot the server with

After reboot, you will see new kernal.

Now Debian 10 is available. See How to upgrade Debian 9 to Debian 10

Debian 8 jessie repo error

On a Debian 8 server, when running apt update, got following error

To fix it, run

Add following content to the file

Create

Add

apt – Problem unlinking the file auxfiles

When i get apt update on a Debian 9 server, i get following error

The problem is fixed by deleting

Install PowerShell in Debian 9

To install Microsoft PowerShell in Debian 9, run

Install GPG keys

Add repository

Install powershell

To start powershell, run