Blocking Package Upgrade on Debian/Ubuntu

To block packages from upgrading, you can use command apt-mark hold.

Example

To list packages that are on hold, run

If you want to remove block, you can use apt-mark unhold command.

See apt […]

Read More…

Configure KVM Bridge Network on Debian 10

Before you configure bridge network, make sure you have bridge-utils installed.

You may also need ifdown and resolvconf packages installed

Here is the default /etc/network/interfaces i had on the server

enp1s0f0 is name of the network interface card on the server. To convert it to brudge configuration. You need to replace enp1s0f0 […]

Read More…

Install kvm on Debian 10

To install kvm on Debian 10, run

Install libvirt, it is a tool to manage kvm

Set libvirtd to start on boot

Restart libvirtd

You can see libvirtd status with

Install virtinst, it is used to create virtual machine.

To see network, run

Start the “default” network

[…]

Read More…

apt-get An error occurred during the signature verification

When running apt update, i get following error

To fix this error, run

[…]

Read More…

Expired Updates for this repository will not be applied

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

To fix the error, run

[…]

Read More…

Install ModSecurity on Debian

To install ModSecurity on Debian/Ubuntu Apache web server, run

Restart Apache web server

Verify mod_security installed with

To activate ModSecurity rules, run

Edit

set

Get latest rules

Emable the config file

Edit file

Add

Restart Apache

[…]

Read More…

apt force IPv4

One of my internet provider only provide IPv4 connection. When i run apt install command, it failed with error as it try to connect using IPv6.

To force apt to use IPv4 only, edit

Add

If you want to force IPv6, add

[…]

Read More…

Install Elasticsearch 6 on Debian for Magento

To install Elasticsearch for Magento on Debian, install Java 1.8 and apt-transport-https

Add key

Add repository

Install Elasticsearch

Enable and start Elasticsearch

[…]

Read More…

debconf: unable to initialize frontend: Dialog

When installing a program in Ubuntu 18.04 server minimal installation, i get following error

To fix this, run

Related Posts Errors apt […]

Read More…

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 […]

Read More…