Information Retrieval Blog » Linux http://blog.zye.me ANTI-GFW Sun, 29 Aug 2010 03:59:54 +0000 http://wordpress.org/?v=2.9.1 en hourly 1 Figure format conversion in Linux http://blog.zye.me/2010/02/55549.html http://blog.zye.me/2010/02/55549.html#comments Mon, 22 Feb 2010 18:54:20 +0000 Jeffye http://blog.so8848.com/?p=55549 http://blog.zye.me/2010/02/55549.html/feed 0 命令行解压&压缩 全集 –Linux http://blog.zye.me/2010/02/55539.html http://blog.zye.me/2010/02/55539.html#comments Mon, 22 Feb 2010 17:25:35 +0000 Jeffye http://blog.so8848.com/?p=55539 Commands for Compress and Decompress

.tar 解包: tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!) ——————————————— .gz 解压1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 解压:tar zxvf FileName.tar.gz 压缩:tar zcvf FileName.tar.gz DirName ——————————————— .bz2 解压1:bzip2 -d FileName.bz2 解压2:bunzip2 FileName.bz2 压缩: bzip2 -z FileName .tar.bz2 解压:tar jxvf FileName.tar.bz2 压缩:tar jcvf FileName.tar.bz2 DirName ——————————————— .bz 解压1:bzip2 -d FileName.bz 解压2:bunzip2 FileName.bz 压缩:未知 .tar.bz 解压:tar jxvf FileName.tar.bz 压缩:未知 ——————————————— .Z 解压:uncompress FileName.Z 压缩:compress FileName .tar.Z 解压:tar Zxvf FileName.tar.Z 压缩:tar Zcvf FileName.tar.Z DirName ——————————————— .tgz 解压:tar zxvf FileName.tgz 压缩:未知 .tar.tgz 解压:tar zxvf FileName.tar.tgz 压缩:tar zcvf FileName.tar.tgz FileName ——————————————— .zip 解压:unzip FileName.zip 压缩:zip FileName.zip DirName ——————————————— .rar 解压:rar a [...]]]>
http://blog.zye.me/2010/02/55539.html/feed 0
vi/vim command summary http://blog.zye.me/2009/11/55463.html http://blog.zye.me/2009/11/55463.html#comments Sat, 28 Nov 2009 20:33:50 +0000 jeffye http://blog.so8848.com/?p=55463 vi/vim command summary

The following tables contain all the basic vi commands. Starting vi

Command Description vi file start at line 1 of file vi +n file start at line n of file vi + file start at last line of file vi +/pattern file start at pattern in file vi -r file recover file after a system crash

Saving files and quitting vi

Command Description :e file edit file (save current file with :w first) :w save (write out) the file being edited :w file save as file :w! file save as an existing file :q quit vi :wq save the file and [...]]]>
http://blog.zye.me/2009/11/55463.html/feed 1
Download Whole Website or Directories by using wget in Linux http://blog.zye.me/2009/09/54411.html http://blog.zye.me/2009/09/54411.html#comments Sat, 19 Sep 2009 18:43:41 +0000 jeffye http://blog.so8848.com/?p=54411 You might have googled a software for downloading a specified website or directory on either Windows or Linux platform . Yes, a bunch of tools can do this for you. Actually, we can do this by using a simple command, wget, on Linux platform. It is [...]]]> http://blog.zye.me/2009/09/54411.html/feed 0 SCP –copy among machines http://blog.zye.me/2009/08/53924.html http://blog.zye.me/2009/08/53924.html#comments Fri, 07 Aug 2009 07:43:17 +0000 jeffye http://blog.so8848.com/?p=53924 SCP

The scp command allows you to copy files over ssh connections. This is pretty useful if you want to transport files between computers, for example to backup something. The scp command uses the ssh command and they are very much alike. However, there are some important differences.

The scp command can be used in three* ways: [...]]]> http://blog.zye.me/2009/08/53924.html/feed 0 Ubuntu Server 安装图形界面 http://blog.zye.me/2009/06/52550.html http://blog.zye.me/2009/06/52550.html#comments Sat, 13 Jun 2009 00:15:30 +0000 jeffye http://blog.so8848.com/?p=52550 1、安装 X 窗口系统:sudo apt-get install x-window-system-core

2、安装登录管理器:sudo apt-get install xdm/gdm/kdm[注]。最常见的图形化登录管理器包括 XDM、GDM、KDM,用户可根据自己的需要选择其中之一

3、 安装桌面环境或窗口管理器:sudo apt-get install ubuntu-desktop/kubuntu-desktop/xubuntu-desktop。这将分别安装 GNOME、KDE、XFCE 桌面环境。对于 GNOME、KDE、XFCE 这些桌面环境来说,为了获得更强的定制效果,也可仅安装最基本的组件,如:sudo apt-get install gnome-core/kde-core/xfce4。

如果不需要桌面环境,也可选择安装窗口管理器代替。那样的话,可以执行指令 sudo apt-get install fluxbox/icewm/enlightenment/fvwm

