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
Old 16th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Step by step:

  1. Boot 4.3 install media. Run installation script.
  2. When partitioning OpenBSD, be sure to add a "b" partition for swap space. A general rule of thumb is 2X your RAM. For your configuration, then, set up a 512MB swap partition. You've had problems with the OS hanging up, and you've admitted you do not (or did not) have swap space configured.
  3. Be sure to install all 5 X filesets. Do not leave any out. xbase, xetc, xshare, xserv, and xfont must all be installed.
  4. When the script asks if you will be running X, tell it "Y"
  5. After install, reboot and log in as root.
  6. Set your PKG_PATH environment variable appropriately, per FAQ 15. e.g.:

    # export PKG_PATH=ftp://rt.fm/pub/OpenBSD/4.3/packages/i386/
  7. Install gnome packages. At minimum, as has been described above, all you need do is:

    # pkg_add gnome-session
  8. Use the adduser(8) command and set up a normal user. Log in as that user. Create an .xinitrc file with one line containing "exec gnome-session" in it. You can use an editor, such as vi(1) or mg(1), or you can use the echo(1) command and route the output to the file like this:

    $ echo exec gnome-session > .xinitrc
  9. Start X:

    $ startx

Last edited by jggimi; 16th May 2008 at 01:30 PM.
Reply With Quote
Old 16th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

^Thank you so much ,

I will try this method(On OpenBSD 4.2).
Reply With Quote
Old 17th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

Dude I followed your guide,(I made .Xinitrc instead of .xinitrc)

When I type "startx" it goes to a screen where theres "xterm" console, there I must again type "gnome-session" and gnome starts but xterm returns a lot of errors(but gnome works fine),

Am I missing something?

How do I make OpenBSD directly boot into Gnome?
Reply With Quote
Old 17th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Shredder View Post
When I type "startx" it goes to a screen where theres "xterm" console, there I must again type "gnome-session" and gnome starts but xterm returns a lot of errors(but gnome works fine),
.xinitrc must be created in your home directory:
Code:
$ echo exec gnome-session > ~/.xinitrc
Reply With Quote
Old 17th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

Ya thats what I did,

I created a user called "shredder",

So I went to /home/shredder,

Next the command "touch .Xinitrc"

Next I opened it in vi and added the line "exec gnome-session".
Reply With Quote
Old 17th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Shredder View Post
Next the command "touch .Xinitrc"
In Unix, case matters. The name of the file must be ~/.xinitrc.

BTW, using touch(1) to create an empty file is not necessary if you were then using vi(1) to edit the same file.

Last edited by ocicat; 17th May 2008 at 04:18 PM.
Reply With Quote
Old 17th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Why, if you are unable to follow the directions given, do you expect good results?
Reply With Quote
Old 17th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

My mistake,

I'll do as said,

Edited:-

Well I changed the file to .xinitrc and it starts fine now ,

Only problem is Gnome hangs completely 90% of the times.

Last edited by Shredder; 17th May 2008 at 05:11 PM.
Reply With Quote
Old 17th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Then whatever problem you are having is probably not due to running out of swap space. You *did* create swap space as I instructed, didn't you?

If you have the ability to set up a serial console (FAQ 7.7), you could see if the OS was dropping into the ddb(4) debugger.

Another option, which may be simpler, is to set ddb.panic=0 in /etc/sysctl.conf and reboot, so that on a panic, instead of dropping to ddb on a console you have no access to, the system will reboot after dumping all of memory to the swap space you've now defined. On reboot (which will take a while before that happens, as it must dump memory to disk first), the memory dump will be saved in /var/crash for analysis. See crash(8), savecore(8), and gdb(1).
Reply With Quote
Old 17th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Along with jggimi's request, please provide the output of the following command:
Code:
$ swapctl -l
...as this will confirm that a swap device have been created.
Reply With Quote
Old 19th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

Output of swapctl -l :-

Code:
$ swapctl -l
Device           512-blocks    Used       Avail     Capacity   Priority
swap_device    1204875        0      1204875      0%         0
@ jggimi ,

I added the line you mentioned,

