Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, April 7, 2015

How to install VitrualBox Guest Addition (VBoxGuestAdditions.iso) on Linux (Ubuntu)?

Honestly, I have to say that I never ever spent this long trying to install a simple ISO file before. I went through so many self-help forums and websites still couldn't get the Guest Addition installed, but there is obviously a simple solution, which I overlooked. The reason I wanted to install guest addition to my VirtualBox was because my virtual machine wouldn't go fullscreen but acted like it was only 1078x768 or something.

Here are the steps in installing Virtual guest addition (VBoxGuestAdditions.iso) on Linux (Ubuntu). I am using VirtualBox 4.3.10 for Linux.

  1. Before you begin, you must have already created a virtual machine using an operating system of your choice as shown below. I installed Linux Elementary OS.
    Snapshot of Virtual Machine
    Snapshot of Virtual Machine
  2. Start your virtual machine(VM) by clicking on the start button. Once it is up and running click on the Devices pull down menu on your VM. In the bottom of that pull down menu, you will see an option "Insert Guest Additions CD Image..." Click on it.                                                                 
  3. At this point, VM will either tell you that you don't have Guest Additions Image and if you want to download it now. Just go ahead and click on the download button, but if you still have problem, then you need to download Guest Additions ISO image yourself. Then, follow this step. If everything went well you probably won't see anything or even a confirmation saying that Guest Additions is installed. What that means is that it didn't install guest addition yet but you have only mounted the ISO file. Now, if you were like me who ran into "Can't mount Guest Additions Image," then you probably already have Guest Addition Image opened or linked to your VM. Then, you should move on to the next step, but make sure VBoxGuestAdditions.iso is linked to your VM by going to VM->Settings->Storage->Store Tree Listbox. Another way to verify that you have successfully mounted your Guest Additions ISO file to your virtual machine is by opening the VM folder and file explorer like dolphin. Once it is opened, you should see VBoxGuestAdditions.iso listed on the left hand side. Don't close the dolphin file and folder explorer yet. Leave it open for you will be using it in the next step.
  4. Now, click on the VBoxGuestAdditions.iso mounted image listed in the left-hand side in the Dolphin files and folders explorer in your VM. When you do that, on the right-hand side Dolphin will display all the files and folders within VBoxGuestAdditions.iso. You will see bunch of .exe files and linux related files. If you are like me running Linux on your VM, then you should look for VBoxLinuxAdditions.run in the list.
  5. Now, VBoxLinuxAdditions.run is the file you need to run to install Guest Additions ISO image for your VM. To run the file, first you need to find its absolute path to the file. So, right click on the file and click on properties. Just copy the direct path shown on that popup window. Then, open a terminal window. There type in the following after the prompt sudo ./your-direct-path-to-the-file/VBoxLinuxAdditions.run. Then, hit enter. At this point, it will ask you to enter the password. After that, it will run through the installation.
  6. After installing VBoxGuestAdditions.iso, you will need to shutdown and restart your VM for Guest Additions to be applied to your VM. That's all. Now you should see your VM fullscreen.

Sunday, December 2, 2012

How to clear recent documents in Fedora 15 or 16?

Fedora Operating System
Fedora Operating System

Linux/Unix is great. It gives us freedom to enjoy all that is free. Yes, but with such freedom there can be headaches and complexities. Like, for instance, simple task such as clearing your recent documents or websites that you visited can be a taunting task on Fedora. However, it is not. I will show you how in this post, "How to clear recent documents in Fedora 15 or 16?"

First, if you are like me who sometimes tend to visit websites or watched "Girls Gone Wild" videos not approved by your wife on your computer, then obviously you wouldn't want anyone to find out especially your nosy wife (LOL).

Girls gone Wild
Girls gone Wild
Because Fedora saves all that you viewed and websites you visited for quick access incase you want to view them again, it would be very easy for others as well to locate these "Recent Items or files." To clear them out, follow the instructions below.

To clear recently visited websites:
Like most of us, if you are using FireFox for surfing the net, then it already has options to prevent it from storing websites you visited in its cache.
  1. Open FireFox program
  2. Go to the menu Edit->Preferences->Privacy Tab
  3. On that tab page, you will see History with pull down option. Click on it and select "Never remember history."
  4. Then, you will also see a link, "Clear all current history." Click on it and a small window will open.
  5. At the very top of that window, you will see a "Time Range to clear:" pull down option. Select "Everything" and click "Clear Now" button in the bottom. Once it completes, it will close and take you back to the previous window, "Privacy tab."
  6. On the Privacy tab, you will also see "Location bar (When using location bar, suggest):" with pull down options. Set it to "Nothing."
  7. Now, Firefox also comes with one more options that you may like. FireFox has "Start Private Browsing" option under Tools menu. Once you set it, nothing will be saved in its cache.
  8. Now you are done.
Now, no matter what you do on your firefox browser, nothing will be saved or shown on the location bar or anywhere revealing your past surfing history.


To clear your recent files, documents or items:
You can do this one of two ways - manually or automatically.

Manually:
  1. Open your terminal program and execute the following command as you see it below.
    1.  rm ~/.local/share/recently-used.xbel
  2. Once again on your terminal program, execute the following command as you see it below.
    1.   mkdir ~/.local/share/recently-used.xbel
  3.  Then, you are done.

Automatically:
To be able to do the same automatically at certain time interval, you are going to need a program. In this case, the program I use to run tasks on Fedora is called Genome-Schedule. Genome-Schedule lets you execute commands and/or run programs at selected time interval, which can come in handy for situation like this.

Genome-Schedule
Genome-Schedule


First, you need to install Genome-Schedule if you don't have it already. To install, run the following command on your terminal - sudo yum install gnome-schedule.

After it installs, you need to create a script using the above mentioned commands. 
  1. Open gedit and enter these commands one per line.
    1. rm ~/.local/share/recently-used.xbel
    2. mkdir ~/.local/share/recently-used.xbel
  2. Give it whatever name you want and save it as a script file by adding .sh as its extension. sh extension means that it is a script file.
  3. Then, open your Genome-Schedule and create a new task to run by clicking on the new button.
  4. A window will popup asking you to provide information on your task. Enter them as follows.
    1. Task Name: Whatever you want
    2. Task Command: sh YOUR_DIRECT_PATH_TO_THE_SCRIPT_FILE+YOUR SCRIPT FILE
    3. Next, select Basic for Time and Date to run. Then from the pull down options, select "Every hours."
    4. Then, click on add button in the bottom of that window and you are done.
  5. Close the main Genome-Schedule window. From now on, your script will be run once an hour cleaning your recent files or documents on your computer
That's it. Now, you can rest assured that no one is going to snoop around 
and find out what naughty things you've been doing on your Fedora system or computer. Enjoy browsing or viewing in comfort. :)

Saturday, November 17, 2012

No Sound Fedora 16 or 17 with Geforce NVidia Video Card

GeForce Nvidia Video Card with HDMI output
GeForce Nvidia Video Card with HDMI output
One of the things I've noticed since I built my own home theater personal computer (HTPC) is that there are a lot of people who have a great genuine interest in helping others with electronic (hardware or software) issues. The reason we take the time to do that is because it makes us look more smart and intelligent and if you do exactly that on the Internet, you are showcasing your mental power to the world that you are for lack of better term, "Smart." So, what we have a lot of on the Internet today is a lot of "noises" about how to fix this or that or how they were able to work around an issue all in the hope of helping others or for other reasons. Sometimes there are a lot of "noises" about nothing than real information, which can hinder someone's progress in whatever they are doing. It took me months, before I found the information on the Internet I really needed to solve my computer problem. However, I am glad to know that people care about sharing information whether real or something about nothing. In this post, "How to enable sound on HDMI port on Fedora 16?," I hope to provide a real information all in the hope that it will help someone somewhere on this planet.

Since I built my HTPC, I have been running GeeXbox OS, Linux Media Center. It allowed me to play videos on the Internet and watch my favorite movies and TV Shows. Setting up Geexbox was very easy and it worked the first time just the way I wanted it - being able to watch my shows and program all through my video cards' output port HDMI - video and sound. However, I felt GeeXbox was somewhat limited in that you can only watch whatever is available through their Video Add-Ons only and they only had handful of good video add-on. I realized the Internet has to be much bigger than that. So, I decided it is time to test drive a different Linux Operating system or distrobution rather than just media center.

