Windows 7 & Debian 双系统
建议在 Linux 下使用一段时间后,再参阅本教程,不然小白会摸不着头脑的。
准备:
- 电脑 #至少一台
- U盘 & [移动硬盘,NAS]
- 下载 Win7 & Debian 的 ISO 安装镜像,备份到移动硬盘
建议在 Linux 下使用一段时间后,再参阅本教程,不然小白会摸不着头脑的。
下载 Flash Player
解压会得到一个.so文件1
2
3#mkdir -p ~/.mozilla/plugins/
cp libflashplayer.so ~/.mozilla/plugins/
cp libflashplayer.so /usr/lib/iceweasel/
说明:正则表达式通常用于两种任务:1.验证,2.搜索/替换。用于验证时,通常需要在前后分别加上^和$,以匹配整个待验证字符串;搜索/替换时是否加上此限定则根据搜索的要求而定,此外,也有可能要在前后加上\b而不是^和$。此表所列的常用正则表达式,除个别外均未在前后加上任何限定,请根据需要,自行处理。
作U盘系统启动盘,Ubuntu下有个图形界面工具Startup Disk Creator,简单易用,但是缺点就是只能制作Ubuntu的启动盘,别的系统不支持。那么我想在Ubuntu下作Fedora的系统启动盘要怎么办呢?不要紧,有dd命令呢!
dd命令是用来拷贝文件的命令,它可以自动转换成对应的格式。在玩树莓派的时候,我们也是用dd命令烧写系统的,还记得吧?1
$ sudo dd bs=4M if=~/raspberrypi/2014-09-09-wheezy-raspbian.img of=/dev/sdb && sync
dd命令简单用法就是这样,那么我们还可以用它烧写光盘和作其他系统的启动U盘。
1 |
|
/usr/share/doc/base-files/FAQ:
Q. Ok, but how do I know which distribution I'm running?
A. If you are running testing or unstable, then /etc/debian_version is
not a reliable way to know that anymore. Looking at the contents of
your /etc/apt/sources.list file is probably a much better way.
其他相关的或有趣的包还有:
Network Manager is a feature-rich network configuration service which is used by default in most Linux desktop environments nowadays. It provides automatic configuration of (wired/wireless) network interfaces, as well as VPN, mobile broadband and even Bluetooth connections. Network Manager is smart enough to automatically switch to the best (or the most recent) connection network, and can inform other applications of up-to-date network events via D-Bus API.
While Network Manager comes with various sophisticated features, you might just prefer the old plain network service. There could be several reasons to do so. For one, you may wish to have more control over network management, instead of relying on purely automatic configuration and switch-over, which may or may not suit your needs. Besides, Network Manager is not suitable for advanced networking setup, such as multi-homing to more than one wired connections, forwarding network traffic, configuring Linux bridge or aliases, etc.
/proc/stat文件里包含系统cpu使用情况,2-8列对应的CPU消耗含义是用户态消耗(user)、用户态nice消耗(nice)、内 核态消耗(sys)、空闲时间(idle)、等待IO消耗(iowait)、硬件中断消耗(hardirq)、软中断消耗(softirq)。(man proc)
1 |
|
要计算t1~t2时间内系统的cpu利用率,需要在t1、t2时刻分别采集cpu使用信息
30分钟内让你明白正则表达式是什么,并对它有一些基本的了解,让你可以在自己的程序或网页里使用它。
别被下面那些复杂的表达式吓倒,只要跟着我一步一步来,你会发现正则表达式其实并没有想像中的那么困难。当然,如果你看完了这篇教程之后,发现自己明白了很多,却又几乎什么都记不得,那也是很正常的——我认为,没接触过正则表达式的人在看完这篇教程后,能把提到过的语法记住80%以上的可能性为零。这里只是让你明白基本的原理,以后你还需要多练习,多使用,才能熟练掌握正则表达式。
除了作为入门教程之外,本文还试图成为可以在日常工作中使用的正则表达式语法参考手册。就作者本人的经历来说,这个目标还是完成得不错的——你看,我自己也没能把所有的东西记下来,不是吗?
SSH无密码登录要使用公钥与私钥。Linux下可以用用ssh-keygen生成公钥/私钥对,下面我以CentOS为例。
有机器A(192.168.1.155),B(192.168.1.181)。现想A通过ssh免密码登录到B。