FreeBSD
跳转到导航
跳转到搜索
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
外部链接
- 官方网站 (英文)