Skip to content

Commit b7d2480

Browse files
committed
Update
1 parent a177a60 commit b7d2480

File tree

8 files changed

+1635
-2
lines changed

8 files changed

+1635
-2
lines changed
Binary file not shown.
190 KB
Loading

java/2022/javaWeb.mindnode/contents.xml

Lines changed: 1528 additions & 0 deletions
Large diffs are not rendered by default.
1.36 KB
Binary file not shown.
145 Bytes
Binary file not shown.
179 Bytes
Binary file not shown.

other/v2ray/v2ray.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
```
44
5+
yum install wget vim zsh git -y && sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" -Y
6+
7+
8+
9+
10+
511
yum install vim wget pcre pcre-devel -y && wget -q http://nginx.org/download/nginx-1.20.0.tar.gz && useradd www -s /sbin/nologin -M && tar xf nginx-1.20.0.tar.gz && cd nginx-1.20.0 && yum install openssl openssl-devel gcc -y && ./configure --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --prefix=/application/nginx-1.20.0/ && make && make install && ln -s /application/nginx-1.20.0/ /application/nginx
612
713
14+
815
```
916

1017

@@ -27,7 +34,7 @@ yum install vim wget pcre pcre-devel -y && wget -q http://nginx.org/download/ngi
2734
// 顺滑重启
2835
/application/nginx/sbin/nginx -s reload
2936
30-
37+
https://www.bwgss.org/wp-content/uploads/2020/11/clash_template2.yaml
3138
3239
```
3340

@@ -63,7 +70,7 @@ netstat -lntup|grep 80
6370
然后
6471
certbot --nginx --nginx-server-root=/application/nginx/conf -d www.ccc.com
6572

66-
certbot --nginx --nginx-server-root=/application/nginx/conf -d www.domanshow.com
73+
certbot --nginx --nginx-server-root=/application/nginx/conf -d bbs.domanshow.com
6774

6875
http://www.cccc.com/
6976

@@ -73,6 +80,11 @@ www.cccc.com
7380

7481

7582

83+
Certificate Path: /etc/letsencrypt/live/bbs.domanshow.com/fullchain.pem
84+
85+
Private Key Path:
86+
87+
/etc/letsencrypt/live/bbs.domanshow.com/privkey.pem
7688
```
7789

7890

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
2+
3+
4+
5+
Reans Web - Creating Custom Image on Digital Ocean '(2022 Update)'
6+
7+
Click here to watch on youtube : https://youtu.be/wtHBDEl5DIw
8+
9+
Why create your own image?
10+
11+
- Extremely Safe (No Keylogger software that you might get from downloading random windows image online)
12+
- You can choose which OS you want (fully customize it)
13+
14+
Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer
15+
16+
You need 3 things on your pc
17+
1. Browser
18+
2. Putty : https://putty.org
19+
3. VNC Viewer : https://www.realvnc.com/en/connect/download/viewer/
20+
21+
Commands :
22+
23+
Step 1 : Necessary stuff :
24+
25+
copy then paste on putty by right clicking.
26+
27+
apt-get update && apt-get install qemu -y
28+
apt install qemu-utils -y
29+
apt install qemu-system-x86-xen -y &&
30+
apt install qemu-system-x86 -y &&
31+
apt install qemu-kvm -y
32+
33+
apt install qemu-system-x86-xen -y && apt install qemu-system-x86 -y && apt install qemu-kvm -y
34+
35+
36+
Step 2 : Creating the empty image file (Edit name with your OS Version):
37+
38+
qemu-img create -f raw windows2019.img 16G
39+
40+
41+
Step 3 : Drivers and Windows Download (Input your own link for custom windows server)
42+
43+
Download Drivers : https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio
44+
Download Windows : https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server
45+
46+
Custom Updated DRIVER LINK : INPUT YOUR LINK HERE
47+
Custom Windows LINK : INPUT YOUR LINK HERE
48+
49+
wget -O virtio-win.iso 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.215-1/virtio-win-0.1.215.iso'
50+
wget -O windows2019.iso 'https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso'
51+
52+
Check if you have all the files with the command : ls
53+
54+
Step 4 : Virtualize the image:
55+
56+
qemu-system-x86_64 \
57+
-m 3G \
58+
-cpu host \
59+
-enable-kvm \
60+
-boot order=d \
61+
-drive file=windows2019.iso,media=cdrom \
62+
-drive file=windows2019.img,format=raw,if=virtio \
63+
-drive file=virtio-win.iso,media=cdrom \
64+
-device usb-ehci,id=usb,bus=pci.0,addr=0x4 \
65+
-device usb-tablet \
66+
-vnc :0 \
67+
(PRESS ENTER TWICE AFTER PASTING)
68+
69+
It will restart a few times
70+
71+
Once done, hold ctrl+c to exit in putty.
72+
73+
Step 5 : Compress The Image File :
74+
75+
dd if=windows2019.img | gzip -c>windows2019.gz
76+
77+
heck if you have all the files with the command : ls
78+
79+
80+
Step 6 : Hosting the image on droplet :
81+
82+
apt install apache2
83+
sudo ufw allow 'Apache'
84+
cp windows2019.gz /var/www/html/
85+
86+
Check if it works with typing : http://YOUR-IP-HERE/windows2019.gz
87+
88+
You can also download it on your own computer and host it in Google Drive to store it.
89+
90+
Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer
91+
92+
Watch on youtube here : https://youtu.be/wtHBDEl5DIw
93+

0 commit comments

Comments
 (0)