歡迎您光臨本站 註冊首頁

安裝ubuntu7.10 隨記

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

一、下載光碟鏡像,dvd的帶中文包,安裝。
二、安裝nvidia驅動,用系統自帶的應可以
三、開啟特效,須下載compiz-seting-config包進行管理。
四、藍牙與手機相連出現無效的obex://連接,須安裝一些其它的軟體包,用新立得軟體搜索bluetooth 及 obex,安裝了一些軟體包后能夠連接 手機,
五、mplayer安裝。
用新立 得搜索mplayer,安裝。
安裝解碼.下載http://www.mplayerhq.hu/design7/dload.html,essential-20071007.tar.bz2,將其放入/usr/lib/win32中.
將mplayer中video設置為X11/(Ximage/shm),將etc/mplayer/mplayer.conf中zoom=yes前註釋去掉或在用戶目錄/.mplayer/config文件中加入zoom=yes
安裝插件mplayerplug-in.
六使totem能播放rmvb.
用新立得,安裝totem-xine,會提示刪除totem-gstreamer,
安?gstreamer的解?器:
sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse

安?xine及解?器:
sudo apt-get install libxine1-ffmpeg totem-xine ffmpeg lame faad sox mjpegtools libxine-main1

安?w32codecs:
可在下列?址下?
http://www.debian-multimedia.org/pool/main/w/w32codecs/

全部完成後,即可用 totem-xine ?碸 rmvb。

如果此?r有出?「有影?o?」的情形可用下列的方式修正。
可以??~/.xine/catalog.cache文件,找到
[/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so]
把 decoder_priority 增加到 10

七安裝stardict。
1.安裝deb包
2字典文件
Linux系統下安裝字典文件:
按照如下步驟安裝字典:
tar -xjvf a.tar.bz2
mv a /usr/share/stardict/dic

3WyabdcRealPeopleTTS 軟體包是星際譯王詞語的發音文件,是擴展名為.wav的文件.
Linux系統下,通過(tar -xjvf) 解壓文件 tarball 到 "/usr/share/".Windows系統下,可以使用WinRAR壓縮工具釋放tarball 文件,放到類似"C:\Program Files\" 或 "Program Files\StarDict\"的安裝目錄下。

八安裝virtualbox ose ,用新立得管理安裝

九網路電視gsopcast,下載http://linuxdesktop.cn/downloads ... st_0.3.1-1_i386.deb,安裝即可。說明網址http://linuxdesktop.cn/2007/07/24/gsopcast-03-deb


十、安裝usb-serial 線。
插入后能檢查出是ftdi_sio類型的線,但不能生成/dev/ttyUSB0介面。上網下載了新的驅動ftdi_sio.tar.gz,解壓后不能編譯,找了一上午也沒查出原因。

