Kali Linux 屏幕录像软件(Kazam)安装

# 背景

作为计算机专业的苦逼仔,难免会碰到各种同学各种各样的求助,而猪一样的队友往往说啥啥不懂,又不在身边,还不如来个视频妥当.

那么问题来了,屏幕录像哪家强?在Windows下面有个屏幕录像好用.在Linux下面呢?找了很久总算找到了这款名叫Kazam的软件.


# Kazam

Kazam既可以录制视频,也可以截屏,而且都支持全屏、窗口、指定区域操作,非常方便。

Kazam是一款功能强大的屏幕录制工具,提供了一个直观的,非常之简单而可靠的体验。Kazam还具有局部记录的能力。


# Ubuntu下安装

使用PPA安装很简单

sudo add-apt-repository ppa:kazam-team/stable-series
sudo apt-get update
sudo apt-get install kazam

# 走的坑

一开始直接从源码安装,遇到很多坑,先把坑上上来.

Kazam Screencaster的源码https://launchpad.net/kazam下载之。

发现是用python写的。安装时提示:

Kazam requires Python 3.2 or newer

所以得安装python3

sudo apt-get install python3

安装好后又提示错误:

Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command

所以谷歌之提示又要安装python-distutils-extra

下对应的源码安装时又提示没用setuptools错误,好吧,接着干。

sudo apt-get install python3-setuptools
sudo easy_install3 pip

再回来安装kazam,可是又报错了:

running build_i18n
intltool-update -p -g kazam
unable to execute intltool-update: No such file or directory
error: command 'intltool-update' failed with exit status 1

继续找,说是缺少 intltool

 sudo apt-get install intltool 

这下到时安装完成了。

可是没图标,命令行下执行又报错了:

Traceback (most recent call last):
  File "/usr/local/bin/kazam", line 26, in <module>
    import dbus

Go on:

sudo apt-get install python3-dbus

Error again

Traceback (most recent call last):
  File "/usr/local/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/local/lib/python3.2/dist-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/local/lib/python3.2/dist-packages/kazam/backend/prefs.py", line 26, in <module>
    from xdg.BaseDirectory import xdg_config_home
ImportError: No module named xdg.BaseDirectory

Go on :

sudo dpkg -i python3-xdg_0.20-0ubuntu1_all.deb

Error again

  File "/usr/local/lib/python3.2/dist-packages/kazam/frontend/window_area.py", line 23, in <module>
    import cairo
ImportError: No module named cairo

go on

sudo apt-get install python3-gi-cairo

Error again:

ERROR Kazam - Could not find any typelib for AppIndicator3
CRITICAL Main - Gstreamer 1.0 or higher required, bailing out.

到这里我不能再坚持下去了。


# Kali Linux(Debian)下安装

1.加入源/etc/apt/sources.list

deb http://packages.crunchbang.org/waldorf waldorf main

2.添加CrunchBang key

wget -O - http://packages.crunchbang.org/statler-dev/crunchbang.key | sudo apt-key add -

3.添加文件

vi etc/apt/preference.d/kazam.conf

写入:

Package: *
Pin: release n=wheezy
Pin-Priority: 900

Package: *
Pin: release n=waldorf
Pin-Priority: -10

4.安装

aptitude update
aptitude -t waldorf install kazam

# 使用

很简单,看着都会了。

image alt text

# Okay,all done.enjoy it .

参考:

  1. 屏幕录像软件 Kazam 1.4.2 发布
  2. Installing Kazam screencaster on Debian Wheezy from CrunchBang repos

--EOF--


>看不到评论?GFW!!!