LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-05-2018, 09:05 AM   #1
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Rep: Reputation: Disabled
installurl


Really what is going on with this, I just want the paths to persist after reboot, why is /etc/installurl erased when i reboot? What possible purpose could that serve? Why doesn't the installurl man doc state the process required to force persistence?

I like so much about openbsd so far but geez every single headache i have had could have been solved by one sentence in the docs. how could someone not have seen that installurl disappearing would be an inconvenience?

or am i missing something that was there for me to read?
 
Old 10-05-2018, 09:53 AM   #2
hifi100
Member
 
Registered: Sep 2016
Distribution: OpenBSD 6.3
Posts: 159

Rep: Reputation: Disabled
Quote:
Originally Posted by mikudo View Post
Really what is going on with this, I just want the paths to persist after reboot, why is /etc/installurl erased when i reboot? What possible purpose could that serve? Why doesn't the installurl man doc state the process required to force persistence?

I like so much about openbsd so far but geez every single headache i have had could have been solved by one sentence in the docs. how could someone not have seen that installurl disappearing would be an inconvenience?

or am i missing something that was there for me to read?
Sorry to hear you are having trouble but fact is my /etc/installurl does persist a reboot.

Here's my /etc/installurl

Code:
cat /etc/installurl                                                      
https://cdn.openbsd.org/pub/OpenBSD
Which version of OpenBSD are you running ?
 
Old 10-05-2018, 12:24 PM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,150
Blog Entries: 5

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
installurl(5) is "persistent" as standard. It is only changed by a script during a base system install/upgrade.
 
Old 10-08-2018, 03:29 AM   #4
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
Ok I confirmed it is now persistent, some odd thing with vmware clones must have happened or I made a mistake. Thanks for the responses.
 
Old 10-08-2018, 03:31 AM   #5
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
btw I am in openbsd 6 and if I had another question it would be, where are the best up to date tutorials for getting up and running with a desktop? My searches took me to old stuff that basically worked but I find that the actual steps required diverged or were not easily discernable from the documentation.
 
Old 10-08-2018, 05:06 AM   #6
hifi100
Member
 
Registered: Sep 2016
Distribution: OpenBSD 6.3
Posts: 159

Rep: Reputation: Disabled
Quote:
Originally Posted by mikudo View Post
btw I am in openbsd 6 and if I had another question it would be, where are the best up to date tutorials for getting up and running with a desktop? My searches took me to old stuff that basically worked but I find that the actual steps required diverged or were not easily discernable from the documentation.
If you want to install xfce the command is

Code:
pkg_add xfce
That is what I use.
 
Old 10-08-2018, 06:38 AM   #7
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,702
Blog Entries: 8

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
Quote:
Originally Posted by mikudo View Post
btw I am in openbsd 6 and if I had another question it would be, where are the best up to date tutorials for getting up and running with a desktop?
Assuming you included the xorg set when you installed, it is as easy as installing your desired GUI. After that, individual GUIs may have different small steps. Since I used i3, I copy the /etc/i3/config to ~/home as .xinitrc and add my tweeks to it.

Last edited by Randicus Draco Albus; 10-08-2018 at 06:41 AM.
 
Old 10-08-2018, 06:15 PM   #8
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 168

Rep: Reputation: 59
Quote:
Originally Posted by mikudo View Post
...openbsd 6
There is nothing special about the "major" number in any OpenBSD release. There are two releases per year, each release increases the release number by 0.1, and only the most recent two releases are supported. At this writing, 6.3 is the most recent release, 6.2 will continue to be supported until 6.4 is released, expected on-or-about November 1. The next "major" number in releases will be the 7.0 release in 2021, only because it is the next release number after 6.9.
Quote:
...where are the best up to date tutorials....
The OpenBSD FAQ contains the only official, accurate, and up-to-date "how to" documentation for the most recent release.

Third-party "how to" documents are generally frowned upon by Project members. They are often found in-the-wild to be incomplete, out-of-date, and unmaintained. Usually, the author has considered only one or a very limited set of use-cases, and new users who discover these guides by Googling can easily become confused.

The last semi-official "how to" I wrote was for the OpenBSD Journal. My article had a panel of editors who reviewed and critiqued, and it took a while for my "how to" to become acceptable -- perhaps 4 or 5 revisions back-and-forth. Once published, unfortunately, it was both out-of-date and obsolete within a year... that means within 2 releases.

