setting up nfs in debian stretch

On nfs server

#aptitude install nfs-kernel-server

Edit /etc/exports configuration file

/home/me/public 192.168.1.2(rw,no_root_squash,subtree_check)

Restart nfs

#exportfs -a
#/etc/init.d/nfs-kernel-server start

On nfs client

#aptitude install nfs-common
#/etc/init.d/nfs-common start

To list available nfs

#showmount -e 192.168.1.2

To mount nfs

#mount -t nfs /home/me/public /mnt/public

more info

Install mysql 5.6 in debian 8 jessie

The replication performance leap from MySQL 5.5 to MySQL 5.6 is more than 4x.

https://blogs.oracle.com/MySQL/entry/mysql_5_6_replication_performance

#wget http://dev.mysql.com/get/mysql-apt-config_0.3.5-1debian8_all.deb
#dpkg -i mysql-apt-config_0.3.5-1debian7_all.deb
#apt-get update
#apt-get install mysql-community-server

More info

Firefox 40+ slow right click in Debian Linux

Just installed latest firefox on debian linux streetch.
Right click on link popup very slow.

SOLVED: [blfs-support] Firefox – slow menu and right-click response

The right click menu in Firefox is now fast again. I disabled Pulseaudio which
tried to load ConsoleKit. This did not work sine I have unstalled ConsoleKit.

=== details ===

I found this:

/var/log/sys.log
Jan 25 09:13:47 lfs pulseaudio[2565]: [pulseaudio] module-console-kit.c:
GetSessionsForUnixUser() call failed:
org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit
was not provided by any .service files
Jan 25 09:13:47 lfs pulseaudio[2565]: [pulseaudio] module.c: Failed to load
module “module-console-kit” (argument: “”): initialization failed.
Jan 25 09:13:47 lfs pulseaudio[2565]: [pulseaudio] main.c: Module load failed.
Jan 25 09:13:47 lfs pulseaudio[2565]: [pulseaudio] main.c: Failed to
initialize daemon.
Jan 25 09:13:47 lfs pulseaudio[2562]: [pulseaudio] main.c: Daemon startup
failed.

I commented out the text below in /etc/pulse/default.pa
#.ifexists module-console-kit.so
#load-module module-console-kit
#.endif

I restarted and then the problem with the Firefox menus disappeared.

The root cause is probably that I uninstalled ConsoleKit. This was
intentional, but I failed to recognize the side effects.

Magnus

Centos 6 No package php-fpm available

After installing epel and remi repository and enable remi-php56, the php packages still not available. The issue is i just uninstall Cpanel from my Centos 6 server. Cpanel disable php packages from showing up in you


#vim /etc/yum.conf
[main]
exclude=php* ..

Just remove php packages from the exclude section of the /etc/yum.conf

It waste 3 hours of my time to figure this out.. 😦

powerdns unable to find backend willing to host for potential supermaster

I got this error when i setup powerdns superslave in debian using sqlite3 backend. The condition to get the superslave working.

  • The supermaster must carry a SOA record for the notified domain
  • The supermaster IP must be present in the ‘supermaster’ table
  • The set of NS records for the domain, as retrieved by the slave from the supermaster, must include the nameserver that goes with the IP address in the supermaster table

A very usefull command to test if the setup is working

to send the notification to the slave and
#pdns_control notify mydomain.com

to request for supermasters zone
#pdns_control retrieve mydomain.com

More

nginx + php-cgi on window server 2008

php-cgi.php just hang and die on a very low load.

To fix this, use spawn-php

Install

ActivePython-2.7.2.5-win64-x64.msi
pywin32-217.win-amd64-py2.7.exe

Change nginx configuration

worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

sendfile on;
keepalive_timeout 65;

upstream php_farm {
server 127.0.0.1:9000 weight=1;
server 127.0.0.1:9001 weight=1;
server 127.0.0.1:9002 weight=1;
server 127.0.0.1:9003 weight=1;
server 127.0.0.1:9004 weight=1;
server 127.0.0.1:9005 weight=1;
server 127.0.0.1:9006 weight=1;
server 127.0.0.1:9007 weight=1;
server 127.0.0.1:9008 weight=1;
server 127.0.0.1:9009 weight=1;
}

server {
listen 80;
server_name localhost;
location / {
root html;
index index.php index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

location ~ \.php$ {
root html;
fastcgi_pass php_farm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME c:/nginx/html/$fastcgi_script_name;
include fastcgi_params;
}
}
}