月度归档: 2014 年 12 月
-
搬瓦工Centos6.X编译安装最新版FFmpeg
最近找到一个新玩具,需要用到FFmpeg,找了好多方法在我的Centos上,都没有成功.最后找到下面的内容,特此记录一下!
0、首先检查VPS所用的系统是否为CentOS 6.X // Check you system CentOS version
cat /etc/redhat-release1、添加rpm repo , 并检测一下更新 // Install the additional repo&Update repository
rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm yum -y updatePS:上面的URL可以打开:http://pkgs.repoforge.org/rpmforge-release/查看最新版,并修改为最新版
-
CentOS/Ubuntu/Debian安装vnstat
vnstat是一个基于命令行的Linux系统流量监控工具。
官网:http://humdi.net/vnstat/
测试环境:centos6.5 x86
1、安装vnstat
cd /tmp
wget http://humdi.net/vnstat/vnstat-1.12.tar.gz
tar -zxvf vnstat-1.12.tar.gz
cd vnstat-1.12
make
make install2、通过ifconfig查看网卡名称,生成数据库
vnstat -u -i eth0 // eth0为你要监控的网卡,具体请根据ifconfig情况调整3、自启动更新数据
vnstatd -dcd /etc/init.d
wget http://humdi.net/vnstat/init.d/redhat/vnstat
chmod +x vnstat
chkconfig --add vnstat
chkconfig vnstat on
service vnstat restart
(更多…) -
Buffalo LS-WVL 编译 aria2
(Install Optware)
ipkg install gcc make
ipkg install gnutls zlib c-ares
mkdir /mnt/disk1/share/aria cd /mnt/disk1/share/aria wget http://sourceforge.net/projects/aria2/files/stable/aria2-1.16.4/aria2-1.16.4.tar.bz2/download tar xvfj *.bz2 cd aria2-1.16.4 ./configure --with-libgcrypt-prefix -
Ghost Blog Resetting your Ghost Blog password
Didn’t set up Mailgun in your Ghost blog, and lost your password? Hmm. A little bit of fancy-footwork, and we can be back up and running in no time.
You’ll need to reset the password in the SQLite DB by manually inserting a new hash into the DB.
Get access to your DB from the console, or through a gui tool if you have it. If you are going through the console, CD to your ghost webroot, (the DB is under content/data/) and then type: sqlite3 ghost.db Generate a temporary BCrypt hash (Find a generator online. I used this one: http://bcrypthashgenerator.apphb.com/) Or just use this hash which is for
“
password”:
$2a$10$BQToDNdBtBKCvnrTmMi5m.NK.7i6Qx7YASs.jTkE86I5zqxzE8klCType UPDATE users SET password='<
>’ WHERE email = ‘< >’ Type .exit to exit sqlite3 Log into your blog, and change your password to something secure. Set up an email service at Mailgun as detailed here: http://docs.ghost.org/mail/ 原文地址:http://www.farmsoftstudios.com/blog/2014/01/web-applications/resetting-your-ghost-blog-password/
-
ERROR: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14′ not found
debian 运行 ghost 或者 shadowsocks 出现
ERROR: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14′ not found
这个问题是由于debian软件中心上libc的最高版本为2.13所致,更新libc版本即可。
具体步骤为:echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg参考:http://www.v2ex.com/t/136721
-
Debian 安装 nodejs 环境
1、安装编译包
sudo apt-get install python g++ make checkinstall2、 获取最新的 node 源码
mkdir ~/src && cd ~/src
wget -N http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz // 最新版ghost博客,最低要求0.10.4
tar xzvf node-v0.10.4.tar.gz && cd node-v*3、配置编译源码
./configure
sudo checkinstall注意,运行 checkinstall 需要 sudo,之后选择 3,将 node 的版本号前的 v 去掉, 例如,这里安装的版本为 v0.10.4,改为 0.10.4 即可。 这里编译会比较久,需要耐心等待.
4、 安装(-i)和卸载(-r)
sudo dpkg -i node_*
sudo dpkg -r node5、查看 nodejs 和 npm 的版本
node -v
npm -v参考:http://wenzhixin.net.cn/2013/10/29/debian_node_install
-
Depends: libtasn1-3-dev (>= 0.3.4) but it is not going to be installed
Depends: libtasn1-3-dev (>= 0.3.4) but it is not going to be installed
or
debian/ubuntu错误解决E: Sub-process /usr/bin/dpkg returned an error code (1)
的解决办法!
办法如下:
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak //现将info文件夹更名
sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
sudo apt-get update
sudo apt-get -f upgrade
然后再安装其他程序应该就正常,debian 7 实测有效
参考:http://yanue.net/post-123.html