Having used Fedora OS for such a long time on my desktop, I felt I will give it a try first on my HTPC and see if it was any better. So, I downloaded their Fedora 16, latest stable distrobution. Even though Fedora 17 is out, it has its own issues which I think is currently being resolved.

My Fedora 16 OS test went well. I was able to install it successfully on my HTPC and use it like any other operating system, until I tested my hardware - one being High Definition Multimedia Interface (HDMI) output on my video card. Although it was able to send video to my LCD TV, there was no sound of any kind that came through my TV speakers and I know HDMI output is capable of sending video and audio on the same output. So, I spend many days and nights reading, surfing the net for information and trying what people suggested online, but I still couldn't make it work or figure out why I simply can't tell Fedora 16 to send the audio signal to my video card HDMI output port, but I was able to gather information from several websites on "how to enable sound on video card HDMI output?" Finally, after all this time of banging my head against the wall and pulling my hair, I was able to make it work. Hopefully, it will work for you as well.

Here are the steps on "How to enable sound on video card HDMI output on Fedora 16?"

  1. Reboot your system, access your BIOS setting and under audio configuration disable all the audio devices on your motherboard. You really don't have to do this if you don't need to. I did it because it made it easier for me. If you do this step, your other sound devices may not work.
  2. Open your terminal program and execute the following command below. This command will update your whole Fedora system with any available updates. It is always a good idea to be up-to-date before you troubleshoot your system. This may take 5 to 10 minutes to complete.
    1. su yum update
  3. Once completed with the update, reboot your system and execute the following command below on your terminal.
    1. su gedit /etc/default/grub
  4. Your grub file should open up with text editor. Add the following line below in the grub file at the end of the kernel line and save it.
    1. rdblacklist=nouveau vga=0×318
  5. Run the following command just as you see it below on your terminal. Just copy it and paste it into your terminal and run. This will go out and look for the latest binary driver for your Geforce Nvidia Video Card. The reason you need the latest driver for your card is that the generic "nouveau free Xorg" driver that comes with your Fedora OS does not support HDMI output fully at all.
    1. su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm 
  6. After downloading the binary driver, once again you have to update your system as you did before by executing the following command on your terminal as you see it below. This time it shouldn't take no more than a minute or two.
    1. su yum update
  7. For me, the above step is all I need to do to install the Nvidia propitiatory driver. However, I have found out that for some people, you actually have to install a specific driver based on your system. If so do the following.
    1.  For 64bit Users: “su yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64"
      A.) For 32bit Users: “su yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686
      B.) For 32bit Users using the PAE kernel: “su yum install kmod-nvidia-PAE.i686 xorg-x11-drv-nvidia-libs.i686
  8. Once completed, you probably should reboot your system and then continue on to step 9.
  9. Then, execute "aplay -l" without the quotes on your terminal and it will give you a list of audio devices available. Make a note of the card number and device number you want to use from the list it displays.
  10. Run the following command as you see it below on your terminal. It will open a file with a lots of information in it including audio driver info.
    1. su gedit /etc/pulse/default.pa
  11. In the default.pa file you just opened, find a section that deals with audio driver. As the last line in the audio section, add the following line as you see it below but with one exception. You will have to replace 1 with your card number and 7 with your device number as you took note from the step 9. Then, save the file and close it.
    1. load-module module-alsa-sink device=hw:1,7
  12. Now, go to your sound settings in your Fedora system and select the audio device you want to use. Plus, you may also want to make sure that everything is enabled and nothing is muted on your alsamixer.
  13. Now, you are done! Just reboot your system.
 *Note: If this doesn’t seem to work for you, in step 4, instead of “rdblacklist=nouveau”, try “nouveau.modeset=0″

These steps worked for me right away. Thanks to everyone who posted self-help information on this perticular problem.

If you are still having problem and can't figure out what is going on or simply want to ask me question, then drop me a line at godblessyouu@gmail.com.

UPDATE: This issue in Fedora 16 and/or 17 is fixed in Fedora 19 the latest distribution. However, I found out that once you make the move from Fedora 16 or 17 to 19, you will no longer be able to do the above steps to get your audio working if you want to go back to Fedora 17 or 16. I tried that I couldn't get the audio to work at all. I believe, that's because drivers and kernels or what not in your repository has been updated for Fedora 19. Good Luck.

Thank you for visiting my blog.

    Monday, June 25, 2012

    3 Reasons Linux Is Preferred for Control Systems

     
     
     
    Inductive Automation
     
    Linux has long been on the “wishlist" for control systems. Until now, most systems have been locked-in to the Windows operating system due to reliance on classic OPC—a ubiquitous communication standard based on Microsoft’s Distributed Component Object Model (DCOM). The name of the game is changing, however, with the arrival of the next-generation OPC standard, the OPC Unified Architecture (OPC-UA). The new standard was designed for cross-platform compatibility, which makes room for Linux to gain popularity in the automated control industry.
     
    Jonathan Gross, vice president of Pemeco, a 32-year-old IT consulting firm, explained why Linux will be a big player as the industry moves ahead. “The stars are aligned for Linux-powered servers to gain significant market-share in industrial automation environments,” Gross said. “Currently, security, stability and reliability make Linux the operating system of choice to support many web-server applications. With the increasing tendency to develop SCADA and control systems in web-based environments, it only makes sense that end-users will strongly consider Linux-based operating platforms. As icing-on-the-cake, Linux generally has a much lower total cost of ownership than Windows.”
     
    Gross is not alone in his analysis. Others in the industry, such as Paresh Dalwalla, are also predicting a growing trend toward Linux. Dalwalla is president of OpteBiz Inc., which focuses on providing real-time operational intelligence solutions to control system users in both the United States and India.
     
    Dalwalla’s explanation closely mirrors that of Gross. “End users are looking for improved security, stability, and reduced total cost of ownership,” Dalwalla said. “More and more end users will see the benefits once they cross the learning curve of an open source operating system. This change will require some time and commitment, but it will be well worth the effort.”
     
    Let’s look at why security, stability, and cost top the list of reasons why Linux is a great choice for control systems.
     
    Reason #1: Security
    If a computer system's integrity is compromised by a virus or a malicious attacker exploiting a security vulnerability, it can cause downtime and equipment damage. Just this week, Managing Automation magazine published a story regarding a virus that attacks the Siemens’ SIMATIC WinCC and PCS7 software through a vulnerability in Windows. The article also states that these types of attacks for process control systems have been on the rise during the past few years. (Editor's note: Update from Siemens on Virus affecting Simatic WinCC SCADA systems)
     
    Until recently, companies were tied to Windows as the base for their control system—and they were more likely to be a victim of system hacking than if they were using Linux.
     
    “Compared to Linux, Windows is a bigger attack target,” Gross said. “On average, Windows operating systems are roughly twice as susceptible to hacks and cyber-attacks.  Also, an attack event on a Windows operating system has the potential to cause more widespread damage than a similar attack on a Linux system.”
     
    Using Linux means less vulnerability, less downtime, and fewer headaches for companies.
     
    Linux is widely considered to crash less than Windows. It’s also easier to update the system without having to reset the system, as is needed in a Windows environment. This means that systems have more uptime and increased productivity levels.
     
    “Operating system or server downtime introduces risks associated with a temporary inability to monitor and control the systems,” explains Gross. "Though today’s Windows systems are much more stable than they have historically been, they still experience more downtime than Linux systems. One reason for downtime is that Windows systems need to be rebooted to install updates. In contrast, Linux systems can generally be updated without a hardware reset.”
     
    Reason #3: Less Cost
    Last but definitely not least is the fact that Linux is more cost effective in the long run. Not only is it available free of cost because it’s open source, but it’s also easier to maintain by IT staff—which means substantial savings in ongoing administrative costs.
     
    “The open source market has expanded tremendously in recent times due to the backing of large companies such as Sun and Google,” Dalwalla said. “Linux is an open source operating system that is considered more stable and comes with very little capital costs. There are ongoing support costs that are to be considered for both options, but Linux can definitely help keep it down.”
     
    Bottom line, companies don’t have to spend money on licenses for Windows servers, nor spend as much time maintaining the system.
     
    OPC-UA and Linux in Action
    Now that OPC-UA is available, the next step to take is to find products that use the new standard. Integrator Kyle Chase described his story. Chase is a systems integration specialist for Surefire SCADA Inc., located in Canada, who has always been a fan of Linux. Naturally, he was very excited about OPC-UA and being able to build systems on Linux.
     
    Earlier this year, Chase found Ignition by Inductive Automation, which included an OPC-UA server, making the entire software system Linux compatible. Having used Inductive Automation software for the past three years with much success, he was confident in trying out the company’s newest release.
     
    He gave an example of a project he implemented for a customer using Ignition. The customer’s distillation refinery has a single controller with 14 racks of remote IO. The facility needed both fast update performance, as well as reliability. Previous solutions from industry-leaders couldn’t deliver both. For example, one product gave them the reliability, but it could only give updates once every eight seconds—but the customer needed updates every second. Another product they tried provided the performance needed, but it would shut down every day.
     
    Enter Ignition, OPC-UA, and access to Linux. Chase began testing to see how well it performed, and after going through dry runs, he has been very pleased.
     
    “The performance is absolutely crazy!” Chase said. “Ignition is actively subscribed to 30,000 tags with updates every second. We can finally monitor all of our tags, at the speed we want with the reliability we need.”
     
    Chase is sold on OPC-UA. “To me, the move to a true cross platform environment is important,” he stated. “This holds many advantages, especially when it comes to system flexibility and security. It helps keep costs down as well. Inductive Automation is the first to provide the software required to do this.”

    Saturday, November 26, 2011

    Linux Mint 12 Released Today 8

    Linux Mint 12
    An anonymous reader writes "Linux Mint 12 was released today. It includes the new 'MGSE' (Mint Gnome Shell Extensions), a desktop layer on top of Gnome 3 that makes it possible for you to use Gnome 3 in a traditional way. MGSE's Gnome-2-Like experience includes features such as the bottom panel, the application menu, the window list, a task-centric desktop and visible system tray icons. MGSE is a 180-degree turn from the desktop experience the Gnome Team is developing with Gnome-Shell. At the heart of the Gnome-Shell is a feature called 'the Overview': 'The Shell is designed in order to minimize distraction and interruption and to enable users to focus on the task at hand. A persistent window list or dock would interfere with this goal, serving as a constant temptation to switch focus. The separation of window switching functionality into the overview means that an effective solution to switching is provided when it is desired by the user, but that it is hidden from view when it is not necessary.' The popularity of Mint 12 with MGSE may be an excellent barometer as to whether users prefer a task-centric or application-centric desktop."

    Friday, October 7, 2011

    Ubuntu 11.10 Will Feature ARM Support, Ships Soon

    A new version of Canonical's Ubuntu Linux distribution will be released next week and feature support for ARM architecture.
    Ubuntu
    ZoomThis week during the OpenStack conference in Boston, Canonical CEO Jane Silber revealed several new features that will be included in the next version of the company's Ubuntu Linux distribution, Ubuntu 11.10. She also announced that both the desktop and the server editions will be released next Thursday, October 13.

    According to Silber, Ubuntu 11.10 will arrive with support for ARM architecture, a new cloud service orchestration engine called JuJu, and the latest OpenStack cloud software called Diablo. But Silber also warned a captive audience during her presentation that the ARM version of Ubuntu is not completely polished.

    "I know none of you are building your cloud on ARM architecture yet, but its a very promising architecture, and we're very proud to be working with the leaders in that part of the ecosystem to bring that new capability to the open source world first. It's a significant move," she said.

    Silber also explained JuJu during her presentation: open source software developed by Canonical that can be used to automate the start-up and shutting down of cloud services running on OpenStack. She said that JuJu allows administrators to package all the routine actions that need to be taken to spin up a job on the machine.
    "Think of services like [software] packages," Silber said. "On Ubuntu, ask for a package and it is there, You remove it and its gone. Services are the same way. When you ask for a service it is there, when you remove it, it is gone."

    PC Advisor reports that Canonical also showcased on the show floor a server it hand-assembled that ran on an ARM processor.