DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Thumbs down Gnome issues in OpenBSD 4.2

Hi,

I've installed OpenBSD 4.2 on my rig,

I installed Gnome by using the command:-




Code:
pkg_add   ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/gnome-desktop-2.18.2p0.tgz
And

Code:
pkg_add   ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/gnome-session-2.18.2p0.tgz
>>>>>>>>>


When I try to open gnome from CLI using "gnome-session" , I get a error message :-
Code:

Code:
Gnome-Session Gtk-WARNING **: cannot open display

So I tried:-



Code:
#echo $DISPLAY
And

Code:
#export DISPLAY=:0.0
And

Code:
#exec gnome-session >> /root/.Xinitrc.conf
But I still get the same error as mentioned above even after trying all the 3 commands mentioned above, I get the same problems when trying form Xterm.
Reply With Quote
  #2   (View Single Post)  
Old 7th May 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

Your post is somewhat cryptic.
When you say
When I try to open gnome from CLI using "gnome-session"
did you typed gnome-session on the CLI
or did you echo "exec gnome-session" > .xinitrc
then
startx
?????

Also, IIRC, while GNOME works perfectly well on OpenBSD, the GNOME implementation was said to have been updated (undeadly.org) for XFCE4 to work.

As the OpenBSD implementation of GNOME does not follows the pure GNOME installation with *all* possibly (even rarely) needed dependencies a la FreeBSD, I doubt pkg_add 'ing only *desktop and *session would give you a full working environment.
AFAIK, on OpenBSD, there is no way to install a "Gnome-light" environment with a meta-package.

If you want GNOME, I suggest you install it via the "source", that is
cd /usr/ports/x11/gnome && make install
you can set your mk.conf to preferably use packages when available and end up installing from packages only.
The ports/packages infrastructure of OpenBSD is second to none for installing and upgrading applications. Need to read some man pages.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #3   (View Single Post)  
Old 7th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Default

I tried "gnome-session" from CLI and I get that gtk error, I did even that echo(My PC starts in CLI always),

I get the same error when running it from xterm(after typing startx).
Reply With Quote
  #4   (View Single Post)  
Old 7th May 2008
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Thanked 9 Times in 8 Posts
Default

Quote:
Originally Posted by Shredder View Post
...I've installed OpenBSD 4.2 on my rig,
In these gnome regards, wouldn't 4.3 be a better starting point?
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Default

But will I face the same problems even in 4.3?
Reply With Quote
  #6   (View Single Post)  
Old 7th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Beginning with 4.3, gnome-session comes with a README.OpenBSD which I have replicated here for you:
Quote:
The OpenBSD/GNOME desktop

* Introduction
The gnome-session package will install a minimal working GNOME desktop.
It provides you with the basic interface (including themes), a control
panel, a terminal, a text editor and a lot more other utilities.

This file will briefly explain to you how to make this experience more
pleasant.

* Installing more packages
If your needs aren't satisfied yet, there are many other packages
you can install. The most important ones will be mentioned by category:

- Communication
* empathy - Telepathy based messenger
* epiphany - lightweight and simple web browser
* evolution - integrated email and PIM software
* gossip - Jabber client

- Accessibility
* dasher - predictive text input system

- Development
* devel-docs - developer documentation
* devhelp - API documentation browser
* gedit-plugins - plugins for Gedit
* zenity - easy-to-script dialogs

- Utilities
* eog - image viewer and categorizer
* evince - document viewer for multiple document formats
* file-roller - archive manager
* gcalctool - desktop calculator
* ggv - frontend for GhostScript
* gucharmap - Unicode character map
* planner - project management
* seahorse - encryption keys manager

* Startup and more documentation
One can log in using the login manager, GDM. Or by using the 'startx' command.
In order to use the latter, add a line like the following to your .xinitrc
or .xsession script: 'exec /usr/local/bin/gnome-session' .

For more information on using OpenBSD packages please refer to:
http://www.OpenBSD.org/faq/faq15.html . For more general information on
using GNOME, please see: http://live.gnome.org/ .
Edit: I should add, I've had no trouble installing gnome in 4.2; I did so for my gnome LiveDVD. But I installed all gnome packages.

Last edited by jggimi; 7th May 2008 at 06:18 PM.
Reply With Quote
  #7   (View Single Post)  
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

I have Gnome in OpenBSD 4.2 too without problem.
and it is work good for me.
and I install with
Code:
pkg_add -v gnome-session
Reply With Quote
  #8   (View Single Post)  
Old 8th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Default

@mfaridi,

Could you give me a brief tutorial on how to install Gnome on a fresh OpenBSD installation.
Reply With Quote
  #9   (View Single Post)  
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

After I install Gnome by pkg_add -v
I use this link for start Gnome

http://www.openbsd.org/faq/faq11.html
Reply With Quote
Old 8th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Default

After installing gnome-session, how do I start Gnome?

That link you gave is to configure X, but how do you start gnome,
plz give me complete details .
Reply With Quote
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

