### Java Version Output Example Source: https://wiki.opencog.org/w/Installing_Sun_Java_7 Example output demonstrating a successful installation of Java 7. ```text java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) ``` -------------------------------- ### Start linking an account from Example provider Source: https://wiki.opencog.org/w/Special%3AApiHelp/linkaccount Initiates the account linking process with the 'Example' provider. Requires a return URL and a CSRF token. ```api api.php?action=linkaccount&provider=Example&linkreturnurl=http://example.org/&linktoken=123ABC ``` -------------------------------- ### Example: Learn 'sit_near_bone' Trick - Step 1 Source: https://wiki.opencog.org/w/ImitationLearningHowTo_%28Embodiment%29 Initiates learning for the 'sit_near_bone' trick and signals the start of the demonstration. ```shell learn sit_near_bone ``` ```shell I will sit_near_bone ``` -------------------------------- ### Install octool and run OpenCog setup on Ubuntu Source: https://wiki.opencog.org/w/BuildingOpenCog Use this script to quickly install OpenCog and its dependencies on Ubuntu 16.04 or later. It automates the setup process. ```bash sudo curl -L http://raw.github.com/opencog/ocpkg/master/ocpkg -o /usr/local/bin/octool &&\ sudo chmod +x /usr/local/bin/octool &&\ octool ``` -------------------------------- ### Guile REPL Server Setup Source: https://wiki.opencog.org/wikihome/index.php?diff=28959&oldid=26168&title=CogServerNode This example shows how to set up a usable network server using Guile's REPL server functionality. It allows for multi-user connections to a Scheme REPL. ```bash guile ``` ```scheme (use-modules (opencog)) (use-modules (system repl server)) (spawn-server) ``` -------------------------------- ### Install Git Source: https://wiki.opencog.org/w/Setting_up_Github_for_OpenCog Use this command to install Git on your Ubuntu environment. Ensure Git is installed before proceeding with Github setup. ```bash sudo apt-get install git ``` -------------------------------- ### Netcat REPL Server Setup Source: https://wiki.opencog.org/wikihome/index.php?diff=prev&oldid=26171&title=CogServerNode Illustrates how to create a simple network server using Netcat and Guile. This setup is minimal and does not support multiple simultaneous connections. ```bash $ mkfifo /tmp/foo $ cat /tmp/foo | guile 2 >&1 | nc -l 127.0.0.1 1234 > /tmp/foo ``` -------------------------------- ### Example Buildslave Configuration Source: https://wiki.opencog.org/w/Buildslave An example of how to configure the buildslave daemon with specific parameters. ```bash buildbot create-slave ~buildslave/opencog \ buildbot.opencog.org:9991 my_buildslave my_password ``` -------------------------------- ### Setup Buildslave Environment Source: https://wiki.opencog.org/w/Set_up_an_OpenCog_Buildbot_Slave Creates a new user for the buildslave and switches to that user's shell. ```bash sudo adduser buildslave ``` ```bash sudo -H -u buildslave bash ``` -------------------------------- ### Download PyCharm Installation File Source: https://wiki.opencog.org/w/Installing_PyCharm Navigate to the official PyCharm download page to get the installation file. ```text http://www.jetbrains.com/pycharm/download/index.html ``` -------------------------------- ### Interactive Program Notice Example Source: https://wiki.opencog.org/w/Special%3AVersion/License/Cite An example of a short notice to display when an interactive program starts, informing users about its status and licensing. ```text Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### Category Tag Source: https://wiki.opencog.org/wikihome/index.php?action=history&feed=atom&title=Getting_Started Assigns the page to the 'Getting Started' category. ```WikiText [[Category:Getting Started]] ``` -------------------------------- ### Set up OpenCog Repository and VM Source: https://wiki.opencog.org/w/Building_OpenCog_in_a_Linux_Virtual_Machine_on_Windows Creates a directory for OpenCog repositories, clones the main repository, creates a symbolic link for the Vagrantfile, and starts the virtual machine. ```bash mkdir opencog_repos cd opencog_repos git clone https://github.com/opencog/opencog ``` ```bash ln -s $PWD/opencog/lib/Vagrantfile Vagrantfile vagrant up vagrant ssh ``` -------------------------------- ### Navigate to C++ API Examples Directory Source: https://wiki.opencog.org/w/The_OpenCog_Rule_Engine Use this command to navigate to the C++ API examples directory within your OpenCog installation on Ubuntu. ```bash $ cd ~/opencog/atomspace/build/examples/C++-api ``` -------------------------------- ### Prepare for Core Build Source: https://wiki.opencog.org/w/Building_OpenCog_on_Ubuntu Navigates into the opencog directory, creates a new branch, and sets up a build directory. ```bash cd opencog git branch my-branch mkdir build cd build ``` -------------------------------- ### Starting Opencog Server with Local Build Source: https://wiki.opencog.org/w/Opencog_Shell_for_Noobs This snippet demonstrates how to correctly start the Opencog server using a local build and its configuration file. It specifies the path to the executable and the configuration. ```bash cd ./opencog/build/opencog/server/ ./cogserver -c ../../lib/opencog.conf ``` -------------------------------- ### Embodiment Server Output Example Source: https://wiki.opencog.org/w/Beijing_AGI_Summer_School_Tutorial_for_Windows Example output when starting the Embodiment server, indicating successful listening on port 17001 and process status. ```plaintext learningServer_CogServer: no process found oac: no process found router: no process found learningServer: no process found spawner: no process found LSMocky: no process found pbTester: no process found pvpSimulator: no process found Listening on port 17001 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME spawner 8675 alex 7u IPv4 17895 0t0 TCP *:16313 (LISTEN) ``` -------------------------------- ### Setup Local Buildbot Environment Source: https://wiki.opencog.org/w/Buildslave Creates a new user for the buildslave and switches to that user's shell. ```bash sudo adduser buildslave sudo -H -u buildslave bash ``` -------------------------------- ### Install OpenCog Dependencies on Ubuntu using octool Source: https://wiki.opencog.org/wikihome/index.php?diff=26451&oldid=20073&title=Building_OpenCog Use this script for a quick start on Ubuntu 16.04+. It installs all necessary dependencies to build OpenCog. ```bash sudo curl -L http://raw.github.com/opencog/ocpkg/master/ocpkg -o /usr/local/bin/octool &&\ sudo chmod +x /usr/local/bin/octool &&\ octool ``` -------------------------------- ### Expert Installation: Build OpenCog Source: https://wiki.opencog.org/w/Installing_OpenCog_for_Noobs Builds the OpenCog project after cloning the repository and installing dependencies. This command compiles the source code and starts the cogserver. ```bash mkdir build cd build cmake .. make -j$(nproc) opencog/server/cogserver ``` -------------------------------- ### Build OpenCog for the First Time Source: https://wiki.opencog.org/w/Building_OpenCog_in_a_Linux_Virtual_Machine_on_Mac_OS_X Navigate to the OpenCog directory within the VM, create a build directory, configure the build with CMake, and compile the project using Make. This is the initial build process after setting up the VM. ```bash cd opencog mkdir build cd build cmake .. make ``` -------------------------------- ### Install All OpenCog Dependencies Source: https://wiki.opencog.org/w/Octool Installs all necessary dependencies to build OpenCog, including optional support for Haskell bindings. Use this command for a comprehensive setup. ```bash ./octool -rdpcav -l default # Optional: Add -s for installing dependencies for haskell binding. ``` -------------------------------- ### Initial Setup for Buildbot Slave on Ubuntu 9.04 Source: https://wiki.opencog.org/wikihome/index.php?action=history&title=Set_up_an_OpenCog_Buildbot_Slave This snippet shows the initial steps to set up a Buildbot build slave for Ubuntu 9.04 (Jaunty), including installing the buildbot software and dependencies, and setting up the local environment. ```bash 1. Install buildbot software & dependencies sudo apt-get install buildbot 2. Setup local buildbot environment sudo adduser ... ```