Ubuntu & Deepin
Ubuntu & Deepin 使用
River-D
知之者不如好之者,好之者不如乐之者。
展开
-
Ubuntu下自动启动终端并运行脚本或命令
1、 2、command填写示例:gnome-terminal -x /home/river/startupRun.sh 3、startupRun.sh示例 date; sleep 5; date;gnome-terminal&/mnt/hgfs/E/river/hikvision/CH_HCNetSDK_Linux64/consoleDemo/linux64/lib/sdkTestdate;原创 2017-11-21 17:41:57 · 15357 阅读 · 1 评论 -
cron
Cron表达式详解在线Cron表达式生成器https://www.beejson.com/tool/cron.htmlhttps://crontab.guru/a simple cross platform C libraryhttps://github.com/ssteidl/libhoro.git原创 2020-07-01 11:36:25 · 155 阅读 · 0 评论 -
linux cmd
update-alternatives使用详解原创 2020-11-09 18:03:57 · 125 阅读 · 0 评论 -
Deepin 使用
修复deepin文件管理器(super+e)被替换为vscodegio mime inode/directory dde-file-manager.desktop原创 2020-11-06 09:18:34 · 135 阅读 · 0 评论 -
Ubuntu之jdk下载安装
到oracle官网下载jdk安装包解压tar包tar -zxvf jdk-8u251-linux-x64.tar.gz设置环境变量export JAVA_HOME=/usr/local/jdk1.8export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=.:${JAVA_HOME}/bin:$PATH使修改的配置立刻生效source /etc/prof原创 2020-11-09 11:17:18 · 331 阅读 · 0 评论 -
ubuntu下查看软件安装信息
查看软件安装目录以及安装版本1.查询版本1)aptitude show 软件名例如:aptitude show kde-runtime2)dpkg -l 查看已安装软件例如:dpkg -l gedit2.查询安装路径1)dpkg -L 软件名例如:dpkg -L gedit2)whereis 软件名例如:whereis gedit3、查看软件安装的详细信息:pascal@pascal:~$ apt show python34、which firefox 输出 /usr/bin/f原创 2020-11-09 09:26:31 · 2550 阅读 · 0 评论 -
Linux history cmd
history 命令用来显示执行过的命令,也可以根据显示的命令重新执行需要的命令。用法:n 显示n个最近的记录-a 添加记录到history文件中-c 将目前shell中的所有history命令清除-d [n] 删除指定n条记录-r 将history文件内容读入到目前shell的history记忆中-w 将目前history记忆的内容写入到history文件中(直接覆盖方式)储存命令历史的文件在~/bash_history中。 //调整history记录条数 默认记录1000行,配置原创 2020-11-06 09:43:11 · 234 阅读 · 0 评论 -
Linux sh 定时关机
poweroff.shecho shutdown system 3600ssleep 3600s poweroff原创 2020-06-16 18:33:12 · 268 阅读 · 0 评论 -
Ubuntu 14.04 LTS 下升级 gcc 到 gcc-4.9、gcc-5 版本
如果没记错的话,阿里云ECS上的Ubuntu也是LTS版本。如果还在使用较旧版本的Ubuntu,或者是Ubuntu LTS,那么我们是很难体验新版gcc的。怎么办呢?我们或许可以自己去编译用旧版本的gcc去编译新版本,但比较繁琐而且坑点较多。如果有现成的包就好啦!原来,在toolchain/test下已经有打包好的gcc,版本有4.x、5.0、6.0等,用这个PPA升级gcc就可以啦!首先添加p...转载 2018-05-30 12:02:17 · 697 阅读 · 0 评论 -
ubuntu常用操作
ubuntu 修改主机名第一步:ubuntu主机名位于/etc/hostname里,将其修改为自己需要的名称。第二步:修改/etc/hosts文件,将其中127.0.1.1对应的主机名更改为新的主机名,与/etc/hostname里的主机名一致。第三步:重启系统。原创 2017-11-21 10:36:51 · 265 阅读 · 0 评论 -
ubuntu tools
FTP服务install: sudo apt-get install vsftpdconfig: sudo vi /etc/vsftpd.conflocal_enable=YESwrite_enable=YESrestart: sudo /etc/init.d/vsftpd restartFTP客户端: FileZilla https://www.filezilla.cn/down...原创 2019-11-13 10:12:54 · 189 阅读 · 0 评论 -
在Ubuntu中安装Qemu模拟ARM架构
不建议使用源码安装,虽然版本较新,但依赖库很多,会出现各种问题。可通过软件包管理器apt-get install qemu。但是此种安装后,在/usr/bin/目录下只有qemu-system-i386之类的命令工具,并无arm相关的工具,此时需要安装qemu-system-arm,执行命令apt-get install qemu-system。也就是默认安装Qemu是不支持ARM架构的。同时也需...转载 2019-12-26 14:45:23 · 936 阅读 · 0 评论 -
ubuntu Show compile message with color
https://github.com/chinaran/color-compile(1) 编译(进到项目根目录,"\make" 是使用系统make,而不是alias别名)$ \make(2) 安装(需要超级权限)$ \make install(这一步做了两件事,一是把主程序拷贝到 /usr/local/bin/ 下,二是添加了 gcc/g++/m转载 2017-12-28 16:39:59 · 195 阅读 · 0 评论 -
ubuntu 添加桌面图标
1. 创建 wechat.desktop 文件,存放在以下地址。/usr/share/applications2. 填写 wechat.desktop 内容# 文件头,固定格式[Desktop Entry] # 编码Encoding = UTF-8# 应用名称Name = Wechat# 应用提示,鼠标悬浮图标时的文字提示Comment = Wechat# 应用的执行脚本全路径,根据实际情况填写Exec = /home/xxx/xxx/electronic-wechat-linux原创 2020-05-22 19:44:30 · 514 阅读 · 0 评论