搜索内容

Liunx

  • Liunx

    升级avconv使youtube-dl在ubuntu 12.04上正常运行

    起因:youtube-dl合并音视频的时候提示如下错误 WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors. 故:升级avconv 1.) Make a directory avconv-source mkdir avconv-source 2.) Download and install the x264 library cd ~/avconv-source git clone git://git.videolan.org/x264.git x264 cd x264 sudo ./configure --enable-static sudo make sudo make install 3.) Download the avconv source cd ~/avconv-source git clone git://git.libav.org/libav.git avcon……
    Jays 2015-01-05
  • Liunx

    搬瓦工Centos6.X编译安装最新版FFmpeg

    最近找到一个新玩具,需要用到FFmpeg,找了好多方法在我的Centos上,都没有成功.最后找到下面的内容,特此记录一下! 0、首先检查VPS所用的系统是否为CentOS 6.X // Check you system CentOS version cat /etc/redhat-release 1、添加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 update PS:上面的URL可以打开:http://pkgs.repoforge.org/rpmforge-release/查看最新版,并修改为最新版 2……
    Jays 2014-12-20
  • Liunx

    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 install 2、通过ifconfig查看网卡名称,生成数据库 vnstat -u -i eth0 // eth0为你要监控的网卡,具体请根据ifconfig情况调整 3、自启动更新数据 vnstatd -d cd /etc/init.d wget http://humdi.net/vnstat/init.d/redhat/vnstat chmod +x vnstat chkconfig --add vnstat chkconfig vnstat on se……
    Jays 2014-12-20
  • Liunx

    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 gener……
    Jays 2014-12-17
  • Liunx

    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
    Jays 2014-12-11
  • For Me

    Debian 安装 nodejs 环境

    1、安装编译包 sudo apt-get install python g++ make checkinstall 2、 获取最新的 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) ……
    Jays 2014-12-11
  • For Me

    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
    Jays 2014-12-11
  • For Me

    wget 从FTP服务器下载文件

    wget P /root/tmp ftp://ovh.ssnpv.tk/XXXX.mp4 --ftp-user=XXX --ftp-password=XXXXXX 说明: wget linux下载命令 P /root/tmp 指定下载到/root/tmp ftp://ovh.ssnpv.tk/XXXX.mp4 --ftp-user=FTP帐号 --ftp-password=帐号对应密码
    Jays 2014-11-29
  • For Me

    openwrt 更新源下载速度慢解决办法

    hfs下载地址:http://www.melauto.it/rejetto/hfs.exe 完整包下载:http://downloads.openwrt.org/snapshots/trunk/ar71xx/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2 下载完成后拉入hfs里面..修改好对opkg.conf里面的对应位置,再执行okpg update . okpg install xxx 就能在线进行安装了   /etc/opkg.conf src/gz barrier_breaker http://192.168.10.122/packages dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay   https://sqzr.cc/blog/2013/11/09/openwrt-opkgw……
    Jays 2014-11-21