linux
暴躁的Dream
谦逊,学习
展开
-
vnc4server xstart配置文件
#!/bin/sh# Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] &...原创 2018-05-25 10:54:14 · 1305 阅读 · 0 评论 -
Ubuntu vncserver的安装与使用
//服务端第一、安装X11VNCsudo apt-get install x11vnc第二、设置VNC密码x11vnc -storepasswd第三、启动VNC Servicex11vnc -forever -shared -rfbauth ~/.vnc/passwd//客户端第四 通过安装vncview连接服务端 直接输入服务端的ip即可参考博客//服务端https://blog.csdn.ne...原创 2018-05-23 14:35:41 · 1708 阅读 · 0 评论 -
linux 配置文件
# ~/.profile: executed by the command interpreter for login shells.# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login# exists.# see /usr/share/doc/bash/examples/startup-files f...原创 2018-08-16 09:44:53 · 226 阅读 · 0 评论 -
shell 脚本记录
变量替换1.${变量#匹配规则} #从头开始匹配,最短删除。2.${变量##匹配规则} #从头开始匹配,最长删除。3.${变量%匹配规则} #从末尾开始匹配,最短删除。4.${变量%%匹配规则}#从末尾开始匹配,最长删除。5.${变量/旧字符/新字符}#匹配第一个旧字符并且替换。6.${变量//旧字符/新字符}#匹配所有旧 字符并且替换。举例使用echo ${var#...原创 2019-06-19 17:41:32 · 292 阅读 · 0 评论 -
Linux shell curl添加请求耗时命令 添加请求头命令详解
curl -i -X POST \-H "Content-Type:application/json" \'www.baidu.com'curl-w 'time_connect %{time_connect}\ntime_starttransfer %{time_starttransfer}\ntime_total %{time_total}\n'curl -d "usernaem=u1...原创 2019-06-11 15:06:50 · 1370 阅读 · 0 评论