rsyslog :: Could not open output pipe
Posted by blackonsole on December 9th, 2014 10:32 AM | No Comment
:: rsyslog error in Ubuntu
If you got some error log like this when starting rsyslog service:
server rsyslogd-2039: Could not open output pipe '/dev/xconsole' "
:: How to fix "rsyslog Could not open output pipe '/dev/xconsole'"
vim /etc/rsyslog.d/50-default.conf
commented out in these lines:
#daemon.*;mail.*;\
# ...
Ubuntu : Setting OpenVPN Pre-Shared Static Key
Posted by blackonsole on December 22nd, 2013 03:37 AM | No Comment
:: What is
Setting OpenVPN with static key are ideal for point-to-point VPNs or proof-of-concept testing.
:: Installing OpenVPN Server in Ubuntu
aptitude install openvpn
:: Create Pre-Shared Static Key for OpenVPN
openvpn --genkey --secret /etc/openvpn/shared.key
:: Setup OpenVPN to use Pre-Shared Static Key
vi /etc/openvpn/server.conf
Add configuration ...
Ubuntu : Setting Wifi HotSpot using HostAPd
Posted by blackonsole on October 30th, 2013 07:22 AM | No Comment
Setting Wifi HotSpot using HostAPd
Checking Wifi
:: Check Wifi AP Support
sudo aptitude install iw
iw list
make sure you see "AP" in Support interface:
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
...
Ubuntu :: Move datadir directory in MySQL
Posted by blackonsole on September 17th, 2013 01:09 PM | No Comment
:: What's MySQL
MySQL is open-source relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.
:: How to move datadir MySQL directory in Linux Ubuntu
+ Stop mysqld
/etc/init.d/mysql stop
+ Move or copy mysql data ...
Ubuntu :: Enable mod_rewrite in Apache2
Posted by blackonsole on July 11th, 2013 08:00 AM | No Comment
:: How to enable mod_rewrite Apache2 on Ubuntu
+ enable rewrite module
sudo a2enmod rewrite
+ restarting apache2
sudo service apache2 restart
+ Google
Ubuntu :: PHP FastCGI + NGINX
Posted by blackonsole on February 28th, 2013 06:54 AM | 1 Comment
:: How to setup PHP FastCGI for NGINX in Ubuntu
+ Installing NGINX and php-cgi
apt-get update
apt-get install nginx php5-cli php5-cgi spawn-fcgi
+ Make php-fcgi script in init.d
vi /etc/init.d/php-fcgi
add these line:
#!/bin/bash
BIND=127.0.0.1:9000
USER=www-data
PHP_FCGI_CHILDREN=15
PHP_FCGI_MAX_REQUESTS=1000
PHP_CGI=/usr/bin/php-cgi
PHP_CGI_NAME=`basename $PHP_CGI`
PHP_CGI_ARGS="- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND"
RETVAL=0
start() {
...
Ubuntu :: Add a PPA
Posted by blackonsole on February 18th, 2013 03:55 AM | No Comment
:: What is PPA on Ubuntu
PPA is Personal Package Archives allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.
:: How to add PPA repository
$ sudo add-apt-repository ppa:repository/package
example:
$ sudo add-apt-repository ppa:emesene-team/emesene-stable
You are ...