Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, July 12, 2012

vsftp Error -203: miscellaneous error occurred while trying to login to the host

Your ftp user needs to have a home directory. 


Try creating your user this way instead:

sudo useradd -d /home/ftpusername -m ftpusername

sudo passwd ftpusername


Ps. If you need to delete your existing user, use:

sudo userdel ftpusername

Wednesday, June 13, 2012

Mail in Ubuntu. Sendmail log file says 'User unknown'

I was getting the error'

I realized it was because my domain name was set in the local-host-names file.

To fix this I:

1. opened up the 'local-host-names' file
i.e.
sudo nano /etc/mail/local-host-names

2. Removed my domain name from the file.

3. Then restarted sendmail:

/etc/init.d/sendmail restart



Thursday, July 22, 2010

Pyroom - A Writeroom/Darkroom Clone/Replacement for Ubuntu/Linux

Pyroom - A Writeroom/Darkroom Clone/Replacement for Ubuntu/Linux

Nicholas Rougier and Bruno Bord, nicely put together a Writeroom/Darkroom clone for Ubuntu and Linux users called Pyroom. Many happy days of distraction free writing for all:





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

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.


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

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.

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.

rm to remove directory

rm -rf directoryname/


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.

Wednesday, April 28, 2010

Cannot find config.m4 when installing eAccelerator

If you are following the instructions on this site:

http://developer.mindtouch.com/en/kb/Improve_PHP_performance_with_eAccelerator_on_Ubuntu_8.04_(Debian)

It is likely you're not in the correct directory. Go back to eaccelerator-0.9.5.3

cd /tmp/eaccelerator-0.9.5.3

then you should be able to run:

sudo phpize

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"

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