Skip to main content

Posts

Showing posts from March, 2011

Installing sun-java6-jre on Ubuntu 10.10

Today I was trying to install Sun Java JRE.to install sun-java6-jre on Ubuntu 10.04 LTS, type the commands below in Terminal:

Code: sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" Code: sudo apt-get update Code: sudo apt-get install sun-java6-jre Credit http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-10-10-maverick-using-ppa.htmlWhen I ran the first command above I received the following error:sudo: add-apt-repository: command not foundI ended up having to run this command and everything was made bettersudo apt-get install python-software-properties

Break up a large filename for transfer

Today I was trying to transfer a file from 1 server to another.  At first I thought the file was too large, so I set out to break up the file.Credit goes to Techie Corner.To Split the file:split --bytes=500m /home/photosrandycc.tar.gz /home/buTo Restore the file:cat bu* > photosrandycc.tar.gzTurns out the real issue was virtualmin actually set a 1GB quota.

Flush Logs on MySQL Without Restarting the Server

For the longest time I thought you had to stop mysql and rename the log files and then restart when on Windows.That's definitely not the case.Simply rename the error log file and then run this command and it will reset the error log file.  Be sure to change out the username to your username. mysqladmin -urandy -p flush-logs