随笔分类 -  Linux

1 2 下一页
Use SFTP in Linux (转)
摘要:Fromhttp://www.cnblogs.com/chen1987lei/archive/2010/11/26/1888391.htmlsftp 是一个交互式文件传输程式。它类似于 ftp, 但它进行加密传输,比FTP有更高的安全性。下边就简单介绍一下如何远程连接主机,进行文件的上传和下载,以及... 阅读全文
posted @ 2015-07-17 16:42 -Anny- 阅读(203) 评论(0) 推荐(0)
Web服务器父与子 Apache和Tomcat区别(转)
摘要:Fromhttp://developer.51cto.com/art/201007/210894.htm熟悉三国的朋友都知道曹操,曹操有二十五个儿子,其中最得曹操宠爱的是曹丕、曹植、曹彰三个,曹丕性格阴冷,擅长政治;曹植才华横溢,放浪不羁;曹彰武艺高强,战功卓著。曹操一直希望这三个儿子当中选取自己的... 阅读全文
posted @ 2015-04-08 17:04 -Anny- 阅读(184) 评论(0) 推荐(0)
How to fix broken packages?(转)
摘要:TryCode:sudo apt-get updateto update your package list.ThenCode:sudo apt-get autocleanto clean up any partial packages.ThenCode:sudo apt-get cleanto clean up the apt cache.Code:sudo apt-get autoremovewill clean up any unneeded dependencies.If while doing this you can identify the broken package this 阅读全文
posted @ 2014-01-29 17:10 -Anny- 阅读(332) 评论(0) 推荐(0)
Ubuntu 12.04开机默认启动IBus
摘要:Refer tohttp://wsysisibeibei.blog.163.com/blog/static/165368061201272062728241/根据Ubuntu官网的描述,安装了IBus Pinying。但是开机的时候,默认不起动IBus。而且通过 Laguage Support修改 Keyboard Input Method为Ibus也不其作用。最后采用如下办法解决:点击菜单Dash Home 在输入框内搜索Startup Applications并进入。Click the button: AddName: IBusCommand: /usr/bin/ibus-daemon - 阅读全文
posted @ 2013-06-06 14:43 -Anny- 阅读(352) 评论(0) 推荐(0)
Windows failed to start or 0xc0000225 boot error in Virtualbox
摘要:I setup a virtualbox in Ubuntu12.04 and setup a win7 in it.1. Win7->Settings->Storge - Choose a virtual CD/DVD disk file(iso file)2. Set the root seq is CD/DVD first in Settings -> System3. Start Win7Unfortunately,0xc0000225 boot error in Virtualbox occurs.Resolution: Before #3, we need to 阅读全文
posted @ 2013-06-05 18:15 -Anny- 阅读(328) 评论(0) 推荐(0)
Install chinese input method in Ubuntu12.04
摘要:Refer to http://www.2cto.com/os/201207/144189.htmlUbuntu 12.04中文输入法的安装Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系统中,中文输入法的安装。安装输入法的第一步,是安装语言包。我们选择System Settings-->Language Support-->Install/Remove Languages 阅读全文
posted @ 2013-05-30 00:48 -Anny- 阅读(980) 评论(0) 推荐(0)
/etc/passwd 文件内容详细解释(转)
摘要:原始出处:http://fangfang0717.blog.51cto.com/236466/130699/etc/passwd 是存放用户的地方1 2 3 4 5 6 7root: x : 0 : 0 : root : / root : / bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologinlp:x:4:7:lp:/var/spool/lpd:/sbin/nologinsync:x:5:0:sync:/sbin:/ 阅读全文
posted @ 2011-10-28 18:11 -Anny- 阅读(1925) 评论(0) 推荐(0)
Linux与用户/组相关的命令
摘要:Refer tohttp://www.linuxso.com/command/su.htmluseradd newuser #该用户的Home目录为/home/newuseruseradd 用户名 -g 组名 –G 组名 -d Home目录名 -p 密码 其中 -g 指定该用户的首要组 -G 指定该用户的次要组 -d 指定该用户的Home 目录 -p 指定该用户的密码usermoduserdel 用户名groupadd newgroupgroupdel groupnamepasswd 输入该命令后按系统提示依次输入密码和密码确认后即可完成用户密码的修改 此外超级用户还可以修改其他用... 阅读全文
posted @ 2011-10-28 17:56 -Anny- 阅读(263) 评论(0) 推荐(0)
Squirrel Sql client
摘要:Refer tohttp://www.squirrelsql.org/SQuirreL SQL Client is a graphical Java program that will allow you to view the structure of a JDBC compliant database, browse the data in tables, issue SQL commands etc, seeGetting StartedandIntroduction.的确很好用,用java -jar squirrel.jar 运行安装,如果连接mssql的话,下载一个sqljdbc4. 阅读全文
posted @ 2011-10-28 17:29 -Anny- 阅读(497) 评论(0) 推荐(0)
设置Ubuntu环境变量 PATH 的方法及配置备份(转)
摘要:Refer to http://jadeluo.iteye.com/blog/940113在Ubuntu中有如下几个文件可以设置环境变量: /etc/profile:在登录时,操作系统定制用户环境时使用的第一个文件,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. /etc/environment:在登录时操作系统使用的第二个文件,系统在读取你自己的profile前,设置环境文件的环境变量 ~/.profile:在登录时用到的第三个文件是.profile文件,每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置.. 阅读全文
posted @ 2011-10-12 16:33 -Anny- 阅读(367) 评论(0) 推荐(0)
How to create cisco vpn connection on Ubuntu10.10
摘要:1. Install network-manager-vpnc(depends vpnc) , network-manager-pptp in Synaptic package manager or use apt-get install2. System-Preferences-Network connections-VPN(Add or Import [if you have a pcf file for cisco])3. Select VPN connection just created to check if connection succeedIf failed, we can 阅读全文
posted @ 2011-10-08 16:08 -Anny- 阅读(88) 评论(0) 推荐(0)
Install Apache 2 from Source on Linux(转)
摘要:From http://www.thegeekstuff.com/2008/07/install-apache-2-from-source-on-linux/All Linux distributions comes with Apache. However, it is recommended to download latest Apache source code, compile and install on Linux. This will make it easier to upgrade Apache on a ongoing basis immediately after a 阅读全文
posted @ 2011-09-27 18:04 -Anny- 阅读(308) 评论(0) 推荐(0)
Linux EnvironmentVariables
摘要:Refer to https://help.ubuntu.com/community/EnvironmentVariablesprintenv |grep xxx 阅读全文
posted @ 2011-09-23 18:06 -Anny- 阅读(174) 评论(0) 推荐(0)
Ubuntu 防火墙 ufw
摘要:From http://www.cnblogs.com/cnnbboy/archive/2009/02/08/1386280.htmlufw是Ubuntu下一个简易的防火墙配置工具,底层还是调用iptables来处理的,虽然功能较简单,但对桌面型应用来说比较实用,基本常用功能都有,使用也较为容易。 1.安装 sudo apt-get install ufw 2.启用 sudo ufw enable sudo ufw default deny 运行以上两条命令后,开启了防火墙,并在系统启动时自动开启。 关闭所有外部对本机的访问,但本机访问外部正常。 3.开启/禁用 sudo u... 阅读全文
posted @ 2011-09-23 17:46 -Anny- 阅读(232) 评论(0) 推荐(0)
Ubuntu 10.04上安装MongoDB
摘要:healthcheck用到了mongodb,需要安装,暂时把网络上的参考方法摘录如下http://www.linuxidc.com/Linux/2010-08/28068.htmMongoDB是一个可扩展、高性能的下一代数据库。MongoDB中的数据以文档形式存储,这样就能在单个数据对象中表示复杂的关系。文档可能由 以下几 部分组成:独立的基本类型属性、“内嵌文档”或文档数组。这样的灵活性让开发者能以一种易于管理且灵活的方式来对大量的问题进行建模,不必将数据打散到不同的数据表中。在数据不宜被构造成单独文档的情况 下,MongoDB有“DBRef”的概念,这是从文档的一个属性指向另一个文档的指针 阅读全文
posted @ 2011-09-23 17:43 -Anny- 阅读(289) 评论(0) 推荐(0)
ubuntu apache 配置 访问php网页弹出php文件下载(转)
摘要:From http://www.php8848.com/wp/zh/942.html如果遇到在浏览器中访问php网页,页面没有显示,而是弹出一个下载php文件的窗口,是因为apache没有配置好,不认识php导致的,请按照以下步骤排错①:重新启动apache,有可能安装了php支持之后没有重启apache服务导致配置无法生效,请重启动apache后清空浏览器缓存后重试。②:如果问题未能解决,请确认是否启用了apache的php5模块,可以用以下命令启用它并重启apache$sudo a2enmod php5$sudo apache2ctl restart如果 $sudo a2enmod php 阅读全文
posted @ 2011-09-22 19:43 -Anny- 阅读(1268) 评论(0) 推荐(0)
autoreconf: not found
摘要:在执行shell脚本时, 提示 autoreconf: not found是因为 没有安装 automake, just to do below: sudo apt-get install autoconf automake libtool 阅读全文
posted @ 2011-09-22 18:29 -Anny- 阅读(8802) 评论(0) 推荐(0)
no such file to load -- openssl
摘要:Suggestion: Install ruby from source code 阅读全文
posted @ 2011-09-22 17:30 -Anny- 阅读(166) 评论(0) 推荐(0)
Error: shasum check failed for /tmp/npm-1316662414557/1316662415993-0.13772299513220787/tmp.tgz
摘要:when using npm install, the error like title happens.Just add sudo before npm install to resolve the issue. 阅读全文
posted @ 2011-09-22 13:50 -Anny- 阅读(1784) 评论(0) 推荐(0)
xml2-config not found. Please check your libxml2 installation
摘要:When config php source, there is an error:xml2-config not found. Please check your libxml2 installationIn Synaptic, there is only libxml2 installed, while libxml2-dev is not installed. Just install libxml2-dev.Or we can intall libxml2 using source code, like below:sudo wget ftp://xmlsoft.org/libxml2 阅读全文
posted @ 2011-09-21 18:22 -Anny- 阅读(448) 评论(0) 推荐(0)

1 2 下一页