随笔分类 -  Linux

摘要:通过tar命令备份、还原 备份操作如下 #!/bin/bash backup_dst="../backup.tgz" backup_src="/" sudo rm ${backup_dst} sudo tar cvpzf ${backup_dst} --exclude=${backup_dst} - 阅读全文
posted @ 2025-07-19 21:39 xbit 阅读(96) 评论(0) 推荐(0)
摘要:参考了:https://www.cnblogs.com/wainiwann/p/4210343.html 方法一:基于shell,设置环境变量LD_LIBRARY_PATH echo 'export LD_LIBRARY_PATH=/my/lib/directory:$LD_LIBRARY_PATH 阅读全文
posted @ 2025-07-19 21:38 xbit 阅读(38) 评论(0) 推荐(0)
摘要:参考该博客:https://segmentfault.com/a/1190000008734662 基本思路: 查看git是否正常: git fsck --full 删除空文件(empty file),可能有多个空文件,用如下命令一次删除全部空文件。 find . -type f -empty -d 阅读全文
posted @ 2025-07-19 21:33 xbit 阅读(48) 评论(0) 推荐(0)
摘要:基本格式,从scr_xxx复制到dst_xxx: scp src_dir dst_dir scp src_file dst_file 其中远程的src_xxx和dst_xxx为如下格式,运行后手动输入密码: remote_username@remote_ip:remote_folder 案例-1,复 阅读全文
posted @ 2025-07-19 21:32 xbit 阅读(14) 评论(0) 推荐(0)
摘要:在~/.config/autostart/目录下,添加xxx.desktop文件,内容如下: [Desktop Entry] Type=Application Name=start apps NoDisplay=yes # 设置该启动项在系统配置中显示 Exec=path/to/xxx.sh # 可 阅读全文
posted @ 2019-11-29 08:53 xbit 阅读(673) 评论(0) 推荐(0)
摘要:用find配合xargs rm 阅读全文
posted @ 2019-03-19 16:07 xbit 阅读(6544) 评论(0) 推荐(0)
摘要:shell脚本如下,无须加port 阅读全文
posted @ 2019-01-29 17:51 xbit 阅读(1227) 评论(0) 推荐(0)
摘要:安装 录制视频为record.mp4文件 阅读全文
posted @ 2019-01-29 17:48 xbit 阅读(6052) 评论(0) 推荐(0)
摘要:其中其决定作用的是这篇文章 https://www.pugetsystems.com/labs/hpc/Install-TensorFlow-with-GPU-Support-the-Easy-Way-on-Ubuntu-18-04-without-installing-CUDA-1170/ 注意兼 阅读全文
posted @ 2018-10-10 18:28 xbit 阅读(8887) 评论(0) 推荐(2)
摘要:windows下制作安装U盘 使用工具:Universal USB Installer ubuntu下制作安装U盘 使用工具:Startup Disk Creator(自带) 选择国内源:Switch to Chinese apt Sources:(In GUI) Software & Update 阅读全文
posted @ 2018-10-10 16:45 xbit 阅读(1118) 评论(0) 推荐(0)
摘要:参考了: https://blog.csdn.net/x534119219/article/details/79497264 可能方案一: 关闭VMware Workstation加速3D图形设置 可能方案二:重置socket 阅读全文
posted @ 2018-08-08 15:05 xbit 阅读(1037) 评论(0) 推荐(0)
摘要:方法1: Settings -> Devices -> Mouse&Touchpad -> Touchpad OFF 方法2: 终端运行如下命令 touchpad off: sudo modprobe -r psmousetouchpad on: sudo modprobe psmouse 方法3: 阅读全文
posted @ 2018-07-26 09:56 xbit 阅读(1461) 评论(0) 推荐(0)
摘要:其自带的远程桌面: 参考(推荐):https://linuxconfig.org/ubuntu-remote-desktop-18-04-bionic-beaver-linux 阅读全文
posted @ 2018-07-04 09:45 xbit 阅读(360) 评论(0) 推荐(0)
摘要:修改/etc/fstab文件,最后一列全改为0,测试能正常启动,尚未出现再次自检的情况 阅读全文
posted @ 2018-07-02 14:10 xbit 阅读(3165) 评论(0) 推荐(0)
摘要:文件名: test.sh 添加执行权限: 在终端执行代码: 运行结果: 阅读全文
posted @ 2018-06-27 17:45 xbit 阅读(13795) 评论(1) 推荐(0)
摘要:本人在Win7+VMware下利用两个ubuntu虚拟机安装、配置、测试了SSH。 在Server端安装openssh-server。 sudo apt-get install ssh # 安装ssh client+serversudo /etc/init.d/ssh start # restart 阅读全文
posted @ 2018-01-30 20:39 xbit 阅读(737) 评论(0) 推荐(0)