go to home directory and make this file

Code:
 .xinitrc
and put this line in .xinitrc

Code:
 exec gnome-session
and then type
Code:
 startx
Gnome will be start
but never forgot before start Gnome config your Xorg
Reply With Quote
Old 8th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Thanked 0 Times in 0 Posts
Default

Thnx dude ,

If I use root account I dont have to make this file rite?

And how do I put "exex gnome-session in xinitrc?

And if I have multiple users should I make .xinitrc in each of their home folders?
Reply With Quote
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Please do not use Desktop with root , I think you do not have enough space for start Gnome Desktop with root account

use Touch command for make .xinitrc
and use some editor like VI or nano or mcedit for open that file and put exex gnome-session

you can use echo too for put exex gnome-session in .xinitrc
Reply With Quote
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Shredder View Post
And if I have multiple users should I make .xinitrc in each of their home folders?
I think you have to make xinitrc for each user

but I am not sure
Reply With Quote
Old 8th May 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by mfaridi View Post
I think you have to make xinitrc for each user

but I am not sure
Yes you have to. If all your users run graphical user interfaces and this computer is more a desktop than a server, you may also try GDM - this will allow you to boot directly into the graphical user interface and log in from that interface.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
Old 8th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Each user needs .xinitrc in it's home directory to use startx.

If using XDM or GDM, each user needs a .xsession file in its home directory. The .xsession file is used in the same way as the .xinitrc file; in fact they may be the same file, through the use of the ln(1) command.

The "root" user's home directory is /root. A normal user's home directory typically is created in a subdirectory of /home, but the admin may put it anywhere.

Shredder, it seems to me that you need to learn to use a Unix text editor; the most commonly used editors are vi or emacs. The vi(1) program is built in, and there is a subset of the emacs editor also, called mg(1). There are zealots in both camps. I happen to have learned vi many decades ago, so that is what I use. But it matters not what you pick, so long as you learn one of them.

If you'd like to see what a working OpenBSD system with Gnome already installed looks like, I have a LiveDVD of OpenBSD 4.3 with all of Gnome available for download. You can examine .xinitrc and .xsession files (they are the same file on this system), use pkg_info(1) to see what's installed, and see if you like the Epiphany browser or other Gnome tools. If you start the LiveDVD in "graphical" mode it will start XDM for you, if you start in "console" mode you can issue the startx command yourself.

Last edited by jggimi; 8th May 2008 at 01:46 PM.
Reply With Quote
Old 8th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Shredder View Post
And if I have multiple users should I make .xinitrc in each of their home folders?
This depends upon whether users need/want customization or whether the defaults are sufficient.

When startx is invoked, the script checks for the presence of ~/.xinitrc (note the period...). If present, this file is executed. If not, /etc/X11/xinit/xinitrc is executed (note no period...). In this manner users can customize how X starts by changing the contents of ~/.xinitrc. Note that the default window manager is fvwm(1) as can be found at the bottom of /etc/X11/xinit/xinitrc.

If you want to change the defaults (window manager, applications started at X's invocation, etc.), edit /etc/X11/xinit/xinitrc.

For more information, see Section 11 of the FAQ:

http://openbsd.org/faq/faq11.html

Last edited by ocicat; 8th May 2008 at 03:27 PM.
Reply With Quote
Old 8th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by stukov View Post
Yes you have to.
Not true. As explained above, /etc/X11/xinit/xinitrc contains the default configuration for X.
Reply With Quote
Old 8th May 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

Re: xorg.conf.
Wait soem days for the mirrors to get the updates and re-compile xenocara.
You might not need xorg.conf anymore.
http://undeadly.org/cgi?action=artic...panded&count=9

Re: .xinitrc for every user?
Unless you install a display manager (XDM, KDM, GDM).

Re: gnome-session.
Right, checked the Makefile which should have been my first action.

Btw: echo "exec gnome-session" > ~/.xinitrc *not* exex, from one bad typist to the other.
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 8th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Let's not confuse .xinitrc/.xsession with xorg.conf.

The former are used to select window managers and startup X applications, the latter configures the X environment.

EDIT: In the case of the recent change to Xorg, a) that is for -current, not -release/-stable, and b) affects keyboard autoconfiguration only, and should have nothing to do with Shredder's query.
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
Set Of gnome issues jaideep_jdof NetBSD General 13 17th September 2009 06:39 AM
issues with setting up symon on openbsd badguy OpenBSD Security 12 22nd July 2009 02:21 AM
Full install of Gnome on OpenBSD 4.4 mfaridi OpenBSD Installation and Upgrading 17 9th November 2008 01:54 PM
Instaling Gnome in OpenBSD 4.3 Ragnar FreeBSD Ports and Packages 1 21st May 2008 02:21 AM
Unicode issues with gnome-mount/HAL? milkycow FreeBSD Ports and Packages 3 9th May 2008 11:46 PM


All times are GMT. The time now is 04:35 PM.


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