平淡生活

平淡的生活

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  4 Posts :: 0 Stories :: 8 Comments :: 0 Trackbacks

2006年8月7日 #

    已经全面的将我的工作,开发,生活都升级到了ubuntu7.04上了,折腾了将近3天,总算是跑起来了。也试着习惯了ubuntu,为了安装我的佳的美 utv-330电视盒,一直忙活到了4点多才弄好。主要是就是一个驱动的问题,找了n多网页才找到了解决的问题的方法,备忘如下:
   
For Ubuntu’s Feisty Fawn :

sudo apt-get install mercurial linux-headers-$(uname -r) linux-source build-essential

cd 
/lib/firmware

wget http
://konstantin.filtschew.de/v4l-firmware/firmware_v4.tgz

tar xvzf firmware_v4
.tgz

hg clone http
://mcentral.de/hg/~mrec/v4l-dvb-experimental

cd v4l
-dvb-experimental

make

make install

reboot

sudo modprobe em2880
-dvb


If on the next reboot, the card stops working the em2880-dvb module is not being loaded properly in Feisty. To fix this :

cd /etc/modprobe.d
sudo gedit dvbstick

then add this line to the new dvbstick file :
install em28xx /sbin/modprobe --ignore-install em28xx; /bin/sleep 2; /sbin/modprobe em2880-dvb

reboot and it should be back up and running.

—————————————————————————————————–
For Ubuntu’s Edgy Eft :
sudo su

apt
-get install mercurial linux-headers-$(uname -r) linux-source build-essential

cd 
/lib/firmware

wget http
://konstantin.filtschew.de/v4l-firmware/firmware_v4.tgz

tar xvzf firmware_v4
.tgz

hg clone http
://mcentral.de/hg/~mrec/v4l-dvb-kernel


cd v4l
-dvb-kernel

make

make install

reboot

sudo modprobe em2880
-dvb

If on the next reboot, the card stops working the em2880-dvb module is not being loaded properly in Edgy. To fix this :

cd /etc/modprobe.d
sudo gedit dvbstick

then add this line to the new dvbstick file :
install em28xx /sbin/modprobe --ignore-install em28xx; /bin/sleep 2; /sbin/modprobe em2880-dvb

reboot and it should be back up and running.

—————————————————————————————————–
For Fedora Core 6 :

You should first make sure you have the development tools installed. Applications —> Add / Remove Software —>Development —> Development Tools.

su -

yum install mercurial

cd /lib/firmware

wget http://konstantin.filtschew.de/v4l-firmware/firmware_v4.tgz

tar xvzf firmware_v4.tgz

hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel


cd v4l-dvb-kernel

make

make install

reboot

sudo modprobe em2880-dvb

If on reboot, the card stops working the em2880-dvb module is not being loaded properly in FC6. To fix this :

cd /etc/modprobe.d
sudo gedit dvbstick

then add this line to the new dvbstick file :

install em28xx /sbin/modprobe --ignore-install em28xx; /bin/sleep 2; /sbin/modprobe em2880-dvb

From there I just had to add the new tuner to MythTV via mythtv-setup in Ubuntu Edgy Eft and then the Hauppage HVR-950 worked smoothly in Linux with MythTV & ATSC HDTV (Although, I could never get the unit to play analog cable tv channels).

posted @ 2007-06-05 00:25 平淡生活 阅读(5020) | 评论 (8)编辑 收藏

转自vxii

一、安装apache2+php5+mysql
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

二、设置mysql密码

mysqladmin -u root password 新密码


三、安装phpmyadmin

sudo apt-get install phpmyadmin

测试:http://localhost/phpmyadmin/

四、其它操作:
编辑测试页:

sudo gedit /var/www/testphp.php


<?
phpinfo()
?>



启动Apache
$ sudo /usr/sbin/apache2ctl start

停止Apache

$ sudo /usr/sbin/apache2ctl stop

重启Apache

$ sudo /etc/init.d/apache2 restart


如果只是用于本地开发,加强安全性,设置如下:

$ gksudo 
"gedit /etc/apache2/ports.conf"
$ password
:

更改ports.conf
Listen 127.0.0.1:80
保存文件之后,并重启apache。这时,只有通过127.0.0.1才能访问Apache。

posted @ 2007-06-05 00:10 平淡生活 阅读(304) | 评论 (0)编辑 收藏

1.用spring 发Email
JavaMailSenderImpl jmsi=new JavaMailSenderImpl();
  jmsi.setHost(
"smtp.**.com")
  jmsi.setUsername(
"username@xx.com");
  jmsi.setPassword(
"***");
  jmsi.setDefaultEncoding(
"GBK");
  Properties pt 
=  new Properties();
  pt.setProperty(
"mail.smtp.auth","true");
  jmsi.setJavaMailProperties(pt);

---如果发信服务器用了smtp身份认证必须加上后3句;
2.spring 的定时器
一定要下quartz,刚开始以为spring已经整合好了.
posted @ 2006-08-31 22:37 平淡生活 阅读(183) | 评论 (0)编辑 收藏

2006年8月7日
posted @ 2006-08-07 11:53 平淡生活 阅读(159) | 评论 (0)编辑 收藏