Canada  united states of america usa  linkedinfacebook   Call Us Today: 866.646.6461

If for some reason your grub has gotten corrupted, here are the steps to restore it.

Boot into a rescue CD (either Ubuntu or System Rescue CD, which you can download freely).

Mount the drive, where sdXY is the partition (eg: /dev/sda1)

apache server

Q. I am getting a Forbidden 403 error after I've changed the DocumentRoot in Apache for my domain. What do I do?

A. This is a security feature on the Apache running on Ubuntu (and Debian). The solution is quite simple:

centosThe widely used ifconfig is missing from Centos 7.X version of Linux with minimal install. To get it back, run the following command:

yum install net-tools

The command will then be available as usual.

If you don't want to use ifconfig and are wondering how else you can find the IP address, you can run this command:

ip link

Due to some corruption issue during ubuntu (and ubuntu based sytems), this error may come up:

apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference

There's no clear answer on how to fix this or why it happens, but it corrupts the file libapt-private.so.0.0.0. One way to resolve the issue is to copy the file from another ubuntu 16.04 install. (Or you can download it from here: libapt-private.so.0.0.0 version x64)

Linux IT SupportSometimes it is a good idea to schedule a regular reboots, to clear the memory and remove any crashed processes.

This can be easily achieved by adding the task to a cron tab (Linux scheduling system):

First, open the crontab (as a root):

crontab -e

and add a line similar to this:

For some reason Zentyal 5 (and 4 before it) does not enable the vacation out-of-office message in Sogo (even thought the function is available in the software).

To enable it, follow these steps (you will need access to the command line console):

ubuntu10If a linux reboot fails by just running the reboot command (sometimes there are run away or hanging processes), you may get the following errors (if you view the logs of systemctl, it will give you a better indication of what is crashing and not letting it reboot):

Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.

A quick way to fix this (short of pulling the plug), is to force reboot using systemctl:

ubuntu10We'll use Ubuntu for this example, but essentially you need an ntfs-3g package, which contains ntfsfix. Under Ubuntu, run the following to install it:

sudo apt-get install ntfs-3g

Then this (where /dev/sdd1 would be your ntfs disk):

ntfsfix /dev/sdd1

Depending on what you are trying to fix, you may want to use options -b and -d.

Ubuntu Support and Consulting

This works on any modern distribution of Linux, but we are using Ubuntu 14.04 for the process. First, install CIFS/Samba tools, required to mount the share point:

In Ubuntu:

apt-get install cifs-utils

Now let's create the credentials file:

Last updated Mar 17, 2023