The scientific-emacs a container-based in Debian:Focal version with emacs 26, and a light version of TeXlive.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.2 KiB

  1. # Readme
  2. This is the version `0.1` of scientific-emacs. This respositry contains the `Dockerfiles` to build the images for `Redis` and `Emacs`.
  3. # Installation
  4. To install the Docker System first refer to the [Docker Installation Guide](https://docs.docker.com/docker-for-windows/install/). After test `docker run hello-world`.
  5. Then, you are redy clone this repository within your *working directory* using:
  6. ```
  7. $ git clone http://gmarx.jumpingcrab.com:8088/mice-rs101/scientific-emacs
  8. ```
  9. Then, it is possible to build the *scientifc-emacs* container by:
  10. ```
  11. $ docker build -t scientific-emacs:0.1 docker/emacs/
  12. ```
  13. Run the container to test it:
  14. ```
  15. docker run --rm -it gmarxcc/scientific-emacs:0.1`
  16. ```
  17. and run an Ubuntu command like `ls`
  18. Done, you are doing great!
  19. # Executing emacs
  20. ## On Macos
  21. To get the ip address
  22. '''
  23. open -a xquartz
  24. ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
  25. xhost + $ip
  26. '''
  27. To run the container
  28. ```
  29. docker run --rm -it -v`pwd`/emacs-config:/root \
  30. -e DISPLAY=$ip:0 \
  31. -v /tmp/.X11-unix:/tmp/.X11-unix \
  32. gmarxcc/scientific-emacs:0.1
  33. ```
  34. the 'emacs-config' folder contains the '.emacs' configuration file
  35. ## On windows
  36. ### Open VcXsrv
  37. Firts open or [install *VcXsrv Windows X Server*](https://sourceforge.net/projects/vcxsrv/). When *VcXsrv Windows X Server* is open make sure to have selected as follow the **extra settings**. Check all options as below and finish configuration.
  38. ![XLauch settings](https://cuneyt.aliustaoglu.biz/en/content/images/2018/11/xlaunch.png)
  39. ### Get your ip adress
  40. Get your IP address using ipconfig command at the **PowerShell**:
  41. ```
  42. PS C:\Users\gmarx> ipconfig
  43. ......
  44. Wireless LAN adapter Wi-Fi:
  45. Connection-specific DNS Suffix . : rga.ip
  46. IPv6 Address. . . . . . . . . . . : 2806:103e:5:e64e:d01:9a10:1ba8:8577
  47. Temporary IPv6 Address. . . . . . : 2806:103e:5:e64e:44a7:4800:cc9a:7a3c
  48. Link-local IPv6 Address . . . . . : fe80::d01:9a10:1ba8:8577%2
  49. IPv4 Address. . . . . . . . . . . : 192.168.1.77
  50. Subnet Mask . . . . . . . . . . . : 255.255.255.0
  51. Default Gateway . . . . . . . . . : fe80::1%2
  52. 192.168.1.254
  53. ```
  54. **remember to use a physical adapter activaded, it means whit an IP address, in my case is Wi-Fi adapter IPv4 192.168.1.77.
  55. Now you can go to the folder of this repository and run the container using the next commands:
  56. ```
  57. PS C:\Users\gmarx>cd scientific-emacs
  58. PS C:\Users\gmarx\scientific-emacs> $ docker run --rm -it -v ${PWD}/data:/data -v ${PWD}/config/:/root -e DISPLAY=192.168.1.77:0.0 scientific-emacs:0.1
  59. root@d442a76cd169:/#
  60. ```
  61. this means that you are already have mounted the 'scientific-emacs:0.1' image.
  62. Copy this code to run the container more easily:
  63. ```
  64. docker run --rm -it -v ${PWD}/data:/data \
  65. -v ${PWD}/config/:/root \
  66. -e DISPLAY=your.ip:0.0 \
  67. scientific-emacs:0.1
  68. ```
  69. # What is installed on the repository
  70. The repository has previously installed
  71. - aspell:
  72. - curl:
  73. - auctex:
  74. - pdftools:
  75. - oh-my-zshell:
  76. -
  77. ## How to run pyhton scripts
  78. ## After first run the container
  79. Upgrade texlive to be able to install new packages by :
  80. '''
  81. apt-get upgrade texlive-base
  82. '''
  83. Then, init the user with 'tlmgr init-usertree'. After that you can install new packages using 'tlmgr install package'.