
linux
CGniao
这个作者很懒,什么都没留下…
展开
-
利用scp传输文件
如果要从服务器上将文件传输到本地scp username@servername:/path/filename /var/www/local_dir(本地目录)将本地的文件传输到服务器scp /path/filename username@servername:/path如果是目录,则需要加上-r参数。如果出现not a regular file请检查是否有下列错误1.文件没有相应的权限。查看文件转载 2015-08-14 00:00:19 · 638 阅读 · 0 评论 -
Ubuntu14.04LTS升级16.04LTS后加载桌面失败,不能上网等问题
1 Ctrl + Alt + Fn 尝试进入终端 2、ifconfig查看网络连接状态,插上网线还获取不到ip,就临时配置一个静态的。确保先能上网。 3、sudo dpkg –configure a 修复安装 4、sudo apt-get update 5、sudo apt-get upgrade,一般这个时候从输出中就能看到下载桌面的信息 6、reboot 此时就应该好了以上解决...原创 2018-04-23 09:28:03 · 1136 阅读 · 0 评论 -
文章标题
https://superuser.com/questions/1255099/vmware-workstation-not-enough-physical-memory-since-last-update/1255963原创 2017-12-05 23:34:25 · 283 阅读 · 0 评论 -
kali安装 vmtools
安装了VMware Tools却不能正常的拖拽文件。所以找了open-vm-tools代替。首先卸载已安装的VMware Tools1 - 打开终端窗口。2 - 通过运行以下命令切换到 root 用户:su - root3 - 运行 VMware Tools 卸载程序脚本:/usr/bin/vmware-uninstall-tools.pl4 - 按照屏幕说明完成卸载。5 - 重新引导虚转载 2017-05-05 14:48:16 · 1141 阅读 · 0 评论 -
CentOS安装YCM
1、安装vundlegit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim2、配置.vimrcset nocompatible filetype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'VundleVi原创 2017-02-25 17:15:01 · 1114 阅读 · 0 评论 -
Deibian8安装微软雅黑字体
http://www.mycode.net.cn/platform/741.html转载 2016-04-11 23:57:14 · 792 阅读 · 0 评论 -
Debian下交换ctrl与esc键映射
首先执行dconf read /org/gnome/desktop/input-sources/xkb-options然后记下结果['compose:rctrl','terminate:ctrl_alt_bksp']再在终端中输入dconf write /org/gnome/desktop/inpusources/xkb-options "['compose:rctrl','terminate:c转载 2016-03-21 23:46:34 · 771 阅读 · 0 评论 -
Debian下安装YouCompleteMe
YoucompleteMe原创 2015-12-25 18:12:17 · 2978 阅读 · 0 评论 -
C语言操作MYSQL
在Debian下用C语言访问数据库 首先安装sudo apt-get install libmysqlclient15-dev安装完成之后就可以编辑C程序了,在头文件中加入msyql.h#include"stdlib.h"#include"stdio.h"#include"mysql/mysql.h"编译时执行gcc -I /usr/include/mysql/ XXXXX.c -L /usr原创 2016-01-09 21:44:13 · 583 阅读 · 0 评论 -
Debian8下安装搜狗输入法(fcitx安装)
Fcitx安装与配置(1) 安装fcitx:# apt-get install fcitx(2) 创建脚本以便X Window启动时自动载入fcitx: # cd /etc/X11/Xsession.d # vi 25xchinput_start输入以下内容并保存: export XMODIFIERS=@im=fcitx export XIM=fcitx export X原创 2015-12-12 01:57:21 · 8152 阅读 · 0 评论 -
网络端口查看命令-netstat/nmap
『服务』跟『 port 』对应的档案是『 /etc/services 』 而与port相关的两个程序是:netstat:在本机上面以自己的程序监测自己的 port;nmap:透过网络的侦测软件辅助,可侦测非本机上的其他网络主机,但有违法之虞。netstat常用参数 与路由(route)有关的参数说明: [–numeric|-n]:不使用主机名称与服务名称,使用IP与port number,原创 2015-09-19 16:18:20 · 1098 阅读 · 0 评论 -
利用ssh登录服务器
在Debian下启动ssh服务Usage:/etc/init.d/ssh{start|stop|reload|force-reload|restart|try-restart|status}利用ssh登录服务器ssh -l [用户名] [服务器IP]如果要退出登录exit即可原创 2015-08-13 22:35:52 · 591 阅读 · 0 评论 -
查看发行版本信息
Debian下查看发行版本more /etc/debian_versionLinux下查看当前系统的的发行版信息lsb_release -a原创 2015-08-14 11:19:39 · 511 阅读 · 0 评论 -
手动编译安装nginx
出现checking for PCRE library … not found、./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using –without-http_rewrite_module option, or insta原创 2015-08-15 09:56:07 · 636 阅读 · 0 评论 -
Ubuntu 16.04 LTS 安装pfring
1、下载pfring源码包,安装使用的是6.4.1版本 2、主要的目录结构如下:PF_RING-6.4.1/ drivers/kernel/userland/Makefile3、在主目录下直接make,发现报错。缺三个工具 sudo apt-get install flex sudo apt-get bison sudo apt-get bya...原创 2018-06-20 17:37:49 · 2170 阅读 · 0 评论