OneDrive Logo

OneDrive on Linux

OneDrive on Linux Install sudo dnf install onedrive Login [user@hostname ~]$ onedrive Authorize this app visiting: https://..... Enter the response uri: Copy the url from browser like this:<redacted> Paste it into terminal then press enter: The Final result will like this: [user@hostname ~]$ onedrive Authorize this app visiting: Enter the response uri:<redacted> Application has been successfully authorized, however no additional command switches were provided. Please use 'onedrive --help' for further assistance in regards to running this application....

November 20, 2022 路 Aimer Neige
Samba Logo

Install and Configure Samba

SMB File Share Update System sudo apt update Install Samba sudo apt install samba Edit Share Config sudo vim /etc/samba/smb.conf Add share point at the bottom of the config file [share-name] comment = Your Comment Here path = /path/to/share/dir read only = no browsable = yes Start Samba sudo systemctl start smbd.service Enable Autostart sudo systemctl enable smbd.service Update Firewall Rules sudo ufw allow samba Setting User Password sudo smbpasswd -a username Warning...

November 20, 2022 路 Aimer Neige
Ubuntu Filebrowser

Install Filebrowser on Ubuntu Server

Install Filebrowser Install file browser to your server: curl -fsSL | bash Have a quick test: filebrowser -a -r /path/to/your/files Access your server and try to login in. Username: admin Password: admin Create Your Own Config Write your config file: sudo mkdir /etc/filebrowser/ sudo vim /etc/filebrowser/.filebrowser.yaml Write something like this: port: 8080 address: root: /path/to/your/file database: /etc/filebrowser/filebrowser.db Create Service Write a service file: sudo vim /etc/systemd/system/filebrowser.service Write something like this:...

November 18, 2022 路 Aimer Neige
Ubuntu qBittorrent-nox

Install qBittorrent-nox on Ubuntu Server

Install qBittorrent-nox on Ubuntu Server Update ubuntu sudo apt update && sudo apt upgrade -y Import qBittorrent-nox Stable sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y Import qBittorrent-nox Unstable (Nightly) sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable -y Reflect the newly added PPA sudo apt update Install qBittorrent-nox sudo apt install qbittorrent-nox -y Create usergroup sudo adduser --system --group qbittorrent-nox # on fedora sudo groupadd qbittorrent-nox Add you to usergroup sudo adduser your-username qbittorrent-nox # on fedora sudo usermod -aG qbittorrent-nox your-username Create a systemd service file sudo vim /etc/systemd/system/qbittorrent-nox....

November 11, 2022 路 Aimer Neige
Fedora WeChat

Install WeChat on Fedora

Install WeChat on Fedora Install Wine sudo dnf install wine Adjust DPI Config Use bellow command to open winecfg winecfg Adjust the dpi to a suitable value at tab Graphics. (4k monitor, 192 dpi) Download And Config Fonts Run the following commands sudo dnf install cabextract sudo dnf install winetricks winetricks corefonts gdiplus riched20 riched30 Download & Install WeChat Just download the exe Installer. (Same with download it from browser.)...

November 10, 2022 路 Aimer Neige
Rust Logo

[Reproduce] Learning Rust in 2022

This article are reproduce from pretzelhammer/rust-blog Intro When I started learning Rust I made the mistake of following the advice to read The Book first. While it鈥檚 a great resource, it鈥檚 pretty overwhelming for a beginner to get told 鈥淚f you鈥檇 like to learn this programming language the best way to start is to read this 20 chapter book!鈥 Most people give up before they even get started when they get advice like this....

June 29, 2022 路 Aimer Neige
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: 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!...

May 17, 2022 路 Aimer Neige
Bash Logo

Shell Learning Notes Comment

Shell Comment Start with # # this is a line of comment Simply write more with # start # Author: Aimer Neige # Email: # Date: 2022-04-29 Other way: :<<EOF Author: Aimer Neige Email: Date: 2022-04-29 EOF :<<' Author: Aimer Neige Email: Date: 2022-04-29 ' :<<! Author: Aimer Neige Email: Date: 2022-04-29 ! Refer Link

May 1, 2022 路 Aimer Neige
Bash Logo

Shell Learning Notes Parameters

Pass Parameters When you are running a shell script and you want to pass some parameters into the script, you can get the parameters by $n. The n represents a number, the 1 is meant for the first parameters you pass to the script, the 2 is the second parameters you pass to the script, and so on. Note that the 0 is the script fine name. Example: #!/usr/bin/bash echo "Parameters Example:" echo "The Script File Name: \"$0\"" echo "The First Parameters: \"$1\"" echo "The Second Parameters: \"$2\"" echo "The Third Parameters: \"$3\"" echo "The Forth Parameters: \"$4\"" Run this script:...

May 1, 2022 路 Aimer Neige