Run a program from cmd

Bước 1: Bật cửa sổ Run

Window + R

Bước 2: Chạy Cmd

gõ cmd , Enter

Bước 3: Tìm đến file exe cần chạy, lấy đường dẫn.
VD: với visual Studio 2012

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

Bước 4: Thêm đường dẫn vào biến môi trường PATH

trên Cmd gõ : setx path “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE”

Bước 5: Tìm tên file exe trong thư mục C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE cần chạy

Bước 6: Chạy

Start ten_chuong_trinh.exe

Run a program from cmd

Cài Android studio trên Ubuntu

Step 1 : tải Android Studio

Link :

https://developer.android.com/sdk/index.html

Chọn download Android Studio

Trong phần

All Android Studio Packages

Chọn tải xuống bản dành cho Linux

Step 2 : Mở Terminal lên và gõ

  • Install JDK — sudo apt-get install openjdk-7-jdk
  • Environment Variable — sudo nano /etc/environment adding the following line:
  • JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

cd /home/USER NAME/android-studio/bin/ (user name is login user)

sau đó là :
sudo chmod 777 -R studio.sh
sau khi ấn enter, bạn sẽ phải nhập pasword root , sau khi nhập password gõ lệnh cuối cùng sau :
./studio.sh

p/s : đây cũng là cách để cài cái file đuôi .sh

http://www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1

Cài Android studio trên Ubuntu

Android trên Ubuntu

Install Android SDK On Ubuntu 14.04

Sửa lỗi:

”

ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:
– Use the ‘-force-32bit’ option when invoking ’emulator’.
– Set ANDROID_EMULATOR_FORCE_32BIT to ‘true’ in your environment.
Either one will allow you to use the 32-bit binaries, but please be aware that these will disappear in a future Android SDK release.
Consider moving to a 64-bit Linux system before that happens.

”

Chèn biến môi trường để có thể gọi chương trình từ cửa sổ termina

export PATH=${PATH}:/home/nguyenducquang/android-sdk-linux/tools
export PATH=${PATH}:/home/nguyenducquang/android-sdk-linux/platform-tools

Chạy chương trình Android SDK manager  từ cửa sổ Terminal gõ lệnh

android

Chạy chương trình Android Virtual Device Manager

android avd

If your hardware doesn’t support 64bit or you can’t reinstall right now you can temporarily bypass the problem by passing -force-32bit when you start the emulator from the commandline or by setting ANDROID_EMULATOR_FORCE_32BIT to true in your environment (as the error says). You can do this by running:

gedit .profile  

From a terminal. Add the text:

export ANDROID_EMULATOR_FORCE_32BIT=true  

to the end of the file and save and close it. I can’t test it right now but you’ll either need to run source .profile from the terminal or restart for the changes to take effect.

Try launching the emulator.

Khi cài đặt được hoàn tất, mở Eclipse (Application -> Programming -> Eclipse)
Trên menubar, kích Help -> Install new software

android-sdk-eclipse1
Tại trường Work with, nhập vào https://dl-ssl.google.com/android/eclipse và nhấn nút Add.
Check vào các Developer Tools cho Android mà chờ cài đặt, sau khi cài đặt thành công sẽ auto restart exlipse của bạn.

Vào Windows -> Preferences. Bên phía trái, chọn entry Android.

Nhập đường dẫn file Android vào trường SDK location. Kích Apply và OK.

Công việc vậy là OK! Chúc các bạn thành công.

Nguồn tham khảo: http://onthefencedevelopment.com/?p=455

Android trên Ubuntu

Eclipse trên Ubuntu

Cài đặt Eclipse trên Ubuntu

Nếu bạn là một lập trình viên chắc sẽ không mấy xa lạ với Eclipse – một IDE miễn phí được các nhà phát triển dùng để xây dựng nên các ứng dụng trên nền tảng Java. Eclipse có thể tích hợp nhiều công cụ khác nhau hỗ trợ trong việc lập trình một cách hoàn chỉnh mà không cần sử dụng thêm các công cụ riêng biệt khác từ bên ngoài, nó được đánh giá là một trong những IDE mạnh mẽ và được yêu thích nhất trong môi trường phát triển Java.

Việc cài đặt Eclipse trên Ubuntu cũng khá đơn giản (tuy nhiên có rắc rối hơn trên Windows). Bạn có thể dễ dàng thực hiện qua những bước sau đây. Bài viết sử dụng Ubuntu Gnome và Eclipse 4.4.

1. Cài đặt JDK8
Mở Terminal (Ctrl + Alt + T) và thực hiện lần lượt các lệnh sau, nhấn Enter sau mỗi lệnh.

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

Sau đó bạn có thể kiểm tra version JDK đang sử dụng:

java -version

Cài đặt JDK8 làm môi trường mặc định:

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

2. Download Eclipse Standard mới nhất tại liên kết sau:

Eclipse Download

Lưu ý: chọn Linux tại tùy chọn Release for.

3. Giải nén file cài đặt mới download vào thư mục /opt/:

cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz

Lưu ý: /Downloads/eclipse-*.tar.gz là đường dẫn nới bạn lưu file cài đặt đã download ở bước 2.

4. Tạo launcher icon.

sudo gedit /usr/share/applications/eclipse.desktop

eclipse desktop

Sau khi chạy lệnh này, gedit sẽ tạo một file eclipse.desktop trống. Copy và dán đoạn mã sau vào đó vào lưu lại.

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Eclipse from dash

Bây giờ, bạn đã có thể sử dụng Eclipse bằng cách vào Dash và tìm kiếm với từ khóa “Eclipse”.

Eclipse trên Ubuntu

Gõ tiếng việt trên Gnome 14.04.3 LTS

Source

ibus-bogo có sử dụng các phần mềm sau, hãy chắc chắn rằng chúng đã được cài trên máy (theo tên gói cài đặt của Debian/Ubuntu):

  • ibus 1.4.x
  • python 3.2+
  • python3-gi (pygobject)
  • python3-entrant (kiểm tra chính tả)
  • cmake
  • qt4-linguist-tools
  • pyqt4-dev-tools
  • python3-pyside
  • gir1.2-ibus-1.0 (GObject Introspection data)
  • gir1.2-wnck-3.0

Lệnh sau sẽ cài đặt tất cả các gói cần thiết:

sudo
apt-get install python3 ibus cmake python3-gi pyqt4-dev-tools \gir1.2-ibus-1.0
gir1.2-wnck-3.0 python3-pyqt4 qt4-linguist-tools \python3-enchant

Tải Ibus-bogo 0.4 ở đây

Mở terminal lên di chuyển (lệnh cd) đển thư mục chứa file vừa tải về chạy lệnh cài đặt

sudo dpkg -i ibus-bogo_0.4.0_all.deb
ibus restart
Gõ tiếng việt trên Gnome 14.04.3 LTS