Last edited by jggimi; 10-08-2018 at 06:19 PM. Reason: clarity
 
Old 10-09-2018, 02:42 AM   #9
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
Ok now looking over the FAQ, I see where I got lost. After the install section, I didn't find the package management in time or know that is what I needed.

I believe 'package management' should come before 'system management' and 'install' should say at the end of it simply, 'The next step is to configure repositories and start installing software' which would link to package management section.

That would have helped me, but now I understand, thanks for the background information.
 
Old 10-09-2018, 05:50 AM   #10
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,150
Blog Entries: 5

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Quote:
Originally Posted by mikudo View Post
Ok now looking over the FAQ, I see where I got lost. After the install section, I didn't find the package management in time or know that is what I needed.

I believe 'package management' should come before 'system management' and 'install' should say at the end of it simply, 'The next step is to configure repositories and start installing software' which would link to package management section.

That would have helped me, but now I understand, thanks for the background information.
The ports system is not part of the OpenBSD base system. Hence why it's treated as an optional extra. It may seem unusual to you, but there are many use cases for OpenBSD where no ports may be installed.

If you read the man page for installurl(5) you'll see that it's not specific to ports/packages.

For example, it would be used during an upgrade (using the supported method via the ramdisk kernel of the release you're upgrading to) or when installing the sets via http (rather than from installation media).

pkg_add(1) gets it's installpath from /etc/installurl. It works out the rest of the path to the package snapshot based on the architecture and release.

The PKG_PATH variable on the other hand should equal the path to the snapshot of packages. installurl first appeared in 6.1-release as a I recall, prior to this PKG_PATH was the fairly standard approach.

The "Selecting a mirror" section of faq15 has details of this.

Last edited by cynwulf; 10-09-2018 at 05:51 AM.
 
Old 10-09-2018, 06:55 AM   #11
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
I know that ports and packages are different, but I don't see how the necessary step for configuring a system, setting up repositories and a software installation method, would come after system management tasks like editing the passwd file. Connecting pkg_add to a mirror is a critical step in installation.

Selecting a Mirror should come before System Management in the docs, I don't see any case working for the contrary argument.

As it stands now it's bad writing, the outline is out of order.

Would it make any difference to send this insight to the maintainers? I will anyway.
 
Old 10-09-2018, 07:28 AM   #12
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,150
Blog Entries: 5

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Packages are just pre-compiled ports so not different at all. If you simply build a package from the ports release tarball, then end result should be identical to the pre-compiled package.

You should probably address your concerns to the project's mailing lists.
 
Old 10-09-2018, 08:04 AM   #13
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 168

Rep: Reputation: 59
Quote:
Originally Posted by mikudo View Post
Would it make any difference to send this insight to the maintainers? I will anyway.
The most acceptable way to present any idea to the OpenBSD Project -- that is, to the OpenBSD developers -- is in the form of completed effort on your part. That means, in the form of a unified diff(1), sent in-line in an Email to the appropriate mailing list. This permits the developers to review and comment on work that you have performed, rather than asking the developers to do the work for you.

Luckily, the complete content of the OpenBSD Project's static website is available to all as a CVS repository, just like the source tree or the ports tree, so that you can download a working set of the current website, make revisions locally, and then create one or more diff(1) files that you can present to the Project with your complete idea for changing the website for their consideration.

Last edited by jggimi; 10-09-2018 at 08:09 AM. Reason: typo
 
Old 10-09-2018, 08:13 AM   #14
mikudo
Member
 
Registered: Aug 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
I have contacted the sites mailing list. Depending on the response I will consider using CVS to make my suggestion, but in this case it is pretty straightforward what I am suggesting.

At any rate thanks to you guys I know more than I did so thanks.
 
Old 10-09-2018, 09:12 AM   #15
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 168

Rep: Reputation: 59
I've seen the posting.

Do not be alarmed if you do not get any reply at all to your suggestion, or receive responses from other end-users instead of any of the developers. Half of the developers do not follow misc@, and, as I noted above, suggestions from us that arrive in the form of completed work (unified diffs) are given the most attention. Suggestions in the form of, "It would be great if you guys would do this thing!" are usually not well-received.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration