Brief guidance to linux systemd configuration

Brief guidance to linux systemd configuration

Notice: This article is only available in Chinese version. :( 习惯了诸如 " systemctl {start|status|stop|enable|disable} httpd " 等类似的命令?在Linux中如何将普通的应用程序设置成服务? 这里以 frp client 为例,实现在 Ubuntu 18.04 上的普通的应用程序添加进守护进程以方便配置自启动。 配置service文件 在应用程序的安装或配置位置,新建一个 frpc.service ,然后再来按照区块编辑这个文件: Unit 负责服务的描述,启动顺序和依赖关系。 Before 和 After 定义服务的启动顺序(在某个程序之前或之后)。 require …

Continue Reading >>

Using putty to connect raspberry pi by serial

Using putty to connect raspberry pi by serial

Notice: This article is only available in Chinese. :( 最近收到了期盼已久的树莓派:3B和zere 0w,当然要晒一晒了, 就像这样。 在连包装盒一起里里外外欣赏了个透之后,就有疑问来了:没有HDMI接口的显示器,该怎样给好吃的连无线网络呢?(尽管是有的,我还是这么想了)USB直连?可能不大行得通(人家只是电源接口而已,USB直连根本不行),还有烧板子的风险。查了查dalao们的博客,ttl串口通讯,好的,猜得八九不离十。 材料 USB转TTL串口连接线(带芯片),serial controller 驱动 连线 红色连接5V,黑色接地,还有两根白绿分别接TXD和RTX。 …

Continue Reading >>

Lumen custom page-notfound response

Lumen custom page-notfound response

Notice: This article is only a available in Chinese version available. :( 在 App\Exceptions\Handler 中引入: use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; 然后在 render()中更改响应的方式。 如果要渲染成页面,可以先在view文件夹中添加error.blade.php文件,然后在 render()中 return前加入判断404的语句: if ($e instanceof NotFoundHttpException){ return response(view("error"),404); } …

Continue Reading >>

Dream review on 23rd December

Dream review on 23rd December

Notice: This article is only available in Chinese. :( 刚醒来的时候,发现自己身处一狭窄的房间中。四周的地板边缘发出暗淡的深蓝色的光;面前有只有几步的小台阶,直连一截狭隘的走廊;走廊右侧便有一更小的房间,其中有着更加黯淡的深蓝色光芒。回想着不久之前发生的一切:天空突然的阴晦,喷气背包燃料的耗尽 … 是些什么记忆,如同梦境一般。 黑夜里的航海人突然从岸上醒来般的震惊使我坐了起来。我用手支撑着自己,同时听到了小房间里的金属碰撞的声音。 “Who is …

Continue Reading >>

Mudmood Gallery

Mudmood Gallery

Not only is this page a tunes' list, but also a gallery to match music with vivid artistic photos or paitings. Just come up with an idea, and this project (if could be called so) is still in process. List kept updating. Every item comes with a link to the source of the tune and a photo or paiting from Unsplash, Pexels or others, used under …

Continue Reading >>