[HowTo] VM / Src - Part II

  • This tutorial is building on: Please login to see this link. and will show you how to build a maintainable (over remote ssh) compile environment

    Replace configuration (-parameters) in /etc/ssh/sshd_config for remote access

    1. sed -i "" "/#Port 22/s/.*/Port 22/" /etc/ssh/sshd_config;
    2. sed -i "" "/#PasswordAuthentication no/s/.*/PasswordAuthentication yes/" /etc/ssh/sshd_config;
    3. sed -i "" "/#PermitRootLogin no/s/.*/PermitRootLogin yes/" /etc/ssh/sshd_config;
    4. sed -i "" "/#PubkeyAuthentication yes/s/.*/PubkeyAuthentication no/" /etc/ssh/sshd_config;

    Restart sshd service to reload configuration (-parameters)

    1. service sshd restart;

    Install pkg with default configurations

    1. cd /usr/ports/ports-mgmt/pkg/ && make -DBATCH install clean;

    Use pkg command to install needed packages

    1. pkg update;
    2. pkg install --no-repo-update --yes \
    3. gmake \
    4. python2 \
    5. makedepend \
    6. cryptopp \
    7. gcc48 \
    8. devil \
    9.     mysql56-client

    # CAUTION: Installing devil with all sub dependencies may not be the best choice depending on the lib-explicity of your Makefile

    # Be sure only importing needed libraries of devil to prevent your core's from overloading

    (Optional) Use pkg command to install nice to have packages

    1. pkg install --no-repo-update --yes \
    2. nano \
    3. htop

    That should be all. Feel free to leave a comment for further questions.

  • novametin2
  • This threads contains 2 more posts that have been hidden for guests, please register yourself or log-in to continue reading.