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

Dev v4.2.0 beta 3 #835

Merged
merged 235 commits into from
May 29, 2023
Merged

Dev v4.2.0 beta 3 #835

merged 235 commits into from
May 29, 2023

Conversation

Aemiii91
Copy link
Member

No description provided.

XK9274 and others added 9 commits May 18, 2023 22:10
- update_networking now sourced in runtime.sh
- check_hotspotstate now called in runtime loop
- check_hotspotstate and start_hotspot merged with old/new config to provide recovery after main relaunch.
- start wifi on hotspot launch removed, needs reworking for new layout
- serialnumber WPA code commented out following conversation with schmurtz, see chat. password now `onionos!` (warn: has to be 8 chars!)
- some NTP code moved to a func. as duplicated
- please note hotspot is still killed sometimes when mainui relaunches (during a 'longer' loading screen).

Steps to test full cycle:

- Turn on hotspot
- Observe hotspot icon appears, hotspot shows in other devices & is connectable (10-20 seconds wait)
- Open search with x (or app) - close app
- Observe MainUI relaunch
- Observe hotspot drops but recovers
- Turn hotspot off, observe wifi recovers
- Turn hotspot on
- Turn hotspot off
- Observe all hostapd/dnsmasq processes dead.
Removed sleep from NTP - not needed anymore.
Removed backgrounded task.
Updated with newest translations and fixed ID duplicates. Tested this
file with version 4.2.0.
- minimal resource usage
- wide compatibility
* kex:
curve25519-sha256,[email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,[email protected]
  * key: ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-256,ssh-rsa,ssh-dss
  * cipher: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc
  * mac: hmac-sha1
- single binary for ssh and sftp

SSH: dropbear-2022.83 (https://matt.ucc.asn.au/dropbear/dropbear.html)
  + patch: no auto chdir on connect
  + patch: no new shell session on connect (skip loading /etc/profile)

SFTP: ~~gesftpserver-2 (https://www.greenend.org.uk/rjk/sftpserver/)~~
sftp-server (openssh-8.2p1)

source, patches and build configuration available here :
https://github.com/anzz1/miyoomini-apps/tree/master/ssh-server
@Aemiii91 Aemiii91 requested review from schmurtzm and XK9274 May 19, 2023 21:13
XK9274 and others added 5 commits May 20, 2023 02:02
Commit will change how hotspot functions.

Hotspot has been moved (back) to wlan1 which provides the below fixes but comes with its own issues. MainUI doesn't like the hotspot, we're trying to work around it the best we can.

Important notes:
- Hotspot no longer drops coming out of an app. This was caused by MainUI not detecting wpa_supplicant and restarting wifi. Leaving the supp running
- The hotspot icon has been taken away by MainUI for now..
- Allows for further implementation features such as dual network support
- Gateway set to MMP once again with an ip route, this provides better discovery but has the side-effect of interface bridging.
- Netplay has been tested on hotspot, working fine PC -> MMP but MMP -> MMP the following process must be followed (in my testing, needs validating by someone with 2 mmps)
- Hotspot can still take up to 30 seconds to become connectable.

MMP1: Start your hotspot
MMP2: Connect to the hotspot
MMP1: Start a netplay session on your chosen game
MMP2: Start retroarch from the apps menu item
MMP2: Load a game, any game (but same core)
MMP2: Go back into the menu and select netplay, search LAN, then join.

MMP -> PC is mostly unaffected by this issue. I've had MMP hosted games easily joined by PC RA and vice versa.

All other features (Telnet, SSH, FTP, Filebrowser) are all confirmed working on standard WiFi and on hotspot.
Useful to use Netplay. Good cross platform compatibility.
@Amiga500
Copy link
Contributor

Waiting for another big add? :)

@Aemiii91
Copy link
Member Author

@Amiga500 no no, just some final touches (I hope)

@Aemiii91 Aemiii91 self-assigned this May 27, 2023
Moved Filebrowser and bftpd bins into .tmp_update, made associated changes in update_networking.sh and runtime.sh & tested. bftpd.conf file altered to set logging location etc. Tested across 3 mmps. (Noted in testing sometimes NTP fails on the first attempt, verify with network.log in .tmp_update/logs)
ghost
ghost previously approved these changes May 29, 2023
@Aemiii91
Copy link
Member Author

@Assassins78pl thanks 😅

Co-authored-by: @Jeltr0n
@Aemiii91 Aemiii91 merged commit d937d44 into main May 29, 2023
@Aemiii91 Aemiii91 deleted the dev-V4.2-beta branch May 29, 2023 09:38
@Aemiii91 Aemiii91 restored the dev-V4.2-beta branch May 29, 2023 09:38
@Aemiii91 Aemiii91 added the enhancement New or improved feature label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New or improved feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants