# LogicMOO's Parent Project Documentation http://logicmoo.org/xwiki/ ========= # Install/Run Methods ## From web-installer ```bash source <(curl -sS https://raw.githubusercontent.com/logicmoo/logicmoo_workspace/master/web_install.sh) cd /opt/logicmoo_workspace ./StartLogicmoo.sh ``` ## Developer's Docker (Copies the git repo where things can be edited for development purposes. while running in Docker) ```bash cd /opt git clone --recurse-submodules https://logicmoo.org/gitlab/logicmoo/logicmoo_workspace.git cd logicmoo_workspace ./runFromDocker.sh ``` ## RSync ```bash mkdir -p /opt/logicmoo/.git rsync -chaPlz -vv --progress rsync://logicmoo.org:12000/git /opt/logicmoo/.git cd /opt/logicmoo/ git pull --recurse-submodules ./INSTALL.md ./StartLogicmoo.sh ``` # Running When `./StartLogicmoo.sh` is ran a few minutes later you will see (in green every few minutes) ```bash MAYBE (IN OTHER TERMINAL): docker exec -it logicmoo sudo -u prologmud_server -- screen -rx LogicmooServer OR (Bash IN OTHER TERMINAL): docker exec -it logicmoo bash ``` ## Open a terminal new terminal and run ```bash root@gitlab:/opt/logicmoo_workspace# lm #* #* DISPLAY=10.0.0.78:0.0 Finding/Setting LIBJVM... #* LIBJVM=/usr/lib/jvm/java-11-openjdk-amd64/lib/server Finding/Setting LD_LIBRARY_PATH... #* LD_LIBRARY_PATH=/usr/lib/jvm/java-11-openjdk-amd64/lib/server:/usr/local/lib Executes one of the following commands in the LOGICMOO docker. lm [--no-x] [--no-env] [-v|-q] [--wd ] [--] [] ansi # Opens LOGICMOO Main Termninal emacs # Opens IDE in a web browser bfly # Opens LOGICMOO Main Termninal in web brower telnet # Connect MUD via Telnet www # Display LOGICMOO WWW in a web browser cls # Clear the SCREEN bash # Opens Bash Terminal on your Docker image ``` # Docker RUN on Linux (output from ./runFromDocker.sh assuming `/opt/logicmoo_workspace/` ) ```bash docker run --privileged=true --rm -it --no-healthcheck -v /opt/logicmoo_workspace:/opt/logicmoo_workspace --name logicmoo -p 4000-4019:4000-4019 -p 4021-4199:4021-4199 -p 4243:443 -p 4280:80 -p 4020:3020 -p 3020:3020 -p 4222:22 -p 4220:3020 -p 4200:5900 -p 4201:9001 -p 4290:4090 -p 6079-6081:6079-6081 logicmoo/logicmoo_workspace:latest ``` # Docker RUN on Windows (tested with Docker Desktop for Windows v20.10.7) (output from ./runFromDocker.bat assuming `c:/opt/logicmoo_workspace/` ) ```bash docker run --privileged=true --rm -it --no-healthcheck -v C:\opt\logicmoo_workspace:/opt/logicmoo_workspace --name logicmoo -p 4000-4019:4000-4019 -p 4021-4199:4021-4199 -p 4243:443 -p 4280:80 -p 4020:3020 -p 3020:3020 -p 4222:22 -p 4220:3020 -p 4200:5900 -p 4201:9001 -p 4290:4090 -p 6079-6081:6079-6081 logicmoo/logicmoo_workspace:latest ``` ## ## ## # Ignore the rest of this (This exists for historical reasons) Douglas' pastebin ```bash docker kill logicmoo docker exec -it $(docker ps -n 1 -q) bash docker network create -d macvlan --subnet=10.0.0.0/24 --gateway=10.0.0.1 -o parent=eth0 pub_net docker run ./runFromDocker.sh --network="logicmoo_workspace_prologmud_vlan" docker kill $(docker ps -a -q) docker image prune --all -f docker rmi logicmoo/logicmoo_starter_image:latest ``` ## Old Way to Install (will now damage system if ran outside of docker) ```bash cd /opt git clone --recursive https://logicmoo.org/gitlab/logicmoo/logicmoo_workspace.git cd logicmoo_workspace ./INSTALL.md ./StartLogicmoo.sh code-insiders --user-data-dir=/opt/logicmoo_workspace/prologmud_server/.config/Code\ -\ Insiders/ --no-sandbox ``` ## Docker without installing (poor choice as it has to download and build everything from docker which can take an hour and fail) ```bash docker run -it --name logicmoo --privileged=true -p 4000-4440:4000-4440 -p 4443:443 -p 3020:3020 logicmoo/logicmoo_workspace:latest ``` OLD Doc urls Initial Docs https://github.com/logicmoo/logicmoo_workspace/wiki As well as https://docs.google.com/document/d/1fkOxnmI1LqxadvZuCRS-fGIEweIKyPn6AVGp5Yjse1I/edit