How do I restart Parallels Plesk Panel

This can be done using the following commands when logged in as root via SSH on the Parallels Plesk Panel (PP) server:

Parallels Plesk Panel for Linux:

~# /etc/init.d/psa stop
~# /etc/init.d/psa start

Parallels Plesk Panel installed on FreeBSD server in versions prior to 8.1:

~# /usr/local/psa/rc.d/psa stop
~# /usr/local/psa/rc.d/psa start

Parallels Plesk Panel on FreeBSD since version 8.1:

~# /usr/local/etc/rc.d/psa.sh stop
~# /usr/local/etc/rc.d/psa.sh start


How to correctly uninstall DrWeb antivirus

Uninstall DrWeb from my Parallels Plesk Panel server because we do not use it.

nswer

Log in to the server under root and do the following:

Remove DrWeb antivirus packages:

# rpm -e drweb-updater drweb-common drweb-bases drweb-base drweb-daemon psa-drweb-configurator

Go to Server > Server Components (or Tools & Settings > Server Components on Plesk 10.x and newer) and update list of server components to detect that Dr.Web has been removed.

After that, run forced update of mail server configuration:

# /usr/local/psa/admin/sbin/mchk --without-spam

Remove the cron entry remaining after the uninstallation:

# rm -rf /var/spool/cron/drweb
# rm -rf /etc/cron.daily/drweb-update

Discontinue monitoring of the service by Watchdog:

/usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=drweb

How to change a file’s owner and group in Linux

You can change the owner and group of a file or a directory with the chown command. Please, keep in mind you can do this only if you are the root user or the owner of the file.

Set the file’s owner:
chown username somefile
After giving this command, the new owner of a file called somefile will be the user username. The file’s group owner will not change. Instead of a user name, you can also give the user’s numeric ID here if you want.

You can also set the file’s group at the same time. If the user name is followed by a colon and a group name, the file’s group will be changed as well.
chown username:usergroup somefile
After giving this command, somefile‘s new owner would be user username and the group usergroup.

You can set the owner of a directory exactly the same way you set the owner of a file:
chown username somedir
Note that after giving this command, only the owner of the directory will change. The owner of the files inside of the directory won’t change.

In order to set the ownership of a directory and all the files in that directory, you’ll need the -R option:
chown -R username somedir
Here, R stands for recursive because this command will recursively change the ownership of directories and their contents. After issuing this example command, the user username will be the owner of the directory somedir, as well as every file in that directory.

Tell what happens:

chown -v username somefile
changed ownership of 'somefile' to username

Here, v stands for verbose. If you use the -v option, chown will list what it did (or didn’t do) to the file.

The verbose mode is especially useful if you change the ownership of several files at once. For example, this could happen when you do it recursively:

chown -Rv username somedir
changed ownership of 'somedir/' to username
changed ownership of 'somedir/boringfile' to username
changed ownership of 'somedir/somefile' to username

As you can see, chown nicely reports to you what it did to each file.


Configure MATE Desktop for Fedora 18

MATE Desktop is an initial release for Fedora 18. It brings back a classic, intuitive, and easy to use desktop that users have been long requesting. Install MATE by issuing the command:

  yum groupinstall "MATE Desktop"

Support for MATE in Fedora is provided in #fedora-mate or #mate on irc.freenode.net or through the Fedora bugzilla.


Install GUI in Fedora 18 (Gnome or Cinnamon)

Fedora users now have the option of using Cinnamon, an advanced desktop environment based on GNOME3. Cinnamon takes advantage of advanced features provided by the GNOME backend while providing users with a more traditional, accessible desktop experience. Install Cinnamon with the command:

 yum groupinstall "Cinnamon Desktop"