FAQforge provides answers for frequently asked questions for the Linux-, MAC and Windows operating systems.

Incorrent Time on Windows/Linux Dual Boot System

Monday, April 22, 2013 - posted by CSch

If you work on a dual boot system you might experience that when you log off from Windows, onto Linux, and to Windows again, the time that is shown in the bottom right corner might be an hour or more off the actual time. This will correct once you refresh it by loading the time from a time server again but will remain an issue for the next logins.
This has not directly to do with daylight savings or an incorrect time zone, but most likely with Linux assuming that the BIOS time is set to UTC while it's set to local time. So it just changes the BIOS clock according to that. Logging in to Windows with the wrong BIOS clock will result in a wrong system time.

This Linux behavior can easily be changed though, so just login to your Linux system and open a command line. First log in as root with your password:

sudo su

Then enter following to open the rcS file (note that I use vi as text editor - you can use any other you like here):

vi /etc/default/rcS

Now look for the line reading UTC = yes and change it to UTC = no. Save the file and try to boot into Windows - if every other time setting is set correct you should get the right time now.

Hard Drive Not Shown on Computer (Windows)

Tuesday, April 16, 2013 - posted by CSch

The absence of a hard drive on your system can have multiple reasons of which I want to discuss the most common here:

New drives

If it's a new hard drive or one that you have just plugged into that specific machine, you might want to check if the cabling is correct and, in case it's an external one, if it has a power switch hidden somewhere on the back.
One other thing with new hard drives is that they are not formatted but have only "unallocated space" on them. This is most likely the case if your new drive is recognized by the BIOS and your device manager but doesn't show up anyway. To check this, have a look at the device manager - you can find it by going to Control Panel > Hardware and Sound > Device Manager:

devicem

In the screenshot above you see my Seagate disk drive displayed. If you're not sure whether what is shown there really is the drive you've plugged in just search the internet for the cryptic name you have in there. If the new missing drive can be found here you most likely only need to format it (do that only to new drives that have no data on them - formatting will cause a complete loss of data on a populated drive). To do that Windows has a tool called Disk Management which you can find in Control Panel > System and Security > Administrative Tools > Create and format hard disk partitions:

diskman2

A new disk has none of those fancy partition blocks with colored stripes yet but plenty of unallocated space, like the one circled in red. This space needs to be formatted into an NTFS partition. Basically you can just right-click it, choose to create a new simple volume and click your way through the setup, you'll create one big partition by doing that. Afterwards the new drive should show up on Computer.
Nearly the same goes for drives or partitions with Linux operating systems or similar which Windows cannot read. These will be displayed in the device and disk management but not on Computer, so if you don't need the old operating system any longer and want to use the drive on Windows, you'll need to format it to NTFS first.

Missing drive letter

Another common source of confusion is a missing drive letter or path on a drive. The drive letter is the letter in front of your drive or partition, for example C:\ on your main drive. Every drive needs one so you can access it and if it's missing for some reason, the drive will not be shown.
The solution to that problem is in Disk Management again, so head there as described above and right-click the drive that's not displayed (you'll most likely notice it by the size). If the drive is already formatted, right-click it and select Change Drive Letter and Paths.... Add a drive letter of your choice that's not already taken and the drive should show up again.

Disabled or offline drives

It can happen that a drive of yours is disabled or offline. You can check in the Device Manager if that is the case. Go there as described above and right-click the drive you want to check. If you have the option to enable it or put it online then try that. If these options fail it might be that the drive is corrupt.

Show empty drives

Windows hides empty drives by default. This usually should not be an issue if your drive is formatted but you can change the setting anyway if you want to. Go to Control Panel > Appearance and Personalization > Folder Options. In the View tab, uncheck the Hide empty drives in the Computer folder box.

Take Ownership of a File or Folder by Command in Windows

Wednesday, April 3, 2013 - posted by CSch

Taking ownership of files in Windows is necessary to edit or delete system or program files that you have no access to by default. There are multiple ways to achieve that goal, like doing everything manually through the Properties menu, applying a registry tweak or, as described here, executing a command in the Command Prompt. Note that taking ownership will not let you edit every system file. Windows has set precautions so that you don't edit any of the most important files which may be helpful in some cases but can be really, really annoying in other.

