Reconfigure Ubuntu 12.04

Source: Internet
Author: User
Tags nameserver

    1. Allow root to log in


Sudo-s. Then enter the password of the normal user login, enter the root user rights mode.

Then execute: vi/etc/lightdm/lightdm.conf.

Increase greeter-show-manual-login=true allow-guest=false. The entire configuration file that was modified is

[Seatdefaults]
Greeter-session=unity-greeter
User-session=ubuntu
Greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
Allow-guest=false # do not allow guest login

and then we startRootAccount Number:
sudo passwd root
Enter the Roott account password as prompted.

RestartUbuntu, the login window will have"Login"option, we can then passRootlogged in.

2. Good grasp Network

First we need to create a file/etc/resolvconf/resolv.conf.d/tail:


#vim/etc/resolvconf/resolv.conf.d/tail

We then write the DNS server we want to add in this file, in the same format as the previous/etc/resolv.conf file:


NameServer 114.114.114.114 #有可能有一些伪装的dns, in the celestial body, you know

NameServer 8.8.8.8 #这个在天朝受限


Then enter Wq save to exit. Next we reboot the next resolvconf program and let the configuration take effect:


#/etc/init.d/resolvconf restart

3. Set the classic menu/desktop

sudo apt-get install gnome-session-fallback
' sudo apt-get install Gnome-themes-standard
Logout Logoff
then select Gnome Classi on the login screen or the one without the special effects (English forgot what should be no effic)


Modify Vi/etc/lightdm/lightdm.conf

User-session=ubuntu---> User-session=gnome-classic


4. Find the original git configuration file,. gitconfig, generate key with Sshkey-gen, and copy the public key through the GIT HTTP Web page. But still need to implement

git config ... Command.


5. Install common software, Synaptic,docky,apt-cache search Java, open-jdk (install 7 on the line), in order to compile Android 4.x version, also need to install the Sun Java version. After installing synaptic, select the fastest source, my Ubuntu test found Sohu the fastest source, then choose it.

Software list: SCons, Build-essentials, Eclipse,openssh-server, Smbfs, SSHFS, gnome-do, Codeblocks, Geany

When installing Eclipse, when you add the CDT plugin later, only the first main Features is selected, otherwise you will be prompted with an error message.

The direct installation of ECLIPSE-CDT failed.

Start gnome-do,win+<space>.


6. Chinese Input method,

Apt-get Install IBUs ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4

Apt-get Install Ibus-googlepinyin

Then set the IBUs frame


7. After the installation is finished, you need to start ATD and Cron

Use Chkconfig to start some problems, but you can use it to display services

UPDATE-RC.D cron defaults or specify sequence number
UPDATE-RC.D Cron Defaults 50 50


8 configuration can be compiled for Android Java

java_home=/usr/lib/jvm/jdk1.6.0_45  jre_home= $JAVA _home/jre   classpath= $CLASSPATH: $JAVA _home/lib: $JRE _home/lib  path= $PATH: $JAVA _home/bin: $JRE _home/ Bin: $JAVA _home/lib: $JAVA _home  sudo update-alternatives --install /usr/bin/java  java /usr/lib/jvm/jdk1.6.0_45/bin/java  300  sudo update-alternatives -- install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 300  sudo  Update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws   300 sudo update-alternatives --config java  sudo  update-alternatives --config javac  sudo update-alternatives --config  Javaws 

Next run java-version to see if it's a sun JDK 1.6, and if not, you might need to restart your computer

But android5.0 's Java should be set up like this:

Export Java_home=/usr/lib/jvm/java-7-openjdk-amd64/export android_java_home= $JAVA _homeexport PATH= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH export Classpa Th=.: $CLASSPATH: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _home/jre/lib



Reconfigure Ubuntu 12.04

Related Article

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.