Remove annoying beep sound on Windows Subsystem for Linux

Published on Author JF2 Comments

When using BASH on WSL, by default it will constantly beep at you while using the TAB key, etc. Here’s how to remove it: nano ~/.inputrc Scroll down and remove the # comment from: #set bell-style none Close and re-open Bash. Vi also has a bell sound (I prefer Nano for whatever reason). In that… Continue reading Remove annoying beep sound on Windows Subsystem for Linux

How to install Apache and PHP 7.2 on Windows Subsystem for Linux

Published on Author JFLeave a comment

There are a few tips and tricks I found for this installation. Here are the details. Check Windows Version First, here’s the entire Microsoft section on WSL. I highly recommend reading through it. There are various differences between the latest Windows 10 updates, so this might not work for your version! I’m on Windows 10… Continue reading How to install Apache and PHP 7.2 on Windows Subsystem for Linux

How to reset Ubuntu login Microsoft WSL

Published on Author JFLeave a comment

Windows Subsystem for Linux has started to make Windows into an actual development platform! It’s not there yet, but it is getting there. Although I really appreciate how *nix and Macs have created the majority of dev workflows, I am excited to be able to use an upgradable $500 Windows 10 laptop instead of a… Continue reading How to reset Ubuntu login Microsoft WSL

mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists.

Published on Author JF8 Comments

This is about resetting the MySQL 5.7 root password in Ubuntu 16.04 LTS You probably tried something like this: sudo service mysql stop mysqld_safe –skip-grant-tables & And then got something like this (stangely, exists is misspelled in the output): [1] 5599 2018-03-02T21:36:41.292413Z mysqld_safe Logging to syslog. 2018-03-02T21:36:41.294798Z mysqld_safe Logging to ‘/var/log/mysql/error.log’. 2018-03-02T21:36:41.296902Z mysqld_safe Directory ‘/var/run/mysqld’… Continue reading mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists.

SSH on Windows 10 – Goodbye PuTTy!

Published on Author JFLeave a comment

Update 2-2018: not so fast. Wait another six months and try again. PuTTY is still the most useful for now šŸ™ The Dev Ops software development model left Microsoft Windows behind some time ago, but Microsoft is fighting back with a native Linux sub-system in Windows 10! Here’s how to install it and mercifully use,… Continue reading SSH on Windows 10 – Goodbye PuTTy!

How to exclude yum kernel updates in CentOS

Published on Author JFLeave a comment

CentOS, unlike some other distros, will automatically update the kernel when you yum -y update. In other places you have googled you will find that people have tried adding the following to yum.conf: exclude=kernel* or exclude=kernel/* This seems to mysteriously work from some people, but not for others. Below is what worked for me. To… Continue reading How to exclude yum kernel updates in CentOS

Apache 2.4 Config for Drupal 7

Published on Author JFLeave a comment

Here are some configs to hopefully make your life easier setting up a brand new server. Specs: Ubuntu 16 Xenial LTS Apache 2.4.18 PHP 5.6.3 After default Apache install make sure to add these modules a2enmod rewrite a2enmod headers Host Conf file DocumentRoot “/var/www/sitename/siteroot” ServerNameĀ www.yoursitename.com <Directory “/var/www/sitename/siteroot”> allow from all [allows .htaccess to be used]… Continue reading Apache 2.4 Config for Drupal 7

How to install mysql 5.5 or 5.6 on ubuntu 16.04 xenial

Published on Author JF10 Comments

Installing MySQL 5.5/6 on Ubuntu 16.06 You might be hosting your site on something like Acquia and they have recently upgraded to Ubuntu 16 Xenial. However, you (as an awesome developer) still want to duplicate the environment as much as possible so you want to configure a local or staging server using Ubuntu, etc. Here’s… Continue reading How to install mysql 5.5 or 5.6 on ubuntu 16.04 xenial

Remove all traces of MySQL 5.x on Ubuntu

Published on Author JFLeave a comment

Originally from here, I cleaned it up a bit as an easy reference for me. This works on 14 and 16. sudo service mysql stop #or mysqld sudo apt-get remove –purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean sudo deluser mysql sudo rm -rf /var/lib/mysql sudo apt-get purge mysql-server-core-5.5 (replace with your version… Continue reading Remove all traces of MySQL 5.x on Ubuntu

Install Webmin on Ubuntu

Published on Author JFLeave a comment

Sometimes having a simple GUI interface to do tasks on an internal server can be really handy. For that purpose and forĀ free I use Webmin. Super easy to install. Just copy/paste into SSH. sudo sh -c ‘echo “deb http://download.webmin.com/download/repository sarge contrib” > /etc/apt/sources.list.d/webmin.list’ wget -qO – http://www.webmin.com/jcameron-key.asc | sudo apt-key add – sudo apt-get update… Continue reading Install Webmin on Ubuntu