Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

install.sh only creates a shortcut, doesn't actually install the IDE #5366

Closed
Labels
OS: LinuxSpecific to the Linux version of the Arduino IDE
@ThellraAK

Description

I was trying to get arduino working from the terminal when I realized

trying to call arduino from terminal only resulted in a message saying it isn't currently installed

~/arduino-1.6.11⟫ arduino
The program 'arduino' is currently not installed. You can install it by typing:
sudo apt install arduino

When you do it with ./ it works (other than the problem with X stuff)

~/arduino-1.6.11⟫ ./arduino
Picked up JAVA_TOOL_OPTIONS: 
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
 at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:117)
 at processing.app.Base.<clinit>(Base.java:92)`

Even when I ran the install script

~/arduino-1.6.11⟫ sudo ./install.sh
Adding desktop shortcut, menu item and file associations for Arduino IDE... done!
~/arduino-1.6.11⟫ arduino
The program 'arduino' is currently not installed. You can install it by typing:
sudo apt install arduino

I also did this without the sudo and got the same results.

The workaround I found is adding the ./ into the script provided by this manpage

#!/bin/bash
Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
xvfb="$!"
DISPLAY=:1 ./arduino "$@"
kill -9 $xvfb`

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: LinuxSpecific to the Linux version of the Arduino IDE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /