How to change default editor for things like crontab
This simple command will let you pick form all available editors update-alternatives --config editor
View ArticleLinux NTP synchronize time (Europe)
The following commands will install the required software, and then find the best server to synchronize with. apt-get install -y --force-yes ntp ntpdate /etc/init.d/ntp stop ntpdate -u...
View ArticleReset mysql password
/etc/init.d/mysql stop mysqld --skip-grant-tables & mysql -u root FLUSH PRIVILEGES; UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root'; FLUSH PRIVILEGES; exit /etc/init.d/mysql...
View ArticleTrusty Tahr apache2, php5-fpm and event MPM
apt-get install -y --force-yes apache2 php5-fpm libapache2-mod-fcgid php5-cgi sed -i "s/listen =.*/listen = 127.0.0.1:9000/" /etc/php5/fpm/pool.d/www.conf a2dismod mpm_prefork a2enmod mpm_event echo -e...
View ArticleInstall vsftpd version 3 to fix writable root error OOPS 500
Below information is taken from Stack Overflow Install vsftpd v3 via repo echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list apt-get update apt-get...
View ArticleUbuntu enable root login
vim /etc/ssh/sshd_config PermitRootLogin yes service ssh restart
View ArticleInstall VMWare on Ubuntu 14 with kernel 3.13.0
Make sure you’re installing the latest vmware version, because even slightly older versions probably don’t support 3.13.0 kernels. apt-get install build-essential linux-headers-$(uname -r) open-vm-dkms...
View ArticleInstalling OpenVPN v2.3+ on debian
Version 3 KEYSERVERNAME=mykeyserver apt-get update apt-get -y --force-yes install openvpn udev cd /usr/share/doc/openvpn/examples/easy-rsa/2.0 vim vars *change export KEY_SIZE=1024 to export...
View ArticleHow to install mono 3 on debian or ubuntu
At the time of writing 3.8.0 was the newest version for Mono that I could find. If a newer version of Mono has come out by now, you can probably find it here. Installation guide Make might take 30-60...
View ArticleKeep mysql replication healthy with percona
Install percona cd /tmp wget http://www.percona.com/redir/downloads/percona-toolkit/LATEST/deb/percona-toolkit_2.2.12_all.deb \ && dpkg -i percona-toolkit_2.2.12_all.deb \ && rm...
View Article