You can mark some pages (documents) to access them directly afterwards.īookmarks are organised in sets. :custom ((kiwix-server-type 'docker-local) :config (add-hook 'org-load-hook #'org-kiwix-setup-link)) (kiwix-zim-dir (expand-file-name "/path/to/kiwix_zim_libraries"))) :custom ((kiwix-server-type 'kiwix-serve-local) : e2f201e655ac kiwix/kiwix-serve "/usr/local/bin/kiwi…" 3 hours ago Created distracted_hofstadter : b47533ecd7f6 kiwix/kiwix-serve "/usr/local/bin/kiwi…" 3 hours ago Exited (137) 2 minutes ago kiwix-serve : CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ], you can check whether the container is created:ĭocker container ls -all | grep "kiwix-serve" | cat Kiwix-serve=, so that the container =kiwix-serve= must already been created by *NOTE*: Because =rvice= use command =docker container start : Mar 24 12:00:14 dark systemd: Started kiwix-serve Docker server. : CGroup: └─2587 /usr/bin/docker container start -i kiwix-serve : Active: active (running) since Sun 12:00:14 CST 34s ago : Loaded: loaded (/home/stardiviner/.config/systemd/user/rvice disabled vendor preset: enabled) : Loaded: loaded (/home/stardiviner/.config/systemd/user/kiwix-serve.timer enabled vendor preset: enabled) kiwix-serve.timer - Start kiwx-serve Docker container server at system startup after 5 minutes.Systemctl -user status kiwix-serve.timer | cat Systemd auto exit and stop =kiwix-serve= container. *NOTE*: You need to use option =-i= for =docker container start= command to avoid ,# begin_src systemd :tangle "~/.config/systemd/user/rvice"ĮxecStart=/usr/bin/docker container start -i kiwix-serveĮxecStop=/usr/bin/docker container stop kiwix-serve ,# begin_src systemd :tangle "~/.config/systemd/user/kiwix-serve.timer"ĭescription=Start kiwx-serve Docker container server at system startup after 5 minutes *** create a systemd unit for kiwix-serve Docker service Kiwix/kiwix-serve wikipedia_zh_all_2015-11.zimįor easy launch the docker run command, you can add command alias in shell profile:Īlias kiwix-docker-wikipedia_zh_all="docker container run -name kiwix-serve -d -v ~/.-p 8089:80 kiwix/kiwix-serve wikipedia_zh_all_2015-11.zim"Īlias kiwix-docker-wikipedia="docker container run -name kiwix-serve -d -v ~/.-p 8089:80 kiwix/kiwix-serve wikipedia.zim" # NAME: create kiwix-serve container with custom port If you put ZIM files in other places not =/tmp/zim/=, you can use follow my command: In Docker container instead of just one library. *NOTE*: Using the libraries index file method, you can have all libraries served *NOTE*: You can generate the libraries index file "library.xml" with following command: # if you have libraries index file "library.xml"ĭocker container run -d -name kiwix-serve -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve -library library.xml # if you don't have libraries index file "library.xml"ĭocker container run -d -name kiwix-serve -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve wikipedia.zim Given =wikipedia.zim= (]) resides in =/tmp/zim/=, execute the Mv kiwix-tools*/kiwix-serve /usr/local/bin
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |