FreeBSD

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋

FreeBSD是一種Unix-like作業系統。

指令

給自己用的:

dd if=/dev/zero of=/swapfile bs=1m count=512; chmod 600 /swapfile; echo -e "md99\tnone\tswap\tsw,file=/swapfile\t0\t0" | tee -a /etc/fstab; echo -e "#\nMASTER_SITE_BACKUP?=\t\\\\\n\thttp://distcache.FreeBSD.org/ports-distfiles/\${DIST_SUBDIR}/\nMASTER_SITE_OVERRIDE?= \t\${MASTER_SITE_BACKUP}" | tee /etc/make.conf; portsnap auto; cd /usr/ports/ports-mgmt/portmaster; make all install clean BATCH=yes; cd /usr/ports/security/sudo; make all install clean BATCH=yes; portmaster -aG
echo "gslin ALL = (ALL:ALL) NOPASSWD: ALL" | tee /usr/local/etc/sudoers.d/gslin; pw useradd gslin -g 20 -m -s /usr/local/bin/zsh; passwd gslin

外部連結