Giter Site home page Giter Site logo

gitalot / liimstrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ustclug/liimstrap

0.0 1.0 0.0 1.29 MB

**科大图书馆查询机生成脚本。

License: MIT License

Shell 55.22% C 7.68% JavaScript 1.13% CSS 1.08% HTML 24.23% Python 9.68% Dockerfile 0.97%

liimstrap's Introduction

liimstrap

**科大图书馆图书查询机自动生成脚本,基于 Arch Linux 开发。

话说,LIIMS 是嘛意思?我猜是 Library Independent Inquery Machine System 吧。

依赖

首先,必须要用 Arch Linux。然后需要安装以下软件包:

pacman -S arch-install-scripts base-devel squashfs-tools libx11 libxss

添加ArchLinuxCN源:

cat << EOF >> /etc/pacman.conf
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = http://mirrors.ustc.edu.cn/archlinuxcn/x86_64
EOF

生成

sudo ./liimstrap [ROOT]

[ROOT]是一个存放镜像根文件系统的目录。

可以把 root 密码放到一个名为 .rootpasswd 的文件里,该文件和 liimstrap 脚本放在同一级文件夹下。

etc/authorized_keys 文件里放的是 root 远程 SSH 登录的公钥。

压成 SqaushFS 镜像

sudo ./deploy [ROOT] [DEST]

会在 [DEST] 中创建一个名为 liims<日期> 的目录,下有三个文件:

  • vmlinuz 是内核
  • initrd.img 是 initrd
  • root.sfs 是根目录的镜像

PXELINUX 配置参见 pxelinux.cfg.example 文件。

从docker构建

docker run -it --cap-add=SYS_ADMIN --rm -v $DATA_PATH:/srv/dest -e ROOT_PASSWORD=test ustclug/liimstrap

liimstrap's People

Contributors

alkaid-benetnash avatar cuihaoleo avatar gaoyifan avatar ibug avatar sirius1242 avatar volltin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.