My xorg.conf:-
http://www.pastebin.ca/1022603

Last edited by Shredder; 19th May 2008 at 01:08 PM.
Reply With Quote
Old 19th May 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Nobody suggested you create an xorg.conf file. I don't know if your troubles might be related to your xorg.conf or not, yet. Are you able to run your system without an xorg.conf file? If not .... perhaps you should try 4.3 instead. The following link is to a posting in the misc@ archives, about using -current from March of this year with the i810 driver. This point is many months after 4.2, and close to the time when 4.3 was being tested. You might be able to install and run 4.3 without having to have an xorg.conf file:

http://marc.info/?l=openbsd-misc&m=120603277601344&w=2

If after disabling the ddb console on panic, your system continues to hang, and does not reboot after a minute or two, then I would guess your problem is X-related rather than some sort of fault that would cause a panic and reboot. You haven't yet reported on this, so we don't yet know.

Good luck.
Reply With Quote
Old 23rd May 2008
FloridaBSD FloridaBSD is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 58
Exclamation

shrader, I'd recommend that you start out by learning how to use a command line interface (CLI) text manipulator like pico (included with the Pine CLI email client fro m University of Washington) or nano. Personally i prefer to use the later of the two editors just mentioned, but as the say to each his own?
__________________
Google Linux is a Green Horns Best Friend (GHBF).
Windows = a 32 bit extensions to a 16 bit patch to an 8 bit operating system originally coded for a four bit processor written by 2-bit monopolistic software company founded by a .3-bit Harvard Drop out, who can't stand one respectable bit of competition.
If I believe something to be immoral a will not keep quite and let my voice of annoyance be heard loud and clear.

Last edited by FloridaBSD; 23rd May 2008 at 05:56 PM.
Reply With Quote
Old 26th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

Well I read the documentation and it says "agpgart" must be enabled, to do this it says I must recompile the kernel, and I solved the hanging issues by changing someBIOS options,

I have a rather slow Internet connection, so I'll download the packages and burn them to a CD (In case I format my system I'll be able to install Gnome or KDE from the CD),

So could someone please tell me the complete list of packages and dependencies required for a Gnome, KDE, Fluxbox desktop.

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

  1. Huh? "agpgart" has nothing to do with the OpenBSD kernel. It does have to do with X, but AFAICT, any special patches for agpgart were for XF4 in the OpenBSD 3.1 days. OpenBSD is no longer using XF4, it is using xenocara.
    Please share with us the "documentation" you've been reading. A link would be fine.
  2. I'd be delighted to provide a complete list of packages, just tell me if you want it for 4.3, or if you're still stuck immovably to 4.2.
Reply With Quote
Old 26th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

Well I was even reading the FreeBSD documentation and their I came accross this, I thought the same would apply to OpenBSD(Newbie here),

So how must I enable DRI then?

I'm already using 4.3,

And is KDE generally unstable and buggy?

I've downloaded the packages, please tell me whether everything needed is present, and if theres any unneeded stuff present:-


Last edited by Shredder; 26th May 2008 at 01:50 PM.
Reply With Quote
Old 26th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Shredder View Post
So how must I enable DRI then?
OpenBSD does not support DRI yet.
Quote:
And is KDE generally unstable and buggy?
No.
Reply With Quote
Old 26th May 2008
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 Shredder View Post
Well I was even reading the FreeBSD documentation and their I came accross this, I thought the same would apply to OpenBSD(Newbie here)....
There has been approximately 14 years of development separating these two operating systems. While they have much in common, never assume what you do with one of them applies to the other.
Quote:
...So how must I enable DRI then?
In 4.3 or beyond (-current) you must set XENOCARA_BUILD_DRI=Yes and rebuild xenocara. The easiest way to do this is to set this variable in /etc/mk.conf, and follow FAQ 5 for instructions on obtaining the proper source code and build steps. It is not yet part of the standard build, and is currently unsupported. I do not know if:
  1. you have the technical skills to accomplish this, or
  2. if you actually need it.
