linux_wiki:crashplan_ui_config

This is an old revision of the document!


CrashPlan UI Config

General Information

Script to configure the CrashPlan UI to connect to your local system or a remote headless server running the CrashPlan service. Also fixes the GUI crash bug reported here: https://support.code42.com/CrashPlan/Latest/Troubleshooting/CrashPlan_Client_Closes_In_Some_Linux_Installations

Checklist

  • Distros: All
  • Crashplan installed

file crashplan_ui_config.sh
#!/bin/bash 
 
echo -e "====== CrashPlan UI Configuration =====\n"
 
echo -e "Use CrashPlan UI to connect to:"
echo -e "1) Local system"
echo -e "2) Remote headless system"
echo -e "3) Fix UI Crash Bug"
echo -e "q) Quit"
echo -e "\nSelection:\c"
 
read SYSTEM
 
case $SYSTEM in
 
  1)
  # Configure for local
  echo -e "\n>>Configuring for Local system"
  sed -i "s|servicePort=4200|#servicePort=4243|" /usr/local/crashplan/conf/ui.properties
  echo -e "...Complete. CrashPlan UI ready for local system.\n"
  exit 0
  ;;
 
  2)
  #Configure for remote
  echo -e "\n>>Configuring for Remote System"
  echo -e "IP/Hostname of Remote system to connect to: \c"
  read REMOTESYSTEM
 
  echo -e "Username on Remote System: \c"
  read REMOTEUSER
 
  echo -e "Login via ssh below, then launch CrashPlanDesktop from non-ssh session on local system.\n"
  echo -e "\nOpening SSH connection to remote system..."
 
  sed -i "s|#servicePort=4243|servicePort=4200|" /usr/local/crashplan/conf/ui.properties
  ssh -L 4200:localhost:4243 $REMOTEUSER@$REMOTESYSTEM
  ;;
 
  3)
  #Fix UI Crashing
  echo -e "\n>>Adding '-Dorg.eclipse.swt.browser.DefaultType=mozilla' to /usr/local/crashplan/bin/run.conf..."
  sed -i "/GUI_JAVA_OPTS/D" /usr/local/crashplan/bin/run.conf
  echo 'GUI_JAVA_OPTS="-Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -Dorg.eclipse.swt.browser.DefaultType=mozilla"' >> /usr/local/crashplan/bin/run.conf
  echo -e "...Done."
  exit 0
  ;;
 
  q)
  #Quit
  echo -e "Quiting without making changes.\n"
  exit 0
  ;;
 
  *)
  #Unknwon response, quit
  echo -e "Invalid selection...quiting.\n"
  exit 1
  ;;
esac
  • linux_wiki/crashplan_ui_config.1425952921.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)