文章分类 -  Linux

摘要:命 令:whoami 或者 who am i 功能说明:先似乎用户名称。 语 法:whoami[--help][--version] 补充说明:显示自身的用户名称,本指令相当于执行"id-un"指令。 whoami 命令显示登录名。与使用命令 who 并指定 am i 不同,whoami 命令在有 root 用户权限时也有效,因为它不检查 /etc/utmp 文件。 该命令只出现在windows系列中的 windows 2000中。 参 数: --help 在线帮助。 --version 显示版本信息。 附:whoami 与who am i 的区别 who这个命令... 阅读全文
posted @ 2012-07-05 17:20 alxe_yu 阅读(1586) 评论(0) 推荐(0) 编辑
摘要:linux卸载文件系统命令功能说明:卸除文件系统。语 法:umount[-ahnrvV][-t<文件系统类型>][文件系统]补充说明:umount可卸除目前挂在Linux目录中的文件系统。参 数:-a卸除/etc/mtab中记录的所有文件系统。-h显示帮助。-n卸除时不要将信息存入/etc/mtab文件中。-r若无法成功卸除,则尝试以只读的方式重新挂入文件系统。-t<文件系统类型>仅卸除选项中所指定的文件系统。-v执行时显示详细的信息。-V显示版本信息。[文件系统]除了直接指定文件系统外,也可以用设备名称或挂入点来表示文件系统。使用umount命令可以卸载文件系统。利用 阅读全文
posted @ 2012-07-05 17:06 alxe_yu 阅读(159) 评论(0) 推荐(0) 编辑
摘要:nautilus-open-terminal很有用的插件--鼠标右键打开终端1.1fedora安装# yum -y install nautilus-open-terminal安装nautilus-open-terminal,注销下X桌面即可ubuntu安装#sudo apt-get install nautilus-open-terminal1.2在用源码包安装时如果出现这个错误checkingfor NAUTILUS... configure: error: Package requirements (libnautilus-extension >= 2.17.2 glib-2.0 阅读全文
posted @ 2012-06-21 18:02 alxe_yu 阅读(499) 评论(0) 推荐(0) 编辑
摘要:在 VMWare7.1 下安装了 Fedora13.图 1有两个“终端”。希望可以象 Windows 那样用 Win+R 然后输入命令来运行程序(比如按 Win+R 后输入 cmd 来运行命令行)。我呢,就是想按 Win+R 后输入某一个命令来运行“终端”(这里的“终端”不是指 konsole)。网上有很多添加快捷键的方法,大部分都是要输入命令的(至少我搜到的解决方案都是这样)。我呢,Linux新手,不想这么干。于是现在有两个问题摆在面前:1. Fedora 有类似 Windows 的“运行”窗口吗(就是按 Win+R 后弹出的那个窗口)?2. 这个“终端”的名字是什么(Windows 的命令 阅读全文
posted @ 2012-06-19 18:14 alxe_yu 阅读(329) 评论(0) 推荐(0) 编辑
摘要:装上vbox增强。如果在/etc/X11下面有xorg.conf这个文件,就把它删除了。再重启linux,然后点击vbox窗体上的【文件】-【自动调整显示尺寸】,linux桌面就可以随vbox窗体尺寸改变而改变! 阅读全文
posted @ 2012-06-14 02:15 alxe_yu 阅读(119) 评论(0) 推荐(0) 编辑
摘要:linux tee 命令详解功能说明:读取标准输入的数据,并将其内容输出成文件。语 法:tee[-ai][--help][--version][文件...]补充说明:tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。参 数: -a或--append 附加到既有文件的后面,而非覆盖它. -i-i或--ignore-interrupts 忽略中断信号。 --help 在线帮助。 --version 显示版本信息。用‘grep’搜索文本文件如果您要在几个文本文件中查找一字符串,可以使用‘grep’命令。‘grep’在文本中搜索指定的字符串。假设您正在‘/usr/sr.. 阅读全文
posted @ 2012-06-12 15:27 alxe_yu 阅读(279) 评论(0) 推荐(0) 编辑
摘要:VirtualboxFedora 12:Setup and run NFS service on Fedora machine, On your Fedora machine,yum install system-config-nfsgo to menu > System > Administration > Service, scroll down to nfs, enable, start or restart.go to menu > System > Administration > Firewall, disable it ("disab 阅读全文
posted @ 2012-06-12 15:15 alxe_yu 阅读(148) 评论(0) 推荐(0) 编辑
摘要:输入命令:gedit /etc/pam.d/gdm在文本编辑器中注释掉"authrequired pam_succeed_if.so user != rootquiet"这一行(在这一行前面加上"#",即改成#authrequired pam_succeed_if.so user != root quiet)保存后继续输入命令:gedit/etc/pam.d/gdm-password同样地注释掉"authrequired pam_succeed_if.so user != root quiet"这一行。保存后退出现在就能使用root登 阅读全文
posted @ 2012-06-12 15:11 alxe_yu 阅读(110) 评论(0) 推荐(0) 编辑
摘要:install: system-config-samba: 2. 配置一个文件夹为任何人都可以访问时,在xp下仍然需要输入用户名和密码, 这是因为还需要将security 设置为share, 如下:[root@linux /]# vi /etc/samba/smb.conf在[global]下修改: workgroup = WORKGROUP (改成同一工作组名) security=user (安全及别:需要输入用户名密码,访问)samba四种安全等级:share:用户不需要账户及密码即可登录samba服务器user:由提供服务的samba服务器负责检查账户及密码server:检查账户及密.. 阅读全文
posted @ 2012-06-12 15:08 alxe_yu 阅读(319) 评论(0) 推荐(0) 编辑
摘要:本文详细介绍了如何在Fedora 12中配置VNC Server,包括配置自动启动以及启动参数。安装VNC Server软件Linux上面的VNC Server软件有很多,因为本人喜欢Tiger VNC的客户端,所以这里也采用Tiger VNC Server。运行如下命令进行安装sudo yum install tigervnc-server 配置VNC Server假定我们的目标是以用户user1来启动VNC Server,显示端口是1(也就是5901),分辨率1152x864配置用户user1的VNC密码和参数以用户user1登录,运行vncpasswd 即可设置密码然后,编辑/home/ 阅读全文
posted @ 2012-06-12 15:05 alxe_yu 阅读(1141) 评论(0) 推荐(0) 编辑
摘要:Screen Recorder For Linux – IstanbulIstanbul is a desktop session recorder for the Free Desktop. It records your session into an Ogg Theora video file. To start the recording, you click on its icon in the notification area. To stop you click its icon again. It works on GNOME, KDE, XFCE and others. I 阅读全文
posted @ 2012-06-12 13:52 alxe_yu 阅读(133) 评论(0) 推荐(0) 编辑
摘要:1. go to the first line : 12. : .,$ del.代表当前光标所在行$代表最末行用,分隔 阅读全文
posted @ 2012-03-21 15:35 alxe_yu 阅读(418) 评论(0) 推荐(0) 编辑
摘要:一、RedHat Linux常用的日志文件 要想自己管理的系统固若金汤,就必须知道系统中正在发生什么。系统日志,正是帮助我们了解系统的工具之一。Linux 中提供了异常日志,并且日志的细节是可配置的。Linux 日志都以明文形式存储,所以用户不需要特殊的工具就可以搜索和阅读它们。还可以编写脚本,来扫描这些日志,并基于它们的内容去自动执行某些功能。Linux 日志存储在 /var/log 目录中。这里有几个由系统维护的日志文件,但其他服务和程序也可能会把它们的日志放在这里。大多数日志只有root账户才可以读,不过修改文件的访问权限就可以让其他人可读。 RedHat Linux常用的日志文件 .. 阅读全文
posted @ 2012-03-20 11:33 alxe_yu 阅读(785) 评论(0) 推荐(0) 编辑
摘要:How do I get the current unix time in milliseconds (i.e number of milliseconds since Unix epoch Jan 1 1970) ?This:date +%s will return the number of seconds since the epoch.This:date +%s%Nreturns the seconds and current nanoseconds.So:date +%s%N | cut -b1-13will give you the number of milliseconds s 阅读全文
posted @ 2012-03-06 17:53 alxe_yu 阅读(377) 评论(0) 推荐(0) 编辑
摘要:环境: fedora12,nvidia显卡,默认驱动,没安装nvidia官方驱动问题重现:1. yum install system-config-display2. start system-config-display, then update some settings, this will generate a file /etc/X11/xorg.conf3. reboot, 问题出现,花屏,不能进入系统解决办法:1. press F10 at boot, go into grub?2. press e and add 3 to go into runlevel 33. backup 阅读全文
posted @ 2012-02-04 12:37 alxe_yu 阅读(198) 评论(0) 推荐(0) 编辑
摘要:1、在终端以执行:uname -a,查看你正在用的是内核版本。2、终端执行: grep ^kernel | sort,查看当前已经安装的kernel相关文件,然后看与第一步中对应内核的kernel-headers和kernel-devel是否都装上了,没有的话装好!3、终端执行: /sbin/lspci | grep VGA,查看你的机器的显卡型号,并到英伟达官网下载对应的显卡驱动。如我的显卡是NVIDIA GeForce 9300M GS,下到的最新的显卡驱动是NVIDIA-Linux-x86-190.53-pkg1.run。 4、下好后,将.run文件放于/tmp目录下(方便字符界面找到文 阅读全文
posted @ 2012-02-04 11:32 alxe_yu 阅读(269) 评论(0) 推荐(0) 编辑
摘要:17.2.Booting into Rescue ModeRescue mode provides the ability to boot a small Fedora environment entirely from CD-ROM, or some other boot method, instead of the system's hard drive.As the name implies, rescue mode is provided to rescue you from something. During normal operation, your Fedora sys 阅读全文
posted @ 2012-02-04 11:23 alxe_yu 阅读(476) 评论(0) 推荐(0) 编辑
摘要:17.3.Booting into Single-User ModeOne of the advantages of single-user mode is that you do not need a boot CD-ROM; however, it does not give you the option to mount the file systems as read-only or not mount them at all.If your system boots, but does not allow you to log in when it has completed boo 阅读全文
posted @ 2012-02-04 11:21 alxe_yu 阅读(279) 评论(0) 推荐(0) 编辑
摘要:1. install system-config-display yum install system-config-display2. 修改 /etc/X11/xorg.conf注:前提是装了显卡驱动gtf - calculate VESA GTF mode lines 中文的意思是计算显示设备VESA驱动GTF模式命令行工具;什么是gtf?gtf(generalized timing formula),一般程序时间,定义了产生画面所需要的时间,包括了诸如画面刷新率等),另外gtf也是显示设备的一个工业标准;通过GTF则可以自动调节屏幕尺寸;我们通过gtf 工具计算显示器屏幕尺寸、分辨率,然 阅读全文
posted @ 2012-02-03 15:12 alxe_yu 阅读(3546) 评论(0) 推荐(0) 编辑
摘要:John FleckCopyright© 2002, 2003 John Fleck目录介绍数据类型解析文件获取元素内容用XPath获取元素内容写入元素内容写入属性获取属性编码转换A.编译B.例子文档C.Keyword例子代码D.Xpath例子代码E.添加Keyword的例子代码F.添加属性的例子代码G.获取属性值的例子代码H.编码转换的例子代码I.感谢摘要Libxml是一个自由授权的,用来处理XML的C语言库,它可以移植到很多的平台上。本教程为其基本函数提供了例子。 介绍Libxml是一个C语言库,用来对XML数据进行读取、创建和维护。这个教程对其基本功能提供了例子代码和说明。在l 阅读全文
posted @ 2012-01-28 00:26 alxe_yu 阅读(377) 评论(1) 推荐(0) 编辑