查日誌/var/log/message ,有如下信息:
Oct 24 14:05:27 wxg-move kernel: [22435.024000] usb 2-1: new full speed USB device using uhci_hcd and address 7
Oct 24 14:05:28 wxg-move kernel: [22435.272000] usb 2-1: configuration #1 chosen from 1 choice
Oct 24 14:05:28 wxg-move kernel: [22435.276000] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
Oct 24 14:05:28 wxg-move kernel: [22435.276000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232BM
Oct 24 14:05:28 wxg-move kernel: [22435.276000] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
Oct 24 14:05:29 wxg-move kernel: [22437.032000] usb 2-1: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
Oct 24 14:05:29 wxg-move kernel: [22437.032000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
Oct 24 14:05:29 wxg-move kernel: [22437.032000] ftdi_sio 2-1:1.0: device disconnected
Oct 24
說明串口線安裝后又自動斷線,與brltty衝突。試將brltty及libbrlapi1軟體包卸載,插入轉換線后工作正常。真它媽的。
brltty似乎是盲人終端。

十一、安裝模擬終端程序
1.安裝minicom,
配置sudo minicom -s. 使用后感覺不順手,
2安裝ckermit,
# 首先安裝kermit
apt-get install ckermit
# 安裝zmode通信協議工具,由於kermit本身不提供zmodem通信協議功能,而是通過調用其他程序來完成該功能,所以需要單獨安裝。
apt-get instll lrzsz
# 安裝完成之後需要對kermit進行相應的設置才能開始使用,在$HOME目錄下建立.kermrc文件,該文件是kermit的設置文件,內容如下:
set line /dev/ttyUSB0
set speed 9600
set serial 8n1 #數據的格式,8位,沒有奇偶校驗,1位停止位
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5`
set modem type none #沒有modem
set escape ^a #設置escape字元為Ctrl-a
set protocol zmodem #傳送文件時使用zmodem協議
#set protocol ymodem
#set protocol xmodem


之後 運行kermit,執行connect,完成連接。
此設置也可用set命令設置。
# 為了使當前的用戶有串口的許可權,將當前用戶加入到tty組。


十二安裝攝像頭webcam:
本sony本的攝像頭是motion eye (Ricoh Co. Ltd),sony不提供linux驅動,上網找了半天終於找到一個網站http://www.arakhne.org/spip.php?article47提供驅動,是deb包,有源碼及bin,可直接下載,也可增加源。有最新的7.10的包,ricoh-webcam-r5u870-2.6.22-14-generic_0.10.0-4_i386.deb真是夠快的。另chinaunix.net中也有驅動,下載編譯不通過,等有時間再研究。
安裝后,下載camorama包,試一下,發現只能出黑白,不知是驅動原因還是camorama 原因,還是有問題,再研究。

試編譯motioneye-1.3軟體包,先是缺少X11/xlib.h等 ,安裝libx11-dev,還缺少
display.c:30:34: 錯誤: X11/extensions/shape.h:No such file or directory
display.c:31:19: 錯誤: Imlib.h:No such file or directory
display.c: 在函數 『display_rgb』 中:
display.c:98: 錯誤: expected 『=』, 『,』, 『;』, 『asm』 or 『__attribute__』 before 『*』 token
display.c:98: 錯誤: 『id』 未聲明 (在此函數內第一次使用)
display.c:98: 錯誤: (即使在一個函數內多次出現,每個未聲明的標識符在其
display.c:98: 錯誤: 所在的函數內只報告一次。)
display.c:100: 錯誤: expected 『=』, 『,』, 『;』, 『asm』 or 『__attribute__』 before 『*』 token
display.c:100: 錯誤: 『im』 未聲明 (在此函數內第一次使用)
display.c:109: 警告: 隱式聲明函數 『Imlib_init』
display.c:126: 警告: 隱式聲明函數 『Imlib_create_image_from_data』
display.c:127: 警告: 隱式聲明函數 『Imlib_paste_image』
display.c:128: 警告: 隱式聲明函數 『Imlib_kill_image』
make: *** [display.o] 錯誤 1
wxg@w
繼續安裝xorg-dev包,還出現 Imlib.h:No such file or directory
安裝imlib等幾個開發包,安裝docbook2x,docbook2odf開發包
他娘的,這個程序不是驅動,好像是拍照或錄像的軟體。
經測試,ricoh-webcam-r5u870-2.6.22-14-generic_0.10.0-4_i386.deb的驅動是正常的,camorama軟體有問題

十三安裝chm瀏覽器,經過使用比較,選用chmsee。



十四,突然,mplayer 和totem都不能播放rm格式的視頻,找了半天的原因,試刪除了一些昨天新裝的程序也不解決。后在終端下試用mplayer 播放視頻,發現如下錯誤
Opening video decoder: [realvid] RealVideo decoder
Error: libstdc++.so.5: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll
試安裝新安裝libstdc++ 5 軟體包后,程序正常。其原因可能是我昨天用sudo apt-get autoremove刪除一些無用 的軟體時將原libstdc++刪除了。

十五devede,mencoder的圖形界面。
k3b,圖形化的刻錄軟體,但基於kde。
gnomebaker,基於gnome的刻錄軟體
十六解決運行secondlife有噪音問題。
本機運行secondlife經爆音出現,估計是cpu佔用過高問題,試安裝新的alsa驅動看能否解決。
下載http://www.alsa-project.org/main/index.php/Main_Page中alsa-driver-1.0.15.alsa-lib-1.0.15.alsa-utils-1.0.15

安裝后音效卡不能使用,出現如下錯誤
(output of dmesg |grep snd)::
Quote:
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_ctl_add
[ 1058.932000] snd_hda_intel: Unknown symbol snd_ctl_add
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_new
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_new
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_limit_hw_rates
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_limit_hw_rates
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_card_register
[ 1058.932000] snd_hda_intel: Unknown symbol snd_card_register
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_card_free
[ 1058.932000] snd_hda_intel: Unknown symbol snd_card_free
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_lib_preallocate_pages_for_all
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_lib_preallocate_pages_for_all
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_card_proc_new
[ 1058.932000] snd_hda_intel: Unknown symbol snd_card_proc_new
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_ctl_find_id
[ 1058.932000] snd_hda_intel: Unknown symbol snd_ctl_find_id
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_ctl_new1
[ 1058.932000] snd_hda_intel: Unknown symbol snd_ctl_new1
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_component_add
[ 1058.932000] snd_hda_intel: Unknown symbol snd_component_add
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_card_new
[ 1058.932000] snd_hda_intel: Unknown symbol snd_card_new
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_lib_malloc_pages
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_lib_malloc_pages
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_lib_ioctl
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_lib_ioctl
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_lib_free_pages
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_lib_free_pages
[ 1058.932000] snd_hda_intel: Unknown symbol snd_ctl_elem_read
[ 1058.932000] snd_hda_intel: Unknown symbol snd_ctl_elem_write
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_set_ops
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_set_ops
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_hw_constraint_list
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_list
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_device_new
[ 1058.932000] snd_hda_intel: Unknown symbol snd_device_new
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_suspend_all
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_suspend_all
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_card_disconnect
[ 1058.932000] snd_hda_intel: Unknown symbol snd_card_disconnect
[ 1058.932000] snd_hda_intel: disagrees about version of symbol snd_pcm_hw_constraint_integer
[ 1058.932000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_integer
[ 1058.936000] snd_hda_intel: disagrees about version of symbol snd_pcm_period_elapsed
[ 1058.936000] snd_hda_intel: Unknown symbol snd_pcm_period_elapsed
[ 1058.936000] snd_hda_intel: disagrees about version of symbol snd_pcm_hw_constraint_step
[ 1058.936000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_ste
上網找資料,中文沒有到,后在英文網站找到如下說明
網址:https://help.ubuntu.com/community/HdaIntelSoundHowto
http://ubuntuforums.org/showthread.php?t=577699
原因:ubuntu default snd-hda-intel.ko location:
/lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko

alsa 1.0.15's installation location:
/lib/modules/2.6.22-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko
so copy /lib/modules/2.6.22-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko to /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko .

and put the modules/* in alsa's compile directory into /lib/modules/.../kernel/sound, you can use "find" to get their location.
snd-hda-intel.ko
snd-hwdep.ko
snd.ko
snd-mixer-oss.ko
snd-page-alloc.ko
snd-pcm.ko
snd-pcm-oss.ko
snd-rtctimer.ko
snd-seq-device.ko
snd-seq.ko
snd-seq-midi-event.ko
snd-seq-oss.ko
snd-timer.ko

then, depmod -a

reboot, try again
其中的安裝步驟
Re: Alsa 1.0.15?
thank you very much pcmanlin,

i have pavilion dv6560el ( 6560 dv6560 : <-- for google :p) and it worked !!

I followed this guide https://help.ubuntu.com/community/HdaIntelSoundHowto (till "Reboot"), and then:

sudo cp -v /lib/modules/2.6.22-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko
sudo cp -v /usr/src/alsa/alsa-driver-1.0.15/modules/* /lib/modules/2.6.22-14-generic/kernel/sound/
sudo depmod -a

and it worked

thx man


我的安裝步驟:
*

一 Install the required tools

sudo apt-get install build-essential ncurses-dev gettext
以上我已安裝build-essential及gettext,只需安裝ncurses-

*

Install your kernel headers

sudo apt-get install linux-headers-`uname -r`
我己安裝內核,不用再安裝

*

Download the latest version of alsa from [WWW] Alsa project (driver, lib, and utils) to a directory (eg. ~/downloads). In the following we assume that the latest version is 1.0.14. Please change this in accordance with the one you downloaded from the Alsa project site.
o

[WWW] alsa-driver
o

[WWW] alsa-lib
o

[WWW] alsa-utils
下載
*

Setup installation directories

sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/downloads/alsa* .
sudo tar xjf alsa-driver*.bz2
sudo tar xjf alsa-lib*.tar.bz2
sudo tar xjf alsa-utils*.tar.bz2

*

Compile and install alsa-driver

cd alsa-driver-1.0.14
sudo ./configure --with-cards=hda-intel
sudo make
sudo make install

*

Compile and install alsa-lib

cd ../alsa-lib-1.0.14a
sudo ./configure
sudo make
sudo make install

*

Compile and install alsa-utils

cd ../alsa-utils-1.0.14
sudo ./configure
sudo make
sudo make install


whohaaaaa finally... i can listen to bruce springsteen on linux ;p

重啟系統

sudo cp -v /lib/modules/2.6.22-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko
sudo cp -v ~/軟體/alsa-driver-1.0.15/modules/* /lib/modules/2.6.22-14-generic/kernel/sound/
sudo depmod -a
sudo modprobe snd-hda-intel
音效卡能正常使用,但試運行secondlife后,仍有爆音,看來暫時無法解決了
天無絕人之路,再上網搜索ubuntu 爆音,查到兩各解決辦法,一是更換OSS驅動程序,從網站www.opensound.com下載。二是用如下辦法:
打開終端輸入sudo gedit /etc/modprobe.d/alsa-base

打開后在最後面加上

options snd-hda-intel position_fix=1 model=3stack
options snd-hda-intel model=laptop-eapd

重新啟動就可以了
我試了一下,進入secondlife后沒有爆音了,但聲音質量不是太好,似乎有顫音,不打算重裝驅動了,先將就用吧。


十七開發工具
free passcal:lazarus一個linux下的pascall,我未安裝。
安裝anjuta,glade集成開發環境,安裝gnome-core-devel,安裝devhelp(開發幫助,英文的)還要裝一些其它的庫,我未記。



十八安裝檢查後門程序rkhunter ,安裝殺毒軟體antiavi,avast


十九、firefox問題

忽然發現firefox在打開多個標籤頁后,系統變得非常緩慢,播放視頻時很卡,用top命令查看,發現cpu佔用達98%以上,進程很異常,有一個命令打開了很多進程,戰勝率很高,命令名為gtk-gnash,top顯示如下:
top - 16:03:23 up 2:18, 2 users, load average: 0.86, 1.56, 2.62
Tasks: 170 total, 2 running, 167 sleeping, 0 stopped, 1 zombie
Cpu(s): 21.0%us, 3.3%sy, 0.0%ni, 75.3%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 514316k total, 351864k used, 162452k free, 5000k buffers
Swap: 1052248k total, 221332k used, 830916k free, 97640k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16850 wxg 15 0 32324 9840 8476 S 10 1.9 0:52.10 gtk-gnash
16833 wxg 15 0 32444 11m 8496 S 9 2.3 0:50.81 gtk-gnash
16865 wxg 16 0 78048 15m 10m S 8 3.0 1:16.60 gtk-gnash
16663 wxg 15 0 232m 92m 25m S 7 18.3 2:16.04 firefox-bin
16838 wxg 15 0 106m 14m 12m R 7 2.8 0:37.86 gtk-gnash
16837 wxg 15 0 31900 10m 8384 S 3 2.0 0:19.19 gtk-gnash
5970 root 15 0 64096 31m 10m S 2 6.3 3:40.23 Xorg
16818 root 15 0 80688 28m 16m S 1 5.7 0:09.92 synaptic
16836 wxg 15 0 55284 13m 10m S 1 2.7 0:13.88 gtk-gnash
16678 wxg 15 0 2492 1208 876 R 1 0.2 0:02.97 top
12442 wxg 15 0 28416 8696 6268 S 0 1.7 0:13.23 metacity
16847 wxg 15 0 55180 10m 9776 S 0 2.0 0:01.09 gtk-gnash
16868 wxg 15 0 55360 14m 10m S 0 2.9 0:02.03 gtk-gnash
1 root 18 0 2948 512 460 S 0 0.1 0:01.50 init
2 root 17 -5 0 0 0 S 0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:00.02 migration/0
4 roo
以上顯示是打開少量網頁的情況,如打開多個網頁cpu佔用相當高的。
在網上查找原因,沒有結果。後用新立得軟體刪除安裝的gnash,gnash-commccom,mozila-plugin-gnash后,問題解決。
!!!現在想一下,好像是我當初安裝firefox后,安裝flash插件,先安裝的開源的gnash插件,后感覺不好用,沒卸載gnash就直接安裝了adobe flash插件才造成了此後果。
二十、解決掛起不能恢復問題
修改配置文件/etc/default/acpi-support,更改ENABLE_LAPTOP_MODE=true
sudo gedit /etc/default/acpi-support



二十一、解決觸控板問題
我的sony筆記本觸控板設計有問題,在在打字編輯時,手掌很容易碰到觸控板,造成游標誤定位,今天終於找到一個解決辦法。
1編輯/etc/X11/xorg.conf,打開共享內存。之後用戶登出重新登錄。
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
#打開共享內存
Option "SHMConfig" "on"
#關閉觸控板
#Option "Touchpadoff" "1"
EndSection


2. 運行命令sypclient touchpadoff=1 , 關閉觸控板
synclinet touchpadoff=0,打開觸控板
3如果用命令關閉觸控板,觸控板將一直不能用,除非再打開,很麻煩。有一個監控程序,自動監測鍵盤,如有按鍵,將自動關閉觸控板,延時一定時間后將自動打開(2秒) ,我試了一下,感覺很好用,如果需要,可以加入開機啟動。
命令如下 :
syndaemon -d

二十二、瑞星殺毒軟體
瑞星以前有製做U盤殺毒的工具ravusb,現在不支持U盤了,但有一個光碟殺毒軟體,從瑞星網站下載后,看是一個鏡像ravlinux.iso。分析看也是一個L系統的軟體。我想利用其改成U盤啟動的,獲得成功。
1下載鏡像ravlinux.iso,解壓分析有兩個目錄,一為rising,一為boot/isolinux,分析其為isolinux引導的系統。
2下載syslinux軟體並安裝
3製作U盤啟動盤:
插入U盤,分區fdisk /dev/sdb,將U盤分成2個區,sdb1和sdb2,將sdb1激活成可引導用於安裝瑞星殺毒軟體,容量為50M即可。
製做文件系統:mkdosfs /dev/sdb1
不能做成fat32格式,mkdosfs -F 32 /dev/sdb1,我試了一下,沒成功
umount分區,sudo umount /dev/sdb1
製作syslinux引導盤:syslinux /dev/sdb1,拔出U盤並重新插入,在盤中應有文件 ldlinux.sys。
4將光碟鏡像中的rising目錄複製到U盤sdb1中,將文件boot.msg,f2,ravroot.gz,vmlinuz,isolinux.cfg 複製到sdb1的根下,將isolinux.cfg重命名為syslinux.cfg。
用U盤啟動機器,就可進行殺毒了。
備註:對ravlinux.iso進一步分析,發現其中的文件RISING是一個用cloop文件系統格式壓縮的。下載軟體cloop-utils。運行命令
extract_compressed_fs RISING >mytest ,將RISING 解壓。用命令sudo mount -o loop mytest /mnt,能夠正常安裝,文件系統格式為iso9660,將mytest改名為mytest.iso,能用文檔管理器打開,其為一個光碟鏡像文件。我想,稍加改進,就可將此軟體運行在linux下(不用引導盤)

[火星人 ] 安裝ubuntu7.10 隨記已經有621次圍觀

http://coctec.com/docs/linux/show-post-180212.html