美文网首页
debian 安装后需做的几件事

debian 安装后需做的几件事

作者: android_yiluo | 来源:发表于2020-03-17 15:10 被阅读0次

    安装环境:X86 >> Debian 9 Linux/GNU

    apt源更新

    注意连上有线网络

    刚安装好的debian系统中,/etc/apt/sources.list包含了本地软件仓库的源,可以预先下载好官方的所有DVD光盘数据,安装好后自己根据网络教程搭建本地仓库安装/更新软件。这里以使用网络源为实例,说明在能连接网络的情况下安装/更新软件包。

    注释原来的源信息,添加debain 9的源。

    gedit/etc/apt/sources.list# 复制下边的仓库源到文件并保存

    # 163deb http://mirrors.163.com/debian/stretch maindeb http://mirrors.163.com/debian/stretch-updates main non-free contribdeb-src http://mirrors.163.com/debian/stretch-updates main non-free contribdeb 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貌似可以随意)

    exportLANG=en_US.UTF-8exportLC_CTYPE=en_US.UTF-8exportXMODIFIERS=@im=fcitxfcitx &

    注意:这里的变量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-getinstallkazam

    截图软件 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 = [[${scroll16$nodename -$sysname$kernel on$machine | }$hr${color grey}Uptime:$color$uptime${color grey}Frequency(inMHz):$color$freq${color grey}Frequency(inGHz):$color$freq_g${color grey}RAMUsage:$color$mem/$memmax -$memperc%${membar4}${color grey}SwapUsage:$color$swap/$swapmax -$swapperc%${swapbar4}${color grey}CPUUsage:$color$cpu%${cpubar4}${color grey}Processes:$color$processes${color grey}Running:$color$running_processes$hr${color grey}Filesystems: /$color${fs_used /}/${fs_size /}${fs_bar6/}${color grey}Networking:Up:$color${upspeed wlp2s0}${color grey} -Down:$color${downspeed wlp2s0}$hr${color grey}NamePIDCPU%MEM%${color lightgrey}${top name1}${top pid1}${top cpu1}${top mem1}${color lightgrey}${top name2}${top pid2}${top cpu2}${top mem2}${color lightgrey}${top name3}${top pid3}${top cpu3}${top mem3}${color lightgrey}${top name4}${top pid4}${top cpu4}${top mem4}${color lightgrey}${top name5}${top pid5}${top cpu5}${top mem5}${color lightgrey}${top name6}${top pid6}${top cpu6}${top mem6}${color lightgrey}${top name7}${top pid7}${top cpu7}${top mem7}${color lightgrey}${top name8}${top pid8}${top cpu8}${top mem8}${color lightgrey}${top name9}${top pid9}${top cpu9}${top mem9}]]

    VirtualBox

    虚拟windows操作系统,便于测试或者使用一些小工具。

    ubuntu下virtualbox的安装、卸载

    VirtualBox Download

    Rdesktop & VNC Viewer

    方便远程连接windows/Linux

    # apt-get install rdesktop

    参考VNC Viewer

    FTP工具

    aptitude search filezillaaptitudeinstallfilezilla

    samba

    方便访问windows共享盘

    安装

    # apt-get install samba-client

    配置:使用share_space.sh脚本连接windows共享盘

    #!/bin/bash# file name: share_space.shmount -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,添加如下内容(注意,不要添加中文注释,有可能影响启动)

    autoenp2s0ifaceenp2s0inetstaticaddress192.168.100.38netmask255.255.255.0gateway192.168.100.1

    修改DNS

    apt-getinstallresolvconf

    编辑 /etc/resolvconf/resolv.conf.d/base

    nameserver8.8.8.8nameserver8.8.4.4

    重载

    resolvconf-u

    重启网卡

    /etc/init.d/networking restart

    RAR文件解压

    rar download

    OpenVPN

    OpenVPN官网

    Zoom会议

    ZooM下载中心

    相关文章

      网友评论

          本文标题:debian 安装后需做的几件事

          本文链接:https://www.haomeiwen.com/subject/wtutyhtx.html