首页
关于
统计
留言
Search
1
IPTV直播源抓取
3,804 阅读
2
解除网页限制(禁止右键,复制,f12,文字选择)
1,864 阅读
3
armbian命令行设置中文
1,283 阅读
4
linux使用cups实现usb打印机远程打印
759 阅读
5
linux一键安装npc脚本
711 阅读
经验分享
程序代码
生活随笔
实用软件
其他
搞机
登录
Search
星扬
累计撰写
52
篇文章
累计收到
14
条评论
首页
栏目
经验分享
程序代码
生活随笔
实用软件
其他
搞机
页面
关于
统计
留言
搜索到
52
篇与
的结果
2022-06-01
armbian命令行设置中文
locale查看环境变量sudo nano /etc/locale.gen开启字库,去掉zh_CN.UTF-8前面的#保存sudo apt-get update更新程序列表sudo apt-get upgrade #更新程序sudo apt-get install ttf-wqy-zenhei安装中文字体sudo fc-cache -v更新字体列表sudo nano ~/.profile在文件末尾添加相应内容:全中文环境增加export LC_ALL=zh_CN.UTF-8半中文环境增加LC_CTYPE=zh_CN.UTF-8 和 LANG=en_US.UTF-8sudo locale-gen生成locale文件sudo locale-gen zh_CN.UTF-8 #可不执行(重启后在登录界面可切换中文)sudo reboot重启系统
2022年06月01日
1,283 阅读
0 评论
0 点赞
2022-05-30
docker搭建halo
本机环境Debian10,已安装nginx,mysql,dockerhalo支持mysql及H2本文以H2为例安装{tabs}{tabs-pane label="H2配置"}server: port: 8090 spring: datasource: driver-class-name: org.h2.Driver url: jdbc:h2:file:~/.halo/db/halo username: 数据库名 password: 数据库密码 h2: console: settings: web-allow-others: false path: /h2-console enabled: false{/tabs-pane}{tabs-pane label="mysql配置"}server: port: 8090 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: mysql用户名 password: mysql密码{/tabs-pane}{/tabs}创建docker容器docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo --restart=unless-stopped halohub/halo:1.5.3将需要的配置复制下来命名为application.yaml放在.halo目录下-p设置对外端口,-v设置在本地映射的目录,前者是本地系统的,后者在docker容器中放行8090端口即可访问nginx反向代理配置upstream halo { server 127.0.0.1:8090; } server { listen 80; listen [::]:80; server_name www.yourdomain.com; client_max_body_size 1024m; location / { proxy_pass http://halo; proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }安装有宝塔面板的可以新建站点在反向代理中设置代理,名称随意,目标urlhttp://127.0.0.1:8090 发送域名$host详细配置在官网文档https://docs.halo.run/
2022年05月30日
249 阅读
0 评论
0 点赞
2022-05-29
清除Linux系统历史记录
echo > /var/log/wtmp echo > /var/log/btmp echo>/var/log/lastlog echo > /var/log/secure echo > /var/log/messages echo>/var/log/syslog echo>/var/log/xferlog echo>/var/log/auth.log echo>/var/log/user.log cat /dev/null > /var/adm/sylog cat /dev/null > /var/log/maillog cat /dev/null > /var/log/openwebmail.log cat /dev/null > /var/log/mail.info echo>/var/run/utmp echo > ~/.bash_history history -c echo > .bash_history history -cw
2022年05月29日
149 阅读
0 评论
0 点赞
2022-05-29
解除网页限制(禁止右键,复制,f12,文字选择)
解除禁止操作可以ctrl+p打开打印,然后就可以在弹出的窗口愉快的复制了,没有禁止f12可以直接按f12,如果被限制就按ctrl+shift+i打开,或浏览器菜单开发者工具进入开发者工具点击控制台,输入以下内容// 开启右键菜单 document.oncontextmenu = function(){ return true; }; // 开启文字选择 document.onselectstart = function(){ return true; }; // 开启复制 document.oncopy = function(){ return true; }; // 开启剪切 document.oncut = function(){ return true; }; // 开启粘贴 document.onpaste = function(){ return true; }; // 开启F12键 document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { event.keyCode = 0; event.returnValue = true; return true; } };
2022年05月29日
1,864 阅读
0 评论
3 点赞
2022-05-28
armbian-ubuntu18.04bionic的一些国内软件源
{tabs}{tabs-pane label="清华源"}# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse{/tabs-pane}{tabs-pane label="阿里源"}# 默认注释了源码仓库,如有需要可自行取消注释 deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse{/tabs-pane}{tabs-pane label="华为源"}deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse ## Not recommended # deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse # deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse{/tabs-pane}{/tabs}
2022年05月28日
373 阅读
0 评论
0 点赞
2022-05-28
ubuntu命令行开启root用户登录
执行此命令,设置 root 密码sudo passwd root输入 root 的密码,按 Enter。重复输入 root 的密码,按 Enter。编辑sshd_config 配置文件sudo vi /etc/ssh/sshd_config找到 #Authentication,将 PasswordAuthentication 参数修改为 yes{card-describe title="提示"}若 sshd_config 配置文件中无此配置项,则添加 PasswordAuthentication yes 项即可。{/card-describe}按 Esc,输入 :wq,保存文件并返回。执行命令重启ssh服务sudo service ssh restart
2022年05月28日
186 阅读
0 评论
0 点赞
2022-05-27
TrayS透明任务栏美化监控
TrayS 是一款美化任务栏的软件,具备了任务栏透明/调色/磨砂/亚克力/居中设置,以及流量/CPU/内存的监控功能大小只有不到60k,作者已开源代码{cloud title="任务栏美化监控下载" type="lz" url="https://m88y.lanzouf.com/ipQqy05indje" password=""/}
2022年05月27日
217 阅读
0 评论
0 点赞
1
...
4
5
6
...
8