Fix Linux EFI

When you have many disks, and you install many operating system, you may faced with a problem. That is your system’s EFI file will be stored in a different disk rather than your root disk. Also, you may accidentally delete system’s EFI file in a different disk. Here is how you can fix it. Warning ...

December 22, 2024 · Aimer Neige

Setup Your Own Apt Mirror

What you need a server running ubuntu enough disk space (at least 600G) good internet connection a domain name (optional) a ssl certificate (optional) Prepare your server You can buy a cloud server, or use a local machine. Here, I am using a local machine to setup a offline apt mirror which can speed up my workflow. Install apt-mirror Just run the following command to install apt-mirror on your server: ...

December 14, 2024 · Aimer Neige

Boot Fedora From Windows Hyper-V

Enable Hypyer-V disk manager -> offline create vm. skip the disk creation open vm settings. select physical disk instead of vhd Disable secure boot and checkpoint https://superuser.com/questions/1284201/hyper-v-boot-to-os-on-physical-disk

March 8, 2024 · Aimer Neige
Ubuntu Syncthing

Install Syncthing on Ubuntu Server

Install Syncthing Debian/Ubuntu installation instructions Import PGP keys # Add the release PGP keys: sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg Add APT source # Add the "stable" channel to your APT sources: echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list Install Syncthing # Update and install syncthing: sudo apt-get update sudo apt-get install syncthing Install systemd unit Download service file wget https://github.com/syncthing/syncthing/blob/main/etc/linux-systemd/system/syncthing%40.service Install service file sudo chown root:root syncthing@.service sudo mv syncthing@.service /etc/systemd/system/ sudo systemctl daemon-reload Enable service ...

July 14, 2023 · Aimer Neige
Docker qBittorrent-nox

Install qBittorrent-nox Inside Docker

Install docker You need to install docker first before get started. Take fedora as an example, just simply run these command: # First, remove old docker packages sudo dnf remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine # Install latest docker via dnf package manager # Set up the repository sudo dnf -y install dnf-plugins-core sudo dnf config-manager \ --add-repo \ https://download.docker.com/linux/fedora/docker-ce.repo # Install Docker Engine sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # Start Using Docker # Start Docker sudo systemctl start docker # Start Docker As System Boot sudo systemctl enable docker # Test If Docker Works sudo docker run hello-world View Docs for more detail about how to install docker in ubuntu system. ...

March 14, 2023 · Aimer Neige
KVM Logo

Install kvm on Fedora

KVM: Kernel-Based Virtual Machine Products Company VirtualBox Oracle VMWare VMWare Hyper-V Microsoft First, use x86 laptop or pc. # check if kvm avaiable (output should bigger than 0) egrep -c '(vmx|svm)' /proc/cpuinfo if output is 0, enable vt on BIOS. Install KVM on fedora36 # Install required virtualization packages sudo dnf -y install bridge-utils libvirt virt-install qemu-kvm # Also install useful tools for virtual machine management sudo dnf -y install libvirt-devel virt-top libguestfs-tools guestfs-tools qemu-kvm: the emulator itself libvirt-daemon: runs virtualization in background birdge-utils: important networking dependencies virt-manager: the graphical program we’ll use to work with our VMs sudo usermod -aG libvirt aimer sudo usermod -aG kvm aimer sudo systemctl start libvirtd sudo systemctl enable libvirtd Virtual Machine Manager (or “virt-manager”) ...

February 25, 2023 · Aimer Neige
eEFInd logo

Install rEFInd on Fedora

rEFInd on Fedora Install Obtain an rEFInd binary for RPM based system. direct link (not the newest) Find the newest rpm package download link from here. After you download a rpm package, install it with your package manager sudo dnf install refind-0.6.11-1.x86_64.rpm sudo rpm -Uvh refind-0.6.11-1.x86_64.rpm sudo yum localinstall refind-0.6.11-1.x86_64.rpm At the most of the time, your are ready to use rEFInd, if it did not work on your system, run refind-install: ...

November 20, 2022 · Aimer Neige
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: https://login.microsoftonline.com/common/oauth2/nativeclient?code=<redacted> Paste it into terminal then press enter: The Final result will like this: [user@hostname ~]$ onedrive Authorize this app visiting: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=22c49a0d-d21c-4792-aed1-8f163c982546&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient Enter the response uri: https://login.microsoftonline.com/common/oauth2/nativeclient?code=<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. Configuration Show your configuration: ...

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 end of the config file [share-name] comment = Your Comment Here path = /path/to/share/dir read only = no browsable = yes [public] comment = Public Shared Disk path = /mnt/disk/smb/share read only = no browsable = yes create mask = 0644 directory mask = 0755 [private] comment = Pricate Data Share path = /mnt/disk/smb/private read only = no browsable = no valid user = aimer, umb create mask = 0644 directory mask = 0755 [media] comment = Media Files path = /media read only = yes 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 https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash Have a quick test: filebrowser -a 0.0.0.0 -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: 0.0.0.0 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: [Unit] Description=File Browser Service After=network.target [Service] Type=simple Restart=on-failure RestartSec=5s ExecStart=filebrowser [Install] WantedBy=multi-user.target Start and enable it: ...

November 18, 2022 · Aimer Neige