Directspace Debian 6 VPS warning: script 'vzquota' missing LSB tags and overrides 错误解决方法

Directspace 的Debian 6因为缺少LBS,安装软件时会提示一下错误:
insserv: warning: script ‘S10vzquota’ missing LSB tags and overrides
insserv: warning: script ‘vzquota’ missing LSB tags and overrides
insserv: There is a loop between service vzquota and rmnologin if started
insserv:??loop involving service rmnologin at depth 3
insserv:??loop involving service vzquota at depth 2
insserv:??loop involving service rsyslog at depth 1
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: There is a loop between service vzquota and rmnologin if started
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing screen (–configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports

解决方法:
编辑/etc/init.d/vzquota
在start(){? ?前面添加如下内容: 继续阅读“Directspace Debian 6 VPS warning: script 'vzquota' missing LSB tags and overrides 错误解决方法”

Eclipse-cdt 配合 gdbserver 进行 arm 程序远程调试 下

上一篇中,介绍了如何编译、运行arm-linux-gdb 和 gdbserver,这一篇中介绍怎样结合Eclipse-cdt进行图形化编译调试

首先当然是使用CDT创建项目并添加源文件。

  1. 在左侧 Project Explorer 的项目名上点右键->Properties 进入项目属性设置
  2. 选择 C/C++ Build->Settings 在Tool Settings中,将Toolchain修改为arm版本

    其他选项默认就好,有需要自己修改



    继续阅读“Eclipse-cdt 配合 gdbserver 进行 arm 程序远程调试 下”

Eclipse-cdt 配合 gdbserver 进行 arm 程序远程调试 上

做嵌入式Linux开发也不用再羡慕windows程序员VS集成开发环境的强大,我们同样能够搭建出给力的IDE。

今天在这里记录一下我使用Eclipse-cdt,gdb,gdbserver搭建远程arm调试的过程。

首先介绍下,嵌入式Linux的GDB调试环境由Host和Target两部分组成,Host端可以理解为本机,Target端为嵌入式设备。
Host端使用arm-linux-gdb,Target 端使用gdbserver。
调试时,应用程序在嵌入式目标系统上通过运行,而gdb调试在Host端。

  1. 编译gdb
    在GNU官网下载最新版GDB ,我这里下载的是7.2版本gdb-7.2.tar.gz

可以通过export命令将/home/aliang/arm-gdb/bin目录加入PATH,使arm-linux-gdb可以直接使用,也可以直接拷贝到/usr/bin 或arm-linux-gcc同目录 继续阅读“Eclipse-cdt 配合 gdbserver 进行 arm 程序远程调试 上”

Ubuntu 安装配置 tftpd

  1. 安装tftpd
  2. 创建 /etc/xinetd.d/tftp文件,填写以下内容
  3. 创建 /tftpboot 目录
  4. 重启xinetd服务
  5. 在本机测试
  6. 在开发板上测试

yaourt的安装及使用

yaourt-Yet AnOther User Repository Tool

Yaourt是archlinux方便使用的关键部件之一,但没有被整合到系统安装中的工具。建议在装完系统重启之后,更新完pacman和基本系统之后,就安装这个工具。

简便的安装

最简单安装Yaourt的方式是添加Yaourt源至您的 /etc/pacman.conf: 继续阅读“yaourt的安装及使用”

Debian GNU/Linux 6.0.0 "Squeeze"

GNU/Linux 领域重要的发行版 Debian 终于发布了 Debian 6 “Squeeze” 版本。

Debian 6.0 更新了如下组件:

  • KDE 4.4.5
  • GNOME 2.30
  • Xfce 4.6
  • LXDE 0.5.0
  • X.Org 7.5
  • OpenOffice.org 3.2.1
  • GIMP 2.6.11
  • Iceweasel 3.5.16 (无 Mozilla 商标版本 Firefox)
  • Icedove 3.0.11 (无 Mozilla 商标版本 Thunderbird)
  • PostgreSQL 8.4.6
  • MySQL 5.1.49
  • GNU Compiler Collection 4.4.5
  • Linux 2.6.32
  • Apache 2.2.16
  • Samba 3.5.6
  • Python 2.6.6, 2.5.5 及 3.1.3
  • Perl 5.10.1
  • PHP 5.3.3
  • Asterisk 1.6.2.9
  • Nagios 3.2.3
  • Xen Hypervisor 4.0.1 (dom0 及 domU 支持)
  • OpenJDK 6b18
  • Tomcat 6.0.18

同时,Debian 官网也进行了改版。

长虹工程板路由器刷OpenWrt 10.03.1经历

这张片子是在中嵌时老刘给的,应该是给长虹做代工的工程版,我加了块散热片,什么型号我真不知道,给我的时候就一个光板子
原名应该叫”长虹路由下载机”还是什么的,反正说有bt下载功能,我没弄出来过

配置是这样的

CPU:MIPS ADM5120 175MHz
RAM:32M
ROM:4M NOR flash
接口:1 WAN 4LAN 2USB(1.0) 调试串口(真贴心呐,没有它就没有后面的故事了) 继续阅读“长虹工程板路由器刷OpenWrt 10.03.1经历”

ArchLinux的包管理系统: pacman

常用命令有:
pacman -Sy abc 和源同步后安装名为abc的包
pacman -S abc 从本地数据库中得到abc的信息,下载安装abc包
pacman -Sf abc 强制安装包abc
pacman -Ss abc 搜索有关abc信息的包
pacman -Si abc 从数据库中搜索包abc的信息
pacman -Syu 同步源,并更新系统
pacman -Sy 仅同步源

pacman -R abc 删除abc包
pacman -Rc abc 删除abc包和依赖abc的包
pacman -Rsn abc 移除包所有不需要的依赖包并删除其配置文件
pacman -Sc 清理/var/cache/pacman/pkg目录下的旧包
pacman -Scc 清除所有下载的包和数据库
pacman -U abc 安装下载的abs包,或新编译的abc包
pacman -Sd abc 忽略依赖性问题,安装包abc
pacman -Su –ignore foo 升级时不升级包foo
pacman -Sg abc 查询abc这个包组包含的软件包
pacman -Q 列出系统中所有的包
pacman -Q package 在本地包数据库搜索(查询)指定软件包
pacman -Qi package 在本地包数据库搜索(查询)指定软件包并列出相关信息
pacman-optimize To defragment pacman的数据库缓存和速度优化选项
pacman -Q wc -l 统计当前系统中的包数量

轻量级VPS安装openbox及vncserver配置图形远程桌面-Ubuntu篇

上一篇简单介绍了下配置openbox的方法.今天完整讲解一下流程

要配置轻量级的桌面及远程,其实最方便的系统是Archlinux,也是阿亮最喜欢的桌面版发行版了

不过今天这篇里的宿主机系统是Ubuntu 10.04, VPS是HostRail $1.75/mo 套餐

在Hypervm中选择Rebuild,选择ubuntu-10.04-minimal_10.04_i386 安装最小化的系统

  1. 更新
    仍然使用mirror.peer1.net的源镜像

    deb http://mirror.peer1.net/ubuntu/ lucid main universe multiverse
    deb http://mirror.peer1.net/ubuntu/ lucid-security main universe multiverse
    $ sudo apt-get update
    $ sudo apt-get upgrade

  2. 安装openbox 及vnc
    $ sudo apt-get install openbox obmenu obconf vnc4server xvt fbpanel pcmanfm ttf-wyq-microhei
    obmenu 是图形化配置openbox菜单的工具
    obconf 是openbox的配置工具
    xvt是 Terminal
    pcmanfm是文件管理器
    fbpanel是任务栏
    ttf-wyq-microhei 是文泉驿微黑
  3. 设置登录密码
    $ vncpasswd
    不要使用root账号来运行
  4. 开启vnc服务
    $ vncserver :1
    里面的”:1″代表display号,客户登录的时候得写相同的display号才能登录
  5. 结束vnc服务
    $ vncserver -kill :1
  6. 启动时使用openbox会话
    $ vi ~/.vnc/xstartup
    用#号注释 x-window-manager &这一行,在尾部添加
    openbox-session &
    再次启动vncserver
  7. 启动openbox时自动开启tint2 pcmanfm等
    $ vi ~/.config/openbox/autostart.sh
    fbpanel &
    pcmanfm &
    启动一个加一行
  8. 安装其他应用软件
    firefox ,fcitx…………