diff --git a/README.md b/README.md index 81d85eb..7d0636c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CarHacking.Tools -CarHacking.Tools is a scripts collection of scripts to help jump start car research (and hacking?). All the scripts are designed to run on [Ubuntu 20.04](ubuntu.com). +CarHacking.Tools is a scripts collection of scripts to help jump start car research (and hacking?). All the scripts are designed and update to run on [Ubuntu 20.04](ubuntu.com). ## How To Install @@ -59,7 +59,6 @@ The following tools are installed and configured automatically: | Python-OBD | | Use over PIP install. | | SavvyCAN | | Basic CAN tool. | | Scantool | | Super old tool but still works. | -| Socketcand | | Basic CAN tool. | | UDSim | | Basic simulator for testing without a car. | | Wireshark | | Great for capturing OBDII data just like you would ethernet data. | diff --git a/toolinstall.sh b/toolinstall.sh index 7e1e66d..2621374 100644 --- a/toolinstall.sh +++ b/toolinstall.sh @@ -17,7 +17,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y # Java Fixes -add-apt-repository -y ppa:linuxuprising/java +sudo add-apt-repository -y ppa:linuxuprising/java echo debconf shared/accepted-oracle-license-v1-2 select true | sudo debconf-set-selections echo debconf shared/accepted-oracle-license-v1-2 seen true | sudo debconf-set-selections @@ -88,9 +88,6 @@ wget \ wireshark \ zlib1g-dev -#Python Pip -sudo python -m pip uninstall pip # this might need sudo -sudo apt install --reinstall python-pip # Starting Car Hacking Tool Installation @@ -128,7 +125,7 @@ cd .. || exit # Caringcaribou # Read The Docs Here: https://github.com/CaringCaribou/caringcaribou -pip install --user python-can +pip3 install --user python-can git clone https://github.com/CaringCaribou/caringcaribou # c0f @@ -170,124 +167,13 @@ cd .. || exit # Python-ODB # Read The Docs Here: https://python-obd.readthedocs.io/en/latest/ -pip install --user pySerial - -git clone https://github.com/brendan-w/python-OBD -cd python-OBD || exit -sudo python setup.py install -cd .. || exit - - -# PyOBD: -# Fix This! -# Backup: git clone https://github.com/Pbartek/pyobd-pi.git -wget http://www.obdtester.com/download/pyobd_0.9.3.tar.gz -sudo tar -xzvf pyobd_0.9.3.tar.gz -sudo rm -rf pyobd_0.9.3.tar.gz - -# SavvyCAN -# Read The Docs Here: https://github.com/collin80/SavvyCAN - -# Start With QT: -mkdir -p QT -cd QT || exit -cat << EOF > qt-noninteractive-install-linux.qs -function Controller() { - installer.autoRejectMessageBoxes(); - installer.installationFinished.connect(function() { - gui.clickButton(buttons.NextButton); - }) - installer.setMessageBoxAutomaticAnswer("cancelInstallation", QMessageBox.Yes); -} -Controller.prototype.WelcomePageCallback = function() { - gui.clickButton(buttons.NextButton, 3000); -} -Controller.prototype.CredentialsPageCallback = function() { - var widget = gui.currentPageWidget(); - widget.loginWidget.EmailLineEdit.setText(""); - widget.loginWidget.PasswordLineEdit.setText(""); - gui.clickButton(buttons.NextButton, 500); -} -Controller.prototype.IntroductionPageCallback = function() { - gui.clickButton(buttons.NextButton); -} -Controller.prototype.TargetDirectoryPageCallback = function() -{ - var widget = gui.currentPageWidget(); - if (widget != null) { - widget.TargetDirectoryLineEdit.setText("/opt/QT"); - } - gui.clickButton(buttons.NextButton); -} -Controller.prototype.ComponentSelectionPageCallback = function() { - var widget = gui.currentPageWidget(); - function trim(str) { - return str.replace(/^ +/,"").replace(/ *$/,""); - } - var packages = trim("qt.qt5.5111.gcc_64,qt.qt5.5111.qtwebengine,qt.qt5.5111.qtwebengine.gcc_64").split(","); - if (packages.length > 0 && packages[0] !== "") { - widget.deselectAll(); - for (var i in packages) { - var pkg = trim(packages[i]); - widget.selectComponent(pkg); - } - } - gui.clickButton(buttons.NextButton); -} -Controller.prototype.LicenseAgreementPageCallback = function() { - gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true); - gui.clickButton(buttons.NextButton); -} -Controller.prototype.StartMenuDirectoryPageCallback = function() { - gui.clickButton(buttons.NextButton); -} -Controller.prototype.ReadyForInstallationPageCallback = function() -{ - gui.clickButton(buttons.NextButton); -} -Controller.prototype.FinishedPageCallback = function() { - var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm - if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) { - checkBoxForm.launchQtCreatorCheckBox.checked = false; - } - gui.clickButton(buttons.FinishButton); -} -EOF - -wget http://qt.mirrors.tds.net/qt/archive/online_installers/4.0/qt-unified-linux-x64-4.0.0-online.run -chmod +x qt-unified-linux-x64-4.0.0-online.run - -echo "Installing Qt, this will take a while." -echo " - Ignore warnings about QtAccount credentials and/or XDG_RUNTIME_DIR." -echo " - Do not click on any Qt setup dialogs, it is controlled by a script." -sudo ./qt-unified-linux-x64-4.0.0-online.run --script qt-noninteractive-install-linux.qs -cd .. || exit - -# SavvyCan Install -git clone https://github.com/collin80/SavvyCAN.git -cd SavvyCAN || exit -sudo /opt/QT/5.11.1/gcc_64/bin/qmake -sudo make -sudo make install -sudo ./install -cd .. || exit - +pip3 install --user pySerial +pip3 install --user obd # Scantool # Read The Docs Here: https://samhobbs.co.uk/2015/04/scantool-obdii-car-diagnostic-software-linux sudo DEBIAN_FRONTEND=noninteractive apt-get install -y scantool -# Socketcand -# Read The Docs Here: https://github.com/dschanoeh/socketcand -git clone http://github.com/dschanoeh/socketcand.git -cd socketcand || exit -autoconf -./configure --without-config - make clean -make -sudo make install -cd .. || exit - # UDSim # Read The Docs Here: https://github.com/zombieCraig/UDSim git clone https://github.com/zombieCraig/UDSim @@ -356,7 +242,7 @@ Categories=Utility StartupNotify=false EOF -wget https://www.vhv.rs/dpng/d/457-4576489_kayak-white-kayak-icon-png-transparent-png.png -O kayak.png +wget http://www.vhv.rs/dpng/d/457-4576489_kayak-white-kayak-icon-png-transparent-png.png -O kayak.png cat << EOF > KayakInstall.desktop [Desktop Entry] @@ -384,7 +270,6 @@ Categories=Utility StartupNotify=false EOF -sudo rm ~/Desktop/SavvyCAN.desktop sleep 15 sudo chmod 755 ./*.desktop cp ./*.desktop ~/.local/share/applications