|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Sysupdate command not working
Hi All,
Having freshly installed OpenBSD 7.2 from a .img file about a week ago I understand its good practice to check for system updates in case there's been any security patches since the release. I also understand from the manual that its just a case of typing syspatch from the command line. However when I do that nothing obvious seems to happen. There's no error in the xterm console window but then theres no progress indicators for the various patch downloads like I see in the youtube demonstrations of this command in practice. Am I missing something? FWIW I've got a second user account setup per the installation. I use Code:
su Code:
dhclient em0 Code:
ping But when I type syspatch and even syspatch -C to get the list of available updates I get nothing. Similarly, pkg_add -Q or the listing command doesn't do anything other than list some intel drivers etc. that I suspect are already on the system from the base installation.. Thanks in advance for help getting this working! |
|
|||
Quote:
Code:
# ifconfig xl0 inet autoconf Quote:
|
|
||||
You can ping a known IP address. Great! That's _half_ the battle for Internet connectivity. The other half is domain name resolution, which, from what you've posted so far, has not yet been tested or confirmed to be provisioned correctly.
|
|
|||
Quote:
Code:
inet autoconf Code:
#ifconfig em0 inet autoconf PS: So I'm interpreting these command line (code) instructions correctly: If a given command line is listed without the # at the start, does that mean it doesnt need to be run in root whereas anything starting with # does require root? Also: does typing Code:
SU |
|
||||
1. Domain Name Resolution: provisioning guidance is in the networking chapter of the FAQ at this link: http://www.openbsd.org/faq/faq6.html#Setup.resolver
2. su(1): exit the root shell to return to your normal user. You may find the doas(1) command and its configuration file doas.conf(5) to be an easier or more convenient way to become the superuser temporarily. The doas(1) command is mentioned in the afterboot(8) man page. |
|
||||
My last comment was incomplete. If domain name resolution is not provided by an external source, such as a local DHCP server, and learned through dhcpleased(8) / resolvd(8), then the admin must manually provision nameservers in resolv.conf(5).
|
|
|||
Quote:
Thanks. I'll bear the doas command in mind when I'm just wanting temporary root powers. PS: I just typed Code:
SU It has the $ sign instead of # at the command line starting prompt so I'm guessing this is proof that I'm out of root now? Now, regarding internet access. I entered Code:
ifconfig em0 inet autoconf I then went ahead and downloaded a package (Firefox) using Code:
pkg_add firefox "Can't install firefox-107.0. Can't resolve icu4c-71.1v0". I'd like to scroll back up through the verbose output but I can't (in xterm window). How do I scroll back up through the output as FFox was dloaded and installed? There's a up/down bar toggle on the left of the screen but clickign it and then moving it up and down does nothing... Neither does PGUP or PGDWN, or the direction keys! URGGH! Also, why didn't it install properly given my use of Code:
pkg_add firefox |
|
||||
Let's start with your network, because that's your most important issue. From what you've posted, I still believe your network is incorrectly provisioned, because the package for icu4c071.1v0 is available for the amd64 architecture 7.2-release in the Project's mirrors.
Issue the ping(1) command with a well known Internet site, such asNext, reviewing your console output: The easiest tool to review prior console output is with Shift-PgUp. Additionally, you can "log" your console session (including all keyboard entries, including backspaces and carriage returns) with the script(1) utility, and the terminal multiplexor tmux(1) can also pipe virtual terminal "pane" output to files. You can also use most shells to pipe standard output and/or standard error output to files. There are many ways to capture this information.Lastly, exiting root's ksh(1) shell from su(1). You have it right. When you are in a superuser shell your default prompt includes the pound-sign "#" to warn you of your administrative status. When you then use the "exit" command or CTRL-D to exit from that shell, your default prompt will then show the dollar-sign "$" to inform you that you are functioning as a normal user. |
|
|||
Hi jggimi,
Well, here we are a couple days later and I've got FireFox successfully installed (107) after finding out the following silly little error that I needed to fix beforehand. I used this to figure it out: https://obsd.solutions/en/blog/2022/...led/index.html After using vi to make it point at ftp.*.* instead of cd.*.* it started drawing down FFox without issue. As for Syspatch, I'm not sure how it definitely resolved, but I think it just needed more time to connect and do its checking/downloading. I use inet autoconf now instead of dhcclient or whatever it was, but for both I'd still get full ping results for 1.1.1.1. Now, my new issue is getting ExpressVPN client connected to my OpenBSD system using the .ovpn files I've manually downloaded in readiness. The problem now is that I can't copy (CP) the .ovpn files across to the /etc/openvpn directory that I've created. I'll make a new thread about it since its such a different topic. I'd appreciate any help! |
|
||||
I can't spell. It's OCSP: https://en.wikipedia.org/wiki/Online...tatus_Protocol.
OpenBSD's built-in web server httpd(8) supports OCSP stapling. Here's an example httpd.conf(5) fragment from one of my servers: Code:
server "<redacted>" { alias "<www.redacted>" listen on * tls port https hsts tls certificate "/etc/ssl/acme/fullchain.pem" tls key "/etc/ssl/acme/private/privkey.pem" tls ocsp "/etc/ssl/acme/cert.der" location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } OSCP stapling is time-dependent and (nearly) correct time is required, which is why incorrect clocks cause failures. https://en.wikipedia.org/wiki/OCSP_stapling Last edited by jggimi; 29th November 2022 at 03:08 PM. Reason: added time-dependent comment and stapling link |
|
|||
Quote:
Code:
ntpd |
|
||||
In a default installation, ntpd(8) should already be running. But it does not adjust time rapidly, it corrects clock drift, as discussed in the ntpd(8) man page. At the bottom of the man page under SEE ALSO, you will find the rdate(8) utility referenced. It is the rdate(8) utility that can be used to make an immediate correction.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DD command on OpenBsd | PapaParrot | OpenBSD General | 20 | 9th November 2018 02:56 PM |
How to expand who command? | guitarscn | FreeBSD General | 1 | 27th August 2010 11:53 PM |
Mouse:X (not-working) and tty-Console (working), in 8.0 | ykt | FreeBSD General | 1 | 22nd December 2009 12:26 PM |
pkg-get command not found | whispersGhost | Solaris | 2 | 11th June 2008 01:06 PM |
crypt command | whispersGhost | Solaris | 3 | 9th June 2008 05:37 AM |