FreeBSD:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→指令) |
(→指令) |
||
(未显示同一用户的4个中间版本) | |||
第2行: | 第2行: | ||
== 指令 == | == 指令 == | ||
給自己用的: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
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 | 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 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pw useradd gslin -g 20 -m -s /usr/local/bin/zsh; passwd gslin | 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 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2021年8月26日 (四) 23:37的最新版本
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
外部連結
- 官方网站 (英文)