Saturday, 28 May 2011

Fix "NTFS Configuration Utility" ("No Such File") Error

To fix the "OSError: [Errno 2] No such file or directory: '/etc/hal/fdi/policy'" error, either, install "hal" from the software centre, or, create an empty policy file by opening a terminal and typing...
cd /etc
sudo mkdir hal
cd hal
sudo mkdir fdi
cd fdi
sudo gedit policy
...save and exit, close terminal, and launch ntfs-config by typing...
gksu ntfs-config 

Solving "Input Signal Out of Range" Error on Bootup

After installing Ubuntu, on restart, the error warning "Input Signal out of range" error can come up. To fix it, open a terminal and type...
gksudo gedit /etc/default/grub
... and unhash the line...
#GRUB_GFXMODE=640x480
 ... so it reads...
GRUB_GFXMODE=640x480
 ... or whatever resolution you desire, then save and exit the document.

Then type...
sudo update-grub

Monday, 2 May 2011

Fixing Firefox 3.5.x Flash problem



To prevent the repo version of Firefox 3.5.x crashing on full screening flash content, change the start command to...

LD_PRELOAD=/usr/lib/libGL.so.1 firefox %u

Friday, 2 July 2010

Backup xorg.conf (PCLinuxOS 2011)

# File generated by XFdrake (rev 262502)

# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerFlags"Option "DontZap" "False" # disable (server abort)
#DontZoom # disable / (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
Load "v4l" # Video for Linux
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "F-417"
HorizSync 24-80
VertRefresh 49-75

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce 6100 to GeForce 360"
Driver "nvidia"
Option "DPMS"
Option "DynamicTwinView" "false"
Option "AddARGBGLXVisuals"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
EndSection

Section "ServerLayout"
Identifier "layout1"
Screen "screen1"
EndSection

Thursday, 3 June 2010

Playing AAC/M4a Files (Mandriva 2010)

1. Download the plf package system from easyurmpi http://easyurpmi.zarb.org/ (choose the smartpm option).

2. After install, go into package manager, search and install faac, faad, gstreamer0.10-faad and gstreamer0.10-faac.

Wednesday, 2 June 2010

Sunday, 23 May 2010

Installing Java (Ubuntu 10.04)

1. Enable the Cononical Partner Repository in Synaptic (under "other software") and reload.
2. Download sun-java6-jre, sun-java6-plugin and sun-java6-fonts.
3. Set your system to use the Sun Java JRE and Dev packages as the default by typing into a console:

sudo update-java-alternatives --set java-6-sun

Monday, 3 May 2010

Enabling Hardware Sensors in Linux

1. Installing the sensor libraries
First thing’s first – you need to install the libraries that allow Linux to read your sensors. To do this, install the lm-sensors library, by running the command:

sudo apt-get install lm-sensors
This will install the libraries for your motherboard’s sensors. For your hard-disk sensors, you’ll want to install hddtemp:

sudo apt-get install hddtemp
In Ubuntu, the install will ask you several questions. First it will ask if it should run SUID root, select “yes.” It will then ask you for an interval for logging the temperature to a file; since we are going to have an applet display our system temperatures for us, this isn’t necessary, so most users will be fine leaving the default of ‘0′ and pressing enter; if you wish to log this data, however, I’d recommend a value between 2 and 10 seconds. Next, it will ask if it should run as a deamon; select yes, and leave the default values for hostname and port. Finally, it will ask if you wish for it to run on startup – select “yes.”
2. Running sensors-detect
Now that your sensor libraries are installed, you need to detect your sensors! Run the command:

sudo sensors-detect
Which will probe your system for sensors. Answer “YES” to all questions! Don’t just hit enter, type “YES”, because at the end there will be a question for which the default answer is “no”, and we’ll want to answer in the affirmative.
The sensors-detect program will scan yur system, and then give you a summary, stating which sensors it has found. It will then say: I will now generate the commands needed to load the required modules. After you hit ENTER to continue, it will ask, Do you want to add these lines to /etc/modules automatically? (yes/NO) This is the question we want to make sure we answer YES to.
3. Loading the modules
Since we answered YES to the previous question, our sensor modules will be loaded by default the next time we start up. But since we don’t want to have to reboot, we’re going to use the information we got from the sensors-detect script to load the modules ourselves, this time only. Right above the last question will appear a list of modules that you should load, in the form of:
#----cut here----
# Chip drivers
smsc47m1
#----cut here----
You may have more, or different, items listed – that’s fine! What we want to do now, to load these modules, is use the modprobe command, as follows:

sudo modprobe [module name]
So, in my case, I would type:

sudo modprobe smsc47m1
If all goes well, you should be returned to the command-line, without any output.
4. Monitoring the sensors!
Wow, that was a lot of work! Now, let’s see the rewards. On the command line, you can simply run the

sensors
command; this will output the information from your motherboard’s sensors.
However, we’d rather have a graphical interface for checking up on our hardware, so let’s install an applet for our Gnome desktop to keep an eye on our system’s temperature. Run the command:

sudo apt-get install sensors-applet
to install the applet. Now, add the applet by right-clicking on your desktop panel, selecting “Add to Panel,” and you will now see a “Hardware Sensors Monitor” applet in the System & Hardware section. Click and drag this to your panel to add it.
The applet will now say that you haven’t enabled any sensors; right click on the applet and open its preferences. The first screen is for general settings:
General Sensor Settings Image
The options here are self-explanatory; for update interval, choose a value between two and ten seconds. The second screen is where you can enable your sensors to be displayed in the applet:
Sensor Selection Image
Here we have my hard drive, /dev/sda, enabled. Simply check off the sensors you want to enable, and they will appear in your panel!
Conclusion
Hopefully by now, you’ll see icons in your panel, with thermometers and temperature readouts, keeping you apprised of the status of your system’s hardware. You’ll notice that when doing intensive operations, various parts of your system will increase in temperature; this is normal, and this applet will help you keep an eye on things so nothing overheats.

Friday, 30 April 2010

Fixing Java in Opera

If you start Opera from the console you may see the following error message if java doesn't work correctly:
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
To fix this, correct the Java path under Tools -> Preferences -> Advanced Tab -> Content -> Java options. It should look similar to this:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/
Check your installed Java pathways and change accordingly.

Monday, 19 April 2010

Installing ISA 2.X Using Wine (Ubuntu)


1. Download and install ISA program file and bible modules using Wine. DO NOT START APPLICATION AT THE END OF INSTALLING!

2. Add Symbol.ttf to .wine/drive_C/windows/Fonts.

3. Copy usp10.dll to .wine/drive_C/windows/system32. (Often not necessary as it already exists).

4. Add ISA.exe to wine-config "applications".

5. Under "Libraries" add riched20.dll, riched 32.dll and usp10.dll.

Installing eSword 9.X Using Wine (Ubuntu)


1. Install wine 906 using wine, but do NOT start.

2. Copy mfc42.dll and msls31.dll to .wine/drive_c/windows/system32.

3. Add oleaut32.dll and riched20.dll to "libraries" (sometimes you may need to change the load order of both to "Native: Windows").

4. Start eSword.