Skip to content

Instantly share code, notes, and snippets.

@tomterragni
Created August 10, 2022 10:49
Show Gist options
  • Select an option

  • Save tomterragni/8aaad6225b89a05493b3f55a778fce36 to your computer and use it in GitHub Desktop.

Select an option

Save tomterragni/8aaad6225b89a05493b3f55a778fce36 to your computer and use it in GitHub Desktop.
workaround for Anaconda and VNC conflict
# copy these lines AFTER the conda initialisation in your .bashrc file
# FIX CONFLICT BETWEEN ANACONDA AND VNC
# https://forums.centos.org/viewtopic.php?t=66886
if [ ! -d /home/centos/.bin/ ]; then
# echo 'folder does not exists'
mkdir /home/centos/.bin
fi
if [ ! -f /home/centos/.bin/dbus-daemon ]; then
# echo 'link does not exist'
ln -s /usr/bin/gdbus /home/centos/.bin/gdbus
ln -s /usr/bin/dbus-daemon /home/centos/.bin/dbus
ln -s /usr/bin/dbus-binding-tool /home/centos/.bin/dbus-binding-tool
ln -s /usr/bin/dbus-cleanup-sockets /home/centos/.bin/dbus-cleanup-sockets
ln -s /usr/bin/dbus-daemon /home/centos/.bin/dbus-daemon
ln -s /usr/bin/dbus-launch /home/centos/.bin/dbus-launch
ln -s /usr/bin/dbus-monitor /home/centos/.bin/dbus-monitor
ln -s /usr/bin/dbus-run-session /home/centos/.bin/dbus-run-session
ln -s /usr/bin/dbus-send /home/centos/.bin/dbus-send
ln -s /usr/bin/dbus-test-tool /home/centos/.bin/dbus-test-tool
ln -s /usr/bin/dbus-update-activation-environment /home/centos/.bin/dbus-update-activation-environment
ln -s /usr/bin/dbus-uuidgen /home/centos/.bin/dbus-uuidgen
fi
export PATH="/home/centos/.bin:$PATH"
#echo $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment