Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on automatic install (i2c, start up, desktop, ...) #3159

Closed
Gokujo opened this issue Oct 15, 2019 · 18 comments
Closed

Issues on automatic install (i2c, start up, desktop, ...) #3159

Gokujo opened this issue Oct 15, 2019 · 18 comments

Comments

@Gokujo
Copy link

Gokujo commented Oct 15, 2019

Required Information

  • DietPi version | 6.25.3
  • Distro version | 9.11
  • Kernel version | Linux JAS-TT 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
  • SBC device | RPi 3 Model B+ (armv7l)
  • Power supply used | 5.1V 2.5A
  • SDcard used | SanDisk / Intenso

Additional Information (if applicable)

I use automatic install and config on first start up. Therefore I used version 6.21. So I had to rollback.
This is the dietpi.txt

# IMPORTANT:
# - This is intended for advanced users, unless you know what you are doing, do not edit this file. Please use the DietPi programs instead.
# - Modifications to /boot/dietpi.txt will not be preserved on reboot.
# - Please ensure you edit from the DietPi-RAMdisk location: /DietPi/dietpi.txt
# - Do not remove uncommented lines, as the items are scraped by DietPi programs, on demand.

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# DietPi-Automation settings, applied on first boot of DietPi only, ONCE!
#------------------------------------------------------------------------------------------------------
##### Language/Regional Options #####
# Locale: eg: "en_GB.UTF-8" / "de_DE.UTF-8" | One entry and UTF-8 ONLY!
AUTO_SETUP_LOCALE=de_DE.UTF-8

# Keyboard Layout eg: "gb" / "us" / "de" / "fr"
AUTO_SETUP_KEYBOARD_LAYOUT=de

# Timezone eg: "Europe/London" / "America/New_York" | Full list (TZ*): https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
AUTO_SETUP_TIMEZONE=Europe/Berlin

##### Networking Options #####
# Enable Ethernet or WiFi adapter: 1=enable | 0=disable
# - If both Ethernet and WiFi are enabled, WiFi will take priority and Ethernet will be disabled. 
# - If using WiFi, please edit dietpi-wifi.txt to pre-enter credentials.
AUTO_SETUP_NET_ETHERNET_ENABLED=1
AUTO_SETUP_NET_WIFI_ENABLED=0

# Force ethernet speeds: 0=automatic speed | 10 = 10Mbit | 100 = 100Mbit etc
# - This is mainly aimed at Pine A64 which may have an HW issue that causes unstable 1Gbit link.
AUTO_SETUP_NET_ETH_FORCE_SPEED=0

# Enter your Static Network details below, if applicable.
AUTO_SETUP_NET_USESTATIC=0
AUTO_SETUP_NET_STATIC_IP=192.168.0.100
AUTO_SETUP_NET_STATIC_MASK=255.255.255.0
AUTO_SETUP_NET_STATIC_GATEWAY=192.168.0.1
AUTO_SETUP_NET_STATIC_DNS=8.8.8.8

# Hostname
AUTO_SETUP_NET_HOSTNAME=JAS-TT

##### Misc Options #####
# Swapfile size to generate: 0=disable | 1=auto (2GB-RAM = size) | 2+=manual (MB)
AUTO_SETUP_SWAPFILE_SIZE=1
# Swapfile location
AUTO_SETUP_SWAPFILE_LOCATION=/var/swap

# Disable HDMI output (and GPU/VPU where supported) for supported devices: RPi, Odroid C1, Odroid C2
AUTO_SETUP_HEADLESS=0

# Unmask (enable) systemd-logind service, which is masked by default on DietPi
AUTO_UNMASK_LOGIND=0

# Custom Script (pre-networking and pre-DietPi install)
# - Allows you to automatically execute a custom script before network is up on first boot.
# - Copy your script to /boot/Automation_Custom_PreScript.sh and it will be executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_prescript.log

# Custom Script (post-networking and post-DietPi install)
# - Allows you to automatically execute a custom script at the end of DietPi install.
# - Option 0 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically.
# - Option 1 = Host your script online, then use e.g. AUTO_SETUP_CUSTOM_SCRIPT_EXEC=http://myweb.com/myscript.sh and it will be downloaded and executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_script.log
AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0

##### Software Options #####
# SSH Server Selection: 0=none/custom | -1=Dropbear | -2=OpenSSH
AUTO_SETUP_SSH_SERVER_INDEX=-2

# File Server Selection: 0=none/custom | -1=ProFTP | -2=Samba
AUTO_SETUP_FILE_SERVER_INDEX=0

# Logging Mode Selection: 0=none/custom | -1=RAMlog 1h clear | -2=RAMlog 1h save clear | -3=rsyslog + logrotate
AUTO_SETUP_LOGGING_INDEX=-1
# RAMlog max tmpfs size (MB). 50MB should be fine for single use. 200MB+ for heavy webserver and access log etc.
AUTO_SETUP_RAMLOG_MAXSIZE=200

# Webserver Preference Selection: 0=Apache2 | -1=Nginx | -2=Lighttpd
# - This will be ignored if you have manually selected any webserver stack.
AUTO_SETUP_WEB_SERVER_INDEX=0

# DietPi-Autostart: 0=Console | 7=Console autologin | 1=Kodi | 2=Desktop autologin | 16=Desktop | 3=RetroPie | 4=OpenTyrian | 5=DietPi-Cloudshell | 6=Uae4ARM fastboot | 8=Uae4ARM standard boot | 9=DDX-Rebirth | 10=CAVA Spectrum | 11=Chromium kiosk | 14=Custom autostart service
# - This will be effective on 2nd boot, after firstrun update and installs have been done.
# - Related software titles must be installed either on firstrun installs or via AUTO_SETUP_AUTOMATED=1 + AUTO_SETUP_INSTALL_SOFTWARE_ID (see below).
AUTO_SETUP_AUTOSTART_TARGET_INDEX=2
# Autologin user name
# - This user must exist before firstrun installs, otherwise it will be reverted to root.
# - Applies to all autostart options but: 0, 6, 14 and 16
AUTO_SETUP_AUTOSTART_LOGIN_USER=root

##### Non-interactive Firstrun Setup #####
# On first login, run update, initial setup and software installs without any user input
# - Setting this to "1" is required for below settings to take effect
# - It is HIGHLY recommended to also set CONFIG_BOOT_WAIT_FOR_NETWORK=2, to force infinite wait for network connection during boot and prevent connection timeout errors.
AUTO_SETUP_AUTOMATED=1

# Global Password to be applied for the system
# - Affects user "root" and "dietpi" login passwords, and, all software installed by dietpi-software, that requires a login password
# - WARN: Passwords with any of the following characters are not supported: \"$
AUTO_SETUP_GLOBAL_PASSWORD=dietpi

# Software to automatically install
# - List of available software IDs: https://github.com/MichaIng/DietPi/wiki/DietPi-Software-list
# - Add as many entries as you wish, one each line, without the leading "#".
# - DietPi will automatically install all pre-reqs (eg: ALSA/XSERVER for desktops etc)
# - Examples:
AUTO_SETUP_INSTALL_SOFTWARE_ID=0 #openssh client
AUTO_SETUP_INSTALL_SOFTWARE_ID=5 #alsa: linux sound system
AUTO_SETUP_INSTALL_SOFTWARE_ID=6 #xserver: linux display system
AUTO_SETUP_INSTALL_SOFTWARE_ID=16 #build-essentials: common packages for compile
AUTO_SETUP_INSTALL_SOFTWARE_ID=17 #git client: git clone etc
AUTO_SETUP_INSTALL_SOFTWARE_ID=24 #mate: desktop enviroment
AUTO_SETUP_INSTALL_SOFTWARE_ID=28 #vnc4 server: desktop for remote connection
AUTO_SETUP_INSTALL_SOFTWARE_ID=29 #xrdp: remote desktop protocol (rdp) server
#AUTO_SETUP_INSTALL_SOFTWARE_ID=69 #rpi.gpio: gpio interface library for rpi (python)
#AUTO_SETUP_INSTALL_SOFTWARE_ID=72 #i2c
AUTO_SETUP_INSTALL_SOFTWARE_ID=103 #dietpi-ramlog: minimal, optimized logging
AUTO_SETUP_INSTALL_SOFTWARE_ID=105 #openssh server: feature rich ssh server
AUTO_SETUP_INSTALL_SOFTWARE_ID=113 #chromium: web browser for desktop or autostart
AUTO_SETUP_INSTALL_SOFTWARE_ID=120 #realvnc server: desktop for remote connection

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# Misc DietPi program settings
#------------------------------------------------------------------------------------------------------
# DietPi-Survey: 1=opt in | 0=opt out | -1=ask on first call
# - https://dietpi.com/phpbb/viewtopic.php?p=34#p34
SURVEY_OPTED_IN=-1

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# DietPi-Config settings
#------------------------------------------------------------------------------------------------------
# CPU Governor: ondemand | powersave | performance | conservative
CONFIG_CPU_GOVERNOR=ondemand
CONFIG_CPU_USAGE_THROTTLE_UP=50

# CPU Frequency Limits: Disabled=disabled
# - Intel CPUs use a percentage value (%) from 0-100, eg: 55
# - All other devices must use a specific MHz value, eg: 1600
CONFIG_CPU_MAX_FREQ=Disabled
CONFIG_CPU_MIN_FREQ=Disabled

# Disable Intel-based turbo/boost stepping. This flag should not be required, setting <100% MAX frequency should disable Turbo on Intel CPUs.
CONFIG_CPU_DISABLE_TURBO=0

# Sampling Rate: Min value 10000 microseconds (10ms)
CONFIG_CPU_ONDEMAND_SAMPLE_RATE=25000

# Sampling Down Factor: Samling rate * down factor / 1000 = Milliseconds (40 = 1000ms when sampling rate is 25000)
CONFIG_CPU_ONDEMAND_SAMPLE_DOWNFACTOR=80

# System-wide proxy settings
# - Do not modify, you must use dietpi-config > "Network Options: Adapters" to apply
CONFIG_PROXY_ADDRESS=MyProxyServer.com
CONFIG_PROXY_PORT=8080
CONFIG_PROXY_USERNAME=
CONFIG_PROXY_PASSWORD=

# Delay boot until network is established: 0=disabled | 1=10 second wait max (default) | 2=infinite wait
CONFIG_BOOT_WAIT_FOR_NETWORK=1

# Connection timeout, before DietPi G_CHECK_URL assumes the URL is dead. Increase if you have a "flaky" connection or slow DNS resolver.
# - Set this to "0" to allow unlimited time, however this is not recommended to avoid unlimited hanging background scripts, e.g. daily DietPi update check.
CONFIG_G_CHECK_URL_TIMEOUT=5
# Connection attempts with above timeout each, before DietPi G_CHECK_URL is giving up and prompts an error.
# - Set this to "0" to disable URL checking completely, however this is not recommended to avoid harder to debug follow-up errors during APT and download attempts.
CONFIG_G_CHECK_URL_ATTEMPTS=3

# DietPi checks for updates: Allows DietPi to check for updates on a daily basis and boot using a <1kb file download.
CONFIG_CHECK_DIETPI_UPDATES=1
# Optional: Automatically update DietPi when updates are available. Requires: CONFIG_CHECK_DIETPI_UPDATES=1
CONFIG_AUTO_DIETPI_UPDATES=0

# Network time sync: 0=disabled | 1=boot only | 2=boot + daily | 3=boot + hourly | 4=Daemon + Drift
CONFIG_NTP_MODE=2

# WiFi country code: 2 character value (eg GB US DE JP): https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
CONFIG_WIFI_COUNTRY_CODE=DE

# Serial Console: Set to 0 if you do not require serial console.
CONFIG_SERIAL_CONSOLE_ENABLE=1

# Soundcard
CONFIG_SOUNDCARD=none

# LCD Panel addon
# - Do not modify, you must use dietpi-config to configure/set options
CONFIG_LCDPANEL=none

# IPv6
CONFIG_ENABLE_IPV6=0

# Prefer IPv4 with APT and wget, NB: This has no effect if IPv6 is disabled anyway!
CONFIG_PREFER_IPV4=1

# APT mirrors which are applied to /etc/apt/sources.list | Values here will also be applied during 1st run setup
# - Raspbian: https://www.raspbian.org/RaspbianMirrors
CONFIG_APT_RASPBIAN_MIRROR=http://raspbian.raspberrypi.org/raspbian/
# - Debian: https://www.debian.org/mirror/official#list
CONFIG_APT_DEBIAN_MIRROR=https://deb.debian.org/debian/

# NTP mirror, applied to /etc/ntp.conf
# - For a full list, please see: http://www.pool.ntp.org
# - Please remove the initial integer and full stop from the value (removing "0."), eg: debian.pool.ntp.org
CONFIG_NTP_MIRROR=debian.pool.ntp.org

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# DietPi-Software settings
#------------------------------------------------------------------------------------------------------
# Enter your EmonCMS.org write API key here. It will be applied automatically during EmonPi/Hub install.
# - Eg: SOFTWARE_EMONHUB_APIKEY=b4dfmk2o203mmxx93a
SOFTWARE_EMONHUB_APIKEY=

# VNC Server options
SOFTWARE_VNCSERVER_WIDTH=1280
SOFTWARE_VNCSERVER_HEIGHT=720
SOFTWARE_VNCSERVER_DEPTH=16
SOFTWARE_VNCSERVER_DISPLAY_INDEX=1
SOFTWARE_VNCSERVER_SHARE_DESKTOP=0

# Optional username for ownCloud/Nextcloud admin account, the default is 'admin'. Applied during install.
SOFTWARE_OWNCLOUD_NEXTCLOUD_USERNAME=admin

# Optional data directory for ownCloud/Nextcloud, default is '/mnt/dietpi_userdata/owncloud_data' respectively '/mnt/dietpi_userdata/nextcloud_data'. Applied during install.
# - This option is for advanced users. For full compatibility, please keep this options defaults, and, use dietpi-drive_manager to move the DietPi user data location.
SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data
SOFTWARE_NEXTCLOUD_DATADIR=/mnt/dietpi_userdata/nextcloud_data

# WiFi Hotspot
SOFTWARE_WIFI_HOTSPOT_SSID=DietPi-HotSpot
# - Key requires a minimum of 8 characters
SOFTWARE_WIFI_HOTSPOT_KEY=dietpihotspot
SOFTWARE_WIFI_HOTSPOT_CHANNEL=3

# X.org options
# - DPI 96(default) 120(+25%) 144(+50%) 168(+75%) 192(+100%)
SOFTWARE_XORG_DPI=96

# Chromium options
SOFTWARE_CHROMIUM_RES_X=1280
SOFTWARE_CHROMIUM_RES_Y=720
SOFTWARE_CHROMIUM_AUTOSTART_URL=https://dietpi.com

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# Dev settings
#------------------------------------------------------------------------------------------------------
DEV_GITBRANCH=master
DEV_GITOWNER=MichaIng

#------------------------------------------------------------------------------------------------------
# D I E T - P I
# Settings, automatically added by dietpi-update
#------------------------------------------------------------------------------------------------------

