文件备份专用

/root/.bashrc

# 下面是自己写的启动后自动执行的指令

# 如果是非交互式 shell,直接退出,避免执行 scp 和 sftp 指令(运行的是非交互式 shell )时重复执行这些指令。
[[ $- != *i* ]] && return

fbset -fb /dev/fb0 -g 1920 1080 1920 1080 32

# 只使能 HDMI 显示,关闭另外两个显示。
xrandr --auto --output HDMI-1 --primary --pos 0x0
xrandr --output LVDS-1 --off
xrandr --output DSI-1 --off

# 提供远程桌面
tightvncserver :1 -geometry 1920x1080 -depth 24

# 更新系统时间
systemctl start ntp

# 关于显示重要指令
systemctl stop display-manager # 关闭 X11 显示服务器
#systemctl start display-manager # 重启 X11 显示服务器 (1/4)
#xrandr --auto --output HDMI-1 --primary --pos 0x0 # 重启 X11 显示服务器 (2/4)
#xrandr --output LVDS-1 --off # 重启 X11 显示服务器 (3/4)
#xrandr --output DSI-1 --off # 重启 X11 显示服务器 (4/4)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值