debian 安裝后需做的幾件事


debian 安裝后需做的幾件事

安裝環境:X86 >> Debian 9 Linux/GNU

apt源更新


注意連上有線網絡
剛安裝好的debian系統中,/etc/apt/sources.list包含了本地軟件倉庫的源,可以預先下載好官方的所有DVD光盤數據,安裝好后自己根據網絡教程搭建本地倉庫安裝/更新軟件。這里以使用網絡源為實例,說明在能連接網絡的情況下安裝/更新軟件包。
注釋原來的源信息,添加debain 9的源。

gedit /etc/apt/sources.list # 復制下邊的倉庫源到文件並保存
# 163 deb http://mirrors.163.com/debian/ stretch main deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

更新軟件

# apt-get update && apt-get install aptitude # aptitude update && aptitude dist-upgrade # apt-get install apt-transport-https ca-certificates # add support for https apt sources by installing a couple of packages # apt-get install build-essential # 安裝基本開發工具 # apt-get install linux-headers-$(uname -r) # 安裝內核頭文件

時間同步/時區更改/本地化

# apt-get install ntpdate -y # 安裝時間同步軟件 # ntpdate time.windows.com # 同步時間  # dpkg-reconfigure tzdata # 更改時區  # apt-get install locales # dpkg-reconfigure locales # 本地化設置

參考 Debian時間同步

vim vim-gtk


# apt-get install vim vim-gtk

輸入法fcitx


安裝

# apt-get install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-* presage  # apt-get remove fcitx-module-kimpanel # 移除多余的組件  # apt-get install fcitx-pinyin # 拼音 # apt-get install fcitx-sunpinyin # sun拼音 # apt-get install fcitx-googlepinyin # google拼音 # apt-get install fcitx-table-wubi-large # 五筆

配置

參考Debian中文輸入法fcitx總結

創建文件:/etc/X11/Xsession.d/95im_init(文件名95im_init貌似可以隨意)

export LANG=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8 export XMODIFIERS=@im=fcitx fcitx &

注意:這里的變量LANG與參考中的有些區別,主要是設置成中文翻譯有些翻譯看上去不是很好.

gnome-tweak-tool桌面管理工具

控制桌面窗口/鼠標等的特性,給你一個更美更人性化的桌面體驗。
請參考Debian 桌面美化

# apt-get install gnome-tweak-tool

音樂軟件


網易雲音樂

參考debian之網易雲音樂的安裝

視頻播放器


# apt-get install mpv mplayer

firefox瀏覽器flashplayer安裝


下載Abode flashplayer

根據解壓的readme.tex安裝軟件

視頻錄制軟件


"avconv"工具錄制計算機桌面

kazam

apt-get install kazam

截圖軟件 shutter


# apt-get install shutter

BT/迅雷下載工具


# apt-get install uget qbittorrent -y

latex


方便編輯文本文檔,然后生成PDF
TeX Live 下載及安裝說明
texlive2015-6安裝

conky


用於顯示磁盤監控信息,不錯的美化工具。

安裝

# apt-get install conky

配置~/.conkyrc

conky.config = {
alignment = 'top_right', background = true, update_interval=1, double_buffer=true, draw_shades=false, draw_outline=false, draw_borders = false, draw_graph_borders = false, show_graph_scale = false, show_graph_range = false, minimum_height = 620, minimum_width = 268, own_window = true, own_window_class = 'Conky', own_window_type = 'normal', own_window_transparent=true, own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager", own_window_argb_visual=true, own_window_argb_value=0, border_inner_margin=0, border_outer_margin=0, use_xft = true, xftalpha=0.8, font = 'DejaVu Sans Mono:size=12', text_buffer_size=256, short_units=true, short_units=true, pad_percents=2, top_name_width=7, alignment = 'top_left', border_width = 1, cpu_avg_samples = 2, default_color = 'white', gap_x = 5, gap_y = 60, net_avg_samples = 2, no_buffers = true, out_to_console = false, out_to_stderr = false, extra_newline = false, stippled_borders = 0, update_interval = 1.0, uppercase = false, use_spacer = 'none', } conky.text = [[ ${scroll 16 $nodename - $sysname $kernel on $machine | } $hr ${color grey}Uptime:$color $uptime ${color grey}Frequency (in MHz):$color $freq ${color grey}Frequency (in GHz):$color $freq_g ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} ${color grey}CPU Usage:$color $cpu% ${cpubar 4} ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes $hr ${color grey}File systems: / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} ${color grey}Networking: Up:$color ${upspeed wlp2s0} ${color grey} - Down:$color ${downspeed wlp2s0} $hr ${color grey}Name PID CPU% MEM% ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} ${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} ${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6} ${color lightgrey} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7} ${color lightgrey} ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8} ${color lightgrey} ${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9} ]]

VirtualBox


虛擬windows操作系統,便於測試或者使用一些小工具。
ubuntu下virtualbox的安裝、卸載
VirtualBox Download

Rdesktop & VNC Viewer


方便遠程連接windows/Linux

# apt-get install rdesktop 

參考VNC Viewer

FTP工具


aptitude search filezilla
aptitude install filezilla

samba


方便訪問windows共享盤

安裝

# apt-get install samba-client

配置:使用share_space.sh腳本連接windows共享盤

#!/bin/bash # file name: share_space.sh mount -t cifs -o username=login_win_user,password=yourpasswd,vers=2.0 //192.168.1.22/Public /mnt/Exchange/ # //192.168.1.22/Public 為共享盤網絡路徑 # /mnt/Exchange/ 為掛載的位置 

繪圖工具dia(取代visio)


強大的繪圖功能

# apt-get install dia

固定IP地址


修改IP配置

查看網卡名字

# apt-get install libnet-ifconfig-wrapper-perl # 安裝工具,若沒有 ifconfig 命令 # ifconfig # 查看網卡信息

上圖可以看出,網卡名為enp2s0
接下來,修改 /etc/network/interfaces,添加如下內容(注意,不要添加中文注釋,有可能影響啟動)

auto enp2s0 iface enp2s0 inet static address 192.168.100.38 netmask 255.255.255.0 gateway 192.168.100.1 

修改DNS

apt-get install resolvconf

編輯 /etc/resolvconf/resolv.conf.d/base

nameserver 8.8.8.8 nameserver 8.8.4.4

重載

resolvconf -u

重啟網卡

/etc/init.d/networking restart

RAR文件解壓


rar download

OpenVPN


OpenVPN官網

Zoom會議


ZooM下載中心

參考資料


[1].Ubuntu安裝Fcitx以及Fcitx輸入中文不顯示候選詞框的解決辦法
[2].texlive2015-6安裝
[3].ubuntu下virtualbox的安裝、卸載
[4].Linux怎樣訪問Windows共享文件和文件夾
[5].Debian時間同步
[6].Debian中文輸入法fcitx總結
[7].Debian 桌面美化
[8].Debian DNS resolv.conf 重啟失效/復寫

形而上者謂之道 形而下者謂之器。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM