Jump to content
ecrow

Hercules Specific Dev VM

Recommended Posts

It's a bit hard to find a category to fit this topic. I've setup a virtual machine for Hercules development for myself last weekend. I have a VDI (VirtualBox Disk Image) with the source, libs, and tools setup on it; tips from this post. It's sometimes helpful to pass around a disk image for new developers. Figure I'd share what I came up with.

 

The Download: herc_ro_dev-ubuntu-vdi.7z (I used MEGA as a site to share this. Maybe you know a better one)

Be aware: When you uncompress it, it'll need 12GB of space.

If you're on a mac, probably want p7zip to extract.

 

Information on the VM:

 

Operating System ..... Ubuntu 16.0 x64

Root Password ........ passwd1

User ................. dev
User Password ........ passwd1
Default Shell ........ zsh

MySQL Root Password .. passwd1
MySQL RO User ........ ragnarok
MySQL RO Password .... ragnarok
MySQL RO Database .... ragnarok

 

Paths (when you login as dev user):

 

~/git ........ I cloned the git repositories here. Already have Hercules cloned. Remember to update it. Profiles not configured.
~/svn ........ Subversion repositories.
~/script .... .zshrc sources a hercules.env in this directory.
~/foss ....... Directory with the FOSS packages I downloaded.
~/.app ....... Local binaries and development libraries for local dev user. Typically for overriding existing binaries and paths.

 

Installed software:

ZSH: Shell is only set for the dev user.

VIM: With plugins Vundle, YouCompleteMe, Syntastic, VIM-Commentary, VIM-GitGutter, Unite. Syntasic has been configured with Haru's syntax highlighter for scripting.
MySQL: The password and ragnarok user information above.

Visual Sudio Code: Already has C/C++ and Git plugins. Useful GUI-based IDE.

 

Useful Aliases (in ~/script/hercules.env):

 

cdr ........ Goes to the root directory of Hercules. (~/git/Hercules)
cds ........ Goes to Hercules source directory. (~/git/Hercules/src)
cdcommon ... common directory under hercules' source.
cdlogin .... login directory under hercules' source.
cdchar ..... char directory under hercules' source.
cdmap ...... map directory under hercules' source.
cdconfig ... config directory under hercules' source.
cdplugins .. plugins directory under hercules' source.
cdtest ..... test directory under hercules' source.
cdtool ..... tool directory under hercules' source.

 

Other:

I'd advise, if you decide to reconfigure Hercules, that you remember to set '-g' to the CFLAGS for debug information. Unless you're really good at reading assembly in GDB.

Edited by ecrow

Share this post


Link to post
Share on other sites

In almost all cases, Docker containers are the way to go. I believe it comes down to providing options. VMs can provide virtualization on a hardware level and provide the entire linux experience. Nice question.

 

Now with Vagrant… I’m not quite sure. I think that’s just a manager for VirtualBox and Docker.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.