软件笔记
軟件筆記
Table of Contents
- 1 說明
- 2 Shell命令無法補全:
- 3 bmpanel2 (bmpanel) 不能獲取桌面名字
- 4 tilda
- 5 mplayer播放mkv
- 6 nautilus右擊菜單里的壓縮和解壓文件的軟件是 file-roller
- 7 查看本機漢字字體
- 8 查看按鍵編碼
- 9 使用wireshark
- 10 使用plymouth
- 11 放置xsessions的地方
- 12 rxvt
- 12.1 更新 .Xresources
- 12.2 rxvt中文輸入問題
- 12.3 urxvt 不能更新配置
- 13 在.fvwm口不能出現名為 config的文件夾
- 14 color
- 15 讓FvwmPager不顯示WindowListSkip風格的窗口
- 16 用Knuth的.fvwmrc不能正常工作
- 17 磁盤實用工具
- 18 正大的網盤客戶端EverBox
- 19 dpkg-reconfigure gdm
- 20 一個鬧鐘軟件
- 21 關于Fvwm中開機啟動程序
- 21.1 用Wait讓一個程序啟動完成再啟動后面的程序
- 21.2 Wait不能用于等待fcitx,可能是fcitx設計不規范。
- 21.3 fcitx要先于emacs啟動,否則emacs里不能用fcitx輸入。
- 21.4 等待火狐時要用Wait Firefox
- 22 gmrun 配置文件
- 23 fvwm-menu-desktop
- 24 在 Fvwm 中每次用 Windowlist 選擇一個窗口時鼠標都會跑到左上角,很不方便,修改到窗口中間。
- 25 查看本地字體
- 26 保護視力的軟件 workrave
- 27 鎖定屏幕 xlock
- 28 tor 連不上網
- 29 合并視頻
- 30 pmp 視頻文件
- 31 fcitx 五筆拼音不能使用
- 32 crontab中使用notify-send要在前面加上env DISPLAY=:0.0 。例如:
- 33 zenity可以顯示GTK+對話框,使用參數,功能很多。
- 34 pidgin 不能使用QQ2010
- 35 bibshelf
- 36 alexandria
- 37 圖像除去物體
- 38 學習英語軟件
- 39 小企鵝輸入法背景黑邊問題
- 40 gdm啟動fvwm
- 41 fvwm 下面的任務欄和狀態欄
- 42 參考文獻管理軟件
- 43 電子書管理軟件 calibre
- 44 fcitx創造編碼
- 45 Fedora上安裝latex
- 46 將當前目錄下的圖片打包到一個pdf文件中
- 47 交換Ctrl和Caps Lock
- 48 cd -
- 49 evolution顯示圖片
1 說明
這里是使用 linux 過程中記的一些東西,內容比較雜,希望對他人有所幫助。對于使用非 linux 系統的用戶基本上是沒用的。
2 Shell命令無法補全:
好像是安裝了pango*什么的就不能返回登錄界面了,而且不能返回補全了。我將一些程序刪除之后,能退回到登錄界面但補全問題仍未解決,后來發現將 /etc/bash.bashrc 中的 # enable bash completion in interactive shells 下面的三句注釋去掉。這時彩色還是沒有。又有了另一個方法,將下面的東西寫進家目錄下的.bashrc中:
########################################################################## # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples# If not running interactively, don't do anything[ -z "$PS1" ] && return# don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespaceHISTCONTROL=ignoredups:ignorespace# append to the history file, don't overwrite itshopt -s histappend# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)HISTSIZE=1000HISTFILESIZE=2000# check the window size after each command and, if necessary, # update the values of LINES and COLUMNS.shopt -s checkwinsize# make less more friendly for non-text input files, see lesspipe(1)[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"# set variable identifying the chroot you work in (used in the prompt below)if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; thendebian_chroot=$(cat /etc/debian_chroot)fi# set a fancy prompt (non-color, unless we know we "want" color)case "$TERM" inxterm-color) color_prompt=yes;;esac# uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yesif [ -n "$force_color_prompt" ]; thenif [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.)color_prompt=yeselsecolor_prompt=fifiif [ "$color_prompt" = yes ]; thenPS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 'elsePS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ 'fiunset color_prompt force_color_prompt# If this is an xterm set the title to user@host:dircase "$TERM" inxterm*|rxvt*)PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1";;*);;esac# enable color support of ls and also add handy aliasesif [ -x /usr/bin/dircolors ]; thentest -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto'alias grep='grep --color=auto'alias fgrep='fgrep --color=auto'alias egrep='egrep --color=auto'fi# some more ls aliasesalias ll='ls -alF'alias la='ls -A'alias l='ls -CF'# Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.if [ -f ~/.bash_aliases ]; then. ~/.bash_aliasesfi# enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc).if [ -f /etc/bash_completion ] && ! shopt -oq posix; then. /etc/bash_completionfi ##########################################################################3 bmpanel2 (bmpanel) 不能獲取桌面名字
在FVWM下bmpanel2不能獲取桌面名字。經調試是在widget-desktops.c文件中的函數 update_desktops 中這句
names = name = x_get_prop_data(c, c->root, c->atoms[XATOM_NET_DESKTOP_NAMES],c->atoms[XATOM_UTF8_STRING], 0);發生了問題。解決辦法,真接寫入自己的桌面名字。如下:
//因為在FVWM下獲取桌面名稱有問題,直接寫入名稱 // //names = name = x_get_prop_data(c, c->root, //c->atoms[XATOM_NET_DESKTOP_NAMES], //c->atoms[XATOM_UTF8_STRING], 0); char name_tmp [50] = "Network\0Main\0Multimedia\0Develop\0"; names = malloc(50*8); for (i = 0; i < 50; i++) {names[i]=name_tmp[i];} name = names;4 tilda
一個不錯的終端,可以用快捷鍵調出,隱藏。方便隨時使用命令行。
5 mplayer播放mkv
mplayer -aid 1 -alang chi *.mkvhttp://zhuaxia.com/item/439758360
6 nautilus右擊菜單里的壓縮和解壓文件的軟件是 file-roller
7 查看本機漢字字體
fc-list :lang=zh-cn|sed s/:.*//8 查看按鍵編碼
xev
9 使用wireshark
要用Root權限
10 使用plymouth
sudo update-alternatives --config default.plymouth sudo update-initramfs -u11 放置xsessions的地方
/usr/share/xsessions /usr/local/share/xsessions
12 rxvt
12.1 更新 .Xresources
xrdb ~/.Xresources12.2 rxvt中文輸入問題
URxvt.inputMethod:fcitx12.3 urxvt 不能更新配置
這是一個很奇怪的問題,當將配置寫入 .Xresources中時,rxvt 可以更新成功,但是 urxvt 還是默認模樣。將配置寫入 .Xdefaults 就行了。后來發現是配置時 看配置是 Rxvt…. 還是 URxvt…. 。
13 在.fvwm口不能出現名為 config的文件夾
14 color
gcolor2
15 讓FvwmPager不顯示WindowListSkip風格的窗口
FvwmPager-Desker:UseSkipList16 用Knuth的.fvwmrc不能正常工作
發現他將shell改為了tcsh,而我沒有安裝,所以后面打開的程序都無法正常打開。
17 磁盤實用工具
安裝包是 gnome-disk-utility,啟動命令是 palimpsest。
18 正大的網盤客戶端EverBox
安裝的目錄是~/.wine/drivec/users/用戶名/Local Settings/Application Data/EverBox。在cron中設置每周六同步。
19 dpkg-reconfigure gdm
20 一個鬧鐘軟件
alarm-clock,可以事件提示。功能很強大。
21 關于Fvwm中開機啟動程序
21.1 用Wait讓一個程序啟動完成再啟動后面的程序
21.2 Wait不能用于等待fcitx,可能是fcitx設計不規范。
21.3 fcitx要先于emacs啟動,否則emacs里不能用fcitx輸入。
21.4 等待火狐時要用Wait Firefox
22 gmrun 配置文件
用fvwm設置gmrun的啟動位置總是不正確,后來發現它有自己的配置文件/etc/gmrunrc。
23 fvwm-menu-desktop
一直在想如果 Fvwm 下面能建立跟 Gnome 下面一樣的菜單有多好,但手工無疑太麻煩,而 fvwm-crystal 和 fvwm-themes 里面的菜單有太多沒用的東西,也試過讓 Fvwm 和 Gnome 環境一直工作,但有一些問題,而且不夠簡潔。以前似乎也聽說過 fvwm-menu-desktop 和 fvwm-menu-directory 這兩個腳本,一直沒有試過。今天發現可以用 fvwm-menu-desktop 建立和 Gnome 下一模一樣的菜單。動態建立可能會有一點慢,并且我機器上的軟件已經很齊備,基本上不會再安裝什么軟件了。于是用 fvwm-menu-desktop 腳本建立一個菜單導入到一個文件中,再在 .fvwm2rc 中讀入這個文件,就行了。
fvwm-menu-desktop > Programe-Menu將文件 Programe-Menu 放到 .fvwm 中,并在 .fvwm2rc 中讀入。
Read Programe-Menu它建立了一個菜單 FvwmMenu 。跟 Gnome 下面一樣用 Alt+F1 調出。
Key F1 A M Menu FvwmMenu Nop24 在 Fvwm 中每次用 Windowlist 選擇一個窗口時鼠標都會跑到左上角,很不方便,修改到窗口中間。
AddToFunc WindowListFunc + I WarpToWindow 50 5025 查看本地字體
xlsfont結果:
-adobe-times-bold-i-normal--10-100-75-75-p-57-iso8859-1 -adobe-times-bold-i-normal--10-100-75-75-p-57-iso8859-1 -adobe-times-bold-i-normal--11-80-100-100-p-57-iso10646-1 -adobe-times-bold-i-normal--11-80-100-100-p-57-iso10646-126 保護視力的軟件 workrave
這個軟件每一段時間之后就會提醒你休息一會。
27 鎖定屏幕 xlock
非常不錯,在 Fvwm 下很好用。
28 tor 連不上網
用橋也連不上網,網上有人說是橋的輸入順序應該是從下往上。但我試過之后,在 tor 網絡地圖里那個地圖下面有顯示有連接打開,但是左邊并沒有中繼列出,tor的狀態也不是已連接。于是將橋全部刪除(我估計只要不選“我的JSP阻擋對 Tor 網絡的連接”就行了),再重新啟動 tor 就好了。
29 合并視頻
本來是用 wine 的格式工廠合并的,兩個文件用了兩個小時,合成之后卻不能播放,不知道是什么原因。后來發現 Linux 上應有開源的東西:mencoder。將 cd1.avi 和 cd2.avi 合并:
mencoder -oac copy -ovc copy -idx -o output.avi cd1.avi cd2.avi30 pmp 視頻文件
下了個pmp視頻文件,不能播放。想轉換成其他格式,網上找了n久,都不行。還有人寫了個分離器,說是要先將視頻音頻分出來再合并,后來有人說是暴風影音可以觀看,當然linux下是沒有這個軟件的,但在虛擬機是安了下,發現文件可以播放但畫面卻是倒的,后來發現格式工場可以直播轉換,至少我將它轉換成wmv格式是可以的,沒想到折騰了n久,可以這么容易地解決。
31 fcitx 五筆拼音不能使用
不知為什么五筆拼音不能用了,解決方法是將整個 fcitx 的配置文件夾刪除,再重啟 fcitx。
32 crontab中使用notify-send要在前面加上env DISPLAY=:0.0 。例如:
env DISPLAY=:0.0 notify-send "該睡覺了,洗洗睡吧。五分鐘后關機。"33 zenity可以顯示GTK+對話框,使用參數,功能很多。
34 pidgin 不能使用QQ2010
即使將新的 libqq.so 拷到 /usr/lib/purple-2/ 也不能用,這是因為還有一個地址 /usr/local/lib/purple-2/ 也是放 libqq.so 的地方且優先級更高,要將 libqq.so 文件拷到這個地方才行。
35 bibshelf
一個管理圖書的軟件,很簡單,不是用來管理電子書的,是用來管理你所購買和閱讀的圖書的。
36 alexandria
同上,但更復雜些
37 圖像除去物體
gimp需要插件resynthesizer。選中要除去的物體,再“濾鏡”->“增強”->“smart remove selection…”。
38 學習英語軟件
anki記憶軟件和artha詞典。anki這個軟件有些源時沒有,將源改成中國的源或者官方源。
39 小企鵝輸入法背景黑邊問題
可以通過設置DelayStart延遲幾秒啟動fcitx,在支持混成的窗口管理器和面板啟動之后再啟動fcitx。也就是修改~/.config/fcitx/config里的DelayStart的值。
40 gdm啟動fvwm
編譯安裝的 fvwm ,gdm 啟動項里不會自動加上。要手動增加,方法是在 usr/share/xsessions 里面創建文件 fvwm.desktop ,內容如下:
[Desktop Entry] Encoding=UTF-8 Name=FVWM Comment=Start FVWM2 Session Exec=/usr/local/bin/fvwm Icon= Type=Application41 fvwm 下面的任務欄和狀態欄
fbpanel 同時有任務欄和狀態欄,還有一些其他東西,如主菜單和啟動器。trayer 是一個程序托盤。
42 參考文獻管理軟件
jobref:管理BibTex數據庫的圖形界面前端。可以管理、編輯 .bib 文件,還可以搜索文獻。
43 電子書管理軟件 calibre
- 可以管理本地書
- 可以軟件圖書格式
- 可以設定閱讀設備(功能跟蘋果的 iTunes 類似)
- 可以訂閱、下載雜志新聞等
44 fcitx創造編碼
Ctr+8.
45 Fedora上安裝latex
http://fedoraproject.org/wiki/Features/TeXLive
46 將當前目錄下的圖片打包到一個pdf文件中
convert * des.pdf47 交換Ctrl和Caps Lock
Gnome3鍵盤設置中有改鍵選項。這比xmodmap的方法要好些。
48 cd -
返回原來目錄。
49 evolution顯示圖片
一直以來凡是帶圖片的郵件,都是一片紅叉,還以為是evolution做得不好,原來是默認不顯示圖片。這個可以在“查看”里面選擇顯示圖片,也可以在配置里面設置。
Date: 2012-11-20 二
Org version 7.8.11 with Emacs version 24
Validate XHTML 1.0轉載于:https://www.cnblogs.com/Open_Source/archive/2011/11/13/linuxnote.html
總結
- 上一篇: 年轻人,请听我说……
- 下一篇: 交换机vlan配置实训心得_交换机与路由