Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Adding Vagrant support #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding Vagrant support #41

wants to merge 1 commit into from

Conversation

jb11211
Copy link

@jb11211 jb11211 commented Jan 26, 2015

Vagrantfile sets up an ubuntu 12.04 with:

  • trusty backported kernel 3.13.
  • Protobuf from github
  • Gflags from github
  • re2 from googlecode
  • apparmor from ubuntu packages
  • g++ Version 4.7 from ubuntu-toolchan-r/test PPA
  • golang from ubuntu packages

Vagrant then compiles lmctfy, tests it's installed and
reboots into the newer kernel

Vagrantfile sets up an ubuntu 12.04 with:
* trusty backported kernel 3.13.
* Protobuf from github
* Gflags from github
* re2 from googlecode
* apparmor from ubuntu packages
* g++ Version 4.7 from ubuntu-toolchan-r/test PPA
* golang from ubuntu packages

Vagrant then compiles lmctfy, tests it's installed and
reboots into the newer kernel

re2_version=20140304
protobuf_version=2.6.1
compile_threads="$(lscpu | awk '/^CPU\(s\)/ {print $2}')"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my os/arch/machine:

$ uname -a
Linux machine 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic

I have problem with awk below pattern:

My solution it's:

$ lscpu 
Architektura:           x86_64
Tryb(y) pracy CPU:      32-bit, 64-bit
Kolejność bajtów:       Little Endian
CPU:                    8
...
$ lscpu  | awk '/^CPU:/ {print $2}'
8

Maybe you should correct this.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another simple way to get CPUs:

$ egrep -c '(vmx|svm)' /proc/cpuinfo
8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants