Fix VT-x/AMD-V hardware acceleration

Operating System: Windows 7
Motherboard: asus z-97-ar
Intel CPU: Intel Core i7-4790K

Does your CPU support virtualization?

Download software https://www.grc.com/securable.htm

You must enable Virtualization in BIOS
Advvance -> CPU Configurations -> Intel Virtualization Technology -> enable

The reason I had to enable VT-x was because when I “vagrant up” I received this error in Oracle Virtualbox:
“VT-x/AMD-V hardware acceleration is not available on your system. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.”

So to resolve that I need to enable VT-x and in my Vagrant file add

config.vm.provider :virtualbox do |vb|
  vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
end

Resources:

http://askubuntu.com/questions/41550/how-do-i-run-a-64-bit-guest-in-virtualbox#answer-41554

tags:
homestead laravel

SSH Private Key conversion

In attempt to login into a ssh server using a private key in phpstorm I ran accross this error.

Keypair ‘private_key.ppk’ is corrupt or has unknown format. Only SSH2 keys in OpenSSH format or PuTTY Private Key *.ppk are supported. Error message: The cipher ‘aes256-cbc’ is required, but it is not available.

This error will not allow the “next” and “test connection” button to appear

The issue here is that the private key format is incorrect. You’ll will need to convert the private key to open ssh format. And the way to do that is

Open your private key in PuTTYGen
Top menu “Conversions”->”Export OpenSSH key”.
Save the new OpenSSH key when prompted.

Laravel Homestead Vagrant windows setup

video notes:
9:35 editing hosts files
6:13 putty ssh to vagrant server

# start vagrant
# inside C:\Users\username\Desktop\vagrant\Code
$ vagrant up

# the url will be http://homestead.app:8000/

# vagrant for public access
# http://stackoverflow.com/questions/18051760/how-to-access-vagrant-box-in-public-network#answer-18068143

config.vm.network :public_network, ip: "192.168.1.21"

# to allow symbolic links, ln -s
# in windows 7 you need to run the terminal as administrator

https://github.com/cityindex-attic/logsearch/issues/7#issuecomment-19054050

Installing Burp Suite

# Using Ubuntu 12.04.4 LTS

$ sudo -su
$ cd /opt
$ mkdir burpsuite
$ cd /opt/burpsuite

# or the current version see http://portswigger.net/burp/download.html
$ wget http://portswigger.net/burp/burpsuite_free_v1.5.jar
$ cd /opt/burpsuite
$ java -jar burpsuite_free_v1.5.jar

Stino Setup

Stino is a sublimetext plugin that allow you to use Arduino IDE

Im using Sublimetext 3 in windows 7

issues with the upload not working:

http://arduino.stackexchange.com/questions/3920/why-is-arduino-stino-upload-function-not-working#answer-3921

FTP Server Setup

In ubuntu 12.04

mkdir /home/user/ftpfiles
sudo su
apt-get install vsftpd
cp /etc/vsftpd.conf.bak
nano /etc/vsftpd.conf
groupadd ftpusers
useradd -g ftpusers -d /home/user/ftpfiles newusername
passwd newusername
chmod 775 /home/user/ftpfiles
chown root:ftpusers /home/user/ftpfiles
chmod a-w /home/user/ftpfiles
service vsftpd restart
ftp localhost

errors:
500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list
- /etc/vsftpd.chroot_list file doesnt exist created it
- touch /etc/vsftpd.chroot_list

500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
- chmod a-w /home/user/ftpfiles
- https://www.benscobie.com/fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/

- resource:
- https://www.youtube.com/watch?v=BTGBE1Ae1LA