Blob


1 version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 agent=Mozilla/5.0 (Linux; Android 8.1.0; vivo 1820 Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/109.0.5414.118 Mobile Safari/537.36
3 author=Yonle
4 charset=UTF-8
5 csum=
6 ctime=1678614674
7 host=182.1.5.188
8 name=OpenBSD.Cheatsheet
9 rev=2
10 targets=
11 text=(:title The OpenBSD Cheatsheet:)%0a%0a!!! Managing packages.%0aInstalling packages%0a[@%0apkg_add [pkgname(s)]%0a@]%0a%0aUninstalling packages%0a[@%0apkg_delete [pkgname(s)]%0a@]%0a%0aDo not forget to also wipe the dependencies.%0a[@%0apkg_delete -a%0a@]%0a%0aUpdating all packages%0a[@%0apkg_add -u%0a@]%0a%0aSearching package(s) by name%0a[@%0apkg_info -Q [name]%0a@]%0a%0aGetting package info%0a[@%0apkg_info [pkgname]%0a@]%0a%0aGetting list of installed files of certain package%0a[@%0apkg_info -L [pkgname]%0a@]%0a%0aAlso read: @@man pkg_add@@%0a%0a!!! System Upgrade%0aNon-free Firmware update%0a[@%0afw_update%0a@]%0a%0aUpdating firmwares with different mirror%0a[@%0afw_update -p https://otherhost.com/path%0a@]%0a%0aReceiving patches%0a[@%0asyspatch%0a@]%0a%0aReceiving new system update.%0a[@%0asysupgrade%0a@]%0a%0a!!! Managing Users%0aAdding user (yes. execute without any args)%0a[@%0aadduser%0a@]%0a%0aDeleting user%0a[@%0auserdel -r user%0agroupdel user%0a@]%0a%0aAdding user to group%0a[@%0ausermod -G groupname user%0a@]%0a%0aChanging password%0a[@%0apasswd%0a@]%0a%0aChanging certain user password%0a[@%0apasswd user%0a@]%0a%0aAdding user to login class (Example: staff)%0a[@%0ausermod -L staff user%0a@]%0a%0aChanging username%0a[@%0ausermod -ml newname oldname%0a@]%0a%0aChanging user shell%0a[@%0ausermod -s /path/to/new/sh user%0a@]%0a%0aAlso read: @@man usermod@@%0a!!! Managing services%0aStarting service%0a[@%0arcctl start servicename%0a@]%0a%0aChecking service%0a[@%0arcctl check servicename%0a@]%0a%0aEnabling service to start during boot%0a[@%0arcctl enable servicename%0a@]%0a%0aDisabling service to start during boot%0a[@%0arcctl disable servicename%0a@]%0a%0aStopping service%0a[@%0arcctl stop servicename%0a@]%0a%0aRestarting service%0a[@%0arcctl restart servicename%0a@]%0a%0aAlso read @@man rcctl@@%0a%0a!!! Managing network%0aDo this first:%0a[@%0aifconfig%0a@]%0a%0aRead the output..%0aSay, You want to connect to internet with @@re0@@ interface with DHCP.%0a%0a[@%0adoas ifconfig re0 autoconf%0a@]%0a%0aMaking interface up%0a[@%0adoas ifconfig re0 up%0a@]%0a%0aMaking interface down%0a[@%0adoas ifconfig re0 down%0a@]%0a%0aAlso read: @@man ifconfig@@%0a
12 time=1678614736
13 title=The OpenBSD Cheatsheet
14 author:1678614736=Yonle
15 diff:1678614736:1678614674:=39,40c39,40%0a%3c Also read: @@man pkg_add@@%0a%3c %0a---%0a> Also read: `man pkg_add`%0a> %0a104c104%0a%3c Also read: @@man usermod@@%0a---%0a> Also read: `man usermod`%0a136,137c136,137%0a%3c Also read @@man rcctl@@%0a%3c %0a---%0a> Also read `man rcctl`%0a> %0a144,146c144,146%0a%3c Read the output..%0a%3c Say, You want to connect to internet with @@re0@@ interface with DHCP.%0a%3c %0a---%0a> Read the output. %0a> Say, You want to connect to internet with `re0` interface with DHCP.%0a> %0a161c161%0a%3c Also read: @@man ifconfig@@%0a---%0a> Also read: `man ifconfig`%0a
16 host:1678614736=182.1.5.188
17 author:1678614674=Yonle
18 diff:1678614674:1678614674:=1,161d0%0a%3c (:title The OpenBSD Cheatsheet:)%0a%3c %0a%3c !!! Managing packages.%0a%3c Installing packages%0a%3c [@%0a%3c pkg_add [pkgname(s)]%0a%3c @]%0a%3c %0a%3c Uninstalling packages%0a%3c [@%0a%3c pkg_delete [pkgname(s)]%0a%3c @]%0a%3c %0a%3c Do not forget to also wipe the dependencies.%0a%3c [@%0a%3c pkg_delete -a%0a%3c @]%0a%3c %0a%3c Updating all packages%0a%3c [@%0a%3c pkg_add -u%0a%3c @]%0a%3c %0a%3c Searching package(s) by name%0a%3c [@%0a%3c pkg_info -Q [name]%0a%3c @]%0a%3c %0a%3c Getting package info%0a%3c [@%0a%3c pkg_info [pkgname]%0a%3c @]%0a%3c %0a%3c Getting list of installed files of certain package%0a%3c [@%0a%3c pkg_info -L [pkgname]%0a%3c @]%0a%3c %0a%3c Also read: `man pkg_add`%0a%3c %0a%3c !!! System Upgrade%0a%3c Non-free Firmware update%0a%3c [@%0a%3c fw_update%0a%3c @]%0a%3c %0a%3c Updating firmwares with different mirror%0a%3c [@%0a%3c fw_update -p https://otherhost.com/path%0a%3c @]%0a%3c %0a%3c Receiving patches%0a%3c [@%0a%3c syspatch%0a%3c @]%0a%3c %0a%3c Receiving new system update.%0a%3c [@%0a%3c sysupgrade%0a%3c @]%0a%3c %0a%3c !!! Managing Users%0a%3c Adding user (yes. execute without any args)%0a%3c [@%0a%3c adduser%0a%3c @]%0a%3c %0a%3c Deleting user%0a%3c [@%0a%3c userdel -r user%0a%3c groupdel user%0a%3c @]%0a%3c %0a%3c Adding user to group%0a%3c [@%0a%3c usermod -G groupname user%0a%3c @]%0a%3c %0a%3c Changing password%0a%3c [@%0a%3c passwd%0a%3c @]%0a%3c %0a%3c Changing certain user password%0a%3c [@%0a%3c passwd user%0a%3c @]%0a%3c %0a%3c Adding user to login class (Example: staff)%0a%3c [@%0a%3c usermod -L staff user%0a%3c @]%0a%3c %0a%3c Changing username%0a%3c [@%0a%3c usermod -ml newname oldname%0a%3c @]%0a%3c %0a%3c Changing user shell%0a%3c [@%0a%3c usermod -s /path/to/new/sh user%0a%3c @]%0a%3c %0a%3c Also read: `man usermod`%0a%3c !!! Managing services%0a%3c Starting service%0a%3c [@%0a%3c rcctl start servicename%0a%3c @]%0a%3c %0a%3c Checking service%0a%3c [@%0a%3c rcctl check servicename%0a%3c @]%0a%3c %0a%3c Enabling service to start during boot%0a%3c [@%0a%3c rcctl enable servicename%0a%3c @]%0a%3c %0a%3c Disabling service to start during boot%0a%3c [@%0a%3c rcctl disable servicename%0a%3c @]%0a%3c %0a%3c Stopping service%0a%3c [@%0a%3c rcctl stop servicename%0a%3c @]%0a%3c %0a%3c Restarting service%0a%3c [@%0a%3c rcctl restart servicename%0a%3c @]%0a%3c %0a%3c Also read `man rcctl`%0a%3c %0a%3c !!! Managing network%0a%3c Do this first:%0a%3c [@%0a%3c ifconfig%0a%3c @]%0a%3c %0a%3c Read the output. %0a%3c Say, You want to connect to internet with `re0` interface with DHCP.%0a%3c %0a%3c [@%0a%3c doas ifconfig re0 autoconf%0a%3c @]%0a%3c %0a%3c Making interface up%0a%3c [@%0a%3c doas ifconfig re0 up%0a%3c @]%0a%3c %0a%3c Making interface down%0a%3c [@%0a%3c doas ifconfig re0 down%0a%3c @]%0a%3c %0a%3c Also read: `man ifconfig`%0a
19 host:1678614674=182.1.5.188