Issues

  • After installation I have to connect hardware keyboard to RPi to enter to next screen because of agreement screen (I have to agree with Putty and reboot then)
  • All icons on desktop (Mate) disappeared (I tried to create new one but nothing happend)
  • After reboot device stucks on i2c /dev entries... (reboot doesn't help) or it timed out to connect to TT0(tty) devices (it takes to long to start) and sometimes on Apache server
  • I noticed that menu with hardware clock disappered
  • when I activate wifi in autoinstall (set it to 1) it can't connect to network
  • during installation config file ignores CONFIG_AUTO_DIETPI_UPDATES, like I said I used older version (6.21.1) and it did an autoupdate which caused fails during install (but issue with desktop dissapear)
  • keyboard setting don't apply

I tried to switch raspberries, sd cards and disable some options during autoinstall

@MichaIng
Copy link
Owner

MichaIng commented Oct 15, 2019

@Gokujo
Many thanks for your report.

Therefore I used version 6.21. So I had to rollback.

Why you needed to use v6.21? Please always use the current most current image, which is currently v6.25.3. If anything goes wrong with this, we'll going to investigate, but I don't gonna check first boot issues with older versions if there is a newer image available, please understand that.

What is probably the issue in your case, is that you used the current dietpi.txt with an older DietPi version. Note that we change those settings by times, so when using whichever image, use the contained default dietpi.txt as well and not the one for current versions. But as said, just the most current version, especially if you face issues with the older one.

@Gokujo
Copy link
Author

Gokujo commented Oct 15, 2019

Why you needed to use v6.21?

because of issues. I had configs for that version and an image

Note that we change those settings by times

I noticed that. it were a lot of config text so I didn't copied old config here. the new one was made extra for the actual version

@MichaIng
Copy link
Owner

@Gokujo

because of issues. I had configs for that version and an image

Please report the issues you faced with the current version then, that is more productive then investing time in outdated versions that are not relevant/present on current version anymore 😉.

@Gokujo
Copy link
Author

Gokujo commented Oct 15, 2019

Please report the issues you faced with the current version then, that is more productive then investing time in outdated versions that are not relevant/present on current version anymore

  • After installation I have to connect hardware keyboard to RPi to enter to next screen because of agreement screen (I have to agree with Putty and reboot then)
  • All icons on desktop (Mate) disappeared (I tried to create new one but nothing happend)
  • After reboot device stucks on i2c /dev entries... (reboot doesn't help) or it timed out to connect to TT0(tty) devices (it takes to long to start) and sometimes on Apache server
  • I noticed that menu with hardware clock disappered
  • when I activate wifi in autoinstall (set it to 1) it can't connect to network
  • during installation config file ignores CONFIG_AUTO_DIETPI_UPDATES, like I said I used older version (6.21.1) and it did an autoupdate which caused fails during install (but issue with desktop dissapear)
  • keyboard settings don't apply

@MichaIng
Copy link
Owner

MichaIng commented Oct 15, 2019

@Gokujo

After installation I have to connect hardware keyboard to RPi to enter to next screen because of agreement screen (I have to agree with Putty and reboot then)

Jep this is expected. When doing automated first run installs, the license agreement is skipped and delayed until the first login. I see now that you enabled desktop auto login and of course it is not 100% automatic then on very first login because of agreement. However a desktop login most likely is for interactive use anyway? Or did you setup some automation that starts something from the desktop on login so that you don't need a keyboard anymore?

All icons on desktop (Mate) disappeared (I tried to create new one but nothing happend)

Do you login as root or with another user? Will try to replicate. In case of custom user it is expected, however not great, indeed. Perhaps we can automatically create desktop items for non-root users that are chosen for auto login.

After reboot device stucks on i2c /dev entries... (reboot doesn't help) or it timed out to connect to TT0(tty) devices (it takes to long to start) and sometimes on Apache server

Please paste either some picture of the screen, or if boot finally succeeds, paste the related syslog entries: journalctl

I noticed that menu with hardware clock disappered

Jep that is hidden now if the device does not even have an RTC connector: https://github.com/MichaIng/DietPi/blob/dev/dietpi/dietpi-config#L1310
The RPi simply requires fake-hwclock to not have 1970s system clock on boot, so no need to allow removing it from our menus. If you somehow manage to attach one via GPIO interfaces or such, then hwclock command must succeed for the system to use it, and then you will also see the menu entry again in dietpi-config.

when I activate wifi in autoinstall (set it to 1) it can't connect to network

Did you verify that dietpi-wifi.txt contains all required credentials? Does it work well if you set it up after first boot via dietpi-config?

during installation config file ignores CONFIG_AUTO_DIETPI_UPDATES, like I said I used older version (6.21.1) and it did an autoupdate which caused fails during install (but issue with desktop dissapear)

Note that the current image is as well the most current stable version. So there is no update available, hence non applied on first boot 😉. As well note that CONFIG_AUTO_DIETPI_UPDATES is not required to have an update on first boot. This is always done. This setting is to automatically apply updates, if available, during daily update check via cron job. However I am no fans of this setting, actually planned to remove it, since our updates by times contain interactive components that I simply want users to recognise.

keyboard settings don't apply

Jep known Debian bug, workaround implemented with v6.26. Please run setupcon --save after changing keyboard layout. However I will as well push v6.26 release today.

@Gokujo
Copy link
Author

Gokujo commented Oct 15, 2019

Or did you setup some automation that starts something from the desktop on login so that you don't need a keyboard anymore?

it's the point, I just insert a burned imaged and let it install. then with help of git I install my app

Do you login as root or with another user?

as root

Did you verify that dietpi-wifi.txt contains all required credentials? Does it work well if you set it up after first boot via dietpi-config?

yes, this file have data for connection. after install I have to activate wifi module

actually planned to remove it

if you do this how can I get the information what changed in dietpi.txt, config.txt and dietpi-wifi.txt?

@Gokujo
Copy link
Author

Gokujo commented Oct 15, 2019

journalctl you can find here
https://pastebin.com/qg4unFef

@MichaIng
Copy link
Owner

@Gokujo

Okt 15 16:09:24 JAS-TT3 systemd[1]: Starting Show Plymouth Boot Screen...

But this is from an old image, isn't it? Because the new image does not come with plymouth pre-installed as it is known to cause strange boot hangs and "wait for..." messages for some reason. Or did you manually install and enable plymouth splash screen?

Okt 15 16:09:27 JAS-TT3 systemd[1]: Started ifup for eth0.
Okt 15 16:09:27 JAS-TT3 systemd[1]: Starting Raise network interfaces...
Okt 15 16:09:27 JAS-TT3 systemd[1]: Started ifup for wlan0.

Both, Ethernet and WiFi are enabled. Without having a manual created routing table (or having WiFi Hotspot installed, which creates a routing table as well), this is known to cause issues since the system does not know to which device to send network requests. If you want to use WiFi for www access, please disable Ethernet. Before first boot, this would be:

AUTO_SETUP_NET_ETHERNET_ENABLED=0
AUTO_SETUP_NET_WIFI_ENABLED=1

However WiFi connection seems to establish successfully:

Okt 15 16:09:33 JAS-TT3 wpa_supplicant[658]: wlan0: CTRL-EVENT-CONNECTED - Connection to b4:fb:e4:21:30:9d completed [id=0 id_str=]

I see you installed "ntp" for network time sync. Did you change time sync mode in dietpi-config to "Custom"? Otherwise it will wait for 2 minutes (changed to 1 minute with v6.26) for systemd-timesyncd to complete, which fails due to ntpd doing the job. And please only install ntp if your are absolutely sure that you require it. In 95% of all cases it is simply an overkill of time precision and therefore unnecessary overhead for the system.
And ntpd reports:

Okt 15 16:09:52 JAS-TT3 ntpd[730]: receive: Unexpected origin timestamp 0xe15051a6.3e156476 does not match aorg 0000000000.00000000 from server@176.96.138.245 xmt 0xe15051b0.3c635ea2

So please check your ntpd config as well.

XRDP is btw known to have issues on Stretch. Another reason to use the new image, which is based on Raspbian Buster. However with v6.26 we work around the known XRDP issues by installing the packages from backports: apt install xrdp/stretch-backports
But generally I recommend to use VNC which is MUCH faster and there are simple portable clients available for Windows. We also did some fixes/enhancements with v6.26 for general VNC connection.

And about your I2C issues, I bet it is due to serial consoles being enabled. Please go to dietpi-config > Advanced Options > Serial/UART and disable all serial consoles and the ttyS0 device as well.


Btw I verified the missing desktop icons on MATE desktop, when you login as root. When logging in via different user via lightdm, it works. This is a known security "feature", since on MATE, the caja window manager is responsible to show desktop icons and has some security vulnerabilities why it should not do that with root permissions. On other desktops, the icons and desktop context menu and such are separate from window manager, if I understood correctly, hence it is no issue there: mate-desktop/caja#871

I successfully enabled desktop icons+feature by this:

mkdir -p /root/.config/autostart
cat << _EOF_ > /root/.config/autostart/caja.desktop
[Desktop Entry]
Type=Application
Exec=caja --force-desktop
Hidden=false
X-MATE-Autostart-enabled=true
Name=root-desktop
_EOF_
  • Logout + in again in case.
  • This root-only autostart entry forces caja desktop.

However I will not implement this for now due to the security aspects. We should keep this as known limitation with MATE and instead allow easier setup and enhanced default experience for non-root user login on desktop. Btw AUTO_SETUP_AUTOSTART_TARGET_INDEX=2 + AUTO_SETUP_AUTOSTART_LOGIN_USER=dietpi works well already, but desktop icons need to be added manually since the dietpi-software install only adds them for root user. As well in case of DietPi scripts, those need to be edited to be run with sudo.

@MichaIng
Copy link
Owner

MichaIng commented Oct 15, 2019

I opened a separate issue about missing MATE desktop icons + context menu: #3160

@Gokujo

if you do this how can I get the information what changed in dietpi.txt, config.txt and dietpi-wifi.txt?

Deprecated, changed or added entries will be removed/adjusted/added automatically on dietpi-update, so the current dietpi.txt is always a representation if currently supported settings. However I just checked and actually there has not been made any change that would break running a new dietpi.txt on an old DietPi version/image. If so, we would at least need to update all images so that users can use their current dietpi.txt on every image that can be downloaded on dietpi.com.

@Gokujo
Copy link
Author

Gokujo commented Oct 16, 2019

But this is from an old image, isn't it?

yes it was an update from old version to new one, because the new one had issues with mate desktop

However WiFi connection seems to establish successfully

yes, because I activated module in dietpi-config. I will disable lan.

I see you installed "ntp" for network time sync.

yes I had issues with wrong time. RPi ntp was modified to local server. ntp.conf. I tried to change in dietpi-config but it didn't helped

XRDP is btw known to have issues on Stretch.

I will remove it from auto install. I had problems to connect through VNC without this.

AUTO_SETUP_AUTOSTART_LOGIN_USER=dietpi

If its the case, so I will change to user

If so, we would at least need to update all images so that users can use their current dietpi.txt on every image that can be downloaded on dietpi.com.

It would be great

@MichaIng
Copy link
Owner

MichaIng commented Oct 16, 2019

@Gokujo

yes it was an update from old version to new one, because the new one had issues with mate desktop

Yeah as said, old images contain reasonably more issues then newer ones, especially since software installs require constant updates to keep up with new upstream versions, repo changes or if whole download infrastructures change. So please always use the most current image and in case report issues you face with them, instead of with old images.
The MATE issue btw will happen on an old image as well since this is by design wanted, as mentioned above. Not sure if/why this was working in the past, but it must not due to security reasons.

yes I had issues with wrong time. RPi ntp was modified to local server. ntp.conf. I tried to change in dietpi-config but it didn't helped

You setup multiple servers now with multiple directives. If you want to use a single local server, try to remove all the pool directives below. If this fails, but you can ping 192.168.0.10, then I guess this host does not serve NTP protocol?

Note that dietpi-config only configures systemd-timesyncd => /etc/systemd/timesyncd.conf.
As said you can use ntpd (ntp package), but to not conflict with DietPi trying to check systemd-timesyncd status, you should set "Time Sync Mode" to "Custom" via dietpi-config. However, systemd-timesyncd is so simple, if it fails, ntpd most likely fails for the same reason, so you should then check the host (e.g. try with another machine) or network.

I will remove it from auto install. I had problems to connect through VNC without this.

Please try it after updating to v6.26 or using a fresh image (which is updated on first boot), since we made some rework of the VNC install code. This mostly affected TigerVNC, but RealVNC at least partly as well.

XRDP should work very well now (with v6.26), as well on Stretch images, however slow compared to VNC 😉.

@Gokujo
Copy link
Author

Gokujo commented Oct 23, 2019

I'm sorry. I am working on my project for exam. Only after 11.11. I can test new image. I didn't had time even to inform.

@MichaIng
Copy link
Owner

@Gokujo
Exam should have priority. Wish you all the best for that! 🙂

@Gokujo
Copy link
Author

Gokujo commented Dec 2, 2019

Journal
So, hey. Finally I got some time to test rp. I downloaded image from the website (it was the same as before ;)) and started an install with configuration in first post.
It worked well! Fast install, fast startup! But, I forgot to change the login user for automatic desktop.

@MichaIng
Copy link
Owner

MichaIng commented Dec 4, 2019

@Gokujo
Okay great. Quick side note, run: systemctl disable --now serial-getty@ttyS0
Since the mini UART seems to be disabled or used for other purpose, this TTY is doomed to fail and just spams the boot log 😉.

I adjusted RPi firstboot behaviour a bid according this to have obsolete serial TTYs disabled automatically. New images are done after v6.27 release.

@Gokujo
Copy link
Author

Gokujo commented Dec 5, 2019

@Gokujo
Okay great. Quick side note, run: systemctl disable -now serial-getty@ttyS0
Since the mini UART seems to be disabled or used for other purpose, this TTY is doomed to fail and just spams the boot log 😉.

I adjusted RPi firstboot behaviour a bid according this to have obsolete serial TTYs disabled automatically. New images are done after v6.27 release.

Hi,
I get this: Failed to parse lines 'ow'

@MichaIng
Copy link
Owner

MichaIng commented Dec 5, 2019

@Gokujo
Ah sorry, a missing dash, it should have been:

systemctl disable --now serial-getty@ttyS0

@Gokujo
Copy link
Author

Gokujo commented Dec 5, 2019

Thanks,

I close this issue! It works fine now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants