Connect Debian VNC Virtual Desktop Remotely from MacOS

63 , , Leave a Comment
I have a Debian server without monitor, and I wan to access it remotely from my MacOS. Following is the steps to archive this. Install and start Virtual Desktop # Install updates sudo apt update # install the Xfce desktop sudo apt install xfce4 xfce4-goodies Edit file ~/.vnc/xstartup and set content to followin…

Run rustdesk in docker container quickly

82 Leave a Comment
First create data directory. The key file will be generated here. mkdir data Run hbbr: docker run -d \ --name hbbr \ --network host \ -v $(pwd)/data:/root \ --restart unless-stopped \ rustdesk/rustdesk-server:latest hbbr Run hbbs, it depends on hbbr: docker run -d \ --name hbbs \ --network host \ --restart unle…

Right way to mount Samba on Debian and Ubuntu

181 , , Leave a Comment
I was trying to mount Samba with following commands: sudo apt-get update sudo apt-get install cifs-utils mkdir -p /mnt/smbshare sudo mount.cifs //192.168.0.200 /mnt/smbshare -o username=admin,password=1234 Then I create a folder myshare under the samba server and run: sudo mount.cifs //192.168.0.200/myshare /mn…

Simulate streaming API with FastAPI

206 , , Leave a Comment
The server code import asyncio import uvicorn from fastapi import FastAPI from fastapi.responses import StreamingResponse app = FastAPI() async def fake_text_streaming(): for i in range(1000): yield b"Fake text #" + str(i).encode() + b"\n" await asyncio.sleep(1) @app.post("/") @app…

Crab Hunting in Abu Dhabi: Places and Time

As the capital of the United Arab Emirates, Abu Dhabi has a unique geographical environment, with a large number of islands and rich seawater resources. These resources provide a large amount of aquatic products, including a huge number of crabs. So, how do we enjoy crabbing in Abu Dhabi? When and where can we …

Java Image base64 to Spring Boot MultipartFile

Java code: package com.awaimai; import cn.hutool.core.lang.Assert; import lombok.extern.slf4j.Slf4j; import org.apache.tika.mime.MimeTypeException; import org.apache.tika.mime.MimeTypes; import org.springframework.mock.web.MockMultipartFile; import org.springframework.web.multipart.MultipartFile; import java.ut…
« Previous Page   Next Page »