MySQL Master-Slave Replication

replication

Master-slave replication can be used to replicate database to another server – as a hot standby backup, but it won’t offer any performance increase (all writes will still happen on one server). Configuring Master Database First, we set up MySQL config file vi /etc/my.cnf Find the following line to make MySQL listen on its network […]

Acer Aspire One fan control in Ubuntu

Zrzut ekranu z 2016-01-30 15:01:14

This setting will shut down Acer Aspire  One’s noisy fan when the CPU temp is low, and will only spin up if the CPU temperature rises above the default threshold of 60C Tested on AOA110, should work in 150 as well; Tested on Ubuntu 14.04 and 15.04 $ sudo -i # echo “options acerhdf kernelmode=1 […]

Setting up IPSEC VPN gateway with Xau...

cisco-vpn-client

Many people map ports on their home or small office routers, so their webserver or any other service is reachable from the internet. It is ok, but can be potentially a security flaw. It would be much more secure if instead of mapping ports you installed a VPN server. With VPN in place first you […]

Red Hat Enterprise Linux 6.7 installa...

Red Hat Enterprise Linux 6.7 installation

A lot of systems in production still run Red Hat 6, so learning how to install (or reinstall) it is still a good idea. The instruction below will work with CentOS 6.7 as well. As with Red Hat 7.2, first we need to obtain RHEL 6.7  ISO image file from access.redhat.com. Once the image has been […]

Red Hat Enterprise Linux 7 installati...

Red Hat Enterprise Linux 7 installation

Red Hat Enterprise Linux 7 has already been available for over 8 months, but is still fairly new. We will be using it as a base for our upcoming tutorials, so it is important to learn how to install it. The instruction below will work with CentOS 7.2 as well. Installation procedure is a bit […]

Managing VMware Server with VMware vS...

Managing VMware Server with VMware vSphere Client

VMware Server 2.x does not have any GUI management tool, save for a web based interface. As much as Server is an outdated product, as it turns out, it is unofficially supported by the VMware vSphere Client (formerly known as Infrastructure Client), the same one which can be used to manage vSphere Hypervisors (formerly called ESXi) hosts. […]

Setting up Recovery Catalog using fre...

Setting up Recovery Catalog using free Oracle Express

  You don’t need a commercial license to create a Recovery Catalog – Oracle Express Edition will be just fine for this task. To create the recovery catalog schema in the recovery catalog database: Start SQL*Plus and connect with administrator privileges to the database containing the recovery catalog. In this example, the database is rcvcat. […]

Managing user accounts

Managing user accounts

Creating new accounts and changing passwords is by far the most common administrative work. In most commonly used OSes it is quite easy to do so, but reference is always handy: Windows (XP, Vista, 7, Server 2003, Server 2008) GUI method is probably one of the easiest in the IT world. First, right click ‘Computer‘ […]

Regular expressions reference

Regular expressions reference

One of the most useful features of any programming language, a feature used for all kinds of parsers and format converters. Already know what I’m talking about? Regular expressions! Here’s a quick regexp cheat sheet: Special characters (must be escaped with \) \ ^ . $ | ( ) [ ] * + ? { […]

Configuring Xserver in Ubuntu to allo...

Configuring Xserver in Ubuntu to allow remote X applications

Running remote X applications on Fedora and Red Hat works out of box, but it doesn’t on Ubuntu. Here is how you can make it work: Edit the /etc/gdm/gdm.schemas and change: $ sudo vi /etc/gdm/gdm.schemas find security/TCP DisAllowTCP and set it to false Then restart Xserver or reboot the box and run this command to allow […]