Burning DVD+RW on Ubuntu – When all else failed…

I had a bit of fun tonight trying to copy some DVD’s to DVD+RW’s, but could not use Brasario nor E3D…

Another option is the command line. I found this nice little article which outlines how to do it:

I didn’t have to install the tools and my device name was different but it was this easy…

growisofs -Z /dev/scd0 -R -J /home/myName/whereTheFilesAre

Advertisements

Apache2 – Only allow localhost

To ensure that a local version of apache will only take local connections, and therefore deny any requests from external computers, you can edit the /etc/apache/httpd.conf file and change the line that says:

Listen 80

to…

Listen 127.0.0.1:80

Then restart apache: sudo /etc/init.d/apache2 restart

Ubuntu Fonts

On my system (at least it was a while ago) I could put custom fonts here: Put the font in the /home//.fonts

Run this at command line to get the system to update it’s cache (or something :S)
sudo fc-cache -fv

WordPress Pretty Permalinks

Just reinstalled wordpress after a computer malfunction a few days ago, and setup rewriting to allow pretty permalinks.

Note that these instructions are for Ubuntu (On 9.10)

Steps were

  1. Open a terminal and type “sudo a2enmod rewrite”. This will enable the mod_rewrite module in apache
  2. Open the httpd.conf file and put this in there: (Note the directory path at the top to the wordpress installation)
    <Directory /var/www/wordpress>
      Options FollowSymLinks
      AllowOverride All
    </Directory>
  3. Open up wordpress’s administration page and Expand “Settings”
  4. Click on “Permalinks”
  5. Select the format that you alike (I chose “Day and name”)
  6. Click “Save Changes”
  7. If your .htaccess is writable (and exists) then you will probably be right to go. If it is not then you should create it and add the content that wordpress gives you underneath the save changes button…
  8. Restart apache (sudo /etc/init.d/apache2 restart)

The content of my .htaccess file for the “Day and name” option was as follows:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress

Download the File at the end of a Url in Ubuntu

Found that there is a nice little commandline tool in Ubuntu:

wget

I needed to get a file where I only had the Url for the file and no other method of downloading it without FireFox opening Media player (Which was no good because it doesn’t have the required Codec and it can’t seem to install it either)

I typed:

wget --output-document=/<whereToPutTheFileHere>    <url> 

And that problem was solved.

Linux systems like Ubuntu have an amazing set of tools that are hidden in the file system away the comfort(for some people) of the GUI. You never know about them until you need to solve a problem and stumble across them in forums

Cheerz to the writer of wget! Now I’ve just got to convert it to something useful.