Tag Archives: install

Ubuntu Server: How to Install Applications from .deb Files Tips, Tricks and Tutorials 30 OCT 2014

It’s pretty seldom that you have to install packages that aren’t part of the official repositories (for which apt-get is king), but every now and then you will be presented with a .deb application installer file and told to install it on your server.

Luckily this is pretty painless, so long as you know the correct command, which is exactly why I’m noting it down here for future reference.

Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic.

To install a .deb file, run:

sudo dpkg -i myInstaller.deb

If dpkg reports an error due to dependency problems, you can run:

sudo apt-get install -f

Running this should download the missing dependencies and configure everything automatically. If however this step reports an error… well let’s just say that you’ll have to sort out the dependencies yourself, something often referred to as “dependency hell” in the support forums!

Conversely, to uninstall a package, run dpkg with -r:

sudo dpkg -r myInstaller

Noted.

ubuntu-logo-banner

How to Install s3fs on an Ubuntu Server Software & Sites 20 APR 2012

s3fs is a handy little utility to have in your arsenal if you make use of Amazon’s Simple Storage Service. In a nutshell, s3fs is a FUSE-based file system backed by Amazon S3, which allows you to mount a bucket as a local file system for read/write operations. In other words, this allows you to store files and folders to your S3 account natively and transparently!

To install on Ubuntu takes a little effort, so lets go through the steps shall we?

First, install the prerequisites on your system to allow for the later compiling:

apt-get install build-essential
apt-get install libfuse-dev
apt-get install fuse-utils
apt-get install libcurl4-openssl-dev
apt-get install libxml2-dev
apt-get install mime-support 

Next, let’s build the latest version of FUSE just to be safe. Download the latest tar.gz from Sourceforge: http://sourceforge.net/projects/fuse/files/fuse-2.X/. In my case, this direct link worked for my wget call:

wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.7/fuse-2.8.7.tar.gz?ts=1332512245&use_mirror=tenet

Extract the archive, compile and install:

tar xvzf fuse-2.8.7.tar.gz
cd fuse-2.8.7/
./configure
make
sudo make install

Now that we’re ready, grab the latest version of s3fs with wget and follow the same procedure we just did with FUSE:

wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
tar xvzf s3fs-1.61.tar.gz
cd s3fs-1.61/
./configure --prefix=/usr
make
sudo make install

Done! You should now be able to run s3fs on your system. To view the help notes:

s3fs -help

Nifty.

Related Link: http://code.google.com/p/s3fs/

How to Install Custom Photoshop Brushes in CS3 CodeUnit 02 DEC 2011

One of the many things that make Photoshop such a powerhouse when it comes to image manipulation is its ability to be extended through things like custom brushes and shapes, generated by users themselves.

Photoshop CS3 custom brushes are packaged as .abr files and to install them is actually pretty simple.

First, download the custom brush .abr file you wish to install (it may be zipped, in which case extract it first). Next, browse to the install path of your CS3 installation. Locate the Presets folder, and in that, the Brushes folder. The most common path under Windows is usually:

C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Brushes

Move your downloaded .abr file into that folder. Note that the file name determines the label under Photoshop, so it is a good idea to give the file a nice descriptive name, like “Polka Dot Brushes.abr” for example.

Now simply restart Photoshop, and you’ll find your new brushes available for use in the system.

How to Install NetBeans 7.0.1 in Ubuntu 11.10 CodeUnit 23 NOV 2011

I quite enjoy using the free to use NetBeans as my PHP editor/IDE of choice, more info on which can be found at the offical website: http://netbeans.org/. This is a quick step through of how to install the latest stable version of NetBeans, i.e. 7.0.1, into your Ubuntu desktop.

Disappointingly, NetBeans isn’t included in the new fancy Ubuntu Software Center, so let’s just grab it as if we were using any old Linux installation. First, browse to the official NetBeans download page at http://netbeans.org/downloads/index.html

Select the IDE language and Platform you need NetBeans for (in this case obviously we need the Linux (x86/x64) version), and then select the initial supported technologies version you require from the download table. In my case I only need the PHP version, so I click on the 41 MB download under the PHP column.

Once the download of the .sh file is complete, open up a terminal and browse to your Downloads folder (In my case, the download was saved as netbeans-7.0.1-ml-php-linux.sh). Now to launch the install process:

sudo bash netbeans-7.0.1-ml-php-linux.sh

After entering in your administrative password, the NetBeans installer dialog will launch. Follow the prompts as you normally would for any other installer, and voilà, you’ll now find the NetBeans 7.0.1 launcher sitting under the Programming menu in the main Applications menu – if you aren’t using the new Unity menu system of course. If you are, then simply search for NetBeans and you’ll be good to go! ;)

How to Install the Zend Framework in Windows Vista for a Web Developer CodeUnit 11 MAR 2011

If you already have a web development environment set up on your machine and don’t necessarily want to run the whole Zend Server package and instead just want to create Zend projects using the Zend Framework, then this simple how to install Zend Framework tutorial should be perfect for you.

Step 1) Grab Zend Framework

Download the latest version of the framework from http://framework.zend.com/download/latest and unzip it to where you want it installed/located on your machine.

Step 2) Set up System PATH Variable

Add the newly extracted Zend Framework package to your system PATH variable: In VISTA right click on the Computer (My Computer) icon and click on the Advanced System Settings link under the tasks menu on the left. At the bottom of the resulting System Properties dialog will be a button that reads Environment Variables. Click this.

Browse through the list of Variables under the System variables section of the Environment Variables dialog. If you already have a PATH variable, click Edit. If you don’t click on New. Variable name should be set to PATH. The value should be set to the folder in which you extracted the framework: e.g. C:ZendFramework-1.11.4bin

Note that while you are here, you may as well check if your PHP bin directory (basically the directory containing php.exe) is listed under the PATH variable. If not, add it. Mulitple locations can be defined under the PATH variable, using semi-colon ‘;’ to delimit them: e.g. C:ZendFramework-1.11.4bin;C:xamppphp

To test that this has been done correctly, open a command prompt (Windows button->Run…->cmd) and type in zf. If it complains about zf not being an executable, then your path setting is wrong. If it works, you’ll get some help information from the zf command.

Step 3) Generate Zend project

Now to generate your Zend project. Still in the command prompt, browse to where you want to create your project: e.g. cd c:vhostszend-projects. Now, enter:

zf create project MyProjectName

where MyProjectName is the name of your Zend project. This should generate a folder structure under c:vhostszend-projectsMyProjectName that will contain all the necessary Zend folder/file structures necessary for your work. For example, you should see folders under the root like application, library and public.

Note that sometimes this process doesn’t properly generate the necessary library contents. To get around this, go to the folder in which you originally extracted the Zend Framework to, locate the library folder in its root and copy its contents to the library folder under your project’s root.

Step 4) Set up Virtual Host

Locate your Apache2 httpd-vhosts.conf file. If it isn’t using a separate file to maintain its list of virtual hosts, then locate its httpd.conf file. In it, you need to add the virtual host information for your new project. Locate the section dealing with virtual hosts and add the following:

<VirtualHost *:80>
DocumentRoot c:/vhosts/zend-projects/MyProjectName/public
ServerName  MyProjectName
<Directory "c:/vhosts/zend-projects/MyProjectName/public/">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Save your .conf file and restart Apache2.

Step 5) Edit Your hosts File

Finally, we just need to edit our Windows host file so that we can work on our project. Locate and open in notepad (PSPad is my favourite) C:windowssystem32driversetchosts. Add the following line and save:

127.0.0.1 MyProjectName

Step 6) Test Installation

And we’re done. If you now hit http://MyProjectName/ from a browser you should be presented with a Zend Welcome splash page. (If you are presented with a failed to open stream error, remember the library contents note I made in step 3.)

Nifty – or should that rather be, Good Luck!? :)

How to Install Subversion (SVN) in Ubuntu CodeUnit 06 JAN 2011

To install subversion (or SVN if you like keeping things short) is pretty simple to achieve in Ubuntu (as with just about everything else).

First, open up a terminal window and enter:

sudo apt-get install subversion

After entering in your password, the system will automatically grab the necessary packages that will need to be upgraded or downloaded and installed, and after a summary screen requesting your explicit go ahead, go about merrily on its business.

Once complete, you will now have the various svn command line calls available to you. (svn help is a great place to start!)

As for actually setting up the SVN, this post might help! :)

Ubuntu: Simple Install for PHPMyAdmin CodeUnit 03 NOV 2010

PHPMyAdmin is a useful web-based management tool for your MySQL server running as part of your LAMP stack. To install this tool in Ubuntu turns out to be pretty simple after all.

Assuming your Apache webserver, MySQL and PHP are all already installed and up and running, open a new terminal, enter:

sudo apt-get install phpmyadmin

Follow the onscreen prompts and the installation should be complete in no time at all.

The next step is crucial if you installed the phpmyadmin to its default folder in Ubuntu – which unfortunately is not the same as the web folder! One way to fix this is to simply create a symlink like so:

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

This basically corrects the server into serving up the phpmyadmin pages when hitting the default URL http://localhost/phpmyadmin.

And that’s that, simple as pie!

(Ubuntu 10.10 Maverick Meerkat)

How to Install Webmin on Ubuntu 10.04 Lucid Lynx Server CodeUnit 30 AUG 2010

Installing Webmin in Ubuntu is not exactly a quick win thanks to Webmin’s reliance on a deprecated PERL package (an MD5 wrapper to be exact) that Ubuntu and the like just don’t want to include any more, but never fear, following these steps one by one will have you up and running in absolutely no time!

Install the dependencies:

sudo aptitude -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions libapt-pkg-perl

While most of the packages above will all successfully install, you should get an error message that reads something like this:

Couldn’t find any package whose name or description matched “libmd5-perl”

The next step is then obviously to manually grab it and install it.

Run the following:

wget http://ftp.debian.org/pool/main/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb

followed by

sudo dpkg -i libmd5-perl_2.03-1_all.deb

All right, all set. Go to webmin’s home page and grab the download link to the latest version. In my case, this was thrown up:

wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1

Download it and once done, run the final install:

sudo dpkg -i webmin_1.510-2_all.deb

All done. You should now be able to run the webmin web manager from another PC by hitting http://10.0.0.6:10000/ (using your server’s IP address of course!)

Nifty.

How to Install Foxit PDF Reader 1.1 in Ubuntu Karmic Koala CodeUnit 12 MAY 2010

Foxit Reader 1.1 is an incredible little PDF viewer that features some powerful tools while remaining pretty damn quick. It’s free for non-commercial usage and features most of the viewing tools you’ve come to expect from the big daddy of PDF readers, namely Adobe Acrobat. Among these tools included in Foxit is the standard zoom functionality, full document navigation, bookmarks, thumbnails, text selection, snapshot image grabbing as well as the old faithful, full screen document viewing.

The download .deb package weighs in at a handy 3.6 MB and when running, has a claimed memory consumption that remains less than 15 MB. It launches instantly when called and can load a PDF document in under 3 seconds.

And installing it in Ubuntu is an absolute breeze.

First, download the .deb package of Foxit’s official download page at http://www.foxitsoftware.com/pdf/desklinux/download.html. Once it is downloaded to the appropriate folder on your system, install it using the dpkg Debian package manager. To do this run a terminal in administrator mode and call:

sudo dpkg -i FoxitReader_1.1.0_i386.deb

And that’s it really. Foxit will be installed on your system and you’ll see the menu shortcut being added under the Office tab on the Applications main menu. It is also added as a right-click context menu selection for PDF files. Couldn’t be simpler and works like an absolute charm! :)

(Oh, and finally, for the future when you might find something even better, you can uninstall it in the usual way using: dpkg -r FoxitReader)

Related Link: http://www.foxitsoftware.com/pdf/desklinux/index.html