Quote:
...I'm already using 4.3...
This is good news. You showed reluctance to do so earlier in this thread.
Quote:
...And is KDE generally unstable and buggy?
No.
Quote:
I've downloaded the packages, please tell me whether everything needed is present, and if theres any unneeded stuff present...
I have little interest in looking at an image of a list of files, but at first glance, it looks like many dependencies are missing. Here is a complete list of all packages installed when you install either all of Gnome or all of KDE (except i18n internationalizations) for 4.3. You may copy and paste as you like.

Gnome:
Code:
ORBit-0.5.13p2
ORBit2-2.14.12
alacarte-0.11.4
aspell-0.50.5p4
at-spi-1.20.1p0
atk-1.20.0p0
bzip2-1.0.4
cairo-1.4.14
cairomm-1.4.4
cdparanoia-3.a9.8p0
control-center2-2.20.3p0
curl-7.17.1
cyrus-sasl-2.1.22p2
dasher-4.6.1p0
db-4.6.21
dbus-1.0.2p2
dbus-glib-0.74
dbus-python-0.82.2p1
desktop-file-utils-0.14p1
devhelp-0.19
docbook-4.4
docbook-dsssl-1.72
eel-2.20.0p0
empathy-0.14p1
enchant-1.3.0p0
eog-2.20.4
epiphany-2.18.2p2
esound-0.2.34p1v0
evolution-data-server-1.12.1p0
fam-2.7.0p3
file-roller-2.20.3p1
gail-1.20.2p0
gcalctool-5.20.2p0
gconf2-2.20.1
gconfmm-2.20.0
gdl-0.7.9p0
gdm-2.20.2p1
gedit-2.20.4
gedit-plugins-2.20.0p1
gettext-0.16.1
ggv-2.12.0
ghex-2.20.1p0
ghostscript-8.60
ghostscript-fonts-8.11p0
glib-1.2.10p2
glib2-2.14.5
glib2mm-2.14.1p0
glitz-0.5.6p0
gnome-applets2-2.20.0p1
gnome-audio-2.0.0p0
gnome-backgrounds-2.20.0p0
gnome-build-0.2.2
gnome-desktop-2.20.3p0
gnome-devel-docs-2.20.0p0
gnome-doc-utils-0.10.3p3
gnome-icon-theme-2.20.0p2
gnome-keyring-2.21.5p1
gnome-libs-1.4.2p5
gnome-media-2.20.1p0
gnome-menus-2.20.3p2
gnome-mime-data-2.18.0p0
gnome-panel-2.20.2p2
gnome-session-2.20.3p1
gnome-terminal-2.18.4p0
gnome-themes-2.20.2p1
gnome-themes-extras-2.20p2
gnome-utils-2.20.0.1p0
gnome-vfs2-2.20.1p2
gnome-vfsmm-2.20.0p0
gnome2-user-docs-2.18.1p0
gnupg-1.4.8
gossip-0.28p0
gpgme-1.1.5
gstreamer-0.10.12p0
gstreamer-confelements-0.10.5p3
gstreamer-esd-0.10.5p1
gstreamer-plugins-base-0.10.12p0
gstreamer-plugins-good-0.10.5p2
gtar-1.19
gtk+-1.2.10p6
gtk+2-2.12.7
gtk-engines2-2.12.2p0
gtk2mm-2.12.1p0
gtksourceview-2.0.2
gucharmap-1.10.2p0
hicolor-icon-theme-0.10p1
ijs-0.35
imlib-1.9.14p6
iso-codes-1.5
iso8879-1986
jpeg-6bp3
lcms-1.15
libIDL-0.8.10
libart-2.3.20
libaudiofile-0.2.6p0
libbonobo-2.20.3p0
libbonoboui-2.20.0p0
libcroco-0.6.1
libexif-0.6.16
libgail-gnome-1.20.0p0
libgcrypt-1.2.4
libglade2-2.6.2p0
libglademm-2.6.6
libgnome-2.20.1.1p1
libgnomecanvas-2.20.1.1p0
libgnomecanvasmm-2.20.0p0
libgnomekbd-2.20.0p0
libgnomemm-2.20.0p0
libgnomeprint-2.18.4
libgnomeprintui-2.18.1p0
libgnomeui-2.20.1.1p1
libgnomeuimm-2.20.1p0
libgpg-error-1.5
libgsf-1.14.3p4
libgtkhtml-2.11.1p0
libgtop2-2.20.1
libiconv-1.9.2p5
libidn-1.1
libnotify-0.4.4p2
liboil-0.3.10p0
librsvg-2.20.0p0
libsigc++-2.0.18
libsoup-2.2.103
libtasn1-1.2
libtelepathy-0.3.1p0
libungif-4.1.4p1
libwnck-2.20.3
libxklavier-3.2p1
libxml-2.6.30
libxml1-1.8.17p2
libxslt-1.1.22
loudmouth-1.2.3p0
metacity-2.20.2p0
nautilus-2.20.0p0
nspr-4.6.8
nss-3.11.9
oaf-0.6.10p2
openldap-client-2.3.39
p5-Locale-gettext-1.05p0
pango-1.18.4
pcre-7.6
planner-0.14.2p3
png-1.2.22
popt-1.7p0
py-Numeric-23.1p2
py-cairo-1.4.0p0
py-gnome-2.20.1p0
py-gobject-2.14.0p2
py-gtk2-2.10.4p1
py-gtksourceview-2.0.0
py-libxml-2.6.30p0
py-orbit-2.14.3p2
py-vte-0.16.11p0
pymsn-0.2.2
python-2.5.2
python-expat-2.5.2
scrollkeeper-0.3.14p5
seahorse-2.20.3p1
shared-mime-info-0.23
sox-12.18.2
startup-notification-0.9
tango-icon-theme-0.8.1
telepathy-butterfly-0.1.4p0
telepathy-gabble-0.7.1
telepathy-glib-0.7.0
telepathy-mission-control-4.55
telepathy-python-0.14.0p0
tiff-3.8.2p0
unzip-5.52
vte-0.16.11p1
xscreensaver-5.04-no_gle
xulrunner-1.8.1.12
xulrunner-devel-1.8.1.12
yelp-2.18.1p3
zenity-2.20.1p0
KDE:
Code:
GraphicsMagick-1.1.11p0
ImageMagick-6.3.6.10
OpenEXR-1.2.2p3
akode-2.0.2p2
arts-1.5.8
aspell-0.50.5p4
atk-1.20.0p0
bzip2-1.0.4
cairo-1.4.14
cdparanoia-3.a9.8p0
curl-7.17.1
cyrus-sasl-2.1.22p2
db-4.6.21
desktop-file-utils-0.14p1
esound-0.2.34p1v0
faac-1.24
faad-2.0p6
fam-2.7.0p3
ffmpeg-20080118p0
flac-1.2.1
fribidi-0.10.4p0
gettext-0.16.1
ghostscript-8.60
ghostscript-fonts-8.11p0
glib-1.2.10p2
glib2-2.14.5
glitz-0.5.6p0
gmp-4.2.2
gnokii-0.6.14p6
gnupg-1.4.8
gpgme-1.1.5
gstreamer-0.10.12p0
gtk+-1.2.10p6
gtk+2-2.12.7
hicolor-icon-theme-0.10p1
ijs-0.35
imlib-1.9.14p6
imlib2-1.4.0
jasper-1.900.1
jbigkit-1.6p1
jpeg-6bp3
kdeaccessibility-3.5.8p0
kdeaddons-3.5.8p0
kdeadmin-3.5.8p0
kdeartwork-3.5.8
kdebase-3.5.8p1
kdeedu-3.5.8p0
kdegames-3.5.8p0
kdegraphics-3.5.8p3
kdelibs-3.5.8p3
kdemultimedia-3.5.8p2
kdenetwork-3.5.8p0
kdepim-3.5.8p0
kdetoys-3.5.8p0
kdeutils-3.5.8p0
kdoc-2.0a54
koffice-1.6.3p4
lame-3.96.1p2
lcms-1.15
liba52-0.7.4p2
libart-2.3.20
libaudiofile-0.2.6p0
libdvd-0.3p2
libdvdnav-20051102p2
libdvdread-0.9.7p0
libexif-0.6.16
libgcrypt-1.2.4
libglade2-2.6.2p0
libgpg-error-1.5
libgsf-1.14.3p4
libiconv-1.9.2p5
libid3tag-0.15.1bp0
libidn-1.1
libltdl-1.5.22p3
libmad-0.15.1bp1
libmal-0.44
libmng-1.0.9p1
libogg-1.1.3
libpaper-1.1.21
libpqxx-2.5.3p0
libsamplerate-0.1.2p0
libsndfile-1.0.11p0
libtheora-1.0alpha7
libungif-4.1.4p1
libusb-0.1.12
libvorbis-1.2.0
libwmf-0.2.8.3p3
libwpd-0.8.9p0
libxml-2.6.30
libxslt-1.1.22
meanwhile-1.0.2p1
mysql-client-5.0.51a
net-snmp-5.4.1p0
netpbm-10.26.46
ogle-0.9.2p2
okle-0.3p0
openldap-client-2.3.39
pango-1.18.4
pcre-7.6
pilot-link-0.12.3
png-1.2.22
poppler-0.6.2
poppler-qt-0.6.2
popt-1.7p0
postgresql-client-8.2.6
python-2.5.2
python-expat-2.5.2
qca-1.0p2
qca-tls-1.0p4
qt3-mt-3.8p0
ruby-1.8.6.111p0
sdl-1.2.13p0
speex-1.2beta2
taglib-1.4p2
tiff-3.8.2p0
transfig-3.2.4p0
unzip-5.52
wv2-0.2.3p1
x264-20070325p1
xanim-2.80.1p1
xine-lib-1.1.10.1p0
xmms-1.2.11p1
xscreensaver-5.04-no_gle
Zip-2.32

