随笔杂记

   :: 首页 :: 新随笔 ::  ::  :: 管理 ::

2016年6月22日 #


sudo apt-get install -y  openjdk-8-jdk openjdk-8-jre git  build-essential libncurses5-dev:i386  libx11-dev:i386  libreadline6-dev:i386 g++-multilib  tofrodos python-markdown libxml2-utils xsltproc   dpkg-dev  libesd0-dev  git-core gnupg flex bison gperf build-essential  zip curl  gcc-multilib g++-multilib  libc6-dev-i386  lib32ncurses5-dev x11proto-core-dev libx11-dev   ccache   libxml2-utils xsltproc unzip m4 python-pip smbclient libgl1-mesa-dev libsdl1.2-dev zlib1g-dev:i386  lib32z-dev zlib1g-dev lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0:i386 libssl-dev
posted @ 2019-04-03 11:29 天宇恒星 阅读(345) | 评论 (0)编辑 收藏


$ simg2img system.img system.ext4.img
$ mkdir system
$ sudo mount -t ext4 system.ext4.img system
posted @ 2019-04-03 11:27 天宇恒星 阅读(163) | 评论 (0)编辑 收藏

×#×#4636#×#× 进手机信息,“切换DNS检查”修改为 allowed
posted @ 2017-05-31 14:48 天宇恒星 阅读(35) | 评论 (0)编辑 收藏

Android.mk修改

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS) 
LOCAL_STATIC_JAVA_AAR_LIBRARIES := leakcanary-android-aar leakcanary-watcher-aar leakcanary-analyzer-aar 
LOCAL_STATIC_JAVA_LIBRARIES :=  haha
LOCAL_MODULE_TAGS := optional 
LOCAL_AAPT_FLAGS := \
    --auto-add-overlay \
    --extra-packages com.squareup.leakcanary    
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_SRC_FILES := \
        $(call all-java-files-under, src)  
LOCAL_PACKAGE_NAME := XXXXX 
include $(BUILD_PACKAGE)

include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := 
        haha:libs/haha-2.0.3.jar \
        leakcanary-android-aar:libs/leakcanary-android-1.5.aar \
        leakcanary-watcher-aar:libs/leakcanary-watcher-1.5.aar \
        leakcanary-analyzer-aar:libs/leakcanary-analyzer-1.5.aar 
include $(BUILD_MULTI_PREBUILT)

include $(call all-makefiles-under,$(LOCAL_PATH))

posted @ 2016-12-31 17:06 天宇恒星 阅读(1365) | 评论 (0)编辑 收藏

1.增加数据源
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
修改/etc/apt/sources.list.d/gitlab-ce.list 加入  deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/debian jessie main
sudo apt-get update

2.开始安装
# 安装依赖包
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
sudo apt-get install curl openssh-server ca-certificates postfix
# 安装 GitLab 社区版
apt-get install gitlab-ce
# 初始化,初始化完自动启动 GitLab
sudo gitlab-ctl reconfigure

3.修改配置
每次修改/etc/gitlab/gitlab.rb,都要运行以下命令,让配置生效
sudo gitlab-ctl reconfigure
posted @ 2016-07-25 14:29 天宇恒星 阅读(355) | 评论 (0)编辑 收藏

1.安装相关软件
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev libgl1-mesa-dev gcc-multilib g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libsdl-dev libesd0-dev libncurses5-dev lib32ncurses5 lib32stdc++6 rapidsvn nautilus-open-terminal libswitch-perl subversion openjdk-7-jdk lib32z1 libusb-dev libpcap-dev lib32bz2-1.0 libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9

2.设置环境变量,修改.bashrc
export ANDROID_SDK_HOME=/home/xxx/android_env/adt-bundle-linux-x86_64/sdk
export ANDROID_HOME=/home/xxx/android_env/adt-bundle-linux-x86_64/sdk
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=$JAVA_HOME/jre
export PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$GRADLE_HOME/bin:$PATH:
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib
export USE_CCACHE=1
export MAVEN_HOME=/home/xxx/android_env/apache-maven-3.3.9/
export GRADLE_HOME=/home/xxx/android_env/gradle-2.10
export GRADLE_USER_HOME=/home/xxx/android_env/gradle-2.10
export ANT_HOME=/home/xxx/android_env/apache-ant-1.9.7
export PATH=$GRADLE_HOME/bin:$MAVEN_HOME/bin:$ANT_HOME/bin:$PATH
export GOROOT=/root/go
export GOPATH=/root/goworkspace
export PATH="/root/go/bin:/root/goworkspace/bin:"$PATH
posted @ 2016-06-22 14:37 天宇恒星 阅读(400) | 评论 (0)编辑 收藏