Linux 6 - Setup of Debian-liked Desktop

By Sheldon L Published at 2019-10-17 Updated at 2019-10-19


Especially for Debian


# try install firmware
sudo apt install firmware-iwlwifi

# if can notwork:
    sudo vi /etc/apt/sources.list # 'deb http://httpredir.debian.org/debian/ stretch main contrib non-free'
    sudo apt update

    # try again

su -
modprobe -r iwlwifi
modprobe iwlwifi

Especially for Kali

# unzip and:
make unload
make load

Ubuntu

Just in case: How to Fix Broken Packages in Ubuntu

System Setting

# Update and Upgrade: https://www.3cx.com/blog/voip-howto/os-security-updates-debian/  
sudo apt update
sudo apt upgrade


# Installing utilities :
sudo apt install wget unzip nmap telnet htop curl net-tools tree
sudo apt install tilix fish
# [fish](https://fishshell.com/docs/current/tutorial.html)


# Install and Configure Firewall: https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw/
sudo apt update
sudo apt install ufw
# List of all port
lsof -i -P -n
# List of all app that can be manipulated
sudo ufw app list
# Configuration of ufw: https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw/
sudo ufw default allow outgoing
sudo ufw enable
sudo ufw status


# Templates
cd Templates
touch text.txt markdown.md document.docx

V2ray

Installation of V2ray for Client

Input Method

Ubuntu18.04安装搜狗输入法-问题全讲解

# sogou
sudo apt -y install fcitx fcitx-bin fcitx-table fcitx-table-all
sudo apt -y install fcitx-config-gtk
sudo dpkg -i sogoupinyin_2.3.1.0112_amd64.deb
sudo apt-get install -f

# ibus (if sogou installation failed)
# uninstall sogou and fcitx
sudo apt-get purge sogoupinyin
sudo apt -y remove *fcitx*
sudo apt autoremove
sudo apt update
sudo apt upgrade
# config ibus in configuration

Set password for root for UBUNTU

sudo passwd root

Ubuntu/OrElse Restricted Extras Extras

Ubuntu Restricted Extras: The First Thing You Should Install On Ubuntu [Linux]

sudo apt-get install ubuntu-restricted-extras

Programming Environment

Install Environment for C/C++

sudo apt-get install g++ git gcc make

Install Vim

sudo apt install vim-gnome

Setup Git

Install and setup Anaconda

Install and setup VSCode

Install JDK

find . -name '*jvm*'

# add ~/.bashrc following lines:
    # export JAVA_HOME=/usr/lib/jvm/jdk-13.0.1
    # echo $JAVA_HOME
    # export PATH=$PATH:$JAVA_HOME/bin
    # echo $PATH
~/.bashrc

which java
java -version
javac <HelloWorld.java>

Virtual Box