Home  • Operating System • Linux

How to Ubuntu

Setup LAMP

Step 1 Install Apache ~$ sudo apt-get install apache2 Step 2 Install PHP ~$ sudo apt-get install php5 libapache2-mod-php5 Step 3 Install MySQL ~$ sudo apt-get install mysql-server ~$ sudo apt-get install php5-mysql Step 4 Restart Apache ~$ sudo /etc/init.d/apache2 restart Step 5 Check PHP ~$ php -r 'echo " Your PHP installation is working fine. ";' Congratulations, you have just Installed a Ubuntu LAMP Server!

Setup Java

~$sudo apt-get install openjdk-7-jre ~$sudo apt-get install openjdk-7-jdk

Setup Android

~$adb devices show attached emulators/devices list ~$adb install /myapk/file.apk install apk file from shell, when multiple devices are attached then need to specify instance ~$adb pull /sdcard/foo.txt get file from sdcard ~$adb -s emulator-5554 shell start shell for specific instance, -s define ~$export PATH=${PATH}:~/android-sdk-linux/tools ~$export PATH=${PATH}:~/android-sdk-linux/platform-tools add the directory path in ubuntu system if you are unable to found adb

Setup HSS

SSH - Secure Shell (SSH) is a network protocol which is used for access remote computer by commands. benefits of SSH are - create secure connectivity between two computers execute commands on remote machine other support like file transfer, tunneling, x11 etc how to use SSH ? there should be install a program (SSH Client and SSH server) on both client server computer, so both machine can understand protocol. ~$sudo apt-get install openssh-server install SSH Server ~$sudo gedit /etc/ssh/sshd_config edit server configuration ~$sudo restart ssh ~$sudo /etc/init.d/ssh restart restart ssh service after update configuration ~$sudo apt-get install openssh-client install SSH Client ~$ssh hostname ~$ssh username@hostname connect to remote machine by hostname or IP address. type exit for close session

Setup cURL

cURL is tools to access web pages by command line. cURL also support various protocols like FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, LDAP, POP3, RTSP, SMTP etc. cURL is not pre installed with operating system because it is third party software. ~$ sudo apt-get install curl install curl from ubuntu repository ~$ sudo apt-get install libc6 libcurl3 zlib1g install other packages related to curl ~$ curl http://www.google.com get the content of url

Setup Eclipse IDE

~$ sudo apt-get install eclipse

Comments 1


http://angrytools.com/command/
Copyright © 2024. Powered by Intellect Software Ltd