Posts by ServerOk

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…

EPEL – Extra Packages for Enterprise Linux

EPEL (Extra Packages for Enterprise Linux) provide additional software for CentOS and RHEL. You can find more information about EPEL at http://fedoraproject.org/wiki/EPEL On CentOS 7/8, you can enable EPEP repo with command

Or just download rpm package from the site and install. RHEL/CentOS 6:

RHEL/CentOS 7:

RHEL/CentOS 8:

See CentOS, yum […]

Read More…

Set vim as default cronjob editor

Method 1

Find

Replace with

Method 2 edit .bash_profile

Add

Once added, .bash_profile will look like

Method 3 If you need it done one time only, run following commands on command prompt.

[…]

Read More…

xdotool

xdotool lets you programmatically simulate keyboard input and mouse activity, move and resize windows, etc. To search for an application with title name, run

This will return ID of the windows. You can use xwininfo command to view information about the application window. Example

[…]

Read More…

brctl

brctl show

brctl showmacs br0

brctl showstp br0

[…]

Read More…

Bug Tracking Software

Here is list of software that can be used for bug tracking or issue tracking. http://www.redmine.org/ RudyOnRails, lot of features. good one http://www.bugzilla.org Perl, bug tracking only. Very popular, large projects use it. http://trac.edgewall.org/ Python, popular, i see many medium size project use them. http://www.mantisbt.org/ PHP MySQL http://flyspray.org/ […]

Read More…

Block Country in CSF firewall

CSF firewall can block all traffic from a country or list of counrty using GeoIP database. To block a country, edit file

Find

Replace with

Here is an example to block all traffic from China

If you want to block another counrt, you can add it like

Now restart csf […]

Read More…

zpool

zpool is tool to manage ZFS file system. Here are some zpool commands

[…]

Read More…