Quantcast
Channel: Linux运维网 » Linux
Browsing latest articles
Browse All 8 View Live

Image may be NSFW.
Clik here to view.

EXT4中恢复使用rm命令误删除的文件

起因:前几天在公司服务器上误操作将ORACLE某表空间文件给删除了,结果导致几张表不能正常访问 遂谷歌了一把发现了神器 extundelete(如果是ext3文件系统请使用ext3grep,本人未做测试),这玩意可比瘟得死下面的各种恢复工具强大多了(至少本人是这么认为的),下面看步骤: 一、下载及安装软件 extundelete...

View Article



安装 portmidi 报错:/usr/src/portmidi/pm_java/pm_java: No such file or directory

源码编译 portmidi时 报错如下: Linking C shared library ../Release/libportmidi.so [ 90%] Built target portmidi-dynamic Scanning dependencies of target pmdefaults_target [ 93%] Generating...

View Article

Linux 下将mp3转成ogg

安装mpg321工具 [root@localhost pygame]# yum -y install mpg321 转换命令: [root@localhost sound]# mpg321 he_is_a_pirate.mp3 -w raw && oggenc raw -o he_is_a_pirate.ogg && rm -rf raw High...

View Article

Linux 下使用pyinotify监视文件更改并发送Email

场景:使用脚本监视某目录下的文件增、删、改等操作,并将其结果发送Email到指定邮箱,本文只监视了文件被创建的事件 代码如下: #!/usr/bin/env python #-*- coding: utf-8 -*- import os import sys import smtplib import pyinotify import mimetypes from email.mime.text...

View Article

Image may be NSFW.
Clik here to view.

为MPlayer添加Win32Codecs解码器

话说前几天在网上下了个WMV格式的视频文件,回去准备播放却发现个蛋疼的问题 一直很强大的VLC表示(不支持音频或视频格式 "MSS2") 基于MPlayer的Gnome MPlayer也表示罢工 MPlayer的解决方法是安装Win32Codecs: [root@tux opt]# wget...

View Article


Nginx 下配置wordpress伪静态

Nginx下的Wordpress伪静态规则 第一种: 比较简单    location / { try_files $uri $uri/ /index.php?q=$uri&$args; } 第二种: location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f...

View Article

Image may be NSFW.
Clik here to view.

Puppet系列之安装篇

Puppet简介...

View Article

Image may be NSFW.
Clik here to view.

【转】SSH OTP 认证

采用 OTP + 密码作为 SSH 的认证方案以保证安全性,这里就简单描述一下实现方案。我们采用的软件是 Google Authenticator,其客户端实现支持 Android,iOS,BlackBerry 系统。 在服务器上执行下面的操作:$ git clone https://code.google.com/p/google-authenticator/ $ cd...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images