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 25th April 2013
raxes raxes is offline
New User
 
Join Date: Apr 2013
Posts: 2
Default OpenBSD as a desktop

Hi all,

It's been two weeks now that I successfully moved my home little mail/sftp server on OpenBSD. I'm more than happy with it and I would like trying to use it as a desktop, but I have a few problem that I could not solve.

I should mention that I tried xfce4 only because this is what I've been using with linux for years, but I'm more than open to test other solutions should they solve my problems.

- Video
My laptop (lenovo R61i) has a nvidia card, unfortunately ! Moving windows is quite slow, resizing them litterally takes seconds. 'Xorg -configure' gave me this :
Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/OTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "dri2"
        Load  "extmod"
        Load  "glx"
        Load  "record"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "wsmouse"
        Option      "Device" "/dev/wsmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoKey"                  # <i>
        #Option     "FlatPanel"                 # [<bool>]
        #Option     "FPDither"                  # [<bool>]
        #Option     "CrtcNumber"                # <i>
        #Option     "FPScale"                   # [<bool>]
        #Option     "FPTweak"                   # <i>
        #Option     "DualHead"                  # [<bool>]
        Identifier  "Card0"
        Driver      "nv"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "DefaultRefresh"            # [<bool>]
        #Option     "ModeSetClearScreen"        # [<bool>]
        Identifier  "Card1"
        Driver      "vesa"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
I either commented the corresponding "nv" or "vesa" device code blocks, the vesa is slightly better but it's still very slow, and I can't even read a video with vlc (error is no XVideo adapter found, but I can see the first frame of the video...still this might be an unrelated problem but I didn't find anything usefull on the net. I also changed the video output in vlc config to all the available options, without success)
Did I miss something or I can't expect more with this video card?

-Mounting
I could mount fat32 USB keys but not ext3/ext4 :
Code:
# dmesg|tail
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (3e61c9a25d3c4b5e.a) swap on wd0b dump on wd0b
umass0 at uhub0 port 3 configuration 1 interface 0 "SKYMEDI USB Drive" rev 2.00/2.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd0 at scsibus3 targ 1 lun 0: <SKYMEDI, USB Drive, > SCSI2 0/direct removable
sd0: 3824MB, 512 bytes/sector, 7831552 sectors

# disklabel sd0
type: SCSI
disk: SCSI disk
label: USB Drive       
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 487
total sectors: 7831552
boundstart: 0
boundend: 7831552
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:          7831552                0  unused                   
  i:          7829504             2048  ext2fs

# /sbin/mount_ext2fs /dev/rsd0i /home/me/Desktop/moutingFolder
mount_ext2fs: /dev/rsd0i on /home/me/Desktop/moutingFolder: Block device required

-Cryptography
I have a LUKS encrypted hard drive, but from what I understand the source code is for linux only, so compiling it on openbsd won't work as far as I understand...

Well, that's about it, comments/advices appreciated !
Reply With Quote
  #2   (View Single Post)  
Old 25th April 2013
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

nvidia is garbage on OpenBSD. The only reason it works so well in Linux is because the kernel devs were willing to sign NDAs, which Theo is adamantly against.

You'd be better off with a supported Intel or ATI chipset for video.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote
  #3   (View Single Post)  
Old 25th April 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

re: Mounting ext3fs/ext4fs

You cannot mount ext4fs. Usually you can mount ext3fs as ext2fs because ext3fs is ext2fs with some features like journalling tagged on. See https://en.wikipedia.org/wiki/Ext3fs

This should do it:
# mount -o ro /dev/sd0i /mnt

If it does not please post what fdisk reports: # fdisk sd0
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 25th April 2013
raxes raxes is offline
New User
 
Join Date: Apr 2013
Posts: 2
Default

Thx for your answers.
@rocket357
If I buy an ATI card (not the lastest/most expensive ones) can I expect to run smoothly HD videos? Or to have some sort of graphical acceleration on the desktop?

@J65nko
This worked well with ext3. What does 'ro' mean? I couldn't find it in the man page of mount or mount_ext2fs.
Also, is there a specific reason there isn't automouting?
Reply With Quote
  #5   (View Single Post)  
Old 25th April 2013
thomasw_ thomasw_ is offline
Real Name: thomas
Port Guard
 
Join Date: Feb 2013
Location: kimberley
Posts: 30
Default

Michael Lucas' 2nd edition of AO gives much the same info you, J65nko, except that he instructs one to use the mount_ext2fs utility to mount ext3fs. The man page for mount_ext2fs does not state explicitly to use the utility for mounting ext3fs -- if I missed it, forgive me -- but rather leaves the subject of ext3fs undisclosed, for further research. btw, ro = readonly
Reply With Quote
  #6   (View Single Post)  
Old 25th April 2013
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

$ dmesg | grep ATI
vga1 at pci1 dev 0 function 0 "ATI Radeon HD 3450" rev 0x00

Works relatively well, not the fastest acceleration (far from it), but better than software rendering. Just don't xrandr a monitor sideways...that seems to make it painfully slow and borderline unstable.

# with monitor sideways...
$ glxgears
IRQ's not enabled, falling back to busy waits: 0 11
2160 frames in 5.0 seconds = 431.991 FPS
2191 frames in 5.0 seconds = 438.047 FPS

# monitor normal...
$ glxgears
IRQ's not enabled, falling back to busy waits: 0 11
3645 frames in 5.0 seconds = 728.989 FPS
3644 frames in 5.0 seconds = 728.665 FPS

Like I said, not even close to the best, but better than software rendering...
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.

Last edited by rocket357; 25th April 2013 at 09:23 PM.
Reply With Quote
  #7   (View Single Post)  
Old 26th April 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

For the meaning of -o ro see the mount(8) man page
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
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
Advantages of FreeBSD over OpenBSD [Desktop] EverydayDiesel FreeBSD General 38 17th May 2013 05:18 PM
New desktop computer. fossala OpenBSD General 8 18th December 2012 05:02 PM
most paranoiac pf rule set for OpenBSD desktop daemonfowl OpenBSD Security 19 27th February 2012 08:33 PM
Your Desktop OS? Carpetsmoker Off-Topic 81 13th November 2011 12:17 AM
FreeBSD KDE/GUI DESKTOP HELP rave_mystery_inc FreeBSD Installation and Upgrading 5 5th July 2008 06:18 AM


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