2012 年二月 一 二 三 四 五 六 日 « 一 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 近期评论
- wlx [微博 ] 发表在《google彻底被封?》
- snake 发表在《google彻底被封?》
- Andrew Pelt 发表在《debian testing上安装oracle 10g》
- tiplip 发表在《webmap.cn使用的WEBGIS技术》
- 求助Evolution问题!! 发表在《evolution crashed in gutsy alpha》
分类目录
标签
anjuta apache backup breezy c++ compile convert dapper debian dns edgy evolution feisty firefox flash gnome gobang GRASS gutsy humor intrepid Linux mailman MapServer mysql openoffice Oracle php phpbb postfix PostGIS postgresql qgis sarge scim skype subversion svn tomcat ubuntu utf8 westdc Windows wordpress 中文
Tag Archives: debian
在debian上安装oracle 10g express
若是要安装oracle10G,可能要麻烦些,但若是安装oracle 10g express的话,那就很简单: 1、修改/etc/apt/source.list,添加oracle的源: deb http://oss.oracle.com/debian unstable main non-free 2、进行更新和安装 aptitude update aptitude install oracle-xe-universal 3、进行初始的密码设置 /etc/init.d/oracle-xe configure 若服务器无GUI,可以这样远程管理 ssh -L 8080:localhost:8080 user@IP_of_your_server firefox http://localhost:8080/apex/ 参考: https://help.ubuntu.com/community/Oracle10g
qgis-0.8 svn的DEBIAN安装
参考:http://wlxblog.westgis.ac.cn/195/ 拷贝qgis-0.7.4的debian目录,按照下面的diff进行修改 debian/control 5c5 < Build-Depends: debhelper (>= 4.0.0), libgdal1-1.3.1-dev (>= 1.2.6-1), libqt4-dev , libcfitsio-dev (>= 2.460-1), libpq-dev | postgresql-dev, libhdf4g-dev (>= 4.1r4-17), libungif4-dev (>= 4.1.0b1-6), unixodbc-dev (>= 2.2.4-6), libxerces27-dev (>= 2.1.0-5), libjasper-1.701-dev (>= 1.701.0-2), libtiff4-dev (>= 3.6.1-1.1), netcdfg-dev (>= … Continue reading
install and use postgis in debian/ubuntu
因为postgis已经进入debian的库了,就把原来用source安钻的postgresql和postgis都删除掉,然后从库中安装。 aptitude install postgresql-8.1-postgis 然后再创建数据库,并作相应的初始化工作: createlang plpgsql yourdatabase psql -f `locate lwpostgis.sql` -d yourdatabase psql -f `locate spatial_ref_sys.sql` -d yourdatabase 最后再添加一个超级用户: create user xxx with password ‘passwd’ createuser createdb
使用SAMBA构建域服务器
原有域服务器出问题了,为了安全性考虑,就在DEBIAN上用SAMBA架设了一个域服务器。 /etc/samba/smb.conf的内容: [global] workgroup = WESTGIS netbios name = heihe passdb backend = tdbsam printcap name = cups add user script = /usr/sbin/useradd -m %u delete user script = /usr/sbin/userdel -r %u add group script = /usr/sbin/groupadd %g delete group … Continue reading
SSH拒绝登录的问题
DEBIAN SARGE服务器,升级到testing后,无法ssh登录了。 经在服务器上检查,SSHD没有问题,帐号没有问题,密码没有问题,服务器安全也没有问题。最终发现是由于默认的安全性得到了提高,导致此问题的。 最后在http://www.debian-administration.org/articles/152找到了问题的答案。 或者不使用publickey登录,使用密码登录,要确认PasswordAuthentication该选项设置成 yes。 我的问题在于我的home目录属性发生了变化,即别人也可以写,导致安全检查无法通过。 修复过程: 1、直接到机房登录服务器,修改PasswordAuthentication为yes。 2、重启SSH服务,客户端生成RSA: ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub username@myserver cd chmod 700 .ssh cd /home chmod 700 myhome
qgis 0.8svn版本的debian式安装
前面已经用checkinstall制作了qgis 0.8svn版本的deb包,现在或许我们可以用更加debian化的方式来进行打包: 首先更新代码: svn up 然后从www.debian.org或debian gis下载qgis 0.7.4的DEBIAN包,解开,然后拷贝其中的debian目录到qgis 0.8svn目录下。 进行修改: 1. 删除patches下的两个文件,这两个patch已经都没有用了,或许不删除也没有关系,打包时并没有调用。 2. 修改control文件,调整qt3为qt4,调整对应的软件包,包括gdal等。 3. 修改rules文件,调整对应的编译参数,或者添加你想使用的参数。 4. 修改三个*.install文件,调整其中对应的目录以及相应的文件,注意不要漏或重复。 然后打包: dch -i dpkg-buildpackage -rfakeroot
Grass 6.1cvs 在 Debian Sarge下的编译
quoted from the grass’s user mail list. 1) The DebianGIS project publishes backported packages of GRASS 6.0.2 and 6.1-cvs for Debian/Stable (sarge) as well as other geospatial software (eg gdal 1.3.1). see http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl 2) If you explore the “build depends” … Continue reading
Debian Sarge下的squid配置
默认情况下,SQUID是禁止所有用户的。 可以对/etc/squid/squid.conf进行一下简单的修改: visible_hostname xxx acl cas src 210.77.0.0/255.255.0.0 http_access allow cas 然后运行: squid -z /etc/init.d/squid restart
升级DEBIAN服务器
因为是远程升级,危险比较大,一直在犹豫是否要升级,正好网络室点名了存在漏洞,而且最近的邮件列表受垃圾邮件骚扰的厉害,就狠心升级了系统。 这个系统大概运行了有2年了,一直没怎么升级,这次就直接升级到目前的testing版本了。 还好,中间没有出什么大问题,中间又把SpamAssassin重新设置了一下,不知道效果如何。 目前存在的问题就是原来自己编译安装的那部分程序还是需要重新编译一下,如mapserver和POSTGIS等。 升级过程发现mailman现在支持中文了,非常感谢http://mail.cs.hit.edu.cn:8080/mmcn/提供的中文化。
deb重新打包
某软件的最新版本还没有进入当前debian包,但里面有些特性是当前所需要的,因此要对此软件重新打包。 1、该包进入了unstable 直接到debian网站下载该包的source,包括3个文件:dsc,tar.gz,diff.gz。 然后运行: dpkg-source -x xxx.dsc cd xxx dpkg-buildpackage -rfakeroot cd .. sudo dpkg -i xxx.deb 2、该包还未进入unstable 首先下载最新的source code,然后看其是否已经debian化。 若已经debian化,直接修改rules文件,定制自己的参数,然后打包、安装。 dpkg-buildpackage -rfakeroot sudo dpkg -i xxx.deb 若还没有debian化,那就首先要进行一系列debian文件的定制。然后再进行打包、安装。 参考:file:///usr/share/doc/maint-guide/maint-guide.zh_CN.html/index.zh-cn.html