Wine installation

From Notes to self
Revision as of 20:19, 27 July 2022 by Verbovet (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • /etc/sysctl.conf:
# The Slackware default value is 98304; decreased here to avoid wine's warning
# See /usr/src/linux/Documentation/admin-guide/sysctl/vm.rst
vm.mmap_min_addr=65536
  • On headless server run Xvfb.

/etc/rc.d/rc.local:

# Start Xvfb
if [ -x /usr/X11R6/bin/Xvfb ]; then
  echo "Starting Xvfb"
  /usr/X11R6/bin/Xvfb :99 -screen 0 640x480x8 -nolisten tcp -noreset -auth /etc/Xvfb99.cfg -fbdir /tmp > /dev/null 2>&1 &
fi

/etc/rc.d/rc.local_shutdown:

# Shut down Xvfb
killall Xvfb
  • .bash_profile or /etc/profile.d/:
# (1) prevent Wine from changing the filetype associations and
#     adding menu entries and desktop links
# (2) disable mono, (3) disable gecko
WINEDLLOVERRIDES="winemenubuilder.exe,mscoree,mshtml=d"