All posts by Admin

SSH连接VPS教程

开启SSH服务和root登陆

Linux系统安装配置后,想用Putty或Xshell远程登录,需要开启SSH服务。
在noVNC 输入:ps -e|grep ssh
看输出结果是否有sshd,没有则需要安装SSH服务:
sudo apt-get install ssh
启动SSH服务:
sudo /etc/init.d/ssh start

默认是不允许root远程登录的,可以修改配置文件开启:
sudo vi /etc/ssh/sshd_config
Insert 找到 PermitRootLogin without-password
修改为:PermitRootLogin yes
退出,保存:Esc -> :wq

Continue reading SSH连接VPS教程

当代三字经2017年度排行榜

为了跟上时髦青年人的脚步,我们今天就来学一学这套当代三字经。

播放 NJ语瞳 在网易云音乐开心一刻电台给我们讲解的 当代三字经

1. 呵呵呵:一种就对方观点做出不置可否态度的嘲讽方式。
2. 哈哈哈:你的话真的不好笑,但碍于情面,我只好笑对你的无聊、没礼貌、装逼、炫耀。
3. 嘤嘤嘤:一种“我都已经示弱了,你就别责怪我了。/瞧我楚楚可怜的样子,你还不对我点?”的扮猪吃老虎的手段。
4. 啧啧啧:表示不认同、不屑甚至带有藐视的含义。但经常会显得有点酸葡萄。
5. 嘻嘻嘻:一种能让炫耀看起来不那么招人烦的方式。
6. 喵喵喵:文字版的黑人问号脸。表示完全不能理解对方在说什么。必须和问号一起使用。
7. 啪啪啪:单身狗们嘴上不说,身体却诚实地渴望着的一种社交活动。
8. 666:相当厉害,令人折服。一种几乎无需打字就可赞美对方的快捷方式。
9. 好好好:一种示弱与妥协,常见于下级对上级,男朋友对女朋友,猫奴对猫咪的彻底臣服。
10. 买买买:一种社会主义初级阶段的基本国情。一种可以解决任何问题的万金油式存在。

详情请参考 GQ翻译

The Chinese Woman

The Chinese Woman (selected)
From the Spirit of the Chinese People, by Ku Hung-Ming, 1915

… … For the womanhood in a nation is the flower of the civilization, of the state of civilization in that nation.

But now to come to our question: what is the Chinese feminine ideal? The Chinese feminine ideal I answer, is essentially the same as the old Hebrew feminine ideal with one important difference of which I will speak later on. The Chinese feminine ideal is the same as the old Hebrew ideal in that it is not an ideal merely for hanging up as a picture in one’s room; nor an ideal for a man to spend his whole life in caressing and worshipping. The Chinese feminine ideal is an ideal with a broom in her hands to sweep and clean the rooms with. In fact the Chinese written character for a wife (妇) is composed of two radicals – (女) meaning a woman and (帚) meaning a broom. In classical Chinese, in what I have called the official uniform Chinese, a wife is called the Keeper of the Provision Room – a Mistress of the Kitchen. Indeed the true feminine ideal, — the feminine ideal of all people with a true, not tinsel civilization, such as the old Hebrew, the ancient Greeks and the Romans, is essentially the same as the Chinese feminine ideal: the true feminine ideal is always the Hausfrau, the house wife, la dame de ménage or chatelaine.

Continue reading The Chinese Woman

Chiufu (Translated)

Chiufu (translated) By Lin Yutang

Chiufu often said to me, “A man’s life lasts only a hundred years, and of this hundred sleep and dream occupy one half, days of illness and sorrow occupy one half, and the days of swaddling clothes and senile age again occupy one half. What we have got left is only a tenth or fifth part. Besides, we who are made of the stuff of willows can hardly expect to live a hundred years.”

One day when the autumn moon was at its best, Chiufu asked a young maid to carry a chin and accompany her to a boating trip among the lotus flowers of the West Lake. I was then returning from the West River, and when I arrived and found that Chiufu had gone boating, I bought some melons and went after her. We meet at the Second Bridge of the Su Tungpo Embankment, when Chiufu was playing the sad ditty of “Autumn in Han Palace.” Stopping to listen with my gown gathered in my hands, I listened to her music. At this moment, the hills all around were enveloped in the evening haze, and the reflections of the stars and the moon were seen in the water. Different musical sounds came to my ear so that I could not distinguish whether it was the sounds of the wind in the air, or the sounds of jingling jade. Before the song was completed, the bow of our boat had already touched the southern bank of the Garden of Swirling Waters. We then knocked at the gate of the White Cloud Convent, for we knew the nuns there. After sitting down for a while, the nuns served us with freshly picked lotus seeds prepared in soup. Their color and their fragrance were enough to cool one’s intestines, a world different from the taste of meats and oily foods. Coming back, we landed at Tuan’s Bridge, where we spread a bamboo matting on the ground and sat talking for a long time. The distant rumble of the city rather annoyed our ears like the humming of flies…. Then the stars in the sky became fewer and fewer and the lake was blanketed with a stretch of white. We heard the drum on top of the city wall and realized that it was already the fourth watch [about 3 A.M.] and carried the chin and paddled the boat home.

