Ubuntu系统中默认没有启用SSH服务,但可以通过OpenSSH很容易启用该服务。OpenSSH是有OpenBSD项目组开发的一款建立SSH链接的开源软件。1、在终端中执行下面命令即可sudo apt-get install openssh-server2、安装完成后,你可以在配置文件中更改端口、...
分类:
系统相关 时间:
2015-04-27 12:57:03
阅读次数:
199
一、环境:刚安装好的Ubuntu14.04,本文只能保证 在Ubuntu下能达到效果。二、安装GVim。 sudo apt-get updatesudo apt-get install vim-gtk三、自定义vim与Gim语法高亮。 控制语法高亮的文件叫做 语言名.vim,例如,你想自定义C语.....
分类:
系统相关 时间:
2015-04-27 12:36:52
阅读次数:
447
Description
Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…
The Lunar New Year was approaching, but unluckily the Little Ca...
分类:
其他好文 时间:
2015-04-27 10:03:33
阅读次数:
170
今天想用rz、sz命令的时候发现mac没有自带,于是查找安装该命令的安装方法,最终选择了Brew安装。先介绍一下brew。brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便brew类似ubuntu系统下的apt-get的功能安装brew
brew 的官方网站: http://brew.sh/ 在官方网站对bre...
分类:
系统相关 时间:
2015-04-27 09:57:14
阅读次数:
206
三、编译固件
1.准备编译环境(推荐使用Ubuntu系统)
以Ubuntu 14.04 x64为例,安装编译所需工具和库。
$ sudo apt-get install git-corebuild-essential libssl-dev libncurses5-dev unzip
$ sudo apt-get install subversion mercurial
$ sudo ap...
分类:
其他好文 时间:
2015-04-27 02:05:13
阅读次数:
416
vhost : web.myftp.com storage.myftp.com ......not vhost : storage.myftp.com eg : topeg : htopeg : yes >/dev/nulleg : cat /etc/passwdeg : get abc.txtt....
分类:
系统相关 时间:
2015-04-27 00:01:38
阅读次数:
412
分析:水题,但要注意当c取2*b时,a可能被c整除,此时a继续加b继续判断。
#include
using namespace std;
int gcd(int a,int b)
{
int r;
while(b)
{
r=a%b;
a=b;
b=r;
}
return a;
}
int get(int a,int b)
{
int c;
c=2*b;
wh...
分类:
其他好文 时间:
2015-04-26 22:47:52
阅读次数:
147
wget 下载,得到网络上的内容grep 文件搜索工具EveryThing is a file in the linux system安装 cowsaysudo apt-get install cow-saycowsay ctrl + D 来结束输入stdout 输出 文件指针cat file1>f...
分类:
系统相关 时间:
2015-04-26 19:38:03
阅读次数:
186
在学习ios的过程中,停留在UI控件很长时间,现在正在逐步的接触当中!!!!!!在这个过程中,小编学到了一些关于网络编程知识,并且有感而发,在此分享一下:关于网络请求的重要性我想不用多说了吧!!!对于移动客户端来说,网络的重要性不言而喻,常见的网络请求有GET, POST,今天来看一下两种网络请求的...
分类:
移动开发 时间:
2015-04-26 18:13:04
阅读次数:
152
#import typedef enum { SexMan, SexWoman} Sex;@interface Student : NSObject{/*成员变量的命名规范:一定要以下划线 _ 开头 作用: 1.让成员变量和get方法的名称区分开 2.可以跟局部变量区分开,一看到下...
分类:
其他好文 时间:
2015-04-26 18:12:39
阅读次数:
104