install Ubuntu & Android Studio


安装ubuntu--> 选择/boot 200m;/ 25G; /home 随意;/swap 1G.
重要:选择/boot为引导区
在windows用easyBCD add entry
********************************************
//echo "blacklist intel_powerclamp" | sudo tee /etc/modprobe.d/disable-powerclamp.conf

the package system is broken->sudo apt-get -f install

update nvidia driver

********************************************************************************************
因为未知的原因,需要安装ubuntu语言为中文才能安装搜狗输入法
********************************************************************************************
修复windows启动项:

https://neosmart.net/wiki/recovering-windows-bootloader/

Attempt Two: Manually Repairing the Windows Bootloader

Desperate times call for desperate measures.

This time, we’re going to select the “Launch command prompt” option and try to manually tell the Recovery Console what needs to be fixed. Chances are, this is as far as you’ll have to go; hopefully it’ll get the job done.

Go ahead and select “Command Prompt” from that list, and you should get a window not dis-similar to the one you see when run cmd.exe from Windows.

Let’s start by telling the recovery console to fix our MBR and bootsectors:

bootrec.exe /fixmbr
bootsect.exe /nt60 all /force

Then ask it (nicely!) to try and rebuild your BCD data from scratch:

bootrec.exe /rebuildbcd

If you’re lucky, this’ll work and you’ll see a message telling you everything went OK.



add-apt-repository 'deb http://archive.debian.org/debian-archive hamm main'

sudo add-apt-repository ppa:gnome-desktop

sudo apt-get update


********************************************************************************************
http://www.linuxdiyf.com/linux/21303.html
 安装android-studio中途被我强制停止后,在重新安装后就开始报错:dpkg: 处理android-studio (--configure):
 第一步:备份
$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk


第二步:新建
$ sudo mkdir /var/lib/dpkg/info


第三步:更新
$ sudo apt-get update, apt-get -f install


第四步:替换
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk //把更新的文件替换到备份文件夹


第五步:删除
$ sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉


第六步:还原
$ sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info //把备份的info.bk还原


********************************************************************************************
/etc/apt/sources.list
通过apt-get命令下载的软件包,放在
/var/cache/apt/archives 目录下
下载文件位置可以在
/etc/apt/source.list文件中指定
通过apt-get autoclean 命令就可以删除存放在该地的软件包




***********************************************************************************
http://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu


Installing Java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

After that

sudo apt-get install oracle-java8-set-default

For Ubuntu 15.10 and up

Ubuntu Make is already in official repositories, run :

sudo apt install ubuntu-make

Installing Android Studio :

umake android

sudo apt-get install lib32stdc++6

Add the Android Studio PPA

sudo add-apt-repository ppa:paolorotolo/android-studio

Then update package lists and install it:

sudo apt-get update

sudo apt-get install android-studio


cd /var/cache/apt/archives/
android-studio_5.2.1-ubuntu0_all.deb
sudo dpkg -i android-studio_5.2.1-ubuntu0_all.deb
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 298122012 (284M) [application/zip]
正在保存至: “android-studio-ide-143.2790544-linux.zip


Once installed, start the setup wizard from the Unity Dash or just run command

/opt/android-studio/bin/studio.sh

********************************************************************************************
sudo vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle:/opt/android-studio/bin/"

CLASSPATH=.:/usr/lib/jvm/java-8-oracle
JAVA_HOME=/usr/lib/jvm/java-8-oracle
source ~/.bashrc



Create a new file androidstudio.desktop

nano ~/.local/share/applications/adndroidstudio.desktop

and add the lines below

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio


SAVE->Ctrl+O;
Ctrl+X


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值