1. Wireless Card Driver Preparation
Ready to install the driver (my Dell6430 Configuration Intel U series) (Download driver and unzip on the recognizable storage device)
2-18 from "The Journey of a Journey" 2. Installing and configuring sudo
- Switch to root user
- Apt-get Install sudo
- Configure/etc/sudoers so that your account has sudo permissions
Root all= (all:all) allwangyubin all= (all:all) All # Add required Users
3. Set sudo without password
# User Privilege specificationroot all= (all:all) all#wangyubin all= (all:all) all <-- This is the need to enter a password wangyubin all=nopasswd:all <--This is not required to enter a password
4. Additional support for Chinese locales
- sudo dpkg-reconfigure locales
- Select ZH_CN. UTF-8 and several other Chinese-related locales
5. FCITX Installation
Used to the FCITX.
- sudo apt-get install FCITX
- sudo apt-get install Fcitx-pinyin
- The following additions are added to the ~/.BASHRC:
# fcitxexport Gtk_im_module=ximexport xmodifiers= "@im =fcitx" Export Qt_im_module=xim
Add: There is also a configuration method.
The contents of touch/etc/x11/xsession.d/95inputvim/etc/x11/xsession.d/95input# 95input are as follows: Export [email Protected]=fcitxexport Xim=fcitxexport Xim_program=fcitxexport Gtk_im_module=fcitxexport QT_IM_MODULE=XIMFCITX
6. Use FCITX in Emacs
After installation, found that Emacs is actually not out of FCITX.
- Dpkg-reconfigure locales (Increase ZH_CN related locales)
- Add a sentence in the/etc/default/locale: LC_CTYPE=ZH_CN. UTF-8
7. SSH connection is slow
The default Debian in the use of SSH connection to the remote machine, always wait a while to prompt for the password, just start thinking that the network speed is slow, and later found that LAN will wait a while to connect.
So, the Internet to find a solution:
- Debian default SSH configuration when connecting to other Linux, wait for about 30 seconds to prompt for the password
- Modify File/etc/nsswitch.conf
# Find the Host row and change to the following form: Hosts:files DNS [Notfound=return]
8. Set the time zone
sudo cp/usr/share/zoneinfo/asia/shanghai/etc/localtime
9. Python does not have JPEG and zlib support when installing PIL
Even after the zlib and Libjpeg package is installed, the installation PiL still
--------------------------------------------------------------------* * * TKINTER support not available (TCL/TK 8.4 Libraries needed) * * * JPEG support Not available * * * ZLIB (Png/zip) Support Not available * * * FREETYPE2 support not Availa Ble--------------------------------------------------------------------
Change pip install PIL to pip Install Pillow (Pillow Library is also a library of graphics processing)
10. Configuring the Oracle Java Environment
This is to develop Android.
Cd/optsudo tar zxvf ~/tools/jdk-7u51-linux-x64.tar.gzsudo update-alternatives--install/usr/bin/java java/opt/ Jdk1.7.0_51/bin/java 1sudo update-alternatives--install/usr/bin/javac Javac/opt/jdk1.7.0_51/bin/javac 1sudo Update-alternatives--set java/opt/jdk1.7.0_51/bin/javasudo update-alternatives--set javac/opt/jdk1.7.0_51/bin/ Javac
x86_64 Architecture of Debian configuration Android development environment
Need to configure a 32bit environment
sudo dpkg--add-architecture i386sudo apt-get updatesudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib 1g:i386
Uninstall 32bit environment on Debian with x86_64 architecture
sudo apt-get remove--purge ' dpkg--get-selections | grep i386 | awk ' {print $} ' sudo dpkg--remove-architecture i386
13. Installing Emacs24
debian7.4 stable version of the software for stability is relatively old. The default Emacs is still v23.
The following approach is to install the latest Emacs V24 version from the source code
# ready to download, compile the source of the environment sudo apt-get install git-coresudo apt-get install Libxaw7-dev libxpm-dev libpng12-dev Libtiff5-dev libgif-d EV libjpeg8-dev Libgtk2.0-dev libncurses5-devsudo apt-get install autoconf automakesudo apt-get build-dep emacs# Download source (below 2 Source, download first try, then choose a download fast) git clone--depth 1 https://github.com/emacsmirror/emacs.gitgit clone--depth 1 git:// git.sv.gnu.org/emacs.git# start compiling the CD emacs./autogen.sh./configure--prefix=/opt/emacs24make# install sudo make install
14. SSH authentication settings for multiple git accounts
1. SSH default private key is placed in the ~/.ssh/id_rsa file
2. When generating a 2nd account, the following steps are required:
- -Ssh-keygen-t rsa-c [email protected]
- -You need to enter the name of the key, not the default name, for example: Id_rsa_oschina
- -Ssh-add Id_rsa_oschina (temporarily append an SSH key)
3. Permanently configure multiple SSH keys
Host Chujuexinxi.comuser gituserhostname Chujuexinxi.comport 22identityfile ~/.ssh/id_rsa_chujuexinxi_githost Gitcafe.comuser githostname gitcafe.comport 22identityfile ~/.ssh/id_rsa_gitcafehost oschina.netuser githostname Git.oschina.netport 22identityfile ~/.ssh/id_rsa_oschina
. jpg Files to PDF tool
sudo apt-get install Imagemagickconvert 01.jpg 01.pdf
16. Automatically stop or start the service
sudo apt-get install Sysv-rc-confsudo sysv-rc-conf
. Debian Fixed IP settings
Auto Lo eth0iface lo inet loopbackiface eth0 inet staticaddress 192.168.1.77netmask 255.255.255.0 Gateway 192.168.1.1
Restart network after setting IP
/etc/init.d/networking restart
Debian 7 Installation Wireshark
The default installed Wireshark can only be executed by the root user, otherwise you will not be able to find *interfaces*
# installation Wiresharksudo apt-get install wireshark# create Wireshark Group sudo groupadd wireshark# add your username to the Wireshark group sudo usermod-a -G Wireshark your_user_name# to change Dumpcap's owning group to Wiresharksudo CHGRP wireshark/usr/bin/dumpcap# alter DUMPCAP permissions, let Wireshark Group members Can execute the program sudo chmod 750/usr/bin/dumpcap# use setcap get permission sudo setcap cap_net_raw,cap_net_admin=eip/usr/bin/dumpcap# Verify Change sudo getcap/usr/bin/dumpcap
Debain (SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 Gnu/linux) installation attention points and configuration