Tag Archives: Tweak

Home / Tweak
8 Posts

There is a lot of useful information about your DiskStation available spread around the internet. Most of them will be references or Wikis already known. Just to have them collected into a single page is the reason this post exists.

IP Ports

Downloads

Command line interface

Hardware

 Wiki and Knowledge base

I have modified the php.ini in the section:

[eaccelerator]
eaccelerator.shm_size = 256 (16)
eaccelerator.shm_max = 4M (1M)
eaccelerator.shm_prune_period = 0 (3600)

and in the section:

[apc]
apc.shm_size = 256 (64)
apc.ttl = 0 (300)
apc.user_ttl = 0 (300)

The values between parantheses are the defaults. Don’t enter them in your php.ini.

After that restart Apache:

/usr/syno/etc/rc.d/S97apache-user.sh restart

You can also give your MySql a boost. Open a SSH session with your Syno.

Before you do so be aware of the following:

  • There are templates to use for this: „my-huge.cnf ” (for 1-2 GB RAM systems), „my-large.cnf” (for 512 MB RAM systems), „my-medium.cnf” (for 128 MB RAM systems)
  • If you already have a /etc/my.cnf please save this elsewhere or increase the value of “query_cache_size” from 0 to for example 32M.
  1. Stop the MySql Service:
    /usr/syno/etc/rc.d/S21mysql.sh stop
  2. Copy the desired template:
    cp /usr/syno/mysql/share/mysql/my-huge.cnf /etc/my.cnf

    if you didn’t choose to alter your current my.cnf or you haven’t a my.cnf at all.

  3. Start the MySql Service:
    /usr/syno/etc/rc.d/S21mysql.sh start

Source: German SynologyWiki

Open Services.msc. Scroll down and disable

HomeGroup Listener
HomeGroup Provider

Use this for a plugin in /wp-content/plugins or /wp-content/mu-plugins (for auto-activation). Or functions.php.

<?php
/*
Plugin Name: [RPC] XMLRPCless Blog
Plugin URI: http://earnestodev.com/
Description: Disable XMLRPC advertising/functionality blog-wide.
Version: 0.0.7
Author: EarnestoDev
Author URI: http://earnestodev.com/
*/
// Disable X-Pingback HTTP Header.
add_filter('wp_headers', function($headers, $wp_query){
    if(isset($headers['X-Pingback'])){
        // Drop X-Pingback
        unset($headers['X-Pingback']);
    }
    return $headers;
}, 11, 2);
// Disable XMLRPC by hijacking and blocking the option.
add_filter('pre_option_enable_xmlrpc', function($state){
    return '0'; // return $state; // To leave XMLRPC intact and drop just Pingback
});
// Remove rsd_link from filters (<link rel="EditURI" />).
add_action('wp', function(){
    remove_action('wp_head', 'rsd_link');
}, 9);
// Hijack pingback_url for get_bloginfo (<link rel="pingback" />).
add_filter('bloginfo_url', function($output, $property){
    return ($property == 'pingback_url') ? null : $output;
}, 11, 2);
// Just disable pingback.ping functionality while leaving XMLRPC intact?
add_action('xmlrpc_call', function($method){
    if($method != 'pingback.ping') return;
    wp_die(
        'Pingback functionality is disabled on this Blog.',
        'Pingback Disabled!',
        array('response' => 403)
    );
});
?>

Activate the plugin afterwards.

Source: WordPress Answers

There is a way to disable running the indexing service while running on battery with Windows 7.
For this there’s a group policy setting. Go to Start -> Run (or Winkey+R), type gpedit.msc. Navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Search. Enable the policy “Prevent indexing when running on battery power to conserve energy