Continue reading Chiufu (Translated)

Yun (translated)

Yun (translated) By Lin Yutang

On the seventh night of the seventh moon of that year [1780] Yun prepared incense, candles and some melons and fruits, so that we might together worship the Grandson of Heaven in the Hall called “After My Heart.” I had carved two seals with the inscription,”That we might remain husband and wife from incarnation to incarnation.” I kept the seal with positive characters, while she kept the one with negative characters, to be used in our correspondence. That night, the moon was shining beautifully and when I looked down at the creek, the ripples shone like golden chains. We were wearing light silk dresses and sitting together with a small fan in our hands, before a window overlooking the creek. Looking up at the sky, we saw the clouds sailing through the heavens, changing at every moment into a myriad forms, and Yun said:”This moon is common to the whole universe. I wonder if there is another pair of lovers quite as passionate as ourselves looking at the same moon tonight?” And I said:”Oh, there are plenty of people who will be sitting in the cool evening and looking at the moon, and, perhaps also many women criticizing or enjoying the clouds in their chambers; but when a husband and wife are looking at the moon [The seventh day of the seventh moon is the only day in the year when the pair of heavenly lovers, the Cowherd (“Grandson of Heaven”) and the Spinster are allowed to meet each other across the Milky Way together], I hardly think that the clouds will form the subject of their conversation.” By and by, the candle-lights went out, the moon sank in the sky, and we removed the fruits and went to bed.

Continue reading Yun (translated)

Apache .htaccess 301重定向

Apache实现301重定向最直接的方法是编辑.htaccess文件。

1. 重定向目录或文件 到其它地址

Redirect 301 /directory /newdirectory
Redirect 301 /directory http://otherdomain.com/other.php
Redirect 301 /oldfile.htm /newfile.htm
Redirect 301 /oldfile.htm http://otherdomain.com/newfile.htm

2. 重定向olddomain.com 到newdomain.com

RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC]
Continue reading Apache .htaccess 301重定向

Linux TCP加速四合一脚本

这个脚本集合了BBR原版、BBR魔改、BBR Plus和锐速,愿用哪个用哪个,只能说:太方便了!在vultr上Centos 7, Debian 8/9, Ubuntu 16/18测试通过。不支持OVZ和LXC。

一、安装证书:apt-get -y install ca-certificates 或 yum -y install ca-certificates

二、安装脚本:(3步)

wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
Continue reading Linux TCP加速四合一脚本

宝塔 VPS Web管理面板

Linux VPS Web管理面板推荐国产免费好用的 宝塔面板。宝塔6.x CentOS 安装脚本:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Ubuntu/ Debian 安装脚本:

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

建议安装环境为Linux VPS 512MB+内存,10GB+空间,推荐CentOS 7 / Debian 9 / Ubuntu 16.04 均 x64 Minimal。安装宝塔时会自动安装Python, 2分钟左右安装完成后登陆 http://IP:8888/, 系统会提示安装网站套件。建议选择LAMP, 1G以下内存安装MySQL5.5, 并将PHP的性能调整为30并发方案。若遇Nginx/Apache无法启动,运行 pkill -9 httpd 再试。宝塔Linux面板 命令大全

宝塔面板最赞的是支持在线编辑的文件管理系统,另外还有主机跑分、进程管理、内存释放等模块,并且可以设置计划任务,自动定期备份网站数据。如果能在兼容和稳定方面更进一步就最好了。

ShadowsocksR 多用户脚本

支持多用户、流量控制,支持安装 BBR

系统要求:CentOS 6+ / Debian 6+ / Ubuntu 14.04+。

ShadowsocksR MudbJSON 模式多用户安装脚本:

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssrmu.sh && chmod +x ssrmu.sh && bash ssrmu.sh

运行脚本: bash ssrmu.sh
流量清零: bash ssrmu.sh clearall
启动: /etc/init.d/ssrmu start
停止: /etc/init.d/ssrmu stop
重启: /etc/init.d/ssrmu restart
查看状态: /etc/init.d/ssrmu status

Continue reading ShadowsocksR 多用户脚本

MX5刷入Flyme国际版

像Flyme这类以Android为内核的所谓国内优化版手机OS总是免不了无处不在的自带商业植入,如音乐视频的会员点播,用户中心的会员福利,云相册的绑定收费等等,频繁的系统升级大多不过是广告应用API的更新。如果你厌烦了这些繁杂的收费绑定,或者想越狱体验更广阔更纯粹的Google服务,如App Store, Gmail, Google Search 等等,那该是考虑刷入Flyme国际版的时候了。

国内魅族手机设备码限制了直接刷入国际版系统,想刷Flyme国际版需要按如下步骤执行,以MX5为例。

第一步:备份手机数据。在设置-存储和备份里备份手机数据。

第二步:刷入手机的出厂系统。进入Flyme官网下载安装该型号手机的出厂系统,如MX5的Flyme 5.1.2.0A,降级需要清除应用数据。

第三步:Root手机。使用第三方Root软件获取完全的Root权限,如KingRoot。成功Root设备后需要重启手机。

Continue reading MX5刷入Flyme国际版