Skip to main content


Showing posts from March, 2011

Installing sun-java6-jre on Ubuntu 10.10

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

Code: sudo add-apt-repository "deb lucid partner" Code: sudo apt-get update Code: sudo apt-get install sun-java6-jre Credit 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