How to Install Firefox in Linux using Apt-Get
Installing Firefox using the Apt-Get Command
Hey all! Today we are going to cover another Linux article for beginners on how to install Firefox in Linux using the “Apt-Get” command.
When I first installed Kubuntu on my laptop I was using Konqueror to browse the net. It is a nice browser but it was giving me some trouble displaying certain menus in WordPress and on sites like Google video, etc.
I decided the best thing to do would be to install Firefox. I was familiar with Firefox from using it in Windows and I knew there was a version of Firefox for Linux. I checked on the Firefox website and there was a Linux version I could download but I didn’t know what to do with the file once I had downloaded it. We will cover that type of installation in another article.
What I ended up doing was using the “Apt-Get” command to install Firefox. I am not a big command line guy but this was actually much easier than I expected it to be.
Apt is “a Debian tool used to manage packages. When a user installs a package on a system, it also searches for and then installs or upgrades all the necessary dependant packages to make the package work. The actual command is apt-get.” -webopedia.com
This is great to know because it is saying that when you use the Apt-Get command it will also download any other files that are needed for the software to run properly.
So now that we understand what Apt-Get is and why it is useful let’s install Firefox.
The first thing you need to do is open a console window. This can be done by clicking on your K-menu:
K-Menu > System > Konsole – Terminal Program
Once the console opens you will need to type the folowing command:
sudo Apt-Get install Firefox
Once you have typed this hit “Enter” and Konsole will ask for your root password. Type in your password and hit “Enter”
You should now see some system messages in the Konsole window as the system downloads and installs Firefox onto your system. Once it is complete it will bring you back to the command line in Konsole.
Go ahead and close your Konsole window, and now you should be able to open Firefox on your system. Go to:
K-Menu > Internet > Firefox Web Browser
Congratulations. You just installed a program using the Apt-Get command.
As you can see this is a very useful command because of how easily it allows you to install applications on your system.
One thing I ran into when writing this article was that I already had Firefox installed. When I typed in:
sudo Apt-Get install Firefox
I got the error message:
sudo: Apt-Get: command not found
If you get this error message try using the following command:
sudo /usr/bin/apt-get install Firefox
I am not sure why I got the error because it originally allowed me to install Firefox using the standard Apt-Get command without the /usr/bin/.
This might be because you already have the program installed which I did in this case. If you would like to remove the program you can always type:
sudo /usr/bin/apt-get remove Firefox
This will uninstall the program you would like to remove from your system. This covers the basics of installing and removing programs using the Apt-Get command.
In future articles I will cover Apt-Get in more detail but for now this should give you enough to get started with it. If you would like to know more about Apt-Get and its usage type the following command into the Konsole:
man Apt-Get
I hope this article helped with the basics of using the Apt-Get command. In the case of the “Apt-Get: command not found” error, try the “/usr/bin/apt-get” command I listed above. This worked for me and resolved the error message.
Thanks for checking out Pseudorant. We appreciate the support!
How to Install Apache, MySQL, and PHP on your Linux Box
Putting the AMP in your LAMP server
Hello and welcome! This is my first article / guide, so let’s get right into it.
This is intended as a guide for web developers who are new to Linux (namely Kubuntu) and wish to setup a local LAMP server on their machine. For those of you who don’t know, LAMP stands for Linux, Apache, MySQL, and Perl / Python / PHP, although in this case the ‘P’ is for PHP only. When all four of these are installed on a machine, it is a full-blown web-server capable of running complex web applications.
In my case, I have installed Kubuntu 8.04 (Hardy Heron) on my machine using the standard desktop installation, which does not come with Apache, MySQL, or PHP. To be specific, we will be using the following applications:
* Apache2
* MySQL 5
* PHP 5
All of these applications are available through the Adept Package Manager,which is a fast and convenient way to install and uninstall applications in Debian-based Linux systems. Click on the link above for a guide on how this works.
For simplicity, I will assume you know how to operate Adept and have installed at least one package before. Click on the K-Menu, go to ‘System‘, and select ‘Adept Manager - Manage Packages‘ from the list. When prompted, enter your root password and you will see Adept’s package manager interface.
Now, in the search bar, type ‘apache‘. After a short moment, you should see a list of packages. The very first one should be ‘apache2‘. Click on the arrow next to it and select ‘Request Install‘. Now, type into the search bar ‘mysql‘ and this time you will need to scroll down a ways to find the package you are looking for: ‘mysql-server‘. Click on the arrow and select ‘Request Install‘ again. I would also recommend selecting the package ‘mysql-admin‘ for a convenient GUI for managing MySQL server, but that is purely optional. Finally, type ‘php‘ into the search bar and scroll a ways down to find ‘php5‘. Once again, click the arrow and choose ‘Request Install‘.
After selecting these 3-4 packages (depending on whether or not you installed the MySQL Admin GUI), select ‘Apply Changes‘ at the top of Adept to install the packages. This may take a while, so now is an excellent time to take a break and get a drink.
After the installation is complete there is a couple of very important steps to take in order to save yourself a lot of frustration. The first and foremost, is to clear your browser cache! I’m not entirely sure why this is so important, but trust me, it is. If you are running Mozilla Firefox, go to the ‘Tools‘ menu, select ‘Clear Private Data‘, and uncheck everything except for the ‘cache‘ checkbox. You can clear out other information as well, but make sure cache is selected.
The other important step to take is to make sure that php files are parsing correctly. Go to your System Menu (the one next to the K Menu) and select anything, for example, ‘Home‘. The root folder is not in this menu, so you will have to navigate to the right folder anyways. For simplicity, select the ‘Home‘ folder from this menu.
On the left-hand side you should have a column labeled Bookmarks, with an option for Root. Select that, then click on the folder for ‘etc‘. Right-click on the folder named ‘apache2‘ and select from the ‘Action’ menu ‘Open as root‘. Enter your password to continue.
In this folder, select the folder ‘mods-available‘ and look for the file named ‘php5.conf‘. Right-click on this file and select ‘Edit as root‘ and make sure the second line says something like
‘ AddType application/x-httpd-php .htm .html .php .phtml .php3‘
In my case, all I had to do here was add ‘.htm .html ‘ before the ‘.php’ section. This is so that if you have PHP code inside an htm or html file, it will be parsed instead of showing the raw code.
Save your changes, and depending on which editor you used, you might want to delete the temporary ‘~php5.conf‘ file that it creates as a backup. It should not hurt anything to leave it there, but I like to delete the extra backup files to prevent clutter.
In any case, make sure to restart your computer at this point to make sure that the apache web server picks up the configuration changes. You can probably accomplish the same effect by just restarting the apache service, however I haven’t done that yet and restarting the system seemed like a simpler approach.
Alright, now we’re getting to the fun part! Open your favorite web browser and type in the address bar ‘http://localhost‘ to see if apache is running properly. If it is not, you can blame me and probably find some help on the official Ubuntu/Kubuntu forums, however if it is running, it should show the words ‘It Works!‘ in your web browser. We’re almost done now…
All web files will be hosted from ‘/var/www‘. To make sure php is working properly, we will need to first navigate to that folder. Select ‘System Menu‘ -> ‘Home‘, and then select ‘Root‘ from the bookmarks section on the left. Click on the ‘var‘ folder to open it and then right click on ‘www‘ and choose ‘Action‘ -> ‘Open as root‘.
In here, right-click on ‘index.html‘ and choose ‘Action‘ -> ‘Edit as root‘. Add this line right before the closing tag for the body (body tag > added line of code | below):
![]()
![]()
Save your changes, and refresh your browser window. You may want to clear your browser cache again, just to be sure. You should see ‘It Works!‘ followed by a neatly formatted table showing all of the current settings for PHP. If it did not, right-click on the page from your browser and click ‘view source‘ or whatever the option is called for your browser to see the HTML code directly.
If the output from view source shows the “?PHP” part of the code, then something is wrong. PHP code should never be sent to the browser without being parsed. If you haven’t already, try restarting your PC again, otherwise you are on your own (along with the thousands of others with similar problems). Again, I recommend checking the official forums for Ubuntu / Kubuntu.
Hopefully, all went well and you saw the neatly formatted PHP text. To make sure that MySQL is working correctly, I will assume you have the GUI installed. I said it was optional, and it is, but it’s the easiest way I know of for verifying that everything installed correctly. Go to the K-Menu, select the ‘Development‘ menu and choose ‘MySQL Administrator‘.
For the server hostname, choose ‘localhost‘. The login name will be ‘root‘, and the password is the root password for your machine. If you can connect OK, then all is well. If not, fall back on the official forums or google to find a solution, but I suspect that this will work right off the bat.
That’s all I have for this guide for now. There is a mountain of information for all three applications mentioned here, and this guide barely scrapes the surface of any of them. Expect some guides in the future for configuring Apache, MySQL, or PHP.
How to Install Programs in Kubuntu Linux
Installing Applications on Kubuntu Linux – The “Easy” Way!
Hey all. Today’s guide is going to cover how to install programs in Kubuntu Linux. This is very important for someone who is new to the Linux operating system because it allows you to install the programs you need to work on your computer.
As I have mentioned before I am gearing this series of articles towards people who are new to Linux and need guides on how to perform basic functions. There are a lot of guides out there that cover the advanced features of Linux but not many that will walk people through the basic things they need to know to get started.
(This guide pertains to using Adept Manager in KDE on Kubuntu, this information will not apply to all versions of Linux)
For this guide we are going to be working with a program called “Adept Manager”. Now if you are new to Linux (like me) and you are coming over from a Windows System (like me) you are probably used to working with EXE setup packages and the “Add / Remove Programs” manager in control panel.
Adept Manager is similar to “Add / Remove Programs” in some respects and working with it can have the same feel, although Adept Manager actually gives you much more control over what applications you are installing or removing.
The first thing we need to do is open the program. It can be found by going to the following location:
K Menu > System > Adept Manager – Manage Packages
When you click on this program you will be prompted for your root password. Go ahead and enter your password and the program will open.
Once the program opens you will see a list of available software you can install onto your system. A really nice feature of Adept Manager is that is allows you to search for a program name, so instead of needing to scroll through the list you can use the “Search” feature at the top of the list.
For our example let’s install a program called “GIMP”. Gimp is an image manipulation program similar to Photoshop that allows to create and edit graphical image files on your system. This can be very handy for designing images for websites, editing digital camera pictures and just passing the time when you are bored.
Now let’s type “Gimp” into the search window at the top of Adept Manager. Once you have typed the program name Adept Manager is going to bring back any instance of the keyword in program titles and descriptions.
When Adept Manager is done searching you should see a list of several programs. The GIMP installer should be close to the top of this list of programs.
If you are unsure of what each item is your can check over to the right column where it will give you a description of what you are installing. In this case we are going to select the package that just says “Gimp” and you can see by reading the description that this is “The GNU Image Manipulation Program”
Once you click on the package name you will see two buttons, “Request Install” and “Details”. To install GIMP you will want to choose the “Request Install” button and then you will notice the information in the “Requested” column change, letting you know this program is going to be installed once you apply the changes.
Now would also be a good time to look at other packages and their descriptions to decide if you need install anything else that will go along with this program. For the sake of our example you should be okay by just selecting Gimp.
Once you have your programs selected you will want to go to the top of Adept Manager and choose the “Apply Changes” button. (with the green check mark)
When you click on the “Apply Changes” button you will see Adept Manager connect to the internet and download the program/s you requested. Once the files have downloaded Adept Manager will proceed to install them on your system. If you would like to see exactly what it is doing you can click on the “Details” button for more information on what is going on in the background.
Once the files have been download and installed Adept Manager will take you back to the programs screen, and you should now see the status of the program you selected set to “Installed” (displayed in green). Anything that is not on your system will reflect the status “Not Installed” (displayed in blue)
Once Adept Manager has finished installing the program you can go to your K Menu and check out the new software you installed. It will usually be organized under the appropriate menu for the type of application you choose. In this case since we chose a graphics manipulation program we would want to check under “Graphics”
K Menu > Graphics > GIMP
Now you can see that when you click on Gimp, the application opens and you can now use your new software.
Congratulations! You now know how to install programs in Linux (Kubuntu). There are actually other ways to install program in Linux by downloading Linux based versions of programs, or using command line methods but for the sake of simplicity this is the method we are going to cover today.
Now let’s say you accidentally installed a program you don’t need? Not a problem. Go back into Adept Manager, and removing the program can be done is much the same way as installing an application.
In Adept Manager do a search for the name of the program you want to remove and you should see it come up on the list of applications. You can verify if the program is actually installed on your system or not by checking the “Status” column. If the status is “Installed” you know that you have found the correct program.
Now click on the package name as if you were going to install it and you should see that one of the buttons now says “Request Removal” and you will see the status of the “Request” column change to “Remove”.
Once this has been done click the “Apply Changes” button at the top of Adept Manager. Now once again you will see a prompt that looks very similar to the installation procedure except this time once it finishes, the unwanted software should be removed from your system
Grats! You should now have a much better understanding of the main purpose of Adept Manager and how to install and remove programs from your Kubuntu, Linux system.
In this guide we have really only covered the basic functions within Adept Manager so feel free to explore and check out other options and menus that it offers you. The best way to learn about something is by exploring it, and since the purpose of these guides is about learning Linux this will provide you the most benefit.
As always thanks for checking out Pseudorant and please recommend us to your friends! We appreciate the support and having readers motivates us to strive to improve the site for everyone. Thanks again!
How to Install Windows on Linux
Setting up a Virtual Machine in Kubuntu
Todays guide is going to cover how to setup a Virtual Machine on Kubuntu so you can install Windows or any other operating system you prefer onto Linux.
The reason this may be useful is because sometimes new users to Linux can run into compatibility issues with certain programs, or may not be able to find a program that does what they need it to do.
A good example for me is that I have been a designer on Windows for so long I NEED to use Photoshop. GIMP is a nice program but I have 10+ years of training in Photoshop and I tend to use it on a daily basis.
This is a good example of where having a virtual machine is useful. Because I am new to Linux myself I can’t tell you if there is a version of Photoshop for Linux or not. But because I have already paid for my license I am going to continue to use this software for as long as possible to get my moneys worth.
So without further delay let’s discuss how to install Windows onto Kubuntu by creating a Virtual Machine.
…
The first thing you need to do is install “Virtualbox”. You can do this using “Adept Manager”.
K Menu > System > Adept Manager
Once you have Adept Manager open do a search for “Virtualbox”.
Once the program returns search results find:
“Virtualbox-OSE” and click on the program title.
This will open a drop down menu that has a button that says “Request Install”. Press this button. Repeat these steps for:
“Virtualbox-OSE-Modules-2.6.24.16-generic” and…
“Virtualbox-OSE-Modules-generic”
(I believe I needed to install these files in addition to Virtualbox to get the program to work.)
Once you have these three items selected click the “Apply Changes” button at the top of Adept Manager.
You will now see some installation screens while Adept Manager loads the applications onto your system. Adept Manager is an easy way to add and remove programs from Kubuntu.
Once Adept Manager finishes up you need to open Virtualbox. Go to:
K Menu > System > Virtualbox (which should now show up in this menu)
Now we will want to setup our new operating system in Virtualbox.
Click the “New” button in Virtualbox. This will open the new Virtual Machine dialog. Click “Next”.
Now type the name for the new Virtual Machine. I am going to use a name that will describe what we are installing, so I’ll pick “Windows XP”.
You can also select the OS type from a drop down menu below this. Choose your OS from the list.
The next screen will allow you to choose the amount of base memory you would like to assign to the virtual machine. Going with the default will probably be fine. I selected 256mb for Windows XP and it runs great on my old laptop in Virtualbox. (I believe the default was 196mb)
The next screen allows you to setup a virtual hard disk. Since we are setting up our first Virtual Machine we will select “New” which will open another dialog box.
In the “Create New Virtual Disk” wizard click “Next” to begin.
For our “Disk Image Type” let’s go with the “Dynamically Expanding Image” to make a more efficient use of our hard drive space. (Keep in mind I am doing this on a laptop so space in a factor)
Then select an image file name. I am going to name mine “Windows XP” so it matches the virtual machine name. Then select an image size.
Since you will be using the OS to work and test things you probably won’t be installing games or downloading so you shouldn’t need a really large disk size. (Unless you plan to do those things.)
For a Windows installation I would recommend between 4 to 6gb keeping Windows updates and service packs in mind.
Once you have selected a size, click “Next” this will take you to the final screen where you can click “Finish”. You have now setup a virtual hard disk and will be taken back to the previous setup dialog.
Click “Next” and then click “Finish”. You should now see the virtual machine you created appear on the left hand side of the screen.
There is one other thing we need to do before we can install our OS. We need to change account permissions to allow the virtual machine to operate properly.
Go to the “K Menu” > “System Settings” > “User Management” click on the button “Administrator Mode” in the lower right corner. Enter your root password.
Once you have done this double click on your user name and click the middle tab, “Privileges and Groups”. In the new menu you’ll see a menu to the right called “Secondary Group”, scroll all the way to the bottom of this menu.
Look for an option called “vboxusers” and make sure it is check marked, once you have done this click “OK” and close out of User Management.
Now go back to Virtualbox and insert the CD for the OS you are going to install. When you insert the disk Kubuntu may prompt you for what you would like to do. Ignore this and go back to Virtualbox.
Now on the information screen that is displayed on the right you should see some info about your virtual machine state. If you see nothing next to the “CD-Rom” section follow these steps before you start.
Make sure you have your Virtual Machine name highlighted and “right click” to bring up the menu. Select “Settings” from the top of the menu. In the settings window select “CD/DVD-Rom” from the left hand menu.
Under the CD/DVD-Rom select the “Mount CD/DVD Drive” option. You will now see other options become available.
Select “Host CD/DVD Drive”. (You may need to select the correct drive from the drop down menu if you have more than one drive in your system.)
Once you have done this click “OK”. You should now see your drive listed in the Virtual Machine information window.
Now make sure you have your Virtual Machine name highlighted and click the “Start” button at the top of Virtualbox.
You will now see a new window popup and virtual box should start the installation of your new OS. I am sure anyone installing XP onto their Kubuntu system is familiar with how to installation goes so I am not going to outline this part.
…
Congratulations! You have now setup your first Virtual Machine and are running Windows XP on Linux. Keep in mind that your Windows installation is full fledged and can do anything a normal Windows installation on a system can do.
Now that you are familiar with how to setup a virtual machine you can also play around and add other operating systems to your computer as you see fit. This is a really good way to experiment with other operating systems without having to commit to formating your current operating system.
I will post some follow-up articles when I find other cool things you can do with Virtualbox. If anyone has any suggestions or recommendations I would also be glad to see them in the comments.
Thanks again for checking out Pseudorant. Please tell your friends to checkout the site! I appreciate the support.




