Setup FTP Server on Ubuntu

1. Check if FTP service is exists.

2013-10-25_113851

 

2. Install vsftpd

$ sudo apt-get install vsftpd

3. Command line to check your FTP service.

2013-10-25_113929

 

2013-10-25_113948

 

4. The default vsftpd configuration file is /etc/vsftpd.conf. You need to edit this file using text editor such as vim:

2013-10-25_161529

 

5. Uncomment these lines.

2013-10-25_161649

 

2013-10-25_161726

 

2013-10-25_162135

 

6. Type this command.

2013-10-25_161937

 

7. Add new FTP user to this file.

2013-10-25_161855

8. Restart your FTP service.

2013-10-25_161916

 

9. Test FTP connection from other machine.

2013-10-25_162230

 

10. Click to allow access.

2013-10-25_162253

 

11. Tada =)

2013-10-25_162319

Add New CVS Instance on Ubuntu

1. Add new directory.

$ sudo mkdir moa_hrp

2013-10-19_154650

 

2. Initial the directory.

$ sudo cvs -d /var/lib/cvsd/cvsrepo/moa_hrp init

 

3. Check your CVSROOT directory, there is no passwd file.

2013-10-19_154833

 

4. Create a new user.

2013-10-19_154801

 

5. Add new repository to the CVS server.

2013-10-19_155027

 

6. Add this line of code.

2013-10-19_155100

 

7. Restart your CVS service.

2013-10-19_154930

 

8. Try to login.

2013-10-19_154954

 

9. Done.

Install Nagios On Ubuntu 12.04

1) Install Nagios. Type this command line:

2013-09-14_053520

2) It will go through, and ask you about what mail server you want to use:

2013-09-14_053619

3) Choose your type of email configuration.

2013-09-14_053633

4) It will then ask you about the domain name you want to have email sent from. Again, fill that out based upon your needs.

2013-09-14_053648

5) It will ask you what password you want to use.

2013-09-14_053711

6) Confirm your password.

2013-09-14_053726

7) Installing the application.

2013-09-14_053747

8) We need to edit a few files. Start by opening /etc/nagios3/nagios.cfg.  Use this command:

2013-09-14_053839

9) Search for check_external_commands, and turn the check_external_commands=0 into check_external_commands=1

2013-09-14_053821

10) Now, restart apache by running:

2013-09-14_055058

 

11) We need to edit /etc/group. There should be a line like this in there:  nagios:x:131:

Change to this:

2013-09-14_055151

 

12) Now, we need to edit the /var/lib/nagios3/rw files permission with:

2013-09-14_055212

 

13) Again, restart your nagios3 and apache services.

2013-09-14_055256

 

14) If you want to monitor http and disk space, type this command line:

2013-09-14_055314

 

15) Change to this.

2013-09-14_055411

 

16) Do the same thing for this file:

2013-09-14_055432

 

17) Change to this.

2013-09-14_055517

 

18) Yeah!

2013-09-13_055512

19) And you should be good to go! Happy monitoring!

MySQL Open Port 3306 on Ubuntu

mysql-databases

1. The default form MySQL Server is to be binding to localhost (127.0.0.1), which means it only accepts connections from local applications.

2. To change it, open up your terminal. Find port 3306.

2013-06-29_094339

 

3. Change to root user and edit the below file.

2013-06-29_094405

4. Place a hash (#) at the beginning of the line.

2013-06-29_094452

 

5. Restart your MySQL Server.

2013-06-29_094521

 

6. Test remote connection.

2013-06-29_094048

Control Rhythmbox With SSH

1. Open terminal/putty.

2013-01-13_141926

2. Type this command line:

2013-01-13_141742

alias rc='env DISPLAY=:0.0 rhythmbox-client --no-start'

3. Screen below will be displayed.

Screenshot from 2013-01-13 14%3A11%3A13

4. You are able to control the playlist such below commands.

  • rc –play
  • rc –pause
  • rc –volume-up
  • rc –volume-down
  • rc –mute

5. Refer to this link for details. [ link ]

6. Now you can use any of the rhythmbox-client controls in a SSH session with ease!

Install JBoss EAP in Ubuntu 12.04 (Precise Pangolin)

1. download JBoss Enterprise Application Platform and double-click on your terminal

2. display downloaded file (jboss-eap-installer-5.1.0.jar)

3. execute the jar file

$ java -jar jboss-eap-installer-5.1.0.jar

4. select your language and click OK button

5. choose I accept the terms of this license agreement and click Next button

6. select the installation path and click Next to continue

7. message box will be displayed for confirmation. click OK button

8. select web services stack you want to install

9. select documentation packs you want to install. I don’t want to install it. click Next to proceed

10. define your configuration for jmx-security (username: admin/ password: admin)

11. click Next button. no need to read. haha. as easy as 1-2-3

12. click Next again

13. installing the application

14. after finished, click Next button to proceed

15. setup shortcuts

16. click Done

17. edit default setting for JAVA Heap:

path: ../application/jboss/bin

$ vi run.conf

18. create symbolic link for jboss-eap-5.1

$ ln -s [TARGET DIRECTORY OR FILE] [SHORTCUT]

19. add JDBC Connection Pool in application server if you use MySQL Database

libraries path: ../application/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/server/default/lib/mysql.jar

datasource path: ../application/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/server/default/deploy/mysql-ds.xml

20. finish. yezza..

 

Install PHP in Ubuntu 12.04 (Precise Pangolin)

1. double-click on your terminal and type

sudo apt-get install apache2

2. type ‘Y’ to proceed

3. installing apache2

4. finish install apache2 in ubuntu

5. proceed to next step, type the below command;

sudo apt-get install php5

6. type ‘Y’ to continue

7. installing php

8. finish install php in ubuntu

9. restart your apache2

10. test your connection to apache, click on web-browser and type: http//localhost

11. test your php; change to root user from terminal

vi /var/www/phpinfo.php

and press Enter to continue

12. type as per below screenshot

13. click on your web-browser and type: http://localhost/phpinfo.php

14. finish. hiaark!