linux_wiki:crashplan_ui_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:crashplan_ui_config [2014/11/17 21:56]
billdozor created
linux_wiki:crashplan_ui_config [2019/05/25 23:50]
Line 1: Line 1:
-====== CrashPlan UI Config ====== 
  
-**Distro(s):** All 
- 
-**Description:** 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 ]] 
- 
-<code> 
-#!/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 
-</code> 
  • linux_wiki/crashplan_ui_config.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)