To start off, you need an elevated command prompt which is simply a command prompt opened as administrator. In Windows 8 you can open that by right-clicking the bottom left corner of the screen and selecting Command Prompt (Admin). In Windows 7 and previous, search the main menu for cmd, right-click it and select Open as administrator.

You need two commands now: one to actually take ownership of the file or folder and one to grant yourself access rights. These are the two commands you will want to use:

For folders, use:

takeown /f folder_name /r /d y
icacls folder_name /grant username_or_usergroup:F /t /q

For files, use:

takeown /f file_name /d y
icacls file_name /grant username_or_usergroup:F /q

The commands basically only differ in a few switches that make the folder procession run recursively. If you want to edit only one folder instead of the whole recursive lot, remove the /r and /t switches from the commands. For more info on the commands, simply enter takeown /? or icacls /? into the command prompt.

If I wanted to take control of my Program Files folder, I'd need to enter the following:

takeown /f "C:\Program Files" /r /d y
icacls "C:\Program Files" /grant christian:F /t /q

Add More Tabs to Firefox Before Scrolling Occurs

Thursday, March 28, 2013 - posted by CSch

The past versions of Firefox brought a feature to it that a great deal of users didn't like because it changed the way tabs are handled in a window. Instead of just showing all tabs at once, Firefox now adds horizontal scrolling to the tab bar in order to prevent the tabs from becoming too small to read its name. That way you can always see what's on your tabs but don't have a complete overview of the whole bar anymore.
In order to help out on that an add-on was created that increases the number of tabs that are visible before the overflow scrolling occurs.
It's called Prevent Tab Overflow and you can find it in the Firefox Add-On database: https://addons.mozilla.org/en-US/firefox/addon/noverflow/

Add it and it will get to work instantly. Have a look at the Add-on preferences (Tools>Add-ons>Extensions>Prevent Tab Overflow>Preferences) to see what you can actually do:

Screenshot at 2013-03-26 10:31:51

While the add-on cannot prevent tab overflow as whole, it can resize the minimum tab width down to 40 pixel (the default in Firefox is 100 pixel). A lot more tabs fit in that way and the scrolling kicks in on a point where it actually makes sense not to shrink the tabs any further.

Delete Windows.old Folders from Previous Windows Installations

Wednesday, March 27, 2013 - posted by CSch

Windows takes a nice precaution for us when it comes to installing a clean Windows system on a hard drive or partition that already has a version of Windows installed: If you forgot to backup files from your old installation but already have the fresh one installed you still have a way of getting what you want:
When installing Windows onto an already existing Windows, most of the old files are stuffed into a folder called windows.old which is placed on your newly formated C:\ drive. That folder contains the most important data from your previous installation, which is the Users folder as well as the Windows and Program Files folders. This way, you have an automatic backup of your files that you can get back to if you forget to backup yourself.

Now there is one downside to this procedure: the folders that are backed up tend to get very large. They can take up several gigabyte of data, depending on how large your folders were. So if you don't actually need that backup, why keep it?
All of you who have ever tried to delete Windows system files will already see where this is going: part of the windows.old folders are old system files and Windows still recognizes them as those. But Windows actually has a neat little trick to delete them anyway!

Open up the Control Panel and head to the System and Security section. Now click on Free up disk space under Administrative Tools:

fff1

A window comes up that is usually used to cleanup temporary files and stuff. But we need to clean up system files, so click on the appropriate button in the Description panel:

fff2

A similar window will upon but this time we'll have different cleanup options. Previous Windows installation(s) is the one that we want to remove:

fff3

As you see it is 25 GB large on my machine which is a lot of space for files i don't need anymore. That's why, after we have double-checked if we really, really don't need them, we check the box next to it and click on the OK button. Confirm by clicking Delete Files on the next window and you are good to go with a whole lot of free space.

Relocate Library Folders in Windows 7 and Windows 8

Tuesday, March 26, 2013 - posted by CSch

