安装python、相关python模块、apache

sudo apt-get install python python2.7 python-django python-netaddr python-yaml python-simplejson python-cheetah python-libvirt python-urlgrabber apache2 libapache2-mod-wsgi make

开启apache的proxy模块

a2enmod proxy proxy_http

安装cobbler、cobbler-web

树莓派官方系统软件源中无cobbler,所以不能使用apt-get install cobbler来安装cobbler。需要下载cobbler的源代码自行编译安装。

wget https://github.com/cobbler/cobbler/archive/v2.8.2.tar.gz

tar -xzvf v2.8.2.tar.gz

cd cobbler-2.8.2

make

make install

为cobbler.conf、cobbler_web创建软链接

ln -s /etc/apache2/conf-available/cobbler.conf /etc/apache2/conf-enabled/cobbler.conf

ln -s /etc/apache2/conf-available/cobbler_web.conf /etc/apache2/conf-enabled/cobbler_web.conf

编辑自己的kickstart启动脚本

cobbler的脚本等存放于路径

/var/lib/cobbler

cobbler的kickstarts脚本需放置在

/var/lib/cobbler/kickstarts

一切都安装妥当之后,cobbler_web 跑不起来,报"500 Internal Server Error" 错误,查看apache错误日志

tail /var/log/apache2/error.log

可以看到相关错误提示为ImproperlyConfigured: The SECRET_KEY setting must not be empty。

意思是说SECRET_KEY不应该为空,查看设置文件

cat /usr/local/share/cobbler/web/settings.py

找到下面这行,可以看到value为空。

SECRET_KEY = ''

设置安全性高的key,参考http://www.jb51.net/article/86119.htm ,可以使用简单纯文本应急。

网上有大量关于cobbler的资料,就不详细写了

最新文章

  1. jquery1.7.2的源码分析(一)
  2. 终于开始用github了
  3. phpcms无刷新分页
  4. 1032: [JSOI2007]祖码Zuma
  5. pom.xml中引入局域网仓库
  6. soapui中文操作手册(二)----通过您的WSDL请求创建一个测试
  7. iOS 各种控件默认高度
  8. SLF4J user manual
  9. MySQL中char、varchar和text的区别
  10. asp.net将object或string转为int
  11. di
  12. iOS-桥接方式
  13. 《java.util.concurrent 包源码阅读》15 线程池系列之ScheduledThreadPoolExecutor 第二部分
  14. 用 Java 解密 C# 加密的数据(DES)(转)
  15. Spring Boot入门 and Spring Boot与ActiveMQ整合
  16. loadrunner-关联
  17. transformer 源码
  18. c#代码混淆
  19. Entity framework 预热
  20. hdu GuGuFishtion 6390 数论 欧拉函数

热门文章

  1. [LeetCode] 367. Valid Perfect Square_Easy tag:Math
  2. Photobucket不能用了怎么办?推荐10个在线图片储存服务!
  3. xml--myeclipse用快捷键注释xml语句
  4. RSA加解密 私钥加密公钥解密 私加公解 && C++ 调用openssl库 的代码实例
  5. 了解MQ
  6. python--教你做个最简单的tcp通信。。
  7. html5-css渐变色
  8. hdu4784
  9. 如何注销Sitecore CMS
  10. Python -- print(dataframe)时,省略部分列。