Ubuntu_Install_20.04

====================
Ubuntu 20.04 Journal
====================

    user@group:~$ sudo lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.6 LTS
    Release:        20.04
    Codename:       focal

    安装过好多次Ubuntu了。因为在使用过程中,难免误操作引起系统崩溃或者安装移除太多软件,使系统运行速度降低,
但是每次安装之后,似乎都要花不少时间对系统进行设置,这是一件麻烦的事情。为了节省时间,我决定用一个文件来记录
自己对新装的系统做了那安装和修改,以便于以后做重复劳动时,心里有个数。

    这篇文档就用做安装日记,并在以后保持更新。


    ==================
    I. System Settings
    ==================

    1. change the password for root user.

    $ sudo passwd root

    2. change /etc/sudoers so that user can execute sudo command without password.
    The file permission is 0440, you should use 'visudo' to edit it.

    $ sudo visudo

       from:
       %sudo    ALL=(ALL:ALL) ALL
       to:
       %sudo    ALL=(ALL:ALL) NOPASSWD:ALL

       PS: you may also need to add the user to sudo group in /etc/group.

    3. make symbolic links /bin/sh to /bin/bash

    $ sudo ln -sf /bin/bash /bin/sh

    4. you may need customize your own ~/.bashrc or ~/.profile, and have you own ~/bin and so on.

    5. change Ubuntu hostname in the file /etc/hostname & /etc/hosts.

    6. Install Input Method

    $ sudo apt-get install fcitx fcitx-googlepinyin fcitx-table-wbpy fcitx-table-wubi -y

    7. Install flash player plugin for browser.

    $ sudo apt-get install flashplugin-installer -y

    8. install parcellite clipboard, the reason is that when
    gnome-settings-daemon shares clipborad between user programme and system,
    it just copy the link not real data. therefore, when the application exit,
    it can use the content in the clipboard. using parcellite can resolve this
    problem!

    $ sudo apt-get install parcellite -y

    9. Okular PDF reader

    $ sudo apt-get install okular -y

    10. recoll - user interface for the Recoll full text search system

    $ sudo apt-get install recoll -y

    11. auto hide topbar

    https://askubuntu.com/questions/1029881/how-to-hide-top-bar-in-ubuntu-18-04
    https://extensions.gnome.org/extension/545/hide-top-bar/

    $ sudo apt install chrome-gnome-shell -y

    intall gnome tweaks and extensions

    $ sudo apt install gnome-tweaks -y
    $ sudo apt install gnome-shell-extension-autohidetopbar -y
    $ sudo apt install gnome-shell-extension-manager -y
    $ sudo apt install gnome-shell-extensions -y

    12. show week number on calendar

    $ gsettings set org.gnome.desktop.calendar show-weekdate true

    13. apt-file

    $ sudo apt-get install apt-file -y

    14. disable firewall

    $ sudo ufw disable

    15. htop, glances

    $ sudo apt-get install atop htop glances -y

    16. for notebook user, intall xbacklight to set sceen brightness.

    $ sudo apt-get install xbacklight -y

    17. wmctrl - interact with a EWMH/NetWM compatible X Window Manager(PowerToys for Windows)

    $ sudo apt-get install wmctrl -y

    Command: wmctrl -r :ACTIVE: -b toggle,above


    =================
    II. Software List
    =================

    1. install samba and configure smb.conf and add a samba user

    $ sudo apt-get install samba -y
    $ sudo smbpasswd -a user

    PS: user should be a shell user.

    2. sshfs - filesystem client based on SSH File Transfer Protocol

    $ sudo apt-get install sshfs -y

    3. install tftp and tftpd

    $ sudo apt-get install xinetd tftp tftpd -y

    4. install VSFTPD and configure vsftpd.conf:

    $ sudo apt-get install vsftpd -y

    5. install FTP client:

    $ sudo apt-get install filezilla -y

    6. tree

    $ sudo apt-get install tree -y

    7. realpath

    $ sudo apt-get install realpath -y

    8. dos2unix

    $ sudo apt-get install dos2unix -y

    9. rar - archive files with compression

    $ sudo apt-get install rar -y

    10. ag - The Silver Searcher. Like ack, but faster.

    $ sudo apt-get install silversearcher-ag -y


    =================================
    III. Embedded Develop Environment
    =================================

    1. install vim editor

    $ sudo apt-get install vim vim-gnome -y

    Note:
    a. if VIM can't remember history, you need to check if ~/.viminfo exist and make sure the file perssion and owner is current user.
    b. and ~/.vim_undodir directory is needed for my own.
    In addition, if use secureCRT, configure “仿真->终端” to choose Xterm,and use ANSI color, it will work like putty.
    c. must install vim-gnome, or else visual copy doesn't work

    2. install git

    $ sudo apt-get install git-core tig gitg gitk -y

    3. install ctags & cscope

    $ sudo apt-get install exuberant-ctags cscope -y

    4. install gtags

    $ sudo apt-get install global -y

    5. install develop environment

    $ sudo apt-get install build-essential -y

    6. meld

    $ sudo apt-get install meld -y

    7. make menuconfig may fail, so install libncurses5-dev

    $ sudo apt-get install libncurses5-dev -y

    8. install automake, autoconf, bison and flex

    $ sudo apt-get install automake autoconf bison flex gawk -y

    9. install doxygen(this package is big)

    $ sudo apt-get install doxygen -y

    10. install libtool

    $ sudo apt-get install libtool -y

    11. install libssl-dev

    $ sudo apt-get install libssl-dev -y

    12. install uuencode

    $ sudo apt-get install sharutils -y

    13. install minicom

    $ sudo apt-get install minicom -y

    14. install kermit

    $ sudo apt-get install ckermit -y

    15. install NFS for debug purpose(refer to NFS-ROOT)

    $ sudo apt-get install nfs-common nfs-kernel-server -y

    16. install guake terminal

    $ sudo apt-get install guake -y
    $ sudo apt install --reinstall libutempter0

    17. install ssh-server and ssh-client

    $ sudo apt-get install openssh-server openssh-client -y


    =========================
    IV. Android
    =========================

    1. install repo

    $ sudo apt-get install repo -y

    2. install adb aapt fastboot

    $ sudo apt-get install adb aapt fastboot -y
    $ sudo mv /usr/lib/android-sdk /usr/lib/android-sdk-or
    $ sudo ln -sf /home/rainma/Android/Sdk /usr/lib/android-sdk
    $ sudo ln -sf /usr/lib/android-sdk/build-tools/30.0.2/aapt /usr/bin/aapt

    3. install logcat-colorize

    $ sudo snap install logcat-colorize -y

    4. install canberra-gtk-module

    $ sudo apt-get install libcanberra-gtk-module -y

    5. Installing required packages (Ubuntu 18.04) - https://source.android.com/setup/build/initializing

    $ sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig -y

    6 Android tools

    $ sudo apt install android-tools-fsutils -y
    $ sudo apt install simg2img -y


    =================================
    V. Some useful tools for develop
    =================================

    1. ifconfig

    $ sudo apt-get install net-tools -y

    2. wireshark

    $ sudo apt-get install wireshark -y

    3. aircrack-ng

    $ sudo apt-get install aircrack-ng -y

    4. DNS and DHCP server

    $ sudo apt-get install dnsmasq -y

    5. shutdown local dnsmasq. comment 'dns=dnsmasq' line in
    /etc/NetworkManager/NetworkManager.conf, then restart network-manager.

    6. radvd & dibbler-server

    $ sudo apt-get install radvd dibbler-server -y

    7. iperf(windows has jperf)

    $ sudo apt-get install iperf -y

    8. pppoe-server

    $ sudo apt-get install pppoe -y

    9. brctl

    $ sudo apt-get install bridge-utils -y

    10. ebtables, arptables, iptables, conntrack

    $ sudo apt-get install ebtables arptables iptables conntrack -y

    11. traceroute

    $ sudo apt-get install traceroute -y

    12. snmp

    $ sudo apt-get install snmp snmp-mibs-downloader -y

    13. nmap - Network exploration tool and security / port scanner

    $ sudo apt-get install nmap -y

    14. install VLAN

    $ sudo apt-get install vlan -y
    $ sudo modprobe 8021q

    15. mc - Visual shell for Unix-like systems.

    $ sudo apt-get install mc -y

    16. freeradius - Authentication, Authorization and Accounting server

    $ sudo apt-get install freeradius -y

    17. tinyproxy - /etc/tinyproxy.conf

    $ sudo apt-get install tinyproxy -y

    18. ntp server - /etc/ntp.conf

    $ sudo apt-get install ntp -y

    19. opensips - /etc/ntp.conf

    $ sudo apt-get install opensips -y


    =========================
    some other optional tools
    =========================

    1. virtualbox

    $ sudo apt-get install virtualbox -y
    $ sudo apt-get install open-vm-tools open-vm-tools-desktop -y

    2. remote desktop

    $ sudo apt-get install xrdp vnc4server xfce4 -y
    $ echo "xfce4-session" >~/.xsession
    $ sudo service xrdp restart

    3. extundelete - utility to undelete files from an ext3 or ext4 partition

    $ sudo apt-get install extundelete -y

    4. google chrome

    $ wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
    $ sudo dpkg -i google-chrome-stable_current_i386.deb
    $ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    $ sudo dpkg -i google-chrome-stable_current_amd64.deb

    or

    $ sudo wget http://chrome-deb.googlecode.com/svn/trunk/chrome-deb.list -O /etc/apt/sources.list.d/chrome-deb.list
    $ sudo apt-get update -y
    $ sudo apt-get install chrome-browser -y

    5. tmux & byobu

    $ sudo apt-get install tmux byobu -y

    6. FBReader E-book reader(support chm)

    $ sudo apt-get install fbreader -y

    7. chm tools

    $ sudo apt-get install xchm -y
    $ sudo apt-get install chm2pdf -y

    8. xmllint

    $ sudo snap install libxml2        # version 2.9.9+pkg-0333, or
    $ sudo apt  install libxml2-utils -y

    9. curl - transfer a URL

    $ sudo apt install curl -y

    10. axel - light command line download accelerator

    $ sudo apt-get install axel -y

    11. Reinstalling unity-control-center should fix the problem

    $ sudo apt-get remove unity-control-center
    $ sudo apt-get install unity-control-center

    12. Ubuntu Software Center

    $ sudo apt-get install gnome-software -y

    13. mycli - Command line client for MySQL/MariaDB and Percona

    $ sudo apt-get install mycli -y

    14. vokoscreen

    $ sudo apt install vokoscreen -y

    15. klog

    $ sudo apt install klog -y

    16. androguard

    $ pip install -U androguard
    $ pip install -U androguard[magic,GUI]

    $ python -m pip install --upgrade pip
    $ python -m pip install --upgrade setuptools

    17. Linux Dreamweaver Bluefish

    $ sudo apt-get install bluefish -y

    18. install git server;

    $ sudo apt-get install gitosis -y
    or
    $ sudo apt-get install gitolite -y

    对于git服务器,推荐安装gitolite,并且建议安装github的版本!对应的GIT URL为:

    git clone git://github.com/ossxp-com/gitolite.git

    19. install git web

    $ sudo apt-get install gitweb -y

    20. git daemon,也可以Appache来做;

    $ sudo apt-get install git-daemon-run -y

    21. review-board

    $ sudo apt-get install python-rbtools -y

    or

    $ sudo apt-get install python-setuptools -y
    $ sudo easy_install -U RBTools

    22. gimp - an image manipulation and paint program.

    $ sudo apt-get install gimp -y

    23. TaskBook or gnome-todo

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值