易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : linux

linux下bin文件安装

At first you have to open a terminal/bash and then enter:
file /path/file.bin
for example file /home/user/file.bin (file is the command)
Now you should see a sentence including the word “executable” and not “non-executable, not executable,… or something completely different)
If you do not see “executable,…)” the file is probably an cd-image(BIN/CUE) and not an executable .bin-file
Now enter:
chmod +x file.bin
No path! Just the name of the file!!! Now the file is executable…
Last step: Type in
/path/file.bin
, for example /home/user/file.bin and the file will be executed…
......

关于linux忘记密码的一个最简单的方法

网上有很多的方法,关于忘记linux登录密码之后应该怎么办。有五种方法,都很好。
本人以为用grub引导的那种最实用,呵呵!试了一下,果然可以!!
grub引导

1. 在出现grub画面时,选择linux引导项,然后按e键
2. 选择以kernel开头的一行,再按e 键,在此行的末尾,按空格键后输入single,以回车键来退出编辑模式;
3. 回车返回,然后按b键启动,即可直接进入linux单用户模式
4. vi /etc/passwd
删除root项中的密码
(这里也可以直接使用passwd命令重新设置root的密码)
5、reboot重启,root密码为空
......

linux 下 kmplayer 安装。。

yum-protectbase在CentOS 5包仓库里面有提供:
#yum install yum-protectbase
在CentOS 5里面这个插件默认启动 .
编辑/etc/yum.repos.d/CentOS-Base.repo ,
在 [base]
、[update]
、[centosplus]
段末加上一行:
protect=1
让 [centosplus] 段失效如下:
enabled=0
编辑/etc/yum.repos.d/CentOS-Base.repo ,
在其它段的最后加上如下一行:
protect=0
rpmforge
下载rpmforge-release包.选择下面两个的其中一个, 依赖于你的机器.如果不能确定用哪一个用以下命令确定 uname -i

i386 http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

x86_64 http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

(你可以在 http://dag.wieers.com/packages/rpmforge-release/
找到rpmforge-release包的完全列表,但是推荐使用上面列出两个中的一个).
安装DAG's GPG key
#rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
校验你下载的包
#rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
安全警告: rpmforge-release包把GPG keys注射到你的RPM数据库中. ......

ubuntu=linux下建设FTP服务器(完整)

linux下构建建设完美FTP服务器,可管理,WEB管理,管理界面。
一、安装Ubuntu5 Desktop版
安装过程不难,依照http://wiki.ubuntu.org.cn快速设置即可,注意下面两点:
1、网通用户请选择上海交大的源,比较快。
2、ms分区下的中文目录名显示为???
这时,你要编辑/etc/fstab。比如我的笔记本中的fstab文件改后是:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /media/hda1 ntfs auto,user,nls=utf8,umask=0 0 0
/dev/hda5 /media/hda5 vfat auto,user,utf8,umask=0 0 0
/dev/hda4 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
======================================
3.Breezy(5.10)设置本地local环境
sudo dpkg-reconfigure locales #把所有zh-开头的都选上。
********** ......

LINUX期末复习 文件处理

一、LINUX文件结构 ①文件
  为操作系统服务、设备访问提供了简单而统一的接口。文件数据结构包括文件名字、创建日期、访问权、文件长度等,这些数据都保存在我们称之为 节点 中。
②设备
  硬件在LINUX/UNIX中通常是被映射成文件的,这在嵌入式当中是十分重要的。
  几个重要的设备文件:
  one: /dev/console 代表的是系统控制台。
  two: /dev/tty 是进程控制终端。
  three: /dev/null 空设备。
③目录
  一种保存节点号和其他文件名字的特殊文件,通常只能拖过opendir 和 readdir来操作。 二、系统调用 定义:对文件和设备进行访问和控制的函数调用被称为系统调用,它有LINUX直接提供,是通向操作系统本身的操作接口。
不足:系统调用会降低计算机的执行性能。因为用户空间和内核空间处于不同的空间,系统调用会在用户程序和内核代码之间来回切换,系统开销很大。一般由库函数来间接调用。 ①open

举例:file = open("stu.info ", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
说明: O_RDWR:以读写方式打开文件。
     ......

学习linux多线程编程 相关概念

学习Linux多进程编程
一、进程的定义:程序执行和资源管理的最小单位。
二、进程控制:
(1)进程标识: 进程标识  子进程号  父进程号
 头文件  #include<unistd.h>  #include<unistd.h>
 函数功能  取得当前进程的进程号  取得当前进程的父进程号
 函数原型  Pid_t getpid(void) Pid_t getppid(void) 
 函数返回值  成功返回进程的进程标识符   成功返回父进程的进程标识符
注:Pid_t其实是一个typedef类型,相当于unsigned int.
例:
 #include<stdio.h>
#include<unistd.h>
int main()
{
   printf("系统分配的进程号是:%d\n",getpid());
   printf("系统分配的父进程号是:%d\n",getppid());
   return 0;
}
 (2)进程的创建:
    1)exec族函数:
 头文件  #include<unistd.h>
原型
int execl(const chat *path,const char *args,...)
int execv(const char *path,char const *argv[])
int execle(const cahr *path,const char *arg,...,char *const e ......
总记录数:5772; 总页数:962; 每页6 条; 首页 上一页 [642] [643] [644] [645] 646 [647] [648] [649] [650] [651]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号