Skip to content

TranslucentFoxHuman/System-Easy-Setup-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System-Easy-Setup-Script

This text is translated from Japanese to English using the built-in translation function of Firefox. And, some of them are rough English translations by Japanese people who do not use English natively. There may be a mistranslation, but please read on hard :)

This script is a script that automatically performs the initial setting for comfortable use of various operating systems in bulk.
You can do all the tedious tasks, such as installing the required software, removing unnecessary components, and rewriting system settings.

The software was originally created by the developer TlFoxHuman for himself. It may not be suitable for general use, but you can customize what you do and do not do by selecting it at runtime. Unnecessary manipulations to you do not need to perform.

The operating system which the script is currently being created is as follows:

  • Windows 11 (mainly Tiny11)

The Debian/Ubuntu script is also in my hands, but this is not published because I don’t think it will be useful to anyone other than me. Because GNU/Linux is easy to use from almost the beginning, right?

Included scripts

11Tweaks.ps1

This script does common(?) initial setup for Windows 11. You can perform the following operations:

  • Download and install the official version of curl.
    • Disable the utterly foolish PowerShell curl alias so that the official curl is executed.
  • Use curl for downloading instead of the slow built‑in PowerShell Invoke-WebRequest.
  • Use winget to download/install to get latest version for some apps (e.g. 7-Zip)
  • Uninstall these:
    • Teams
    • Outlook
    • DevHome
    • WebExperience (a.k.a Widgets)
  • Install Firefox (You can choose Japanese version of Firefox)
  • Install Microsoft Edge Uninstaller and...
    • Uninstall Microsoft Edge right now
    • Schedule a task to uninstall Microsoft Edge at every startup.
  • Install MSEdge-Redirect
  • Install 7-zip.
  • Install AIM Toolkit. It is successor of ImDisk Toolkit.
  • Disable the Web search feature on taskbar
  • Get back the Windows 10-style Control Center
  • Disable fast startup
  • Create a task to synchronize the system time with the network time server at system startups.
  • Get back these folders in start menu:
    • Accessories
    • Administrative Tools
    • System Tools
  • Schedule a task to restore "Accessories", "Administrative Tools", "System Tools" folder at start up.
  • Install ExplorerPatcher

11Tweaks-TlFox.ps1

This script is based on 11Tweaks.ps1 and is customized for the developer, TlFoxHuman. It is not needed for most users, but it is stored in this repository for own development.

This script differs from 11Tweaks.ps1 in the following ways:

debian.bash

This was originally a script I used to set up Debian‑based GNU/Linux systems, including Ubuntu.
Because I wrote it for my own use, it isn't very generic and probably won't meet many other users' needs.

The script behaves differently depending on whether it is launched as root or as a normal user.

When started as root, it provides the following features:

  • Adds the official repository for Firefox or LibreWolf (you can choose whichever browser you prefer) instead of the distribution's default and installs it.
  • Adds an entry to the application list that launches the chosen browser in a private window.
  • Installs Fcitx5 and SKK. This is meant for me, a Japanese speaker who uses SKK as an input method.
  • Installs Flatpak and adds the Flathub repository.
  • Enables NumLock on the TTY.
  • Adds a system‑wide script that runs sudo apt update, sudo apt upgrade -y, sudo apt autoremove -y, and flatpak update -y with a single command. The script can be invoked with the update command; besides performing a bulk update, it can automatically reboot after updating with the -r option, or shut down with the -s option. It's very handy, so give it a try.
  • Enables ZRAM. By default it sets up an 8 GB ZRAM disk for swap and mounts another 8 GB ZRAM area as /ramdisk.
    • The ZRAM configuration file can be adjusted.
    • By default, only root can write to the ZRAM disk immediately after initialization, so a service is added to automatically set the correct permissions.
  • Sets up ydotool.
    • Configures ydotoold to start as a daemon on boot. At this time, a group named ydotool is created so that ydotoold can be used.
    • Specific users can be added to the ydotool group.

When started as a normal user, the following feature is available:

  • Adds a custom input rule to SKK that converts text with the conversion key and disables 区点([MM]KKTT). In the input method settings for SKK, set the input style to "custom" to enable it. This is probably only useful to me.

How to use

11Tweaks.ps1

Method 1 (recommended)

By to creating a small download script that doesn't use non‑ASCII characters, you can now easily download and run scripts! Just run the command below.

irm https://easysetup.tlfoxhuman.net/win11 | iex

Method 2

Download this script. https://github.com/TranslucentFoxHuman/System-Easy-Setup-Script/raw/refs/heads/main/11Tweaks.ps1
Open Windows PowerShell as Administrator, then run this command:

powershell -executionpolicy bypass <path to 11Tweaks.ps1>

When you run this, a description of what will be executed sequentially will be displayed, along with a prompt asking whether to proceed with the execution. You should follow the prompt and specify whether to execute by entering Y or N.

Please do not run it in a format like irm <script URL> | iex. This script contains non-ASCII strings for Japanese support, and executing it in that way causes them to be unrecognizable, resulting in garbled text and script errors. I tried all the encodings - Unicode, UTF-8, and Shift-JIS (also known as ANSI) - but the problem persists. It is probably a PowerShell bug. If you want to run this script easier way, please follow "Method 1".

Do you absolutely never want to launch Microsoft Edge? Or perhaps you're using Tiny 11 or a similar environment and don't have a browser? It's hidden, but there is Internet Explorer! Using the method on the following page, you can open Internet Explorer. Open IE and use it to download this script: https://tlfoxhuman.net/ietools/how-to-open-ie.html

Features planned but not yet implemented

11Tweaks.ps1

Not Planned Features

11Tweaks.ps1

  • Support for ARM Devices:
    Windows on ARM devices are generally designed for Windows, and other operating systems are either completely non-functional or difficult to run on them. This encourages vendor lock‑in and, when Windows support is discontinued, it increases the amount of industrial waste. Such devices lack sustainability and future prospects, so I do not intend to support them.
  • Support for anti‑virus software other than Windows Defender
    Several anti‑virus programs including Windows Defender, mistakenly flag parts of the software downloaded by this tool (such as Remove-MSEdge.exe) as malware. To counter this false positive, the tool automatically registers those components as exceptions in Windows Defender. However, there is a wide variety of anti‑virus products available today, each with a different method for adding exceptions. Some of these programs are paid and may be difficult to obtain.
    Additionally, certain anti‑virus solutions can interfere with the proper functioning of this tool. For example, in environments where Avast is installed, downloads performed with curl have been observed to fail due to a chain‑certificate error.
    Implementing workarounds for exception handling and interference across all of these numerous anti‑virus products is extremely challenging. Consequently, this tool supports only the most widely used and generic Windows Defender. If you are using an anti‑virus product other than Windows Defender, review the script’s code, locate the line that executes Add-MpPreference, and manually add the corresponding exception to your own anti‑virus software. And, run this script first and then install the anti‑virus product you wish to use.

License

MIT License

Originally this script started as a small one that made only a few simple changes. However, since its features have recently expanded, I decided that it should be protected by a license, so it will be changed from the public domain to the MIT license.

The last version that was in the public domain was commit a0ec0ba3364c1db6c3b4e4d525a8ee02f1620040.

About

Scripts to set up various operating systems automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors