[2015/06/25更新]鍵盤新增他國語系(54F)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

[2015/06/25更新]鍵盤新增他國語系(54F)

#1

帖子 閒逛達人 » 2014-11-06 8:49

請問各位前輩,關於top panel的關機icon
如何修改詳細的參數,他是放在哪裡呢
由於我的關機鍵無法使用,因此想查是哪裡出錯
謝謝各位前輩提點

備查資料
http://www.ubuntu-tw.org/modules/newbb/ ... 70&forum=8

http://lodour.blogspot.tw/2014/08/ubuntu.html

http://umacau-datacenter.com:4998/testd ... 442093.htm

http://www.ubuntu-tw.org/modules/newbb/ ... =0&start=0

viewtopic.php?f=77&t=462611

http://www.ubuntu-tw.org/modules/newbb/ ... _id=210350

http://www.ubuntu-tw.org/modules/newbb/ ... c_id=85988

http://www.ubuntu-tw.org/modules/newbb/ ... _id=328894

http://www.ubuntu-tw.org/modules/newbb/ ... =0&start=0

http://blog.trendmicro.com.tw/?p=123

http://blog.trendmicro.com.tw/?p=10362#more-10362

http://askubuntu.com/questions/354963/a ... r-to-panel

http://askubuntu.com/questions/310810/c ... tu-minimal

http://unix.stackexchange.com/questions ... own-action

http://lxle.net/forum/#/discussion/14/s ... p-panel/p1

http://twpug.net/docs/FC3_X/16_multimed ... naptic.htm

http://blog.xuite.net/yh96301/blog/2510 ... B%E5%BC%8F

http://blog.xuite.net/ericsk0313/ubuntu ... 94%A8+SCIM

http://wiki.ubuntu.org.cn/%E4%B8%AD%E6% ... B%E5%8A%A0
---------------2015/01/14-----------
ubuntu研究真是漫長阿
除了查資料還是查資料
希望這些參考可以提供大家多少幫忙
也是幫我自己作整理
http://ubuntuforums.org/showthread.php?t=1968712

http://askubuntu.com/questions/414885/o ... lled-error

http://www.arthurtoday.com/2009/12/ubuntu_21.html

http://www.arthurtoday.com/2013/05/ubun ... part1.html

---------------2015/02/10-----------
google-earth install
http://askubuntu.com/questions/456749/g ... l-on-14-04

http://www.webupd8.org/2014/04/install- ... -1404.html

https://pvanb.wordpress.com/2014/06/23/ ... ntu-14-04/
---------------2015/02/13-----------
移除libreoffice
sudo apt-get remove libreoffice*.*
sudo apt-get purge
sudo apt-get autoremove
sudo apt-get autoclean
http://www.arthurtoday.com/2011/02/ubun ... z3RaTVmNiq

---------------2015/02/16-----------
fctix
http://www.ubuntu-tw.org/modules/newbb/ ... _id=246870

sudo apt-get install fcitx
sudo apt-get install im-config 此項用14.04的不須安裝,因為已定為預設
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update

檢查更新 ,更新完, 再繼續安裝碼表

sudo apt-get install fcitx-table-boshiamy (嘸蝦米)
要大一點的表請看下方的 ㈡ 嘸蝦米碼表設定⑦

sudo apt-get install fcitx-table-cangjie-big (倉頡大字集)
sudo apt-get install fcitx-table-zhengma-large (鄭碼大字集)
sudo apt-get install fcitx-table-wubi-large (五筆大字集)
sudo apt-get install fcitx-chewing (新酷音)
sudo apt-get install fcitx-sunpinyin (双拼)
sudo apt-get install fcitx-table-easy-big (輕鬆大詞庫)
sudo apt-get install fcitx-m17n
sudo apt-get install fcitx-table-quick3 速成3
sudo apt-get install fcitx-table-quick5 速成5
sudo apt-get install fcitx fcitx-table-array30


---------------2015/02/24-----------
系統優化
1、blog.sina.com.cn/s/blog_b085dc650101cja8.html
2、blog.csdn.net/r91987/article/details/6777694
3、fosbin.blog.163.com/blog/static/182746007201131062616881/
4、www.2cto.com/os/201206/135773.html
5、www.linuxidc.com/Linux/2012-10/72811.htm
6、jingyan.baidu.com/article/9158e0006ac4dca255122872.html
7、jingyan.baidu.com/article/cbf0e500ec6c632eab289352.html
上次由 閒逛達人 在 2015-06-25 11:50,总共编辑 28 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 請問14.04關機設定

#2

帖子 poloshiao » 2014-11-06 12:29

14.04關機設定
1. Ubuntu 14.04 預設 init 程式套件 是 upstart
https://wiki.ubuntu.com/TrustyTahr/Rele ... iewUpstart

2. upstart 套件 提供 開機/關機 有關指令
sudo dpkg -L upstart | grep bin
/sbin
/sbin/runlevel
/sbin/upstart-local-bridge
/sbin/upstart-event-bridge
/sbin/initctl
/sbin/shutdown
/sbin/reboot
/sbin/upstart-udev-bridge
/sbin/upstart-file-bridge
/sbin/upstart-dbus-bridge
/sbin/telinit
/sbin/init
/sbin/upstart-socket-bridge
/bin
/bin/running-in-container
/usr/bin
/usr/bin/init-checkconf
/usr/bin/initctl2dot
/sbin/reload
/sbin/start
/sbin/poweroff
/sbin/restart
/sbin/stop
/sbin/status
/sbin/halt

3. 詳查 每個指令的 manpage 可以獲得更詳細的解說
例如
man shutdown
man reboot

4. 每個圖示 / 選項 / 可執行捷徑 實際就是 執行一個指令
可以從 屬性 查出 指令及參數
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: 請問14.04關機設定

#3

帖子 閒逛達人 » 2014-11-06 17:15

poloshiao 写了:
14.04關機設定
1. Ubuntu 14.04 預設 init 程式套件 是 upstart
https://wiki.ubuntu.com/TrustyTahr/Rele ... iewUpstart

2. upstart 套件 提供 開機/關機 有關指令
sudo dpkg -L upstart | grep bin
/sbin
/sbin/runlevel
/sbin/upstart-local-bridge
/sbin/upstart-event-bridge
/sbin/initctl
/sbin/shutdown
/sbin/reboot
/sbin/upstart-udev-bridge
/sbin/upstart-file-bridge
/sbin/upstart-dbus-bridge
/sbin/telinit
/sbin/init
/sbin/upstart-socket-bridge
/bin
/bin/running-in-container
/usr/bin
/usr/bin/init-checkconf
/usr/bin/initctl2dot
/sbin/reload
/sbin/start
/sbin/poweroff
/sbin/restart
/sbin/stop
/sbin/status
/sbin/halt

3. 詳查 每個指令的 manpage 可以獲得更詳細的解說
例如
man shutdown
man reboot

4. 每個圖示 / 選項 / 可執行捷徑 實際就是 執行一個指令
可以從 屬性 查出 指令及參數



感謝前輩的提點:
小弟發現再12.04版之下所使用的關機再升級到14.04版後無法適用
原本12.04下關機的屬性裡面為
/usr/lib/indicator-session/gtk-logout-helper -s
但在14.04下後,我發現indicator-session並沒有gtk-logout此參數?
或者說是不支援

因此我才會尋找14.04下的關機相關指令與路徑
想尋找修改的方式,但礙於小弟愚笨
看不懂前輩所說的upstart套件
假使我要用指令方式新增一個button紐 屬性該如何修改呢?

我曾在網路上旬找到相關教學,但卻是以圖形化方式
對我來說可能比較不適用,我比較需要以指令的方式作修改。

感謝前輩的提點
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 請問14.04關機設定

#4

帖子 poloshiao » 2014-11-06 20:25

原本12.04下關機的屬性裡面為
引言回覆:
/usr/lib/indicator-session/gtk-logout-helper -s
1. 12.04
http://packages.ubuntu.com/precise/amd6 ... n/filelist
/usr/lib/indicator-session/gtk-logout-helper
/usr/lib/indicator-session/indicator-session-service
/usr/lib/indicators3/7/libsession.so
1-1. sudo dpkg -S /usr/lib/indicator-session/gtk-logout-helper
indicator-session: /usr/lib/indicator-session/gtk-logout-helper
1-2. 表示 indicator-session 套件 提供 /usr/lib/indicator-session/gtk-logout-helper 檔案

2. 14.04 仍然有 indicator-session 套件
http://packages.ubuntu.com/search?suite ... chon=names
trusty (14.04LTS) (gnome): indicator showing session management, status and user switching
12.10.5+14.04.20140410-0ubuntu1: amd64 i386

3. http://packages.ubuntu.com/trusty/amd64 ... n/filelist
在 Ubuntu 14.04 indicator-session 套件提供下述兩個可執行檔案
/etc/xdg/autostart/indicator-session.desktop
/usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service
假使我要用指令方式新增一個button紐 屬性該如何修改呢?
3-1. 上面副檔名為 .desktop 的檔案就是 unity 桌面的圖示捷徑 也可以加在 啟動器 上面
sudo cat /etc/xdg/autostart/indicator-session.desktop
[Desktop Entry]
Type=Application
Name=Indicator Session
Exec=/usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service
OnlyShowIn=Unity;GNOME;
NoDisplay=true
StartupNotify=false
Terminal=false
AutostartCondition=GNOME3 unless-session gnome
X-Ubuntu-Gettext-Domain=indicator-session
3-2. 被確認的 Bug
https://bugs.launchpad.net/ubuntu/+sour ... ug/1290876
indicator-session-service crashed with SIGSEGV in get_user_label()
indicator-session-service 崩潰
3-3. 參閱
https://help.ubuntu.com/community/Unity ... sktopFiles
http://askubuntu.com/questions/450266/a ... p-shortcut

4. 暫時使用指令
sudo shutdown -P now # P 大寫
sudo reboot # 重開機
sudo restart lightdm # 登出
4-1. 在 Gnome 面板上 創設一個 圖示
屬性 寫上上面的指令
按一下圖示 就執行該指令

5. 補充
http://www.omgubuntu.co.uk/2014/03/add- ... unity-dash
How To Add Shutdown, Restart Options to Ubuntu’s Unity Dash

Shut Down
Reboot
Suspend
Hibernate
Log Out
Lock Screen
圖示捷徑
加在 Unity Dash
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: 請問14.04關機設定

#5

帖子 閒逛達人 » 2014-11-10 14:59

poloshiao前輩你好:
關於前輩所補充的文章,之前已查閱過網址上述的教學。
還是謝謝前輩告知
但我的問題在於
安裝了gnome flashback的界面
預設top panell是什麼都沒有的
所以必須透過修改相關文件才能去作新增的動作
前輩之前所提到的
Exec=/usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service
我有試著去作更改,但發現還是無法去作變動(按鈕按了無效
我所作的變動為
[Desktop Entry]
Type=Application
Name=Indicator Session
Exec=/usr/lib/i386-linux-gnu/indicator-session/indicator-session-service //原為/usr/lib/indicator-session/gtk-logout-helper -s
OnlyShowIn=Unity;GNOME;
NoDisplay=true
StartupNotify=false
Terminal=false
AutostartCondition=GNOME3 unless-session gnome
X-Ubuntu-Gettext-Domain=indicator-session
由於小弟linux知識基礎不深,希望前輩有耐心提點小弟了。
以及關於OnlyShowIn=Unity;GNOME;此行是不是設定由哪個界面會執行exec的指令呢?
因此我推斷假使我是安裝gnome flashback,是不是修改成OnlyShowIn=Unity;GNOME;gnome-fallback;
我在試試看,謝謝前輩
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: [11/10更新]請問14.04關機設定

#6

帖子 poloshiao » 2014-11-10 21:05

NoDisplay=true
1. http://standards.freedesktop.org/deskto ... 01s05.html
NoDisplay
NoDisplay means "this application exists, but don't display it in the menus".
是否合乎你的意思 ?

2. 所有的 Entry 進一步參閱
http://standards.freedesktop.org/deskto ... ec/latest/

3. 這裡有三個指令工具 幫你 安裝/測試 .desktop 檔案
http://freedesktop.org/wiki/Software/de ... ile-utils/
desktop-file-validate
desktop-file-install
update-desktop-database
3-1. 需要安裝 desktop-file-utils 套件
http://packages.ubuntu.com/trusty/amd64 ... s/filelist
可以提供
/usr/bin/desktop-file-edit
/usr/bin/desktop-file-install
/usr/bin/desktop-file-validate
/usr/bin/update-desktop-database

4. 新增一個已被確認的 Bug
https://bugs.launchpad.net/ubuntu/+sour ... ug/1301589
4-1. 暫時解決方法
https://bugs.launchpad.net/ubuntu/+sour ... comments/6

5. 其它 indicator-session 的 Bug Report
https://launchpad.net/ubuntu/+source/in ... sion/+bugs
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: [11/10更新]請問14.04關機設定

#7

帖子 閒逛達人 » 2014-11-12 15:20

感謝poloshiao前輩的解答
原來是發生再這麼小的地方
NoDisplay=true
我把他改為false時,top panel就回復成預設14.04版的界面了
真的很謝謝前輩的提點,

最後很過份想再問前輩一個問題(麻煩前輩了>.<)
假使我現在使用uck製作liveCD
由於我現在要修改top panel的相關變動,由於不能馬上看到效果
因此每一次作變動或修改後,都必須將iso重新打包(打包花費時間非常耗時,這樣的效率很不好)
打包後,掛載才能看到畫面是否有成功(達到我要的效果)
是不是有其他的辦法可以再打包前,就先知道是否有成功修改畫面

以及前輩所提到的那三個指令工具是否也能應用在uck環境底下呢?

最後很感謝前輩幫忙提點小弟
小弟會努力學習的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: [11/12更新]請問14.04關機設定

#8

帖子 poloshiao » 2014-11-12 17:02

因此每一次作變動或修改後,都必須將iso重新打包(打包花費時間非常耗時,這樣的效率很不好)
打包後,掛載才能看到畫面是否有成功(達到我要的效果)
是不是有其他的辦法可以再打包前,就先知道是否有成功修改畫面
看看 這一篇 能否幫助你
http://www.geekyprojects.com/ubuntu/bui ... tu-livecd/
Create Desktop Shortcuts on Your LiveCD
Change GNOME’s Background
你可以使用 virtualbox 看到桌面
以及前輩所提到的那三個指令工具是否也能應用在uck環境底下呢?
這一篇
https://fedoraproject.org/wiki/Packagin ... ktop_files
有提到如何 打包 desktop 文件檔案 以及如何使用 desktop-file-install 及 desktop-file-validate
是否要打包進 ISO 需看你的需求而定
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: [11/12更新]請問14.04關機設定

#9

帖子 閒逛達人 » 2014-11-13 11:29

前輩你好:

我在安裝gnome-session-flashback時
發生安裝失敗
E: Unable to locate package gnome-session-flashback

可是我已經有
apt-get update
apt-get upgrade

可是還是發生
E: Unable to locate package gnome-session-flashback

我在14.04環境下已有成功安裝flashback
但在uck環境底下卻發現無法成功安裝
也有作更新的動作
可是卻發生
E: Unable to locate package gnome-session-flashback
這是為什麼呢?
上次由 閒逛達人 在 2014-11-13 11:49,总共编辑 1 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: [11/12更新]請問14.04關機設定

#10

帖子 poloshiao » 2014-11-13 11:45

E: Unable to locate package gnome-session-flashback
1. 你的軟體來源
/etc/apt/resources.list
/etc/apt/resources.list.d/*.list
的所有套件庫
沒有 名稱是 gnome-session-flashback 的套件

2. http://packages.ubuntu.com/search?suite ... chon=names
gnome-session-flashback 來自 universe 套件庫
表示 你還沒把 universe 套件庫 加入 軟體來源 /etc/apt/resources.list
2-1. 參考
https://help.ubuntu.com/community/Repos ... positories
Ubuntu Software Tab
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: [11/12更新]請問14.04關機設定

#11

帖子 閒逛達人 » 2014-11-13 12:01

感謝前輩
以成功安裝
真的太謝謝前輩有耐心的提點小弟
讓初碰ubuntuu的我少跌倒了許多
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: [11/12更新]請問14.04關機設定

#12

帖子 poloshiao » 2014-11-13 12:08

gnome-session-flashback
補充
跟 ubuntu 12.04 的 gnome-session-fallback 相比
雖然都是 gnome classic 外觀
但是
ubuntu 12.04 的 gnome-session-fallback 是 2D
ubuntu 14.04 的 gnome-session-flashback 是 3D
意思是 如果 顯卡不支援 3D
可以安裝 ubuntu 12.04 的 gnome-session-fallback
不能安裝 ubuntu 14.04 的 gnome-session-flashback
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: [11/14更新]liveCD印表機驅動問題

#13

帖子 閒逛達人 » 2014-11-14 9:31

前輩你好:
關於製作liveCD中,假使是使用光碟作為系統開機。
再不知道印表機型號情況下,印表機可能採用Plug and Play方式
那印表機的安裝語法如何寫進cd當中呢?
修改文件又是在哪裡呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: [11/14更新]liveCD印表機驅動問題

#14

帖子 poloshiao » 2014-11-14 14:32

印表機可能採用Plug and Play方式
這個難度是很高的
先參閱
1. https://help.ubuntu.com/community/Printers
2. https://help.ubuntu.com/lts/serverguide/cups.html

不過 希望永遠存在的 試試
viewtopic.php?p=3114995#p3114995
閒逛達人
帖子: 39
注册时间: 2014-10-13 16:05

Re: [11/19更新]liveCD軟體安裝

#15

帖子 閒逛達人 » 2014-11-19 9:50

前輩你好:
請問再uck環境底下
我要安裝deb包,因此我將deb包丟到環境裡面
再透過

代码: 全选

sudo uck-remaster-chroot-rootfs
方式去安裝軟體
但進入到環境後卻發生下列安裝錯誤
我先安裝輸入法

代码: 全选

scim scim-m17n scim-chewing scim-tables-zh intltool scim-dev scim-anthy
發生下列錯誤

代码: 全选

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 google-earth-stable : Depends: lsb-core (>= 3.2) but it is not going to be installed
 intltool : Depends: automake but it is not going to be installed or
automaken
Depends: libxml-parser-perl but it is not going to be installed
 scim : Depends: libscim8c2a (>= 1.4) but it is not going to be installed
Recommends: scim-gtk-immodule but it is not going to be installed
Recommends: scim-im-agent but it is not going to be installed
 scim-anthy : Depends: libanthy0 but it is not going to be installed
Depends: libscim8c2a (>= 1.4) but it is not going to be installed
Depends: anthy but it is not going to be installed
Recommends: kasumi but it is not going to be installed
 scim-bridge-agent : Depends: libscim8c2a (>= 1.4.9) but it is not going to be installed
Depends: scim-modules-socket but it is not going to be installed
Recommends: scim-bridge-client-gtk but it is not installable or
  scim-bridge-client-qt but it is not installable or
scim-bridge-client-qt4
 scim-chewing : Depends: libchewing3 (>= 0.3.4) but it is not going to be installed
Depends: libscim8c2a (>= 1.4) but it is not going to be installed
Recommends: ttf-arphic-uming but it is not installable
 scim-dev : Depends: libscim-dev (>= 1.4.14-6) but it is not going to be installed
Depends: scim-dev-doc (= 1.4.14-6) but it is not going to be installed
 scim-m17n : Depends: libm17n-0 (>= 1.5.5) but it is not going to be installed
Depends: libscim8c2a (>= 1.4) but it is not going to be installed
Depends: m17n-db but it is not going to be installed
 scim-tables-zh : Depends: scim-modules-table (>= 0.5.13-1ubuntu1) but it is not going to be installed
Recommends: fonts-arphic-gbsn00lp but it is not going to be installed or
fonts-arphic-gkai00mp but it is not going to be installed
Recommends: fonts-arphic-bsmi00lp but it is not going to be installed or
fonts-arphic-bkai00mp but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
從錯誤訊息來看,前輩我是不是缺少安裝依賴套件,如果是這樣。
我該下什麼語法才能安裝成功呢,那如果不是用deb的安裝方式
是不是就不會出現這樣的錯誤了。


同樣在安裝google-earth時

代码: 全选

sudo dpkg -i /google-earth-stable_current_i386.deb

代码: 全选

sudo: unable to resolve host quakeghost-virtual-machine
Selecting previously unselected package google-earth-stable.
(Reading database ... 152921 files and directories currently installed.)
Preparing to unpack .../google-earth-stable_current_i386.deb ...
Unpacking google-earth-stable (6.0.3.2197-r0) ...
dpkg: dependency problems prevent configuration of google-earth-stable:google-earth-stable depends on lsb-core (>= 3.2); however:
Package lsb-core is not installed.

dpkg: error processing package google-earth-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
google-earth-stable
問題二:
請問前輩再liveCD下如何刪除桌面上的圖示呢?
以及如何新增垃圾桶的捷徑到桌面呢?
如圖一
我有找到再

代码: 全选

/etc/skel/Desktop
底下,可是裡面只有我自己複製過去的檔案,並沒有ubuntu預設的圖示
可是開機到桌面時,ubuntu的預設捷徑就會跑出來
為什麼呢?
附件
1.png
1.png (143.32 KiB) 查看 8893 次
回复