Linux
蚂蚁的希望
CSDN说我人很懒,什么都没有写
展开
-
Linux常用命令
Linux命令内部命令cdls -l(显示权限) -a(显示隐藏) -t(时序) -r(倒序) -ld(看当前本身权限) ls [X]* 通配pwd!$:上一个命令的最后一个单词man + 命令:查看该命令touch: 创建一个文件 mkdir:创建一个目录 mkdir -p :创建一个多级目录 mkdir a{1,2,3}:创建a1,a2,a3三个目录rm -f ...原创 2018-07-03 08:14:15 · 169 阅读 · 0 评论 -
Linux多线程学习笔记
简介int pthread_create(pthread_t *thread, const pthread_attr_t *attr,void *(*start_routine) (void *), void *arg);int pthread_join(pthread_t thread, void **retval);#include<stdio.h>#include<...原创 2019-03-31 15:01:20 · 113 阅读 · 0 评论 -
Linux下Socket网络编程
简介在进行socket网络编程之前,我们需要知道socket是什么?在Unix/linux操作系统中有一个哲学思想,那就是万物皆文件,socket也不例外,它是可读、可写、可控制、可关闭的文件描述符。#include <iostream>#include <sys/types.h>#include <sys/socket.h>#include <...原创 2019-03-24 11:27:26 · 4073 阅读 · 2 评论 -
解决Ubuntu18.04搜狗拼音输入法选词面板出现乱码问题
简介在使用搜狗拼音的时候,输入中文选词板出现乱码,表示很尴尬…可以重启fcitx框架来解决fcitx -r或者编写一个脚本,当出现问题时直接运行脚本即可创建一个脚本vi sogou.sh然后在脚本里编写#!/bin/bashpidof fcitx|xargs killecho "命令执行完成"保存退出,给该脚本可执行权限,找到脚本位置,然后chmod a+x sogo...原创 2019-03-23 21:11:11 · 2797 阅读 · 0 评论 -
Linux桌面
https://www.cnblogs.com/youxia/p/LinuxDesktop003.html#_label4原创 2019-01-30 13:29:47 · 283 阅读 · 0 评论 -
ThinkPad E580 安装Ubuntu18.04 没有WiFi解决办法
折腾了大半天,原来ThinkPad没有网卡驱动,需要自己下载1.下载驱动程序,编译内核模块$ git clone https://github.com/tomaspinho/rtl8821ce$ cd rtl8821ce$ chmod +x dkms-install.sh$ chmod +x dkms-remove.sh$ sudo ./dkms-install.sh注:chmod...原创 2019-01-26 21:49:42 · 4790 阅读 · 7 评论 -
Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info
运行sudo apt-get update 时Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > ...原创 2018-03-22 20:33:00 · 837 阅读 · 0 评论 -
The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user
使用sudo pip install ......的时候出现下面一段黄色的代码:The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permiss...原创 2018-03-22 22:37:00 · 14546 阅读 · 2 评论 -
GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified be
今天在更新运行apt-get update的时候出现了如下的错误:W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2A...原创 2018-03-22 20:29:00 · 1550 阅读 · 0 评论 -
Ubuntu 16.04 c++ Google框架单元测试
环境:Ubuntu 16.04在github网站上下载gtest框架:终端输入git clone https://github.com/google/googletest.git然后找到 gooletest-master文件夹,进入到googletest里面,需要生成gtest的静态库来获得gtest-all.o文件和生成libgtest.a库:打开终端输入:g++ -o gtest.o ...原创 2018-03-29 20:38:00 · 226 阅读 · 0 评论 -
Ubuntu清理系统垃圾 命令
请参考:圾Ubuntu清理系统垃 Ubuntu 16.04提示boot分区空间不足解决办法原创 2018-03-30 19:23:00 · 207 阅读 · 0 评论 -
crontab的使用
简介 crontab命令被用来提交和管理用户的需要周期性执行的任务,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务参考http://man.linuxde.net/crontabcrontab -l (查看)crontab -e(编...原创 2018-07-05 11:18:20 · 104 阅读 · 0 评论 -
RedHat5配置yum源
配置yum源进入/etc/yum.repos.d/编辑vi rhel-debuginfo.repo 修改baseurl 保存,然后mount查看光驱位置 把光驱挂在到/mnt下mount /dev/hdc /mnt注意:光驱位置以自己电脑的为主,不一定是/dev/hdc测试是否成功 yum clean all yum repolist 现在...原创 2018-07-05 10:55:02 · 4656 阅读 · 2 评论 -
Redhat配置网卡
Redhat配置网卡1.命令行配置,vi /etc/sysconfig/network-scripts/ifcfg-eth0 输入需配置的ip和子网掩码 2.使用图形化配置,输入setup 输入要配置的ip和子网掩码 配置完后保存退出,查看/etc/sysconfig/network-scripts/ifcfg-eth0文件,发现ip和子网掩码已经配置好...原创 2018-07-04 10:16:34 · 7928 阅读 · 0 评论 -
VMware不能联网解决办法
VMware不能联网解决办法点击编辑->虚拟网络编辑器,点击NET设置记住网关点击DHCP设置,查看ip范围启动虚拟机,并配置ip设置完成后,保存退出,点击右上角的网络上下箭头,点击Disconnect,然后再选择我们设置的网络,这里选择的是wired connection 1如果不能ping通,虚拟机的DHCP、NET等服务被禁用或没开启打开命令行(Ctrl + R),...原创 2019-05-18 14:35:37 · 708 阅读 · 0 评论