Archive for 3 12 月, 2013

Linux下编译Lantern的准备

星期二, 3 12 月, 2013

编译Lantern需要安装JDK和maven,安装JDK的方法参见上一篇文章:Ubuntu配置Lantern方法

下面是我安装maven的脚本,仅供参考:

[bash]
#!/bin/bash

cd /opt
mvnver=apache-maven-3.1.1
wget http://www.bizdirusa.com/mirrors/apache/maven/maven-3/3.1.1/binaries/$mvnver-bin.tar.gz
tar -zxvf $mvnver-bin.tar.gz

rm -f $mvnver-bin.tar.gz
rm -fr apache-maven
ln -s $mvnver apache-maven

echo “export M2_HOME=/opt/apache-maven” >> /etc/profile
echo ‘export PATH=$PATH:$M2_HOME/bin’ >> /etc/profile
source /etc/profile
mvn -v
[/bash]

Ubuntu配置Lantern方法

星期二, 3 12 月, 2013

Ubuntu桌面版可以到这里下载:http://www.ubuntu.com/download/zh-CN

Lantern是谷歌的开源程序,官方主页是:https://getlantern.org/#zh_CN,开源主页是:https://github.com/getlantern/lantern/wiki

1. 下载JDK1.7
这里 下载JDK1.7 Linux rpm版本

2. 安装alien,使用alien把rpm包转换为deb包
sudo apt-get install alien

3. 转换并安装JDK1.7
sudo alien jdk-7u45-linux-x64.rpm
sudo dpkg -i jdk-7u45-linux-x64.deb

(更多…)