Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,911 members, 7,802,961 topics. Date: Saturday, 20 April 2024 at 05:27 AM

Installing Homestead On Ubuntu: Laravel - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Installing Homestead On Ubuntu: Laravel (737 Views)

How To Install & Configure Snort IDS On Ubuntu / Installing A Fully Functional Ubuntu 19.04 On Your Android Device. / How Do I Solve 502 Bad Gateway Error On Ubuntu Server (digitalocean)? (2) (3) (4)

(1) (Reply)

Installing Homestead On Ubuntu: Laravel by dplumptre(m): 9:49am On Sep 20, 2018
Go to the link below to download virtual box
https://www.virtualbox.org/wiki/Linux_Downloads

Go to the link below to download vagrant box
https://www.vagrantup.com/downloads.html

After downloading you install it by right clicking on the deb file to install with ubuntu software center

#then you run

$ vagrant box add laravel/homestead


#this will ask you to select from list, you will choose virtual box as you have installed it earlier in your machine
#then you wait for it to download it may take along time depending on how fast your internet is.
#then run this command below, it will create a homestead dir which will serve as the host to all your larvel projects

$ git clone https://github.com/laravel/homestead.git ~/Homestead

$ cd ~/Homestead
# Clone the desired release… check latest list @ https://github.com/laravel/homestead/releases

$ git checkout v7.12.0


# Run the code below depending on your operating system so that the Homestead directory to create the Homestead.yaml configuration file. The Homestead.yaml file # will be placed in the Homestead directory:

# Mac / Linux…
bash init.sh

# Windows…
init.bat

#Setting Your Provider
# go to The provider key in your Homestead.yaml file indicates which Vagrant provider should be used: virtualbox, vmware_fusion, vmware_workstation, parallels or #hyperv. You may set this to the provider you prefer:

$ sudo nano Homestead.yaml


#provider: virtualbox
# set the folder for your files



folders:
– map: ~/websites
to: /home/vagrant/websites

sites:
– map: school.local
to: /home/vagrant/websites/mylaravelproject/public

!important
You need to create the folder where your codes where your stay



Eg if you do /home/vagrant/websites you will create a websites folder in your home directory

this will enable mapping



### remember to set the name school.local in /etc/host file

$ sudo nano /etc/hosts

#192.168.10.10 school.local

#this ip is located at the top of your .yaml file
#then set

$ touch ~/.ssh/id_rsa


#Then

$ vagrant up




you can read more on this link below

http://overallheuristic.com/installing-homestead-on-ubuntu/


if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

(1) (Reply)

Confused To Extract Items From OST Files / HTML Program For Home Page Of A Website Designing Company / Running The Website Is Very Slow, How To Improve The Speed Of The Internet

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.