@ttila wrote: ↑2021-10-08 14:27
whynot wrote: ↑2021-10-07 15:05
https://github.com/arduino/arduino-ide/ ... .0-beta.11
why do we need --no-sandbox parameter
Code: Select all
~/Downloads/arduino-ide_2.0.0-beta.11_Linux_64bit$ sudo ./arduino-ide
[6704:1007/163808.917406:FATAL:electron_main_delegate.cc(254)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
and same error
Why do you use it as root??
Code: Select all
Compilation complete.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
Code: Select all
Sketch uses 5610 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 324 bytes (3%) of dynamic memory, leaving 7868 bytes for local variables. Maximum is 8192 bytes.
--------------------------
Compilation complete.
--------------------------
upload complete.
Disconnect and reconnect to the usb port, now rechoosing /dev/ttyUSB0 instead of /dev/ttyS0
I ask myself same thing. Because with normal I couldn't make it work.And I thought I need a root privilege for udev service.I think I messed up.And some file attributes are changed
Code: Select all
whynot@Whynot:/etc/udev/rules.d$ ls -l /dev/ttyACM*
crw-rw---- 1 whynot dialout 166, 1 Oct 8 16:15 /dev/ttyACM1
whynot@Whynot:/etc/udev/rules.d$ ls -l /dev/ttyUSB*
crw-rw---- 1 whynot dialout 188, 0 Oct 8 16:16 /dev/ttyUSB0
lrwxrwxrwx 1 root root 15 Oct 8 16:16 /dev/ttyUSB1 -> bus/usb/004/008
Code: Select all
$ ls -l /etc/udev/rules.d/
total 20
-rw-r--r-- 1 root root 293 Oct 8 14:50 40-dfuse.rules
-rw-r--r-- 1 root root 170 Oct 8 14:50 90-extraacl.rules
-rw-r--r-- 1 root root 327 Oct 8 14:50 98-openocd.rules
-rw-r--r-- 1 root root 1398 Oct 8 16:10 99-arduino.rules
-rw-r--r-- 1 root root 416 Oct 8 14:50 avrisp.rules
Code: Select all
$ cat /etc/udev/rules.d/99-arduino.rules
# Arduino 101 in DFU Mode
SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
# Arduino Mega 2560 Bus 001 Device 006: ID 2341:0010 Arduino SA Mega 2560 (CDC ACM)
# Arduino UNO Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0043", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0010", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"
# FTI232 Bus 004 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
SUBSYSTEMS=="usb", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB%n"
# CH350 Bus 004 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
SUBSYSTEMS=="usb", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", SYMLINK+="ttyUSB%n"
# USBASP Bus 004 Device 005: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
#SUBSYSTEMS=="usb", ATTRS{idProduct}=="05dc", ATTRS{idVendor}=="16c0", SYMLINK+="ttyUSB%n"
# USBasp - USB programmer for Atmel AVR controllers
# Copy this file to /etc/udev/rules.d so
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0666"
Code: Select all
cat /etc/udev/rules.d/avrisp.rules
# Adding AVRisp UDEV rules
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="660", GROUP="dialout"
LABEL="avrisp_end"
Code: Select all
$ cat /etc/udev/rules.d/90-extraacl.rules
# Setting serial port rules
KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"
KERNEL=="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"
Actually I like old installation method but this time both ubuntu and debian didn't worked.
Code: Select all
$ sudo tar xvJf arduino-1.8.16-linux64.tar.xz -C /opt
$ sudo -E /opt/arduino-1.8.16/install.sh
....
...
..
$ ./arduino-linux-setup.sh whynot
******* Add User to dialout,tty, uucp, plugdev groups *******
groupadd: group 'plugdev' already exists
groupadd: group 'dialout' already exists
******* Removing modem manager *******
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjim0.79 libmbim-glib4 libmbim-proxy libqmi-glib5 libqmi-proxy usb-modeswitch
usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
modemmanager
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 4,598 kB disk space will be freed.
(Reading database ... 293285 files and directories currently installed.)
Removing modemmanager (1.14.12-0.2) ...
Created symlink /run/systemd/system/ModemManager.service → /dev/null.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Restarting udev
*********** Please Reboot your system ************