ubuntu相关

4 篇文章 0 订阅

Ubuntu8.10安装小记

Ubuntu下配置Nginx+PHP环境(转载) http://cybyf.blog.163.com/blog/static/27433742008102835658583/
在Ubuntu 8.10下配置nginx和fastcgi方式的php http://ranfow.blogbus.com/logs/31652383.html
ubuntu 安装 nginx+php+mysql+phpmyadmin(转) http://zsbfree.javaeye.com/blog/187892
Ubuntu8.04下 nginx+php+mysql+zend   http://blog.csdn.net/phphot/archive/2008/06/10/2533774.aspx

VMware中的Ubuntu网络设置  http://hi.baidu.com/chenponder/blog/item/5e569411e658b814b8127bb4.html
使用命令设置ubuntu的ip地址   http://www.myhelen.cn/article.asp?id=901
WinXP+VMware+Ubuntu]安装+VMwareTools+输入法+系统美化全攻略
VMWare中安装Ubuntu的上网问题
nm-ifupdown-connection.c.82-connection update not supported (read-only)
http://www.51testing.com/?uid-97348-action-viewspace-itemid-94278

ubuntu 经验总结  http://hi.baidu.com/gygg2008/blog/item/ddfce6139549ad876438db48.html
安装ubuntu经验方法完全攻略  http://www.ntu-kaka.cn/article/53.htm

在 Ubuntu 中激活 root 帐号:
1. 在终端执行 sudo passwd root 指令后,设置一个新的 root 帐号密码。
2. 点击 System (系统)-> Preferences(系统管理) -> Login Window(登录桌面)菜单,并切换到 Security (安全)选项页,然后选中其下的“Allow local system administrator login(允许本地系统管理员登录)”选项。

ubuntu8.04中文输入法、QQ的安装

中文输入法:
sudo apt-get install scim-chinese
sudo im-switch -s scim   
sudo reboot     OK中文输入法就安装好了
安装QQ就更简单了,就用EVA,很方便
sudo apt-get install eva     就这一步就完成了,直接在命令行下输入:eva     就可以使用了。

Ubuntu 服务器上安装启动SSH Server
sudo apt-get install openssh-server
ssh localhost
如果出现以下错误,则很可能是因为还没有安装ssh-server:
ssh: connect to host localhost port 22: Connection refused
安装SSH-server:
sudo apt-get update
sudo apt-get install openssh-server openssh-client
启动SSH-Server
sudo /etc/init.d/ssh start

更新源
apt-get update
apt-get install apt-spy
apt-spy update
测试亚洲地区的源的速度,并自动写入 sources.list
apt-spy -d unstable -a asia -t 5
secureCRT 显示乱码问题
1:最简单的方法是直接改
   Session Option→选字体(新宋体)→再选Character encoding(选UTF-8)
   然后再修改远程linux机器的配置
  vi /etc/sysconfig/i18n
  把LANG改成支持UTF-8的字符集
  如:LANG=”zh_CN.UTF-8″
 
2:如果再不行,可以试试这样
   导出 /etc/sysconfig/i18n
   原文件内容为:
   LANG="zh_CN.UTF-8"
   SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
   SYSFONT="latarcyrheb-sun16"
   更改为:
   LANG="zh_CN.GB2312"
   LANGUAGE="zh_CN.GB2312:zh_CN.GB2312:zh_CN"
   SUPPORTED="zh_CN.GB2312:zh_CN:zh:en_US.UTF-8:en_US:en"
   SYSFONT="latarcyrheb-sun16"
   SecureCRT里中文显示乱码
   打开 Options -> Session Options -> Appearance ,Character选UTF-8或OEM。
 
如果用了上述方法后,还是出现乱码,那有可能就是secureCRT字体设置的问题了
文章出处:DIY部落(http://www.diybl.com/course/6_system/linux/Linuxjs/20090326/163546.html)

退出telnet了,很简单:ctrl+],然后再输入q就可以退出了

apache2: bad user name ${APACHE_RUN_USER}
1.必须设置
/etc/apache2/envvars下的
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
改为你自己的用户名和用户组
User JiayiStudio
Group JiayiStudio
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
继续sudo gedit /etc/apache2/apache2.conf
在文件后面加上:ServerName 127.0.0.1

查看已安装的软件包版本号
sudo apt-get install apt-show-versions

安装好之后就可以在终端下使用命令:

$apt-show-versions

来查看所有已安装的软件包和版本号,不过结果太多会一扫而过,加上终端的自有脚本more来打印每一屏的结果:

$apt-show-versions |more

这样子打印满一屏就暂停,按下回车键打印下一行,按下空格键打印下一屏,按下Q键退出打印结果。如果想查看单个软件包的版本,则使用命令:

$apt-show-versions –p <package>    //<package>是软件包名,不含符号

如果想查看可升级的软件包,则使用命令:

$apt-show-versions –u

如果没有任何可以升级的软件包,上面那条命令是不会返回任何结果的。更多的参数查看man,这两个方法哪个好用仁者见仁了。

Install php-pcntl module


I know this is way after the fact, but since I was searching for this too... thought I would post what I found out.

This bug item had a good start.

Code:
mkdir php
cd php
apt-get source php5
cd php5-(WHATEVER_RELEASE)
$EDITOR debian/rules -> find "--with-curl" line and add configure option
$EDITOR debian/modulelist -> add module
dpkg-buildpackage -rfakeroot
cd ..
I ended up adding a line to the debian/rules file

Code:
--enable-pcntl /
However adding the pcntl to the list of modules caused it to fail. So removed the modules, and just kept the line to the debian/rules file which built the new php5 binary.

However after testing the new and old binaries, I found that I did not need to recompile the php5 itself, just to access the pcntl funtions.

Was a good lesson though. All I needed to do was compile the pcntl module and install it.

compiling and installing the module:

Code:
mkdir php
cd php
apt-get source php5
cd php5-(WHATEVER_RELEASE)/ext/pcntl
phpize
./configure
make
** I believe you could do a "make install" here, however I was not certain it would place the modules in the correct spot. So I just manually moved and created the init file.

Code:
cp modules/pcntl.so /usr/lib/php5/WHEVER_YOUR_SO_FILES_ARE/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini
Hope that helps the next person save some time, it took me about 3 hours of compiling before I found out I did not need to recompile php5 itself to access the pcntl module.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值