Configure the Ubuntu development environment and the ubuntu Development Environment

Source: Internet
Author: User
Tags gtk gz file unpack

Configure the Ubuntu development environment and the ubuntu Development Environment
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




Who will install and configure the java Development Environment in Ubuntu?

There are several steps:
1. Install JDK;
2. Install eclipse;
3. Install and install Tomcat;
4. Install the database
Install JDK:
1. sudo apt-get install sun-java6-jdk
2, when the prompt \ "sun-java6-jre is set \", press the TAB key, \ "OK \" becomes red, press enter to continue installation
After about 20 minutes, you will be prompted for successful jdk installation. At this time, you can enter java or javac in the shell and check that the displayed information shows that jdk installation is successful.
3. Configure environment variables after installation.
Sudo gedit/etc/environment
4. Open the environment variable file and add the following code:
CLASSPATH =.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME =/usr/lib/jvm/java-6-sun
Note: java-6-sun is the jdk folder, which may be different from this. Check the folder name installed on your machine in/usr/lib/jvm. Save the settings.
5. Open the jvm virtual machine configuration file.
Sudo gedit/etc/jvm
Add the following code to the top:
/Usr/lib/jvm/java-6-sun

Note that java-5-sun is still the name of the jdk folder on your machine.
6. Open the terminal, enter java or javac to test whether the installation is successful. View the jdk version with javac-version.

Install eclipse:
Download eclipse IDE for Java EE Developers from the Eclipse website.
The downloaded package is eclipse-jee-galileo-sr1-linux-gtk.tar.gz. Decompress the package directly to the home/your username/j2ee directory.
Open the terminal and run:
Cd/home/your username/j2ee/eclipse
Chmod + x eclipse

To run eclipse.
Open eclipse, click window-> perferences-> Java-> Buile path, and select folders;

Then-> Compiles, check that the value behind Compiler compliance level is 1.6. (If you want to run eclipse with JDK 1.6 ).

-> Installed JRES. The JDK Installed on your machine is displayed.
Eclipse jdk configuration is complete.
Install tomcat:
1. install apache-tomcat-6.0.20
: Tomcat.apache.org/
2. After the download is complete, decompress the package to the home/your username/j2ee directory.
3. Configure tomcat:
Open
Sudo gedit/etc/profile
Add
Export CATALINA_HOME = \ "Your tomcat6.0 installation directory & # ...... the remaining full text>

How to Build the ubuntu 1204 c Development Environment

1. The so-called C development environment is a library containing C language, and a tool for compiling C language.
2. You can use the vi editor in ubuntu, which is a tool similar to vc6.0. However, it is more powerful, comprehensive, and flexible. Gdb is used to debug the program. make can compile the project, and gtk can be used as a graphical interface.
For example, you have written a simple C program in the vi editor. For example, test. c can be compiled using gcc. The command is:
What does gcc test. c-g-o test Mean? Gcc is the compiler, you know,-g and-o are both parameters,-g is the tool for gdb debugging, and-g parameters can be used for gdb debugging, such as gdb test. This test is the executable file compiled with gcc just now.

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.