Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Last active July 3, 2024 03:16
Show Gist options
  • Save lidgnulinux/41bb6473a34bd4f1fa6b00f19b6683ee to your computer and use it in GitHub Desktop.
Save lidgnulinux/41bb6473a34bd4f1fa6b00f19b6683ee to your computer and use it in GitHub Desktop.
Post-installation guide openbsd.

Openbsd post-installation guide.

  • Boot openbsd from linux's grub.

    We can boot openbsd via linux's grub. These are how we can boot openbsd via linux's grub :

    • Enter grub !

    • Press "c" to enter grub shell !

    • List all partitions using ls command !

    • Because I install openbsd at /dev/sda1, so my partition will be shown as "hd0,msdos1".

    • set root for our openbsd partition !

      set root=(hd0,msdos1)
      
    • Run chainloader command !

      chainloader +1
      
    • Run boot command to boot our openbsd system !

      boot
      

  • Using particular / specific connection.

    file : /etc/hostname.if

    nwid your_connection wpakey your_password
    inet autoconf
    

    Note : we need to check our interface first, we can use ifconfig command.


  • Enable tap-to-click touchpad and reduce (possibly) lag touchpad.

    file : /etc/wsconsctl.conf

    mouse.tp.tapping=1
    

    For xorg, we can use libinput. We can make a configuration file at /etc/X11/xorg.conf.d/. Let's name it as 40-libinput.conf

    Section "InputClass"
            Identifier "libinput touchpad catchall"
            Driver "libinput"
            MatchIsTouchpad "on"
    	Option "Tapping" "on"
    ## This option is recommend on all Linux systems using evdev, but cannot be
    ## enabled by default. See the following link for details:
    ## http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
            MatchDevicePath "/dev/input/event*"
    EndSection
    

  • List all partitions.

    $ doas lsblk
    

  • Mount ntfs partition.

    $ doas mount -t ntfs /dev/your_ntfs_partition /mnt/dir
    
    • mount as RW / Read-Write.
    $ doas ntfs-3g /dev/your_ntfs_partition /mnt/dir
    
    • note : it's possible if our NTFS partition will be shown as extfs when we format it from Linux using mkfs.ntfs. We still can mount it as NTFS partition.

  • Check sound (output & input level).

    $ sndioctl
    

    • Set output level to 50%.
    $ sndioctl output.level=0.5
    

    • Set input level to 30%.
    $ sndioctl input.level=0.3
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment