How to fix problem with the editor ‘vi’
June 20th, 2014 01:56 AM | Tutorials | No Comment
:: git error with vi
error: There was a problem with the editor 'vi'
:: how to fix the problem
0. check path for vim
$ which vim
/usr/local/bin/vim
1. set core.editor to vim in git
$ git config --global core.editor /usr/local/bin/vim
:: links
+ Google
+ Tooky
CentOS :: Simple Pound Load Balancer
April 12th, 2014 01:19 AM | Linux | No Comment
:: Whatis Pound
Pound Load Balancer - HTTP/HTTPS reverse-proxy and load-balancer
:: How to install Pound Load Balancer
yum -y install Pound
:: Simple forward all traffic in Pound Load Balancer
Forward all incoming HTTP and HTTPS traffic to 10.10.1.3 in port 80 and 10.10.2.4 ...
Ubuntu : Setting OpenVPN Pre-Shared Static Key
December 22nd, 2013 03:37 AM | Linux | 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
October 30th, 2013 07:22 AM | Linux | 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
...
KVM :: Convert Image-based to LVM
October 21st, 2013 03:36 AM | Uncategorized | No Comment
:: How to convert kvm image-based to LVM device in Linux Ubuntu
+ Stop/Shutdown VM
virsh -c qemu:///system
virsh # destroy kvm1
+ Convert image kvm
cd /var/lib/libvirt/images/
qemu-img convert tmpxxSSSS.qcow2 -O raw /dev/vg0/kvm1
+ Modify kvm1 configuration file
virsh edit kvm1
go to disk section;
...
CentOS :: Setting User Can Access FTP Only
September 19th, 2013 04:20 AM | Linux | No Comment
:: What's this
FTP is a standard network protocol used to transfer files from one host to another host over a TCP-based network.
:: How to setup user can access ftp only without shell access
+ Disable shell access for user
vi /etc/passwd
change /bin/bash ...
Ubuntu :: Move datadir directory in MySQL
September 17th, 2013 01:09 PM | Linux | 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 ...