Wine installation: Difference between revisions

From Notes to self
Jump to navigation Jump to search
Created page with "*<code>/etc/sysctl.conf</code>: <pre># The Slackware default value is 98304; decrised here to avoid wine's warning # The value 65536 is suggested by the config help for # SECU..."
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
*<code>/etc/sysctl.conf</code>:
*<code>/etc/sysctl.conf</code>:
<pre># The Slackware default value is 98304; decrised here to avoid wine's warning
<pre># The Slackware default value is 98304; decreased here to avoid wine's warning
# The value 65536 is suggested by the config help for
# See /usr/src/linux/Documentation/admin-guide/sysctl/vm.rst
# SECURITY_DEFAULT_MMAP_MIN_ADDR
vm.mmap_min_addr=65536</pre>
vm.mmap_min_addr=65536</pre>
*On headless server run <code>Xvfb</code>.
<code>/etc/rc.d/rc.local</code>:
<pre># 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</pre><code>/etc/rc.d/rc.local_shutdown</code>:
<pre># Shut down Xvfb
killall Xvfb</pre>
* <code>.bash_profile</code> or <code>/etc/profile.d/</code>:
<pre>
# (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"
</pre>
[[Category: Linux]]

Latest revision as of 20:19, 27 July 2022

  • /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"