
Linux
文章平均质量分 51
g_r_u_b
这个作者很懒,什么都没留下…
展开
-
Fedora安装字体
(以DejaVu Sans Mono为例)下载DejaVuSansMono.ttf,保存在~/Downloads下$ mkdir /usr/share/fonts/monospace$ cd /usr/share/fonts/monospace$ cp ~/Downloads/DejaVuSansMono .$ mkfontscale$ mkfontdir$ f原创 2013-03-30 15:26:15 · 722 阅读 · 0 评论 -
ubuntu修改mac地址
暂时修改:ifconfig eth0 downifconfig eth0 hw ether A4:BA:DB:ED:BD:1F(网卡的mac地址)ifconfig eth0 up永久修改:vi /etc/init.d/rc.local在文件末输入上述三行,:wq 保存退出。原创 2012-04-14 22:28:10 · 424 阅读 · 0 评论 -
Linux Kernel & Distributions
Linux的内核版本Linux内核的版本号分为主版本号、次版本号和扩展版本号等。根据稳定版本、测试版本和开发版本定义不同版本序列。稳定版本的主版本号用偶数表示,例如:2.2、2.4、2.6。每隔2~3年启动一个Linux稳定主版本号。紧接着是次版本号,例如:2.6.30、2.6.31、2.6.32。次版本号不分奇偶数,顺序递增。每隔1~2个月发布一个稳定版本。然后是升级版本号,转载 2012-04-15 09:17:58 · 770 阅读 · 0 评论 -
linux /usr目录
/usr/usr usually contains by far the largest share of data on a system. Hence,this is one of the most important directories in the system as it contains all the user binaries, their documentation, l转载 2012-04-24 15:07:06 · 1903 阅读 · 0 评论 -
linux /etc目录
/etcThis is the nerve center of your system, it contains all system related configuration files in here or in its sub-directories. A "configuration file" is defined as a local file used to contr转载 2012-04-25 18:01:26 · 853 阅读 · 0 评论 -
linux /boot目录
/bootThis directory contains everything required for the boot process except for configuration files not needed at boot time and the map installer. Thus, the /boot directory stores data that is us转载 2012-04-28 15:22:29 · 2976 阅读 · 0 评论 -
ubuntu静态网络配置
//配置静态IP,子网掩码,网关sudo vi /etc/network/interfacesauto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 211.80.61.54netmask 255.255.255.0gateway 211.80.61.254//配置NDSsudo原创 2012-06-01 22:23:34 · 498 阅读 · 0 评论 -
Shell编写心得
(1).Shell编写需要涉及到许多系统调用,如: fork(), exec(), wait()而系统调用失败时,一般都不输出错误信息,所以在代码中包含错误处理对debug非常重要,如: if (execlp("ls", "ls", (char *)0) == -1) { perror("execlp"); exit(EXIT_FAI原创 2013-03-30 22:04:28 · 645 阅读 · 0 评论 -
Fedora的Network-Manager真难用
Fedora的Network-Manager真难用,有时候擅自建个网络连接叫Auto_Ethernet,建个能上网的也就算了,结果配置又不对;有时候手动配置了个连接又启用不了;算了,干脆停用Network-Manager: $ sudo systemctl disable Network_Manager.service手动配置网络连接:网络连接的配置文件在/etc/s原创 2013-04-16 10:31:33 · 2469 阅读 · 0 评论 -
Gentoo安装与配置 - Part 1
Fedora17用了2年多了,想着也该换个发行版用用了,当初还是个菜鸟的时候,听说Gentoo什么都要从源码编译,没敢去用,现在稍微有了点积累,想回过头来再试试。由于是初次接触Gentoo(尽管以前折腾过LFS),预计工作量会比较庞大,也会遇到各种各样的问题,所以现在开始做个分段记录(Part 1 - Part ?)。原创 2013-09-19 20:16:22 · 639 阅读 · 0 评论 -
linux /bin目录
/binThe bin directory contains several useful commands that are of use to both the system administrator as well as non-privileged users. It usually contains the shells like bash, csh, etc and comm转载 2012-04-28 13:47:10 · 1287 阅读 · 1 评论 -
fedora安装flash plugin
sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpmsudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux sudo yum install flash-plugin nspluginwra转载 2012-06-02 15:04:53 · 663 阅读 · 0 评论 -
Recover Grub2 using a LiveCD(for Fedora 17)
$ su$ cd /media$ mkdir tmp # make a temporary directory to mount /boot$ mount /dev/sda3 tmp原创 2013-01-10 07:58:52 · 594 阅读 · 0 评论 -
iptables的一些资料
1. http://man.chinaunix.net/network/iptables-tutorial-cn-1.1.19.html2. http://blog.youkuaiyun.com/trochiluses/article/details/94910693. $ man iptables原创 2014-01-20 22:32:57 · 597 阅读 · 0 评论