Skip to content

site-u2023/config-software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,247 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWrt Initial Setup All-in-One Script Suitable for beginners

Important Notice: Project Transition

The development for this project has been completed and all future development has been moved to a new repository. Please refer to the new repository for the latest updates and ongoing work:

https://github.com/site-u2023/aios

Thank you for your understanding.

Script Selector

config

⚠️Please contact us if you have any problems

Configuration

⚠️Japanese notation


Scripts

New settings All-in-one script Suitable for beginners

Install Powershell 7 and create shortcut
  • Script for installing PowerShell 7 and creating shortcuts in a PowerShell 5.1 environment (desktop)
$currentVersion = $PSVersionTable.PSVersion
Write-Host "Current PowerShell version: $($currentVersion)"
$installed = Get-Command pwsh -ErrorAction SilentlyContinue
if ($installed) {
    Write-Host "PowerShell 7 is already installed. Skipping installation."
} else {
    Write-Host "Installing PowerShell 7..."
    $url = "https://aka.ms/install-powershell.ps1"
    Invoke-WebRequest -Uri $url -OutFile "install-powershell.ps1"
    .\install-powershell.ps1
    Write-Host "PowerShell 7 installation completed."
}
$desktop = [Environment]::GetFolderPath("Desktop")
$shortcutPath = "$desktop\PowerShell 7 (Admin).lnk"
$targetPath = "C:\Program Files\PowerShell\7\pwsh.exe"
$arguments = "-Command Start-Process pwsh -Verb runAs"
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut($shortcutPath)
$shortcut.TargetPath = $targetPath
$shortcut.Arguments = $arguments
$shortcut.Description = "PowerShell 7 Administrator Shortcut"
$shortcut.WorkingDirectory = "$HOME"
$shortcut.IconLocation = $targetPath
$shortcut.Save()
Write-Host "PowerShell 7 administrator shortcut has been created."

ssh -o StrictHostKeyChecking=no -oHostKeyAlgorithms=+ssh-rsa root@192.168.1.1
❗If you cannot log in to SSH
  • %USERPROFILE%\.ssh\known_hosts
Clear-Content .ssh\known_hosts -Force 

ttyd installation and configuration

mkdir -p /etc/config-software; wget --no-check-certificate -O /etc/config-software/ttyd.sh https://raw.githubusercontent.com/site-u2023/config-software/main/ttyd.sh; sh /etc/config-software/ttyd.sh; confsoft

⚠️Internet connection setup requires device to be connected directly to ONU (Japan Only)

❗When scripts cannot be executed due to insufficient flash capacity

confsoft

  • Only scripts are executed (ttyd not used)
mkdir -p /etc/config-software; wget --no-check-certificate -O /etc/config-software/ssh.sh https://raw.githubusercontent.com/site-u2023/config-software/main/confsoft.sh; sh /etc/config-software/confsoft.sh; confsoft

❗MAP-e or other IPv4 unconnected

https://github.com/ can be connected using IPv6

  • Connect client for setup to LAN1
# IPv6 Usage Settings
uci add network device
uci set network.@device[-1].name='lan1'
uci set network.@device[-1].mtu='1500'
uci set network.@device[-1].ipv6='1'
uci set network.@device[-1].mtu6='1500'
#
uci commit network
/etc/init.d/network reload

Run Script

Permited only from LAN side

No login authentication

⚠️ Can be changed from ttyd settings

confsoft

⚠️ forced termination:Ctrl+c

Remove

rm -rf /etc/config-software
rm -rf /usr/bin/confsoft

Access

QR192.168.1.1.png

Filer (used like Explorer with WinSCP)

QR_062248.png

Automatic install (powershell)
  • Install latest version software
$psVersion = $PSVersionTable.PSVersion.Major
$LINKS = Invoke-WebRequest "https://winscp.net/eng/download.php"
$LINKS_VERSION = $LINKS.Links | Where-Object {$_.href -like "*WinSCP-*-Setup.exe*"} | Select-Object -ExpandProperty href
$VERSION = ($LINKS_VERSION -split '/')[-2] -replace "WinSCP-([0-9]+\.[0-9]+\.[0-9]+).*", '$1'
Write-Host "Version to install: $VERSION"
$downloadUrl = "https://jaist.dl.sourceforge.net/project/winscp/WinSCP/$VERSION/WinSCP-$VERSION-Setup.exe?viasf=1"
Write-Host "Downloading from: $downloadUrl"
$ONAMAE = (whoami).Split('\')[1]
$destinationPath = "C:\Users\$ONAMAE\Downloads\WinSCP-$VERSION-Setup.exe"
Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath
Write-Host "Installing WinSCP..."
Start-Process -FilePath $destinationPath -ArgumentList "/VERYSILENT /NORESTART" -Wait
Invoke-Expression "C:\Users\$ONAMAE\AppData\Local\Programs\WinSCP\WinSCP.exe"

  • Session
    • Host Nmae:192.168.1.1
    • User Name:root
    • Password:Password you set
    • login Click

Initialization

# attention required
firstboot && reboot now

This will erase all settings and remove any installed packages. Are you sure? [N/y]

  • y

Press and hold the reset button on the device for 5 seconds

Qiita

Japanese notation

Beginner's memorandum Introduced from Windows

Releases

No releases published

Packages

No packages published

Languages