Configure the Ubuntu Development Environment

Source: Internet
Author: User
Tags unpack egrep
Preface I bought a new ThinkPad e431, mainly focusing on the speed of Hard Disk 7200 GB and RPM. Therefore, I plan to migrate the Work Environment From x220 to my new notebook. Why not use a company's computer? It's because the gb ssd hard disk is too small, and I don't use windows. I need a tool for Windows to flash a machine, so I have to pay for it myself and purchase another computer, luxury!
The reason why I chose ubuntu13.10 for installing ubuntu13.10 on a USB flash drive is that ubuntu14.04 is incompatible with ThinkPad e431. However, during the boot process of the USB flash drive, the problem that the ultraiso file is not complete is also encountered. For the solution, refer to the link: how to solve the problem of incomplete opening the ISO image of ultraiso
After the wireless network card driver ubuntu13.10 was installed, there was no wifi driver, which made me feel depressed for a while. Google checked the information and the solution was as follows:
View the wireless network card model:
$ lspci

The wireless network card model of ThinkPad e431 is bcm43142. reinstall the wireless network card driver:
$ sudo apt-get update$ sudo apt-get install --reinstall bcmwl-kernel-source 

After the BCM driver is reinstalled, the problem of the wireless Nic is basically solved.
It is slow to replace the official Ubuntu source. I am currently using a Netease image source, which is still very fast.
deb http://mirrors.163.com/ubuntu/ saucy main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ saucy main restricted universe multiverse #Added by software-propertiesdeb http://mirrors.163.com/ubuntu/ saucy-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ saucy-security main restricted universe multiverse #Added by software-propertiesdeb http://mirrors.163.com/ubuntu/ saucy-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ saucy-updates main restricted universe multiverse #Added by software-properties

The terminal that comes with terminalubuntu is gnome-terminal. I think it is very useful, but the initial color and font are too ugly. You only need to modify the configuration.
Install the manaco font at the same width. This is the default font for Mac. It is very beautiful. to install the manaco font at ubuntu13.10, refer to my configuration script:
#!/bin/bash#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/cd /usr/share/fonts/truetype/#if monaco dir not exists, then create itif [ ! -d ttf-monaco ]; thenudo mkdir ttf-monacofi
cd ttf-monaco/sudo wget http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf#create an index of X font files in a directorysudo mkfontdir#go to parent folder /usr/share/fonts/truetypecd ..fc-cache

Configure Terminal Use solarized color can refer to others written by GitHub script, address: https://github.com/Anthony25/gnome-terminal-colors-solarized
After you configure dircolors, you will find that the directories and files are grayed out after ls. This is because by default, all kinds of solarized bright solutions are grayed out, by default, the system uses bright color to display directories and files. You need to configure dircolors to display color files and directories.
Someone on GitHub also gave the color scheme, I choose dark, address: https://github.com/seebi/dircolors-solarized/blob/master/dircolors.ansi-dark
At the same time, rename dircolors. ANSI-dark to. dircolors and save it ~ Directory, and add the following content to. bashrc:
#enable color for gnome-terminalif [ -x /usr/bin/dircolors ]; then    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"    alias ls='ls --color=auto'    #alias dir='dir --color=auto'    #alias vdir='vdir --color=auto'     alias grep='grep --color=auto'    alias fgrep='fgrep --color=auto'    alias egrep='egrep --color=auto'fi # some more ls aliasesalias ll='ls -alF'alias la='ls -A'alias l='ls -CF'

Source. bashrc.
Here I refer to the blog of Zhang Yang, the original address: http://blog.codinglabs.org/articles/getting-started-with-ubuntu.html
The effect screenshot shows the effect, which looks quite comfortable.



It is annoying to change the Chinese directory name to the English default Chinese name, especially to execute the CD command on the terminal. Therefore, you need to convert it into an English directory. For the conversion method, refer to my previous blog: in Linux, change the Chinese directory name to English

The following are commonly used tools that I recommend to be especially efficient in Ubuntu.
Chromium is basically inseparable from Google and chrome in my programming world. on Ubuntu, there is Chrome's open-source version chromium. Then, you can use Gae to synchronize data with your Google account, the password is managed using lastpass. You can also synchronize data with your Google account.
After installing chromium in Adobe Flash Player, the following problems still exist:


The installation steps are not acceptable either. I downloaded a Linux-suitable compressed package here. After decompression, there are several files:


There are installation steps in readme.txt. The English language is very simple. do not conflict with each other. Extract the key sections:
Installing using the plugin tar.gz:o Unpack the plugin tar.gz and copy the files to the appropriate location.  o Save the plugin tar.gz locally and note the location the file was saved to.o Launch terminal and change directories to the location the file was saved to.o Unpack the tar.gz file.  Once unpacked you will see the following:+ libflashplayer.so+ /usro Identify the location of the browser plugins directory, based on your Linux distribution and Firefox versiono Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:+ cp libflashlayer.so <BrowserPluginsLocation>o Copy the Flash Player Local Settings configurations files to the /usr directory.  At the prompt type:+ sudo cp -r usr/* /usr

The Directory of chromium plug-in ubuntu13.10 is/usr/lib/chromium-Browser/plugins. The installation script is as follows:
#!/bin/bash#unpack adobe diradobe_dir=/home/wzy/Downloads/flash#copy .so to chromium plugins direcotrycp $adobe_dir/libflashplayer.so /usr/lib/chromium-browser/plugins#copy abobe flash player settings configurations files to /usr directorytarget_dir=/usrfor dir in `ls $adobe_dir/usr`; doif [ -d $target_dir/$dir ]; thencp -r $adobe_dir/usr/$dir/* $target_dir/$dir/elsecp -r $adobe_dir/usr/$dir $target_dirfidone

Google PinYin Input Method ubuntu13.10 comes with the Pinyin input method, but is used to fcitx, and Google input method is also based on fcitx. The installation command is as follows:
$ sudo add-apt-repository ppa:fcitx-team/nightly && sudo apt-get update$ sudo apt-get install fcitx-googlepinyin

Then, choose "system settings"> "language support" and set the input method to "fcitx". Even if ibus is not deleted, the normal use of fcitx will not be affected (remember to log out of the system for the first configuration to make the configuration take effect ).

Shutter is a very easy-to-use screenshot software. You can also edit images. Search for shutter in the Software Center to install shutter.
Virtualbox because my GB hard drive is all used to install ubuntu13.10, but I still need to use trademanager, QQ and other Windows software, so I need to create a virtual machine. virtualbox is strongly recommended here, it can easily migrate my win7 VM on x220 to the new e431.
Install virtualbox refer to official: https://www.virtualbox.org/wiki/Downloads
Export Virtual Computer: Manage-> export Virtual Computer-> select the location where the ova file is stored
To import a virtual computer, follow these steps:
1. Manage-> import a virtual computer


2. Virtual Computer import settings
Note: (1) Check to reinitialize the MAC addresses of all NICs, so that the newly generated virtual machine automatically obtains the new IP address from DHCP and does not conflict with other imported virtual machines. (2) deselect the "Network Controller" option for easy start.


3. Wait for the virtual machine to be imported.
Professional audio and video software in Ubuntu does not belong to VLC. The installation command is as follows:
$ sudo apt-get install vlc



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.