"use strict";(self.webpackChunkof_dl=self.webpackChunkof_dl||[]).push([[11],{8453:(n,e,i)=>{i.d(e,{R:()=>o,x:()=>r});var s=i(6540);const l={},t=s.createContext(l);function o(n){const e=s.useContext(t);return s.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function r(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(l):n.components||l:o(n.components),s.createElement(t.Provider,{value:e},n.children)}},9972:(n,e,i)=>{i.r(e),i.d(e,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>t,metadata:()=>r,toc:()=>a});var s=i(4848),l=i(8453);const t={sidebar_position:3},o="Linux",r={id:"installation/linux",title:"Linux",description:"A Linux release of OF-DL is not available at this time, however you can run OF-DL on Linux using Docker.",source:"@site/docs/installation/linux.md",sourceDirName:"installation",slug:"/installation/linux",permalink:"/OF-DL/docs/installation/linux",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"generatedSidebar",previous:{title:"Docker",permalink:"/OF-DL/docs/installation/docker"},next:{title:"macOS",permalink:"/OF-DL/docs/installation/macos"}},c={},a=[{value:"Building from source",id:"building-from-source",level:2}];function d(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,l.R)(),...n.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.h1,{id:"linux",children:"Linux"}),"\n",(0,s.jsxs)(e.p,{children:["A Linux release of OF-DL is not available at this time, however you can run OF-DL on Linux using Docker.\nPlease refer to the ",(0,s.jsx)(e.a,{href:"/docs/installation/docker",children:"Docker"})," page for instructions on how to run OF-DL in a Docker container.\nIf you do not have Docker installed, you can download it from ",(0,s.jsx)(e.a,{href:"https://docs.docker.com/desktop/install/linux-install/",children:"here"}),".\nIf you would like to run OF-DL natively on Linux, you can build it from source by following the instructions below."]}),"\n",(0,s.jsx)(e.h2,{id:"building-from-source",children:"Building from source"}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsx)(e.li,{children:"Install the libicu library"}),"\n"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-bash",children:"sudo apt-get install libicu-dev\n"})}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsx)(e.li,{children:"Install .NET version 8"}),"\n"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-bash",children:"  wget https://dot.net/v1/dotnet-install.sh\n  sudo bash dotnet-install.sh --architecture x64 --install-dir /usr/share/dotnet/ --runtime dotnet --version 8.0.7\n"})}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsx)(e.li,{children:"Clone the repo"}),"\n"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-bash",children:"git clone https://git.ofdl.tools/sim0n00ps/OF-DL.git\ncd 'OF-DL'\n"})}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:["Build the project. Replace ",(0,s.jsx)(e.code,{children:"%VERSION%"})," with the current version number of OF-DL (e.g. ",(0,s.jsx)(e.code,{children:"1.7.68"}),")."]}),"\n"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-bash",children:"dotnet publish -p:Version=%VERSION% -c Release\ncd 'OF DL/bin/Release/net8.0'\n"})}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:["\n",(0,s.jsxs)(e.p,{children:["Download the windows release as described on ",(0,s.jsx)(e.a,{href:"/docs/installation/windows#installation",children:"here"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(e.li,{children:["\n",(0,s.jsxs)(e.p,{children:["Add the ",(0,s.jsx)(e.code,{children:"config.json"})," and ",(0,s.jsx)(e.code,{children:"rules.json"})," files as well as the ",(0,s.jsx)(e.code,{children:"cdm"})," folder to the ",(0,s.jsx)(e.code,{children:"OF DL/bin/Release/net8.0"})," folder."]}),"\n"]}),"\n",(0,s.jsxs)(e.li,{children:["\n",(0,s.jsx)(e.p,{children:"Run the application"}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-bash",children:"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ./'OF DL'\n"})})]})}function u(n={}){const{wrapper:e}={...(0,l.R)(),...n.components};return e?(0,s.jsx)(e,{...n,children:(0,s.jsx)(d,{...n})}):d(n)}}}]);