The library folders where your documents, music, videos, contacts, etc are stored in are located in the users' folders by default. This is fine as long as you have everything on your computer on just one partition, but it may be helpful to relocate those libraries if you want to split your operating system from your data files on a separate partition because these folders tend to become the largest on the average home computer.

Before you start moving, you need to create new folders that will be used as libraries later on. Go to the location where you want to move your libraries to and create folders to replace the old ones (Desktop, Downloads, Favorites, Links, My Music etc.).
Now to get going, open your user folder, in my case that's C:\Users\christian. This is where the library targets are that you want to move. Start with any of them and right-click it, then click on Properties. On the Location tab, you'll see the path to the folder that the library is using right now, which points to our Users folder:

Screenshot (11)

Click on Move... and a folder browser appears. Browse the corresponding folder that you have just created and click Select Folder. Now click Apply - if you had files in your old library target, it is recommended to move them to the new folder; Windows will do this automatically upon clicking Yes on the appearing prompt:

Screenshot (12)

Change default installation path in Windows 7

Monday, March 25, 2013 - posted by CSch

By default Windows installs all programs into the C:\Program Files and C:\Program Files (x86) directories. If the hard drive you have the operating system installed on is running out of space though, or you just want to have the OS on a separate SSD, you might want to consider changing these default installation paths.

Be warned before you go on though! Microsoft does not officially support changing installation directories (see here). You are responsible for all consequences.

Furthermore, since we are going to edit the Windows registry for our causes, you should have that backed up first in case something goes wrong. Here's how: http://www.faqforge.com/windows/backup-your-windows-registry/

Now that you have been warned, let's get started: Open a Run... prompt and enter regedit. I will be referring to our new installation path as E:\Program Files and E:\Program Files (x86), so replace these paths with the ones you want to have (you can choose other names as well). Now browse the left registry pane for the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion key. Click on that key once to show its contents and locate the ProgramFilesDir and ProgramFilesDir (x86):

Screenshot (10)

Double click those values and change C:\Program Files to E:\Program Files as well as C:\Program Files (x86) to E:\Program Files (x86). Furthermore it might be safe to change all other paths directing to the old directories to point at the new ones as well. That's it if you are on a 32bit system, close the registry and reboot your computer.

64bit users have one more step to go. Close the registry and open another Run... prompt. This time, enter %systemroot%\sysWOW64\regedit. Another registry windows will open. Repeat the exact same steps here that you have done before. Afterwards, close the registry and reboot your computer.

Install Steam on Ubuntu and Linux Mint

Saturday, March 16, 2013 - posted by CSch

With Steam support for Linux, there will most likely be a whole lot more games coming out for Ubuntu and its consorts. While the database of games with Linux support still grows, many titles are already available.
To install Steam on Ubuntu or Linux Mint, open a Terminal and enter the following commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B05498B7
sudo sh -c 'echo "deb http://repo.steampowered.com/steam/ precise steam" >>
/etc/apt/sources.list.d/steam.list'

 

sudo apt-get update
sudo apt-get install steam

Afterwards start it with

steam

Screenshot at 2013-03-12 12:16:05

Switch between multiple desktops on Windows with Sysinternals

Thursday, March 14, 2013 - posted by CSch

Surely you have witnessed this feature on a Linux system before: with a simple key combination the user is able to switch between multiple instances of the same desktop to reduce the clutter that you get when you open everything on just one desktop. That way, you can have your mail client open on one desktop, switch to another to surf the web and to another one to chat with your pals.

This feature is also accessible on any version of Windows and the only thing we need for that is a little tool that comes with Microsoft's SysInternals Suite which is a package downloadable directly from their website filled with handy executables, most of them used to troubleshoot problems on your computer.

You can download the SysInternals Suite here: http://technet.microsoft.com/en-US/sysinternals/bb842062.aspx

After you have acquired it, start the program called Desktops that came with it. There, you can define the key combination that switches between the different desktops - of course you can also do that manually with the help of the tray icon. You can also set it to launch on system start-up which you should do if you are planning on using it regularly.

Screenshot (9)

Desktop is also compatible with the new Windows 8 user interface. One desktop is unaffected by another one with the Windows 8 UI open.