RouterOS的限速和限制线程的脚本,作为备用。
ARP静态绑定
第一步,扫描IP
/tool
ip-scan interface=lan
lan是客户机所接的interface
执行一断时间后,记得Quit
第二步,ARP绑定
/ip arp
foreach i in=[find dynamic=yes] do={add copy-from=$i]}
RouterOS的限速和限制线程的脚本,作为备用。
ARP静态绑定
第一步,扫描IP
/tool
ip-scan interface=lan
lan是客户机所接的interface
执行一断时间后,记得Quit
第二步,ARP绑定
/ip arp
foreach i in=[find dynamic=yes] do={add copy-from=$i]}
以前听人说在Linux上能够查到一个很奇怪的月份,只是当时忘了那个特别的月份。今天在网上搜了一下,发现通过这个命令(月份)了解了一段人类文明历史。
cal 9 1752
九月 1752
一 二 三 四 五 六 日
1 2 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
继续阅读在LINUX中用cal命令解了一段人类文明历史 1752年9月
This document describes how to install a Proftpd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp users on a single machine. In addition to that I will show the use of quota with this setup.
For the administration of the MySQL database you can use web based tools like phpMyAdmin which will also be installed in this howto. phpMyAdmin is a comfortable graphical interface which means you do not have to mess around with the command line.
This tutorial is based on Ubuntu 9.10. You should already have set up a basic Ubuntu 9.10 server system.
This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.
This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!
继续阅读Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 9.10
Pure-FTPd FTP server:
Pure-FTPd is a fast, production-quality, standards-conformant FTP server based upon Troll-FTPd. Features include chrooted home directories, virtual domains, built-in ‘ls’, anti-warez system, configurable ports for passive downloads, FXP protocol, bandwidth throttling, ratios, fortune files, Apache-like log files, fast standalone mode, atomic uploads, text / HTML / XML real-time status report, virtual users, virtual quotas, privilege separation, SSL/TLS and more.
$ sudo apt-get install pure-ftpd
$ sudo apt-get install pure-ftpd-mysql
假设要以用户 rainux 的身份登录运行 OpenSSH Server 的远程主机 www.rainux.org(现在几乎所有的 Linux 服务器都使用 OpenSSH Server 作为 SSH Server),那么需要做的操作如下:
1.生成用于 SSH 身份认证的密钥。密钥由公钥和私钥组成,一个公钥只对应一个私钥,一个私钥也只对应一个公钥。
2.将 OpenSSH 格式的公钥文本追加到远程主机上的 ~/.ssh/authorized_keys
文件里(~ 意为用户 rainux 的 HOME 目录)。注意公钥文本中应该没有换行符,一行就是一个公钥。
3.确保 ~/.ssh/authorized_keys
权限为 600,~/.ssh
目录权限为 700,并且它们的所有者都是 rainux。
4.指定 SSH 客户端使用对应的私钥并以用户 rainux 的身份登录 www.rainux.org,此时无需输入 rainux 在 www.rainux.org 上的密码。
继续阅读基于公钥认证方式的 OpenSSH Server 自动登录完全手册
/etc/network/interfaces
打开后里面可设置DHCP或手动设置静态ip。前面auto eth0,让网卡开机自动挂载。编辑文件/etc/network/interfaces
:
sudo vi /etc/network/interfaces
并用下面的行来替换有关eth0的行:
# The primary network interface – use DHCP to find our address
auto eth0
iface eth0 inet dhcp
用下面的命令使网络设置生效:
sudo /etc/init.d/networking restart
也可以在命令行下直接输入下面的命令来获取地址
sudo dhclient eth0
之前一直使用的是All in one SEO pack插件,作为SEO优化,但是发觉百度收录情况很糟糕,百度只收录了首页,后来多方查证发现是All in one SEO pack插件会生活一个noindex标签,导致百度不能收录,于是找方法修改header文件,达到根据日志tag生成keywords的目标。下面就是代码了,各位朋友可以将代码添加到header.php文件中,替换掉以前的title标签。
post_title ;
$keywords = “”;
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag ) {
$keywords = $keywords . $tag->name . “, “;
}
} elseif(is_category()){
$description = category_description();
}
?>
title标签要替换掉header.php里面的标签就可以了。具体效果,大家请看本博客就清楚了。首页,日志,分类,很清楚的。
To use the VPN service provided by ItsHidden.com, complete the following steps (that were partially found in this Ubuntu forum thread):
要使用itsHidden.com提供的VPN服务,请根据下面的步骤操作:
$ sudo apt-get install network-manager-pptp
$ sudo killall NetworkManager && sudo NetworkManager &
昨天重新安装了Ubuntu,但是grub2出现问题,导致错误Error 15,压根进不了grub command line,没有办法,只好修复Grub2,无奈网上的内容多是修复Grub的,很少关于通过liveCD修复grub2的,在搜索google之后,发现了该文,特地翻译出来,给有需要的朋友们使用。
首先,需要Ubuntu LiveCD,并且从LIVECD引导系统。
打开一个终端窗口,输入下面的命令
$ sudo fdisk -l
查看你的硬盘设备的map,记住Ubuntu在哪个设备上安装,比如我的Ubuntu安装于/dev/sdb1,而/dev/sda是Windows,下面的所有命令都是以这个例子为准的。之后,挂载/dev/sdb1设备.
$ sudo mount /dev/sdb1 /mnt
假如你的/boot分区使用了单独的分区,则还需要挂载这个分区,比如/dev/sdb2。一定要仔细查看过fdisk的输出内容,千万别搞错了。
$ sudo mount /dev/sdb2 /mnt/boot
Arch Linux是一份独立开发的、为i686优化的Linux发行,它面向高级Linux用户。它使用自行开发的包管理器pacman来为最新的应用软件提供更新升级,并进行完整的依赖性维护。Arch可以从光盘镜像或者从FTP服务器安装,它以一份连续演化的、动态的系统形式运作。缺省的安装提供一份坚实的基础,用户可再进行定制安装。此外,Arch Build System(ABS)能支持简便创建新软件包,修改原先软件包的配置,以及通过Arch Linux User Repository来将这些软件包与其他人共享。
Linux kernel 2.6.30.4, udev 141 and Pacman 3.3.0. Changes compared to 2009.02: more up-to-date software; usage of new AIF installer, which brings better disk editor with support for dm_crypt and LVM setups, support for automated installations using configuration files, a framework to build your own installation procedures, better date/time setting with NTP support, re-factored GRUB installation routines and usability improvements; Aufs instead of Unionfs; enhanced boot device detection on image start; bug fixes (XFS freeze, mirror setting, clock corrections, network settings)
继续阅读Arch Linux 2009.08 下载