Last edited by jggimi; 26th May 2008 at 02:48 PM.
Reply With Quote
Old 26th May 2008
Shredder's Avatar
Shredder Shredder is offline
Port Guard
 
Join Date: May 2008
Location: Singapore
Posts: 22
Default

One more thing,

How do I boot directly into GUI mode, should I install KDM for this?

And after installing KDE I must add the line "exec startkde" to .xinitrc rite?

After downloading these files how do I install KDE/Gnome on OpenBSD (with CDROM mounted on /mnt/cdrom).

Last edited by Shredder; 26th May 2008 at 03:04 PM.
Reply With Quote
Old 26th May 2008
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 Shredder View Post
One more thing...
You're asking far more than more than one question.
Quote:
...How do I boot directly into GUI mode...
kdm / gdm / or xdm. I prefer xdm, since it is included in xenocara, and requires no configuration. To enable it, merely add the following line to /etc/rc.conf.local:
xdm_flags=""
Quote:
...should I install KDM for this?...
kdm is included in kdebase. If you want to use it, like gdm, you will need to configure it and add startup scripting in /etc/rc.local.
Quote:
...And after installing KDE I must add the line "exec startkde" to .xinitrc rite?
Yes, or replace whatever is already there (since you initiated this thread with Gnome questions). Note: If you are planning to use kdm/gdm/xdm, you will need to add your "exec startkde" or "exec gnome-session" to an .xsession file instead (or in addition). This is because .xinitrc is used by startx, and .xsession is used by these display managers.
Quote:
...After downloading these files how do I install KDE/Gnome on OpenBSD (with CDROM mounted on /mnt/cdrom).
Assuming all files are in the top directory of /mnt/cdrom:
# cd /mnt/cdrom
export PKG_PATH=.
pkg_add *
You need not download files in a separate step, you could use the PKG_CACHE environment variable with pkg_add to save all packages in a directory of your choosing during install, should you need them again. For example, let us presume you have copied the complete list for either Gnome or KDE into a file called "my.list", and you wanted to save all packages downloaded in a directory called "/home/Shredder/packages" you would:
# export PKG_PATH=ftp://<your nearest mirror>/pub/OpenBSD/4.3/i386/
# export PKG_CACHE=/home/Shredder/packages
# pkg_add `cat my.list`

Last edited by jggimi; 26th May 2008 at 04:26 PM. Reason: typo
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 11:34 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