2017年7月14日 星期五

Conky - 桌面監控程式



sudo apt-get install conky-all

cp /etc/conky/conky.conf ~/.conkyrc



conky.config = {
-- -- Conky settings -- #
background = true,
update_interval = 1,

cpu_avg_samples = 2,
net_avg_samples = 2,

override_utf8_locale = true,

double_buffer = true,
no_buffers = true,

text_buffer_size = 32768,
imlib_cache_size = 0,

-- -- Window specifications -- #
own_window = true,
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

border_inner_margin = 50,
border_outer_margin = 0,

-- Conky on second monitor
xinerama_head = 2,


--minimum_size 1100 700
maximum_width = 1100,

alignment = 'bottom_right',
gap_x = 60,
gap_y = 90,

-- -- Graphics settings -- #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,

-- -- Text settings -- #
use_xft = true,
font = 'Ubuntu Mono:size=8',
xftalpha = 0.8,
--Ícones: ${font Conky Icons by Carelli:size=10}

uppercase = false,

default_color = '#FFFFFF',

--own_window_transparent yes
own_window_colour = '#000000',
minimum_width = 0, minimum_height = 0,
};

conky.text = [[
${color white}$alignc$sysname $kernel on $machine
${color white}$alignc${exec whoami} @ $nodename
$color$stippled_hr
${color}Date: ${color white}${time %Y-%m-%d}
${color}Time: ${color white}${time %k:%M:%S}${alignr}${color}Uptime: ${color white}$uptime
$color$stippled_hr
${alignc}Batt:$color   ${battery}
$color$stippled_hr
${alignc}Temperatures
${alignc}CPU: ${color white}${freq}mHz / ${hwmon 2 temp 1}°C$color - MB: ${color white}${hwmon 0 temp 1}°C
$color$stippled_hr
${color}CPU:${color white}  ${cpu cpu1}% ${cpubar cpu1}
${color}RAM:${color white} $memperc% $mem/$memmax $membar
${color}Swap: ${color white}$swapperc% $swap/$swapmax ${swapbar}
$color$stippled_hr
${alignc}File systems
${color}/Root${color white} ${fs_used_perc /}% ${fs_used /}/${fs_size /} ${fs_bar /}
${color}/Home${color white} ${fs_used_perc /home/}% ${fs_used /home/}/${fs_size /home/} ${fs_bar /home/}
$color$stippled_hr${if_running amarokapp}
]];

2017年7月4日 星期二

Dell Precision M5510 Win10 與 Linux Mint 雙系統紀錄

BIOS 前置作業
1.boot mode 為 UEFI
2.關閉 secure boot

Windows 10 安裝時為 Linux 預留未分割空間試算
1.boot            ext4      200-300MB
2. / (root)       ext4      12-15GB
3. /home        ext4    
4. SWAP                     2GB (RAM 32G)

Windows 10 安裝完成後,下載Linux Mint Cinnamon Edition
使用 Rufus 製作 USB 開機碟安裝

以下修改設定前,先學習VI編輯器
http://linux.vbird.org/linux_basic/0310vi.php

修改開機畫面 GRUB 解析度(2K)
sudo vi /etc/default/grub
修改以下部份
GRUB_GFXMODE=1980x1080
修改完執行  sudo update-grub
其他細節修改參考 http://laical.blogspot.tw/2016/02/grub.html

修改登入畫面及桌面解析度
改登入畫面的解析度會影響到桌面解析度
所以登入畫面及桌面的解析度都須修改

登入畫面解析度(2K)修改:
sudo vi /etc/X11/xorg.conf
從 Section "Screen" 開始修改為
Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 SubSection "Display"
 Viewport   0 0
 Depth     24
 Modes "1980x1080"
 EndSubSection
EndSection

桌面解析度(4K)修改
sudo vi /etc/mdm/Init/Default

PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
下方放入
xrandr --newmode "3840x2160_60.00"  712.75  3840 4160 4576 5312  2160 2163 2168 2237 -hsync +vsync
xrandr --addmode eDP1 3840x2160_60.00
xrandr --output eDP1 --mode 3840x2160_60.00

以上詳細內容參考 http://linux400.twgogo.org/lifetype/index.php?op=ViewArticle&articleId=84&blogId=1

字型
推薦字型:Noto Sans Mono CJK TC ; 文泉驛微米黑

解決GRUB亂碼及桌面面板標楷體字Linux Mint 18.2 “Sonya” Cinnamon Edition型問題
執行以下指令
sudo apt-get remove fonts-arphic-ukai fonts-arphic-uming
詳細內容參考:https://magiclen.org/linux-font-remove-kai/

輸入法
最接近微軟新注音的輸入法 HIME輸入法
教學:http://goodjack.blogspot.tw/2013/08/linux-phonetic-setting.html