DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default Install GNOME on OpenBSD 6.2 on a Sun Ultra 45 (Sparc) Workstation?

Hi there!

The base package from http://mirror.switch.ch/ftp/pub/Open.../install62.iso was installed successful with a DVD, then i tried to install the gnome packge:

Code:
export PKG_PATH=http://mirror.switch.ch/ftp/pub/OpenBSD/6.2/packages/sparc64/

pkg_add -v gnome
pkg_add -v gnome-extras

In /etc/rc.conf make sure You have this:
pkg_scripts=dbus_daemon

Edit /root/.xinitrc
And add the line:
exec gnome-session
reboot

startx
(https://www.administrator.de/forum/g...en-254574.html )

-> there was serveral warnings on both packages "gnome" and "gnome-extras", e.g. "can't resolve yelp-3.22.0p3" was the first one... But so it seems there was just some warnings, but no errors - there are no dependency problems because of that..?? Maybe the source is errorful? -> http://mirror.switch.ch/ftp/pub/OpenBSD/6.2/sparc64/ ???

The only one "yelp" thing i see is that, in another (smaller) version that 3.22.0p3: http://mirror.switch.ch/ftp/pub/Open...ols-3.18.0.tgz

And Google shows exactly 1 result for that message: https://www.google.ch/search?q=%22ca...hrome&ie=UTF-8 - really strange!!

After reboot, when i enter "startx", i get the following messages:


"xauth: (stdin):1: bad display name “ultra45.my.domain:0” in “add” command. "

and

"xauth: (argv):1: bad display name “ultra45.my.domain:0” in “remove” command. "


/etc/rc.conf contains:

Code:
Last login: Fri Feb 23 03:32:28 2018
OpenBSD 6.2 (GENERIC.MP) #303: Tue Oct  3 22:46:49 MDT 2017

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

# more /etc/rc.conf
#       $OpenBSD: rc.conf,v 1.216 2017/05/30 12:04:26 tb Exp $

# DO NOT EDIT THIS FILE!!
#
# This file defines the default service selection as shipped in a
# release.  Upgrades of your system will modify this file.
#
# To select the service options you desire, please override these
# options in the file /etc/rc.conf.local
#
# DO NOT EDIT THIS FILE!!

# Set these variables to "NO" to turn the respective service off.
# Set them to "" to run them with the default flags.
# Otherwise, these variables override the default flags.
apmd_flags=NO
bgpd_flags=NO
bootparamd_flags=NO
cron_flags=
dhcpd_flags=NO
dhcrelay_flags=NO       # for normal use: "-i interface [server]"
dvmrpd_flags=NO
eigrpd_flags=NO
ftpd_flags=NO           # set to NO if ftpd is running out of inetd
ftpproxy_flags=NO
ftpproxy6_flags=NO
hostapd_flags=NO
hotplugd_flags=NO
httpd_flags=NO
identd_flags=NO
ifstated_flags=NO
iked_flags=NO
inetd_flags=NO
isakmpd_flags=NO
iscsid_flags=NO
ldapd_flags=NO
ldattach_flags=NO       # for normal use: "[options] linedisc cua-device"
ldomd_flags=NO
ldpd_flags=NO
lpd_flags=NO            # for normal use: "" (or "-l" for debugging)
mopd_flags=NO
mrouted_flags=NO        # be sure to enable multicast below
npppd_flags=NO
nsd_flags=NO
ntpd_flags=
ospfd_flags=NO
ospf6d_flags=NO
pflogd_flags=           # add more flags, e.g. "-s 256"
radiusd_flags=NO
rarpd_flags=NO
rbootd_flags=NO
relayd_flags=NO
rebound_flags=NO
ripd_flags=NO
route6d_flags=NO        # be sure to set net.inet6.ip6.forwarding=1
rtadvd_flags=NO         # for normal use: list of interfaces
                        # be sure to set net.inet6.ip6.forwarding=1
sasyncd_flags=NO
sensorsd_flags=NO
slaacd_flags=
slowcgi_flags=NO
smtpd_flags=
sndiod_flags=
snmpd_flags=NO
spamd_flags=NO          # also see spamd_black below
spamlogd_flags=         # use eg. "-i interface" and see spamlogd(8)
sshd_flags=
switchd_flags=NO
syslogd_flags=          # add more flags, e.g. "-u -a /chroot/dev/log"
tftpd_flags=NO
tftpproxy_flags=NO
unbound_flags=NO
vmd_flags=NO
watchdogd_flags=NO
wsmoused_flags=NO       # for enabling console mouse support (i386 alpha amd64)
                        # for ps/2 or usb mice: "", serial: "-p /dev/cua00"
xenodm_flags=NO         # on some architectures, you must also
                        # disable console getty in /etc/ttys

# services related to RPC, NFS, and YP
amd_flags=NO            # also see amd_master below
lockd_flags=NO
mountd_flags=NO
nfsd_flags=NO
portmap_flags=NO        # note: inetd(8) rpc services need portmap too
statd_flags=NO
ypbind_flags=NO
ypldap_flags=NO
ypserv_flags=NO

# set the following to "YES" to turn them on
pf=YES                  # Packet filter / NAT
ipsec=NO                # IPsec
check_quotas=YES        # NO may be desirable in some YP environments
accounting=NO           # process accounting (using /var/account/acct)

# Multicast routing configuration
# Please look at netstart(8) for a detailed description if you change these
multicast=NO            # Reject IPv4 multicast packets by default

# miscellaneous other flags
amd_master=/etc/amd/master      # AMD 'master' map
library_aslr=YES                # set to NO to disable library randomization
savecore_flags=                 # "-z" to compress
spamd_black=NO                  # set to YES to run spamd without greylisting
shlib_dirs=                     # extra directories for ldconfig, separated
                                # by space

# rc.d(8) packages scripts
# started in the specified order and stopped in reverse order
# pkg_scripts=
pkg_scripts=dbus_daemon
gdm_enable=YES
hostname="ultra45"
(red ones are added by myself!)


/etc/hosts contains:

Code:
127.0.0.1       localhost ultra45
::1             localhost ultra45
-> i added both "ultra45"


file /root/.xinitrc contains:

Code:
exec gnome-session
-> added by myself, mayb the file didn't exist before, or was empty. (?)


AND: i try to execute "startx" as root user, mybe there is a problem.

The graphic card i use is a sun "XVR-300", the "XVR-100" create some graphical errors while booting, screen isn't readable anymore..

The "Sun Ultra45 Workstation" is officially supported by OpenBSD 6.2 ("sparc64"), but that seems to be just a theoretically thing.

Thank you very much for your feedbacks!
__________________
Regards, Jan

Last edited by jmar83; 23rd February 2018 at 02:46 AM.
Reply With Quote
  #2   (View Single Post)  
Old 23rd February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Hello and welcome!

I'll start by suggesting that the guidance you have been following was not sourced from the OpenBSD Project, as some of it is incorrect.
  • The "In /etc/rc.conf ..." guidance is incorrect in two ways.

    1. Do not edit the /etc/rc.conf file. You must have missed the comments at the top of the file explaining that it should not be edited, and instead, local provisioning should be made in the file /etc/rc.conf.local.

    2. The "dbus_daemon" has not existed by that name for more than two years.
  • Gnome must be started from GDM, not from startx, unless you have special requirements, and it is not recommended as a) you do not have complete Gnome session management, and b) it requires careful, special provisioning.
