DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th December 2011
two4two two4two is offline
New User
 
Join Date: Dec 2011
Posts: 6
Default What next? I need a desktop. Want Gnome.

OK, I got to the point where it is time to re-boot. I do that and get the command prompt. So the guide says it's time to customize. I created a non-root user/pwd. I initialized the ssh. I got into basic configuration: I got into 5.15 -- Using packages from pkgsrc, entered the command to point to the repositury exactly as stated in the guide. I also browsed the repository in both http and ftp modes. Can't find a package for gnome. Found a whole bunch related to gnome, but which is the current one for the desktop that will install everything at once? Is the guide wrong when it tells how to specify the repository? Maybe someone can give the correct statement to set the repository, and then the correct statement to install gnome for the current 5.1 release. Thank you very much.
Reply With Quote
  #2   (View Single Post)  
Old 25th December 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

I don't use gnome, but did you try/look under the meta-pkgs/ directory in the repository rather than the gnome/ directory?
Reply With Quote
  #3   (View Single Post)  
Old 26th December 2011
two4two two4two is offline
New User
 
Join Date: Dec 2011
Posts: 6
Default How to install gnome

Yes, I looked in there. There is a member called gnome-platform-2.32.1.tgz. What would be the package name? And is this the entire gnome package? In the gnome directory there are members called gnome-desktop-2.32.1nb1.tgz and gnome-build-2.24.1nb7.tgz., plus other interesting members. I'd just like to get to the point that when I boot up the desktop appears and has all the cool useful stuff that gnome has. So where do I point PKG_PATH and what package name do I specify in order to get all of gnome?

Oh, one other question, does NetBSD have a GUI-based software selection/installation tool?


Thanks for all your help.
Reply With Quote
  #4   (View Single Post)  
Old 26th December 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by two4two View Post
Yes, I looked in there. There is a member called gnome-platform-2.32.1.tgz. What would be the package name?
I think the package name gnome-platform-2.32.1, or simply gnome-platform, could be used. See the EXAMPLES section of the pkg_add(1) man page.

Quote:
And is this the entire gnome package?
This I don't know, having never used gnome.

Quote:
So where do I point PKG_PATH and what package name do I specify in order to get all of gnome?
I use the following
Code:
PKG_PATH=http://nyftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All
Before copying this verbatim, you might want to change i386 to your architecture, for example amd64, if it's different. Also note the final directory /All contains all packages available in a single directory (it's like a union of all the individual directories for specific types of things).

As for a package name for all of gnome, again it's beyond my experience. Did you see this list of brief meta-package descriptions? Perhaps someone else who has installed a full gnome may chip in some advice. Or google may help. Or if you want to experiment you could start with relevant sounding meta-packages and see how far you get, then try to add what else you need. gnome-2.26.2nb3 sounds like a good one to start with.

Quote:
Oh, one other question, does NetBSD have a GUI-based software selection/installation tool?
I'm not aware of one, but that doesn't mean much as it's not the kind of thing I would normally use.

BTW, welcome to daemonforums!
Reply With Quote
  #5   (View Single Post)  
Old 26th December 2011
two4two two4two is offline
New User
 
Join Date: Dec 2011
Posts: 6
Default NetBSD 5.1 w/gnome

OK, so until someone has the answers I'll try what you suggest and post results as I go. I see old posts for prior releases and prior gnome releases, but nothing yet for the current of both NetBSD and gnome. Maybe I'll actually be of some help in the end.
Reply With Quote
  #6   (View Single Post)  
Old 26th December 2011
two4two two4two is offline
New User
 
Join Date: Dec 2011
Posts: 6
Default OK, something worked

OK, in the "All" directory I chose gnome-desktop-2.32.1nb1 and it got installed and produced about 10,000 lines of output. How do I go browse that to find if any errors? I did not reboot yet.
Reply With Quote
  #7   (View Single Post)  
Old 26th December 2011
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

If you are just getting started with BSD's, in my opinion, you picked one of the most difficult. I would recommend you look at OpenBSD to start with for the following reasons:
1) Everything you need to know is in the FAQ which is more succinct.
OpenBSD FAQ
2) The documentation in NetBSD is lagging - for example wireless configuration.
3) Your gnome desktop will be more recent version and there are several tutorials online and in these forums about how to install.
Reply With Quote
  #8   (View Single Post)  
Old 26th December 2011
tolstoi tolstoi is offline
Port Guard
 
Join Date: Dec 2011
Posts: 25
Default

If you just type in startx you'll only get the ugly xorg wm running. So to get Gnome running the .xinitrc needs to have an entry like 'exec startkde' for example to run the preferred environment. Don't know what to use for Gnome because I haven't used it for ages. Perhaps exec gnome-session or something like that.

To test if Xorg really works with a detected configuration just run X -configure as root. But as you've already got X going because the wm started up without any complaints I'd assume that everything is ok with your configuration.
Reply With Quote
  #9   (View Single Post)  
Old 26th December 2011
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

You can invoke a particular window manager when you load X without altering any defaults like this:

$ startx /usr/local/bin/fluxbox
I believe for gnome it will be
$ startx /usr/local/bin/gnome-session
But this was cut from the OpenBSD FAQ
Reply With Quote
Old 26th December 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

I just wanted to add about 1000's of lines of text flying by when you do a package addition. Yes that can be a problem.

I know a couple of ways to deal with that if you think of it in time. First is to pipe the output of the command through tee(1). E.g.,

# pkg_add -v ... | tee mylogfile

Then you have a copy of standard output from the command in the log file (although standard error won't be there without further redirection). You can peruse this file at leisure for any install-time messages, etc.

The second way is to use the script(1) command. It basically starts a new shell and records everything you do in that shell to a file. When you're done exit the shell. By default the file that's recorded is called typescript. It will have some annoying characters in it like ^M that you may want to remove with an editor.

Of course, it's too late for those now since you already installed the packages, but all is not lost! pkg_add records what you installed under /var/db/pkg. Under there is a directory for each package you installed. In those sub-directories are various files, in particular there will be one called +DISPLAY if the package presented any message during install time. You can just read that file with the message in it.

$ find /var/db/pkg -name +DISPLAY

will show you what files may be there to look at.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Your Desktop OS? Carpetsmoker Off-Topic 81 13th November 2011 12:17 AM
NetBSD 5 as a desktop jaideep_jdof NetBSD Package System (pkgsrc) 5 12th September 2009 06:46 AM
Fastest 64 bit desktop OS? Randux General software and network 8 12th January 2009 12:05 AM
FreeBSD KDE/GUI DESKTOP HELP rave_mystery_inc FreeBSD Installation and Upgrading 5 5th July 2008 06:18 AM
[Help] Making the desktop in [BSD 7.0] seadog109 FreeBSD General 15 9th May 2008 05:10 AM


All times are GMT. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick