IV Needle Injecting Tech into the Vein

6Jun/090

Synaptic not showing all packages

On a fresh VMware install of Ubuntu 8.10 I ran into the problem where additional packages weren't showing up in the Synaptic Package Manager. I've seen this before and have previously been able to resolve it. Once and for all I'm going to blog the fix so I can find it for future reference.

  1. Open up a terminal
  2. Enter the command: sudo update-apt-xapian-index
  3. Restart Synaptic Package Manager when the update is complete
  4. You may need to reload the package information by clicking Ctrl-R
  5. It should work fine now

Hope this can help other people annoyed by this problem.

Posted by: Heavymeddler

Filed under: Uncategorized No Comments
6Jun/090

Setup a Tomcat server in Ubuntu

Install the required packages (either using "apt-get install" in the terminal or from the package manager), then follow the instructions to configure it:

  • tomcat5.5
  • tomcat5.5-admin
  • tomcat5.5-webapps
  • sun-java6-jdk

Tomcat needs to know where the jdk is.
Open /etc/default/tomcat5.5 in a text editor.
Change the line that starts:

#JAVA_HOME.

to read:

JAVA_HOME=/usr/lib/jvm/java-6-sun

** This assumes that you have java 6 installed. Check that you have that folder.

Update the tomcat security policy:

sudo gedit /etc/tomcat5.5/policy.d/03catalina.policy

At the very end of the file, add the lines:

grant {
permission java.net.AllPermission;
permission java.net.SocketPermission "localhost:3306", "connect";
};

Next you need to import a .jar into your Tomcat. To do so go to http://dev.mysql.com/downloads/connector/j/5.1.html and download the tar file. When it asks if you have registered look below and where it says 'No Thanks'. Double click on the downloaded tar file and extract. Go into the newly created folder and run:

sudo cp mysql-connector-java-5.1.5-bin.jar /usr/share/tomcat5.5/server/lib/

This will copy that jar file into the library for jsp.

Restart your tomcat server:

sudo /etc/init.d/tomcat5.5 restart

Posted by: Heavymeddler

Filed under: Uncategorized No Comments
6Jun/090

Setup LAMP in Ubuntu

1. Install Apache2

  1. Start the package manager by going to the menu: "System>Administration>Synaptic Package Manager"
  2. Enter your password to allow the program to run.
  3. Search for the package named "apache2" by clicking the search button on the menu bar.
  4. Find the package named exactly "apache2"
  5. Click the check box next to the package and choose "Mark for installation" from the pop up menu.
  6. A window will appear asking if additional changes should be made. These are other packages that apache2 requires to function properly. Choose the button that says "Mark".
  7. Apply the changes by clicking the "Apply" button from the menu
  8. Note: You can select as many packages as you want before applying changes. For example you could install Apache2 at the same time as you install MySQL.

2. Install MySQL and PHP

Search for and install these packages from the package manager:

  • php5-mysql
  • mysql-server
  • mysql-client
  • phpmyadmin (installer will ask what server to connect to. Choose apache2.)
  • libapache2-mod-auth-mysql

3. Configure phpmyadmin

To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:

sudo gedit /etc/apache2/apache2.conf

Add the following line of code inside apache2.conf:
Include /etc/phpmyadmin/apache.conf

Now restart Apache:
sudo /etc/init.d/apache2 restart

4. Test it out...
Open up a browser and type "http://127.0.1.1/" into the address bar. If a page comes up that says "It works!" your Apache server is running and configured. Now point to "http://127.0.1.1/phpmyadmin" and verify that the phpmyadmin page comes up.

Posted by: Heavymeddler

Filed under: Uncategorized No Comments

Calendar

June 2009
S M T W T F S
« May   Aug »
 123456
78910111213
14151617181920
21222324252627
282930  

Pages

Recent Posts

Meta

Tags

about config analysis banned ports bluetooth cheat sheet dell dig dns dnsstuff enigma firefox Forensics gmail reader hd high definition interrogation jaunty microsoft 5000 mini mouse netcat nslookup password rainmeter resolution royale noir share shared folder ssh symbolic link theme traceroute tunneling ubuntu vi vim virtualbox volatile whois windows windows xp

Categories