wsl play-store magisk

Install WSA With Google Play Store and Root

Install Uninstall old wsa (if you have) make sure you have Virtual Machine Platform enabled on Turn Windows features on or off fork this repo: https://github.com/LSPosed/MagiskOnWSA build it with actions download build result run the install script start the wsa and enjoy it Enable usb debug Open wsa settings, enable Developer Mode copy wsa ip address adb connect WSA-IP-ADDRESS

May 17, 2022 路 Aimer Neige
Server Setup

How to Setup Your New Linux Server

Update System # Debian apt update # Fedora dnf update Install Most Used Tools # Debain apt install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget net-tools # Fedora dnf install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget util-linux-user Create Sudo User # Debian adduser aimer usermod -aG sudo aimer # Fedora useradd -G wheel aimer passwd aimer Test Root Privileges su - aimer sudo cat /etc/shadow Setup SSH Public Key Quickly Upload Your Local Key # run this on your local machine ssh-copy-id aimer@server Import The Key You Hosted # Import your own public key! wget https://aimer.aiursoft.cn/authorized_keys -O ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys Test if You Can Connect to Server ssh aimer@server Disable Root and Password Login sudo vim /etc/ssh/sshd_config Set PermitRootLogin as no To disable root login Set PasswordAuthentication as no To disable password login Delete this file /etc/ssh/sshd_config.d/50-cloud-init.conf ...

May 17, 2022 路 Aimer Neige
Spring Swagger

Enable Swagger on Spring Boot Gradle Projects

Adding Swagger to Spring Boot Getting the Swagger Spring dependency Enabling Swagger in your code Configuring Swagger Adding details as annotations to APIs Getting the Swagger Spring dependency Edit build.gradle plugins { id 'org.springframework.boot' version '2.5.2' ... } ... dependencies { implementation "io.springfox:springfox-boot-starter:3.0.0" ... } Enabling Swagger in your code Add @EnableSwagger2 to SpringBootApplication Configuring Swagger Create SwaggerConfig class. package com.aimerneige.example.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket apiDocket() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.basePackage("com.aimerneige.example.controller")) .paths(PathSelectors.any()) .build(); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Example API") .version("1.0") .build(); } } Adding details as annotations to APIs Add annotation to your controller. ...

December 30, 2021 路 Aimer Neige
WiFi Logo

Auto Start Wifi Hotspot on Gnome

Edit and save file nmcli-hotspot.desktop on path /home/aimerneige/.config/autostart [Desktop Entry] Name=nmcli-hotspot Comment=Open HotSport With nmcli Exec=nmcli connection up Hotspot Terminal=true Type=Application

November 7, 2021 路 Aimer Neige
WiFi Logo

Vala Env Setup

vala env setup When it鈥檚 talking to Linux development, there are many ways to go. But I love elementary and want to build some awesome apps with vala. So this article is about how to set up your vala develop environment on elementary os. In the future, there will more articles about vala and Linux development. System Info When I write this artice (2021-7-31), elementary os 6 is still in develop, so I install it in gnome boxes. My host machine syetem is fedora 34. ...

October 23, 2021 路 Aimer Neige
hugo-logo

Hello Hugo

Before Start It鈥檚 been a long time since I wrote a blog post last time. That鈥檚 because I often reinstall my system on computer, and every time I install and configure the blog of hexo on my computer is a troublesome thing. But recently, I discovered hugo, a simple and easy-to-use blog system, which can keep me away from hexo, which is slow and troublesome to configure and install. It has a great experience to use and I happened to change a blog theme, so I decided to use hugo to build my new blog. This article briefly introduces how to install and use hugo. ...

August 17, 2021 路 Aimer Neige

Dark Mode on Android

In this example, I am using Material Design. But you can also use the Theme.AppCompat.DayNight. This is a simple way to adapt a dark mode, if you wants more, check for GitHub or Internet. Change the style First you should use the DayNight style by Google. <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> If you want to let things easily, that鈥檚 enough. But you can also provide more adaptation. Adapt colors Make a new folder at project/app/src/main/res/values-night then make a new resource file colors.xml. Edit the color you want to set on dark mode. ...

September 5, 2020 路 Aimer Neige

MinGW Install For Windows

Click here to download the MinGW setup file. Run the mingw-get-setup.exe. Click Install. Click Continue. Waite for install. After install done, click Continue. Select what you wants to install and right click it, click Mark For Installation. Click Installation on the left top. Click Apply Changes. Click Apply. Just wait for install. (May need proxy) After that, the mingw has been installed successfully. You can uninstall this install program. Set the system env settings and enjoy it! ...

August 19, 2020 路 Aimer Neige

Android Develop Data Save

Change Package Name Quickly Sometimes, we may need to change the package name of our Android Project. Maybe the package is not suitable or we get a better package name. But that鈥檚 doesn鈥檛 matter, we just need to change it. So, how we can change a package name? Here are the solution. Open your Android Project at Android Studio. Go to the Androidmanifest.xml. Find your package name. For example com.aimerneige.test.example. Click the part you want to change, like test. Right click and select Refactor -> Rename. Select the Rename package. Enter a new package name. Click the Refactor, Do Refactor. Waiting for the operation done. That鈥檚 all. Enjoy it! ...

August 18, 2020 路 Aimer Neige

Android Develop Data Save

Save data to file save data // This function will save the data of inputText into file "data" as text file // The file "data" will be saved to /data/data/com.aimerneige.example/files/data fun save(inputText: String) { try { // "data" is the name of the file you saved on phone storage // You can change it as you want val output = openFileOutput("data", Context.MODE_PRIVATE) val writer = BufferedWriter(OutputStreamWriter(output)) writer.use { it.write(inputText) } } catch (e: IOException) { e.printStackTrace() } } load data // This function will try to load the data at a file named "data" // which is on /data/data/com.aimerneige.example/files/data fun load(): String { // a StringBuilder to load data val content = StringBuilder() try { // "data" is the name of the file you want to find on disk val input = openFileInput("data") val reader = BufferedReader(InputStreamReader(input)) reader.use { reader.forEachLine { content.append(it) } } } catch (e: IOException) { e.printStackTrace() } return content.toString() } You can also use like this: ...

August 10, 2020 路 Aimer Neige