Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vagrantfile for Ubuntu 20.04 to elaborate installation process and make it efficient and reproducible. #361

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

sekikn
Copy link
Contributor

@sekikn sekikn commented Jun 16, 2021

Hello Prof. Higuchi,

I usually work on Ubuntu and recently set up KH Coder on Ubuntu 20.04, referring to #91.
It was the first time for me to install KH Coder and required some trial-and-error. So I did it on a virtual machine using VirtualBox and Vagrant so that I can keep the local environment clean.
I automated those procedures as Vagrantfile for efficiency and reproducibility, and thought it may be helpful other users.
Is it possible to contribute this under doc_contrib by any chance?

After installing VirtualBox and Vagrant, running vagrant up with this file gives a VM in which KH Coder and its dependencies are already installed, as the attached image.
demo

I tested this only on Linux, but VirtualBox and Vagrant also support Windows and macOS, so it is supposed to work with both of them.

sekikn and others added 2 commits June 15, 2021 20:20
We need specific version of ggplot2 and Spreadsheet-ParseXLSX.
@ko-ichi-h
Copy link
Owner

Hello,

It looks nice! Thank you.

I tried it on Ubuntu 20.04 but I could not enlarge display resolution. I would like to use it with 1600 x 1200 or something like that. Do you have any clues about it?

Also can you tell us the default root password? Or should we just run "sudo perl kh_coder.pl"?

@ko-ichi-h ko-ichi-h merged commit 7195010 into ko-ichi-h:master Jun 16, 2021
@sekikn
Copy link
Contributor Author

sekikn commented Jun 16, 2021

Thank you so much for reviewing and merging!

I tried it on Ubuntu 20.04 but I could not enlarge display resolution. I would like to use it with 1600 x 1200 or something like that. Do you have any clues about it?

The following ways both worked in my environment. Could you take a try?

  • On the guest OS, launch "Setting" -> select "Displays" -> specify "Resolution" and "Apply".
  • On the host OS, enable "Auto-resize Guest Display" from the "View" menu and resize the guest window.

Also can you tell us the default root password? Or should we just run "sudo perl kh_coder.pl"?

It looks like there's no default password for the root user, probably for a security reason.
I usually log in as a general user who is granted permission to promote in advance (i.e., the "vagrant" user here), and then promote to the root user with sudo -i or something. Running sudo perl kh_coder.pl directly should also work as you said.

@sekikn sekikn deleted the Vagrantfile branch June 16, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants