Skip to content
Rob Nagler edited this page Aug 26, 2019 · 14 revisions

How to use and install COMSOL

We are running COMSOL 54 on our comsol server.

COMSOL install

Download the COMSOL tarball and License.dat file into /root. Install:

umask 022
# rsconf doesn't handle this properly yet
chmod 755 /usr/local
groupadd -g 525 comsol
useradd -s /sbin/nologin -M -d /srv/lmcomsol -g 525 -u 525 comsol
yum install -y webkitgtk redhat-lsb-core xorg-x11-xauth libXtst tigervnc-server gnome-classic-session gnome-terminal
mount /usr/local/src/COMSOL53a_dvd.iso /mnt
# NOTE: user to run license manager: comsole:comsol
umask 022; bash /mnt/setup
umount /mnt
install -d -o comsol -g comsol /srv/lmcomsol /srv/comsol /srv/comsol/tmp
# remove existing lmcomsol service
systemctl stop lmcomsol
systemctl disable lmcomsol
systemctl 
From hand/ directory:
install -m 644 -o root -g root comsol.service /etc/systemd/system/comsol.service
install -m 644 -o root -g root lmcomsol.service /etc/systemd/system/lmcomsol.service
install -m 500 -o comsol -g comsol start /srv/comsol/start
systemctl start lmcomsol
systemctl enable lmcomsol
systemctl status lmcomsol
systemctl start comsol
systemctl enable comsol
systemctl status comsol

To setup a user:

su - someuser
mkdir .vnc
vncpasswd
cat > .vnc/config <<'EOF'
localhost
rfbport=XYZ
geometry=1600x900
nolisten=tcp
EOF
chmod 600 .vnc/config
vncserver
ln -s /usr/local/comsol52a/multiphysics/bin/glnxa64/comsol .local/share/applications/comsol
# Drag Applications > Education > comsol to Desktop

Install Errors

If you see this, verify X11 is working (xset -q). Sometimes the tunnel doesn't work and you have to relogin:

# umask 022; bash /mnt/setup
Extracting temporary COMSOL installer components in /tmp...

(Setuplauncher:32917): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(Setuplauncher:32917): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(Setuplauncher:32917): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(Setuplauncher:32917): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed

(Setuplauncher:32917): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(Setuplauncher:32917): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed

(Setuplauncher:32917): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
Clone this wiki locally