[HowTo] VM / Src - Part II

  • This tutorial is building on: Bitte melden Sie sich an, um diesen Link zu sehen. 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

    Code
    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)

    Code
    1. service sshd restart;


    Install pkg with default configurations

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


    Use pkg command to install needed packages

    Code
    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

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


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

  • Dieses Thema enthält 2 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.