共有 49 篇文章
Nvidia 显卡驱动
2024-01-03 - 2024-09-18
Nvidia 驱动在Linux下, 必须安装 Xorg 查看显卡信息 lspci -k | grep -EA3 'VGA|3D|Display' lspci | grep VGA lspci | grep -i nvidia # 查看指定显卡的详细信息用以下指令 lspci -v -s 00:0f.0 # Nvidia自带一个命令行工具可以查看显存
Keyboard rate
2024-01-03 - 2024-09-18
修改键盘重复频率和延迟 XServer startup options As alternative to this tool, you can set defaults for the X Server at startup. For the keyboard repeat rate: /etc/X11/xinit/xserverrc X -ardelay 200 -arinterval 30 # (interval is 1000/rate_in_hz) For this to configure, you need the privileges to edit X launch properties (probably in your login tool like lightdm). XServer configuration file XServer since version 21.1.0 supports the option AutoRepeat. Basically you need an xorg
屏幕保护、息屏
2024-01-03 - 2024-09-18
可以使用xset命令进行操作 xset dpms force off # 关闭屏幕 xset s 300 #设置屏保时间为300秒,时间单位为秒 xset s 0 #关闭屏幕保护 xset dpms 600 900 1200 # 三个数值分别为Standby、Susp
PPTP VPN
2023-12-29 - 2024-09-18

安装PPTP客户端 apt-get install pptp-linux 编辑配置文件 vim /etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses your_username PPTP your_password home.akvicor.com 在 /etc/ppp/peers/ 下新建一个VPN配置文件,文件名就是VPN的名字 vim /etc/ppp/peers/PPTP pty "pptp home.akvicor.com –nolaunchpppd" name Akvicor remotename PPTP require-mppe-128 file /etc/ppp/options.pptp ipparam PPTP 添加

使用find和rm搜索并删除文件
2023-09-19 - 2024-09-18
删除指定目录下指定文件 find /path -name .svn | xargs rm -rf 删除指定名称的文件或文件夹: find -type d | grep .svn$ | xargs rm -r 分析: find -type d | grep .svn$ 通过此命令查找文件夹 过滤正则表达式中的目录 | xargs rm -r 执行删
X11VNC Srver
2023-08-09 - 2024-09-18
安装配置 # 安装x11vnc apt install x11vnc # 设置开机自动启动连接密码,将密码储存在/etc/x11vnc.pass 下 x11vnc -storepasswd /etc/x11vnc.pass 查看认证服务 ps wwwwaux | grep auth 类似以下信息中的/var/
rsync 文件夹同步
2023-05-29 - 2024-09-18
描述 cp和scp是ubuntu中文件拷贝常用的两个命令,一般在同一台服务器上我们是用cp命令,跨服务时使用过scp命令,但是如果做文件同步的话,rsync要比上
Fail2ban
2023-05-11 - 2024-09-18
安装 Fail2ban apt-get install fail2ban Fail2ban 默认启用 ssh 的过滤器,可以在 /etc/fail2ban/jail.conf 查看,但是 Fail2ban 更新会覆盖此文件,建议复制一个 jail.local 进行编辑。 cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local 此后建议编辑 jail.local 对于 jail.local,你能找到许多 unit 例如
Resize Partition
2023-05-04 - 2024-09-18
1.卸载磁盘 umount -l /data 若提示磁盘忙,使用fuser找出将正在使用磁盘的程序并结束掉。 fuser -m -v /data fuser -m -v -i -k /data 2.磁盘分区 使用fdisk命令重新调整磁盘分区大小 fdisk -l fdisk /dev/sdb p
增加SWAP分区
2023-05-04 - 2024-09-18
一般来说可以按照如下规则设置swap大小: 4G以内的物理内存,SWAP 设置为内存的2倍。 4-8G的物理内存,SWAP 等于内存大小。 8-64G 的物理内存,SWAP 设置为8
Music Player Control
2023-03-22 - 2024-09-18
通过命令行控制软件的声音 安装 sudo apt install playerctl 使用 控制当前 playerctl play playerctl pause playerctl play-pause # toggle playerctl stop playerctl next playerctl previous playerctl volume 控制指定软件 获取软件列表 playerctl status -l 控制指定软件,如网易云音乐 playerctl –player=netease-cloud-music play-pause