The guidance you SHOULD follow instead of the guidance you have been using is the gnome package "README", which was installed in /usr/local/share/doc/pkg-readmes when you installed Gnome. A message telling you that documentation was installed there appeared on your console, but you must have missed it.

The yelp application (Gnome's "help" browser) is not available on Sparc64.

Last edited by jggimi; 23rd February 2018 at 04:49 AM. Reason: typo
Reply With Quote
  #3   (View Single Post)  
Old 23rd February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Hi jggimi

Thank you very much!

Now i removed all user-defined entries from "/etc/rc.conf", and created a new file "/etc/rc.conf.local" with one entry:

Code:
GDM_ENABLE=YES

...then i will not use the "dbus_daemon" entry anymore, and the hostname thing should not be a problem - so i don't use it anymore!

Yes, there was also a problem with the "gnome-session" (and its dependencies "gnome-shell" & "zenity") while installing the gnome-package. so gnome-session was also not installed - similar to the yelp package.

Code:
# pkg_add -v gnome-session
Update candidates: quirks-2.367 -> quirks-2.367
quirks-2.367 signed on 2017-10-15T14:54:24Z
Can't find zenity-3.24.0
Can't find gnome-shell-3.24.3p1
Can't install gnome-session-3.24.2: can't resolve gnome-shell-3.24.3p1,zenity-3.24.0

- in "/usr/local/share/doc/pkg-readmes" i see some manuals:

Code:
avahi-0.7p0              glib2-2.52.3             gtk+3-3.22.21p0          upower-0.99.4p1
consolekit2-1.2.0        gnupg-2.1.23             ibus-1.5.5p5             xdg-utils-1.1.2
dbus-1.10.22p0v0         gtk+2-2.24.31p1          sane-backends-1.0.27p0

- the gdm command doesn't seem to exist ("not found"), nor "gdm", neither "gdm3". Does also not exists when i enter it in capital letters. must be a problem with the "gnome-session" package, right?

In this thread, they write we have to use "startx" for starting the gui: http://daemonforums.org/showthread.php?t=7865

Code:
"To launch Gnome, you don't need gdm, just :
Code:
# startx /usr/local/bin/gnome-session"
How to install the "gnome-session" package, do i need to compile it by myself? (that should (theoretically) not be a problem, im a software developer...)
__________________
Regards, Jan
Reply With Quote
  #4   (View Single Post)  
Old 23rd February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

That guy runs "XFCE" on OpenBSD 6.1 on a Ultra 45: https://www.youtube.com/watch?v=_h9zVCknYPo

And i read with "XFCE" (http://daemonforums.org/showthread.php?t=7865, "xfce4 >> the best x-windows manager !") there are less problems on sparc64 than with gnome...?

So maybe it's easier (no special configuration required?) to install it?
__________________
Regards, Jan
Reply With Quote
  #5   (View Single Post)  
Old 23rd February 2018
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Hello jmar83, welcome

I installed xfce on my Sun Blade 2500, and it was really easy.
Just did
Code:
$ pkg_add xfce
$ pkg_add xfce-extras
Then, all I need is to launch xfce
Code:
$ startxfce4
Xfce just works fine with my Blade
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #6   (View Single Post)  
Old 23rd February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by jmar83 View Post
Hi jggimi

Thank you very much!
No, don't thank me. jmar83 reminded me that gnome-session is a requirement in order to run Gnome.
While it is possible to build the gnome-session package on the sparc64 architecture, it is not possible to install it. On OpenBSD, build and run dependencies are considered separately.
Gnome is a very complex suite of integrated applications, and unfortunately, not all of those necessary to run Gnome can be built on sparc64. And when there is one missing dependency, it affects everything that is dependent upon it.
Quote:
...then i will not use the "dbus_daemon" entry anymore...
The name was changed to messagebus in 2015. You will see messagebus provisioning mentioned in the Gnome README.
Quote:
- in "/usr/local/share/doc/pkg-readmes" i see some manuals....
Only packages that have OpenBSD-specific documentation will install a README file. The GDM package does not include a README.
Reply With Quote
  #7   (View Single Post)  
Old 23rd February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Hello LeFrettchen, and thank you very much!! Will try it! Another question: I also have a Blade 2500, and it's really loud. Is OpenBSD able to reduce the fan noises? Debian Linux, the system i used until now, is not. (At least not "by default", maybe with a custom kernel..?)

@jggimi: I understand... if you are able to compile it, that must not mean you are able to run it. (a special thing in c/c++ sources is, e.g., the "endianness", that need to be programmed so it works on both big- and little-endian... many applications on debian linux also have this problem, mostly it results in a "bus error")
__________________
Regards, Jan
Reply With Quote
  #8   (View Single Post)  
Old 23rd February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by jmar83 View Post
[B]if you are able to compile it, that must not mean you are able to run it.
Not in this case. Instead, gnome-session is able to compile, and it would run, but it lacks two dependencies that are required for it to run as intended. Those dependencies, gnome-shell and zenity, cannot be built on sparc64 architectures. And that could be due to build dependencies that gnome-shell or zenity may have on other applications, rather than any problem with gnome-shell or zenity themselves.

Applications are often a complex web of interdependent libraries and supporting applications. When there is a problem with one thread, the entire web can collapse.

Last edited by jggimi; 23rd February 2018 at 04:27 PM. Reason: clarity
Reply With Quote
  #9   (View Single Post)  
Old 24th February 2018
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 373
Default

Another DE to consider is MATE which is a re-working of Gnome2; it is much lighter to run than Gnome 3.x. I've run MATE on FreeBSD 11.1, it runs well. MATE is in the OpenBSD repositories. This is just a suggestion.
__________________
hitest
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

@hitest: Thank you, now XFCE4 works, but i do not really like it. It looks like a linux desktop 15-20 years ago... but maybe i can use OpenBSD as a server on my Sun Blade 2500 one day...
__________________
Regards, Jan

Last edited by jmar83; 24th February 2018 at 02:47 AM.
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

The command "pkg_delete [package_name]" shows me always "not found", or something like that.

"pkg_delete xfce" -> not found
"pkg_delete xfce-extras" -> also not found


Now i've used the "-X" parameter, seems to works, later i will see that's the result...
__________________
Regards, Jan
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

"Now i've used the "-X" parameter, seems to works, later i will see that's the result..."


It was just working with "xfce-extras", with "xfce" i also have the same message with "-X" paramter: "Can't find xfce"...
__________________
Regards, Jan
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Maybe "mate" is not available for sparc64? -> http://mirror.switch.ch/ftp/pub/OpenBSD/6.2/sparc64/

I can't find any files with "mate" in their names...

P.S.: My sparc computers are not supported by OpenBSD, neither Ultra 45, nor Blade 2500 Silver..
__________________
Regards, Jan
Reply With Quote
Old 24th February 2018
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

Quote:
Originally Posted by jmar83 View Post
@hitest: Thank you, now XFCE4 works, but i do not really like it. It looks like a linux desktop 15-20 years ago...
Have you tried OpenBox? It can be be made as pretty as one wants if, but you would need to configure it to your liking. Also, being a window manager, it does not have all the garbage DEs like Gnome and KDE are bloated with.
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Thank you, maybe i will try it when i have some time... but now, i try to run NetBSD, with some problems as described here: http://daemonforums.org/showthread.php?t=10615
__________________
Regards, Jan

Last edited by jmar83; 24th February 2018 at 11:10 AM.
Reply With Quote
Old 24th February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

OpenBSD has more than 50 different window managers available, and apparently, there are some that are available for the sparc64 architecture. My personal favorite, for instance, the i3 window manager, is available for sparc64.

fvwm(1), twm(1), and cwm(1) are included with OpenBSD.
Reply With Quote
Old 24th February 2018
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by jmar83 View Post
I also have a Blade 2500, and it's really loud.
Agreed.

Quote:
Originally Posted by jmar83 View Post
Is OpenBSD able to reduce the fan noises?
Never tried.
But if you find how-to, would interest me

Quote:
Originally Posted by jggimi View Post
fvwm(1), twm(1), and cwm(1) are included with OpenBSD.
I personally love fvwm out of the box, so light, no frills.
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
Old 26th February 2018
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 373
Smile

Quote:
Originally Posted by LeFrettchen View Post
I personally love fvwm out of the box, so light, no frills.
I like and use XFCE. If I have an older unit then I use Fluxbox.
__________________
hitest
Reply With Quote
Old 26th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Thx guys!!

Gnome is not a problem for a Sun Blade 2500 or Ultra45 (both of them have 2x 1.6GHz Sparc CPU) But if it's not available on sparc64 for OpenBSD...

In Debian Wheezy i also used Gnome, it seems it works in a "compatibility mode" (It looks similar to Gnome from Debian Squeeze or Lenny - no special graphic effects. If i install Debian Wheezy & Gnome on a "modern" x86 Laptop, the Desktop looks very different. I think that "compatibility mode" is similar to Gnome2...?)

"Originally Posted by jmar83 View Post
I also have a Blade 2500, and it's really loud.
Agreed."


And im not 100% sure it is possible to reduce the noise by software/os in general. Maybe it is also not possible with solaris. (?) But i know that it is possible on a Blade 2000, which is much more louder than a Blade 2500 Silver.


And i also think the Blade 2500 Silver is more a Server than a workstation. The original SCSI disk are very loud too. (I replaced it by a big IDE disk - no problem to boot with IDE. But debian Wheezy has a strange "race condition" by booting from IDE, sometime it works, sometime not... Best linux for Blade 2500 Silver seems to be Debian Lenny if you need a GUI, otherwise (for server applications) Debian Squeeze. (which i currently use as an ISCSI target for backup purposes - works well ))
__________________
Regards, Jan
Reply With Quote
Old 23rd October 2023
cohumat cohumat is offline
Port Guard
 
Join Date: Oct 2023
Posts: 17
Default

Thanks to all of those who posted in this thread, I have learned quite a bit about both the community pirirt of the community here at daemon forums. I can say that even though I was only 30years young and still mainly used both Linux and FreeBSD, I still really do appreciate the amount of knowledge in even a thread as short and to the point as this one.
__________________
Kindly You Buddy,

Chip
EM:firedolphin8858@gmx.us
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
Sparc 20 won't boot after Net BSD 4.1 install rogue0912 NetBSD Installation and Upgrading 1 12th September 2011 09:01 AM
How - To install GNOME vile I install OpenBSD ? looop OpenBSD Installation and Upgrading 6 24th April 2010 08:58 PM
sparc ultra 5 ok== files and args ??? philo_neo71 FreeBSD Installation and Upgrading 2 21st September 2009 03:43 AM
errror install nebsd sparc ultra5 philo_neo71 NetBSD General 3 21st July 2009 06:35 AM
Full install of Gnome on OpenBSD 4.4 mfaridi OpenBSD Installation and Upgrading 17 9th November 2008 01:54 PM


All times are GMT. The time now is 11:35 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