平淡生活

          平淡的生活

            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 平淡生活 閱讀(5034) | 評論 (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 平淡生活 閱讀(312) | 評論 (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 平淡生活 閱讀(191) | 評論 (0)編輯 收藏

          2006年8月7日
          posted @ 2006-08-07 11:53 平淡生活 閱讀(163) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 永泰县| 伊川县| 竹北市| 兴安县| 陆丰市| 丹东市| 镇沅| 紫金县| 伊春市| 越西县| 定兴县| 新巴尔虎左旗| 昌图县| 福州市| 乐昌市| 锡林郭勒盟| 桐城市| 遵义市| 汤阴县| 松潘县| 牟定县| 民权县| 张北县| 武功县| 浦城县| 巴林右旗| 铁岭市| 上思县| 沙河市| 信丰县| 石河子市| 治县。| 泊头市| 山东省| 平顺县| 灯塔市| 洞头县| 龙泉市| 昂仁县| 铁岭市| 凌海市|