Incoming search terms for the article:ubuntu server 图形界面 (72)ubuntu 图形界面 (40)ubuntu服务器图形界面 (35)ubuntu 服务器版 图形界面 (17)ubuntu 图形界面安装 (5)Related PostsDownload Whole Website or Directories by using wget in Linuxlinux下如何安装软件ubuntu linux下如何访问 网络共享Figure [...]]]>
http://blog.zye.me/2009/06/52550.html/feed 0
linux下如何安装软件 http://blog.zye.me/2009/04/51294.html http://blog.zye.me/2009/04/51294.html#comments Wed, 22 Apr 2009 00:13:57 +0000 jeffye http://blog.so8848.com/?p=51294 在Windows下安装软件时,只需用鼠标双击软件的安装程序,或者用Zip等解压缩软件解压缩即可安装。在Linux下安装软件对初学者来说,难度高于Windows下软件安装。下面我就详细讲解Linux下如何安装软件。

   先来看看Linux软件扩展名。软件后缀为.rpm最初是Red Hat Linux提供的一种包封装格式,现在许多Linux发行版本都使用;后缀为.deb是Debain Linux提供的一种包封装格式;后缀为.tar.gz、tar.Z、tar.bz2或.tgz是使用Unix系统打包工具tar打包的;后缀为.bin 的一般是一些商业软件。通过扩展名可以了解软件格式,进而了解软件安装。

  RPM格式软件包的安装

1.简介

  几乎所有的Linux发行版本都使用某种形式的软件包管理安装、更新和卸载软件。与直接从源代码安装相比,软件包管理易于安装和卸载;易于更新已安装的软件包;易于保护配置文件;易于跟踪已安装文件。

  RPM全称是Red Hat Package Manager(Red Hat包管理器)。RPM本质上就是一个包,包含可以立即在特定机器体系结构上安装和运行的Linux软件。RPM示意图见图1。

  大多数Linux RPM软件包的命名有一定的规律,它遵循名称-版本-修正版-类型-MYsoftware-1.2 -1.i386.rpm 。

2.安装RPM包软件

  # rpm -ivh MYsoftware-1.2 -1.i386.rpm

  RPM命令主要参数:

  -i 安装软件。   -t 测试安装,不是真的安装。   -p 显示安装进度。   -f 忽略任何错误。   -U 升级安装。   -v 检测套件是否正确安装。

  这些参数可以同时采用。更多的内容可以参考RPM的命令帮助。

安装QQ 有时候会出问题,试试下面命令:

rpm -ivh –force –nodeps linuxqq-v1.0.2-beta1.i386.rpm

3.卸载软件

  # rpm -e 软件名

  需要说明的是,上面代码中使用的是软件名,而不是软件包名。例如,要卸载software-1.2.-1.i386.rpm这个包时,应执行:   #rpm -e software

  4.强行卸载RPM包   有时除去一个RPM是不行的,尤其是系统上有别的程序依赖于它的时候。如果执行命令会显示如下错误信息:

  ## rpm -e xsnow   error: removing these packages would break dependencies:   /usr/X11R6/bin/xsnow is needed by x-amusements-1.0-1

  在这种情况下,可以用–force选项重新安装xsnow:

  ## rpm -ivh –force xsnow-1.41-1.i386.rpm   xsnow

  这里推荐使用工具软件Kleandisk,用它可以安全彻底清理掉不再使用的RPM包。

5.安装.src.rpm类型的文件

  目前RPM有两种模式,一种是已经过编码的(i386.rpm),一种是未经编码的(src.rpm)。   rpm –rebuild Filename.src.rpm

  这时系统会建立一个文件Filenamr.rpm,在/usr/src/redflag/RPMS/子目录下,一般是i386,具体情况和Linux发行版本有关。然后执行下面代码即可:   rpm -ivh /usr/src/regflag/RPMS/i386/Filename.rpm

使用deb打包的软件安装

   deb是Debian Linux提供的一个包管理器,它与RPM十分类似。但由于RPM出现得早,并且应用广泛,所以在各种版本的Linux中都常见到,而Debian的包管 理器dpkg只出现在Debina [...]]]> http://blog.zye.me/2009/04/51294.html/feed 0 ubuntu linux下如何访问 网络共享 http://blog.zye.me/2009/04/51293.html http://blog.zye.me/2009/04/51293.html#comments Wed, 22 Apr 2009 00:01:38 +0000 jeffye http://blog.so8848.com/?p=51293 挂接Windows文件共享

  Windows网络共享的核心是SMB/CIFS,在linux下要挂接(mount)windows的磁盘共享,就必须安装和使用samba软件包。现在流行的linux发行版绝大多数已经包含了samba软件包,如果安装linux系统时未安装samba请首先安装samba。当然也可以到www.samba.org网站下载……新的版本是3.0.10版。

ubuntu 下可以直接输入命令安装: sudo apt-get install samba

  当windows系统共享设置好以后,就可以在linux客户端挂接(mount)了,具体操作如下:

  # mkdir –p /mnt/samba

  注:建立一个目录用来作挂接点(mount point)

  # mount -t smbfs -o username=administrator,password=pldy123 //10.140.133.23/c$ /mnt/samba

如果不行,删除参数 -t smbfs试试(注意空格)

mount -o username=administrator,password=pldy123 //10.140.133.23/c$ /mnt/samba

  注:administrator 和 pldy123 是ip地址为10.140.133.23 windows计算机的一个用户名和密码,c$是这台计算机的一个磁盘共享或者文件夹名

  如此就可以在linux系统上通过/mnt/samba来访问windows系统磁盘上的文件了。以上操作在redhat as server 3、redflag server 4.1、suse [...]]]> http://blog.zye.me/2009/04/51293.html/feed 0