first add files

This commit is contained in:
2023-10-08 20:59:00 +08:00
parent b494be364b
commit 1dac226337
991 changed files with 368151 additions and 40 deletions

35
etc/env.sunhpc Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
#
#SunHPC Env Configure
#
command -v vim > /dev/null
if [ $? -eq 0 ]
then
alias vi=vim
VICONF="$HOME/.vimrc"
[ ! -f "$VICONF" ] && echo -e "set ts=4\nset expandtab" > "$VICONF"
fi
export SUNHPC_HOME=/opt/sunhpc
export SUNHPC_PYTHON=/opt/sunpy3
if [ `id -g` == 0 ];then
export PATH=$SUNHPC_HOME/bin:$SUNHPC_HOME/sbin:$SUNHPC_PYTHON/bin:$SUNHPC_PYTHON/sbin$PATH
else
export PATH=$SUNHPC_HOME/bin:$PATH
fi
# python .pth config
SUNHPC_PTH=/opt/sunpy3/lib/python3.10/site-packages/sunhpc.pth
[ ! -e $SUNHPC_PTH ] && echo "$SUNHPC_HOME/lib" > $SUNHPC_PTH
# pip
[ ! -d ~/.pip ] && mkdir -p ~/.pip
cat > ~/.pip/pip.conf << 'EOF'
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn/simple
EOF

4
etc/safeputrc Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" standalone="yes"?>
<safeput>
<PrivateNetwork id="172.16.1.254" mask="24"/>
</safeput>