- Open /etc/default/grub and ensure this line exists:
GRUB_DEFAULT=saved
- Apply the change to grub.cfg by running:
grub2-mkconfig -o /boot/grub2/grub.cfg
- Run this to set default to Windows
| // https://gist.github.com/mkckr0/97ec5b0d99feede4c19ee6f905d5e722 | |
| val repoMirrorMap = mapOf( | |
| "https://repo.maven.apache.org/maven2" to "https://maven.aliyun.com/repository/central", | |
| "https://dl.google.com/dl/android/maven2" to "https://maven.aliyun.com/repository/google", | |
| "https://plugins.gradle.org/m2" to "https://maven.aliyun.com/repository/gradle-plugin", | |
| "https://jcenter.bintray.com" to "https://maven.aliyun.com/repository/jcenter", | |
| ) | |
| val repoReplaceMap = mapOf( | |
| "https://maven.google.com" to "https://dl.google.com/dl/android/maven2" |
GRUB_DEFAULT=saved
grub2-mkconfig -o /boot/grub2/grub.cfg
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<sys/socket.h> | |
| #include<features.h> | |
| #include<linux/if_packet.h> | |
| #include<linux/if_ether.h> | |
| #include<errno.h> | |
| #include<sys/ioctl.h> | |
| #include<net/if.h> | |
| #include<net/ethernet.h> |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<sys/socket.h> | |
| #include<features.h> | |
| #include<linux/if_packet.h> | |
| #include<linux/if_ether.h> | |
| #include<errno.h> | |
| #include<sys/ioctl.h> | |
| #include<net/if.h> |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<sys/socket.h> | |
| #include<features.h> | |
| #include<linux/if_packet.h> | |
| #include<linux/if_ether.h> | |
| #include<errno.h> | |
| #include<sys/ioctl.h> | |
| #include<net/if.h> | |
| #include<net/ethernet.h> |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<sys/socket.h> | |
| #include<features.h> | |
| #include<linux/if_packet.h> | |
| #include<linux/if_ether.h> | |
| #include<errno.h> | |
| #include<sys/ioctl.h> | |
| #include<net/if.h> | |
| #include<net/ethernet.h> |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<sys/socket.h> | |
| #include<features.h> | |
| #include<linux/if_packet.h> | |
| #include<linux/if_ether.h> | |
| #include<errno.h> | |
| #include<sys/ioctl.h> | |
| #include<net/if.h> | |
| #include<net/ethernet.h> |