Add setup guide for Zhu Yuan (Debian)
This commit is contained in:
parent
3ed09f2f88
commit
5db8566946
1 changed files with 98 additions and 0 deletions
98
Zhu Yuan.md
Normal file
98
Zhu Yuan.md
Normal file
|
@ -0,0 +1,98 @@
|
|||
# Zhu Yuan SETUP
|
||||
|
||||
## 1. OSInstall
|
||||
|
||||
Debian
|
||||
Mount points - Data1
|
||||
User setup - sasha (with sudo)
|
||||
Software selection - Basic utilities + SSH server
|
||||
|
||||
## 2. Access
|
||||
|
||||
- SSH is already enabled, now install NetworkManager and remove all interfaces except `lo` from `/etc/network/interfaces` and reboot.
|
||||
- [Disable password login!](https://www.cyberciti.biz/faq/how-to-disable-ssh-password-login-on-linux/)
|
||||
|
||||
Network
|
||||
Method - Manual
|
||||
LAN IP - 192.168.10.42/24
|
||||
Gateway - 192.168.10.254
|
||||
DNS - 192.168.10.254
|
||||
|
||||
## 3. Wireguard
|
||||
- Install `wireguard-tools` with apt and run
|
||||
|
||||
```
|
||||
wget https://git.io/wireguard -O wireguard-install.sh && sudo bash wireguard-install.sh
|
||||
```
|
||||
|
||||
|
||||
## 4. Utilities
|
||||
|
||||
install packages: htop smartmontools lm-sensors unzip wireguard-tools
|
||||
|
||||
## 5. Zram
|
||||
|
||||
```
|
||||
echo "zram" > /etc/modules-load.d/zram.conf
|
||||
echo "options zram num_devices=1" > /etc/modprobe.d/zram.conf
|
||||
echo 'KERNEL=="zram0", ATTR{disksize}="4G",TAG+="systemd"' > /etc/udev/rules.d/99-zram.rules
|
||||
```
|
||||
|
||||
Create `/etc/systemd/system/zram.service` containing this:
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Swap with zram
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStartPre=/sbin/mkswap /dev/zram0
|
||||
ExecStart=/sbin/swapon /dev/zram0
|
||||
ExecStop=/sbin/swapoff /dev/zram0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Let Zram start on next boot:
|
||||
|
||||
sudo systemctl enable zram
|
||||
|
||||
And reboot the machine.
|
||||
|
||||
## 6. BOINC
|
||||
|
||||
install via apt
|
||||
|
||||
```
|
||||
sudo apt install boinc-client
|
||||
sudo systemctl enable --now boinc-client
|
||||
```
|
||||
|
||||
## 7. CernVM-FS
|
||||
|
||||
install from CERN repos
|
||||
|
||||
```
|
||||
wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb
|
||||
sudo dpkg -i cvmfs-release-latest_all.deb
|
||||
rm -f cvmfs-release-latest_all.deb
|
||||
sudo apt-get update
|
||||
sudo apt-get install cvmfs
|
||||
sudo cvmfs_config setup
|
||||
```
|
||||
|
||||
Put these in `/etc/cvmfs/default.local`, since we don't have a proxy
|
||||
|
||||
```
|
||||
CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch
|
||||
CVMFS_CLIENT_PROFILE=single
|
||||
```
|
||||
|
||||
Test with
|
||||
|
||||
```
|
||||
cvmfs_config probe
|
||||
```
|
Loading…
Reference in a new issue