Skip to content

Instantly share code, notes, and snippets.

View jinmingjian's full-sized avatar

Jin Mingjian jinmingjian

View GitHub Profile
@jinmingjian
jinmingjian / arch_install_basic.txt
Last active August 30, 2019 14:45
arch installation note on DELL r320
Schema:
1. pxe boot
2. partition: GRUB + GPT, vfat - boot partition, ext4
Guide:
Round#1: mini text mode
1. pxe boot from a tftp/dhcpc server. TBD.
@jinmingjian
jinmingjian / gist:3e9b719a7b9b749d8d47
Created October 24, 2014 00:32
ssh-agent.service
[Unit]
Description=OpenSSH private key agent
Wants=environment.target
Before=environment.target
IgnoreOnIsolate=true
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
#PIDFile=%t/ssh-agent.pid
@jinmingjian
jinmingjian / kimsufi_arch_post0
Created April 24, 2015 10:43
kimsufi_arch_post0
#!/usr/bin/sh
pacman -S --force
pacman -S --force base
rm -rf /boot//boot/bzImage-*
grub-mkconfig -o /boot/grub/grub.cfg
useradd -m -G xxx -s /bin/zsh xxx
reboot
@jinmingjian
jinmingjian / kimsufi_arch_post1
Last active April 8, 2018 02:09
kimsufi_arch_post1
# chang ssh and enable pub key
# nano -w /etc/ssh/sshd_config
# cp .ssh/authorized_keys2 /home/xxx/.ssh/authorized_keys
# change to ca's mirror
#/etc/pacman.conf
#[community]
#SigLevel = Never
#Include = /etc/pacman.d/mirrorlist