/etc/init.d/cron restart
Programming solutions, source code, solutions to tech problems and other tech related stuff.
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Sunday, March 04, 2012
Sunday, May 30, 2010
javaplugin.so does not exist sub process /usr/bin/dpkg returned an error code (1)
javaplugin.so does not exist sub process /usr/bin/dpkg returned an error code (1)
try:
sudo dpkg --remove sun-j2re1.6
try:
sudo dpkg --remove sun-j2re1.6
Saturday, May 29, 2010
Waiting apache2: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
waiting apache2: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
It doesn't seem critical, but seems a bit annoying. To fix this, I added the following line at the bottom of "/etc/apache2/apache2.conf"
ServerName localhost
Then restarted apache.
It doesn't seem critical, but seems a bit annoying. To fix this, I added the following line at the bottom of "/etc/apache2/apache2.conf"
ServerName localhost
Then restarted apache.
Saturday, May 15, 2010
Dropbox for Ubuntu 9.10 Karmic Koala
1. wget https://www.dropbox.com/download?dl=packages/nautilus-dropbox_0.6.2_i386.deb
2. sudo gdebi nautilus-dropbox_0.6.2_i386.deb
3. Restart nautilus
4. Find in Applications -> Internet -> Dropbox
5. Click 'ok' when it asks to install the proprietary daemon.
6. Follow the on screen instructions
2. sudo gdebi nautilus-dropbox_0.6.2_i386.deb
3. Restart nautilus
4. Find in Applications -> Internet -> Dropbox
5. Click 'ok' when it asks to install the proprietary daemon.
6. Follow the on screen instructions
Friday, May 14, 2010
Installing Java 1.4.1 on Ubuntu 9.10 (Karmic Koala)
Installing Java 1.4.1 on Ubuntu 9.10 (Karmic Koala) turned out to be nothing but a pain.
Firstly, Java 1.4.1 has now reached End of Life, so Sun doesn't support it any longer.
1. So, download Java 1.4.2_07 from the archive: http://java.sun.com/products/archive/j2se/1.4.1_07/
2. Then when you try to set the file to executable by 'chmod -x' and then run it, you're likely to get an error message like:
"tail: cannot open `+341' for reading: No such file or directory"
Then something about the download being corrupt.
This is because (according to here) the tail program in Linux has changed slightly since then and has a different syntax.
To get around this, I unzipped the .bin file using 7Zip on a Windows system; but I guess p7zip can be used on a Linux system too.
3. Then I placed the 'j2re1.4.1_07' folder into my /usr/lib/jvm/ folder and did the procedures 5 to 6 as in the previous post.
4. Then finally, manually added the plugin (so that it works in Firefox) to the list of plugins as given in the 'Java Applet Runtime Settings' -> 'View' in the GUI for the ControlPanel command.
Firstly, Java 1.4.1 has now reached End of Life, so Sun doesn't support it any longer.
1. So, download Java 1.4.2_07 from the archive: http://java.sun.com/products/archive/j2se/1.4.1_07/
2. Then when you try to set the file to executable by 'chmod -x' and then run it, you're likely to get an error message like:
"tail: cannot open `+341' for reading: No such file or directory"
Then something about the download being corrupt.
This is because (according to here) the tail program in Linux has changed slightly since then and has a different syntax.
To get around this, I unzipped the .bin file using 7Zip on a Windows system; but I guess p7zip can be used on a Linux system too.
3. Then I placed the 'j2re1.4.1_07' folder into my /usr/lib/jvm/ folder and did the procedures 5 to 6 as in the previous post.
4. Then finally, manually added the plugin (so that it works in Firefox) to the list of plugins as given in the 'Java Applet Runtime Settings' -> 'View' in the GUI for the ControlPanel command.
Thursday, May 13, 2010
Downgrading Java Version in Ubuntu and Firefox to 6 update 11
Fortunately Ubuntu allows for users to change the Java version used and also run multiple versions of Java. To do this:
1. Download JRE 6u11 from here:
http://java.sun.com/products/archive/j2se/6u11/index.html
2. Chmod +x it. i.e.:
sudo chmod +x jre-6u11-linux-i586.bin
3. Move it to the jvm folder
sudo mv jre-6u11-linux-i586.bin /usr/lib/jvm/
4. cd to that folder and run it
cd /usr/lib/jvm/
sudo ./jre-6u11-linux-i586.bin
5. Now add it to the alternatives:
sudo update-alternatives --install /usr/bin/java /usr/lib/jvm/jre1.6.0_11/bin/java 500
6. Then you can select to use that version of java by running:
sudo update-alternatives --config java
Now that's all well and good; but it will still be running the newer version in Firefox. So:
7. Run the java control panel, by typing:
ControlPanel
Then click on the tab 'Java' and the button 'view' under 'Java Applet Runtime Settings'
From there, you can disable any unwanted Java versions.
8. The plugin inside Firefox's setTest your Firefox java version here:
http://java.com/en/download/help/testvm.xml
Unfortunately my Cisco PIX 501 Manager STILL does not work with this.
1. Download JRE 6u11 from here:
http://java.sun.com/products/archive/j2se/6u11/index.html
2. Chmod +x it. i.e.:
sudo chmod +x jre-6u11-linux-i586.bin
3. Move it to the jvm folder
sudo mv jre-6u11-linux-i586.bin /usr/lib/jvm/
4. cd to that folder and run it
cd /usr/lib/jvm/
sudo ./jre-6u11-linux-i586.bin
5. Now add it to the alternatives:
sudo update-alternatives --install /usr/bin/java /usr/lib/jvm/jre1.6.0_11/bin/java 500
6. Then you can select to use that version of java by running:
sudo update-alternatives --config java
Now that's all well and good; but it will still be running the newer version in Firefox. So:
7. Run the java control panel, by typing:
ControlPanel
Then click on the tab 'Java' and the button 'view' under 'Java Applet Runtime Settings'
From there, you can disable any unwanted Java versions.
8. The plugin inside Firefox's setTest your Firefox java version here:
http://java.com/en/download/help/testvm.xml
Unfortunately my Cisco PIX 501 Manager STILL does not work with this.
Tuesday, May 04, 2010
Vi Cheat Sheets
This is a pretty decent one I have pasted on the wall in front of my desk: (i'm a vi idiot)
http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf
This new one looks great too:
http://www.smashingmagazine.com/2010/05/03/vi-editor-linux-terminal-cheat-sheet-pdf
http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf
This new one looks great too:
http://www.smashingmagazine.com/2010/05/03/vi-editor-linux-terminal-cheat-sheet-pdf
Monday, May 03, 2010
How to Install the Twhirl Twitter Client for Ubuntu
To install:
1. Get hold of the latest version of Adobe AIR from this site: http://get.adobe.com/air/
2. Open a terminal, and find the .bin file that you downloaded in step 1.
3. Change the .bin file's permissions so it is executable: chmod +x AdobeAIRInstaller.bin
4. Execute the bin file: ./AdobeAIRInstaller.bin
5. Follow the on screen instructions. (it shouldn't take long)
6. Download the latest version of Twhirl from: http://www.twhirl.org/download
7. If the Adobe AIR installation was successful, then the .air file should open and Twhirl should install. Follow the on screen instructions and Twhirl should be up and running.
8. By default, Twhirl will install into the 'Accessories' menu in Ubuntu.
1. Get hold of the latest version of Adobe AIR from this site: http://get.adobe.com/air/
2. Open a terminal, and find the .bin file that you downloaded in step 1.
3. Change the .bin file's permissions so it is executable: chmod +x AdobeAIRInstaller.bin
4. Execute the bin file: ./AdobeAIRInstaller.bin
5. Follow the on screen instructions. (it shouldn't take long)
6. Download the latest version of Twhirl from: http://www.twhirl.org/download
7. If the Adobe AIR installation was successful, then the .air file should open and Twhirl should install. Follow the on screen instructions and Twhirl should be up and running.
8. By default, Twhirl will install into the 'Accessories' menu in Ubuntu.
Sunday, February 21, 2010
Notepad++ Replacement for Linux (Notably Ubuntu)
I had only recently started using Notepad++ and find this equivalent on the linux platform to be great for Ubuntu use:
SciTE
or installable in Ubuntu by:
sudo apt-get install scite
SciTE
or installable in Ubuntu by:
sudo apt-get install scite
Thursday, February 18, 2010
PHP5/Apache mysql.so in ubuntu
For my own reference:
1. apt-get install php5-mysql
2. sudo gedit /etc/php5/apache2/php.ini
3. add "extension=mysql.so"
1. apt-get install php5-mysql
2. sudo gedit /etc/php5/apache2/php.ini
3. add "extension=mysql.so"
Thursday, May 14, 2009
Running .NET Apps On Linux
This seems totally cool. Suse have responded to the .net open standard and made an environment that can run .net applications (according to their sales dudes: C# is the best supported, vb.net is not so good).
http://www.novell.com/products/mono/
I've yet to try it out but it looks promising start. Now we just need something in linux that will enable us to execute native Windows DLLs.
http://www.novell.com/products/mono/
I've yet to try it out but it looks promising start. Now we just need something in linux that will enable us to execute native Windows DLLs.
Thursday, April 16, 2009
Ubuntu Install PEAR Mail for PHP / sending mail in Ubuntu via PHP
If you're getting some sort of 'php unable to load dynamic library' problem in PHP while trying to send email with PEAR/PHP on Ubuntu you'll probably need to do the following to install pear:
sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
Tuesday, March 10, 2009
Invoking a JSP From a Cron Job
To invoke a JSP page from a cron job. Simply use wget:
wget http://mynicesite.com/mynicejsp.jsp
wget http://mynicesite.com/mynicejsp.jsp
Saturday, July 19, 2008
Changing Locale To Chinese On ASUS EeePC
Changing Locale To Chinese (and all the other languages) On ASUS EeePC.
Recently a friend of mine tried changing the locale on his new ASUS Eee PC to Chinese (PRC). No problem, we thought, we changed the locale to "LANG=en_CN.UTF-8" and everything seemed to work.
However, after changing this the extra features on the touchpad such as the zoom, scrolling etc didn't work anymore.
So eventually we tried the steps given on this site to change the locale instead:
http://www.eeeuser.net/?p=8
Alas, it worked! Kudos to this great blog for posting it up.
Recently a friend of mine tried changing the locale on his new ASUS Eee PC to Chinese (PRC). No problem, we thought, we changed the locale to "LANG=en_CN.UTF-8" and everything seemed to work.
However, after changing this the extra features on the touchpad such as the zoom, scrolling etc didn't work anymore.
So eventually we tried the steps given on this site to change the locale instead:
http://www.eeeuser.net/?p=8
Alas, it worked! Kudos to this great blog for posting it up.
Subscribe to:
Posts (Atom)