Wednesday, 10 June 2009

msttcorefonts (Kubuntu 9.04)

sudo apt-get install msttcorefonts

Installing nVidia Drivers (Fedora 11)

Type into a terminal:
su
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
yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i586 xorg-x11-drv-nvidia-libs.x86_64
reboot
Then add the following to the newly created xorg.conf (/ext/X11)


Section "Monitor"
Identifier "Configured Monitor"
VendorName "Generic LCD Display"
ModelName "LCD Panel 1280x1024"
HorizSync 31.5 - 64.0
VertRefresh 56.0 - 65.0
Gamma 1
ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync vsync
ModeLine "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync vsync
ModeLine "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
SubSection "Display"
Virtual 1280 1024
Depth 24
Modes "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

reboot!

Saturday, 6 June 2009

How To Disable SELinux

1. Log in as root.

2, Type setenforce 0 to disable.

3. Type setenforce 1 to re-enable.

NOTE: To turn off SELinux add selinux=0 to the command line.

NOTE: To turn SELinux off permanently, you can specify the SELinux mode using the configuration file /etc/sysconfig/selinux.


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
Setting the value to enforcing is the same as adding enforcing=1 to your command line when booting the kernel to turn enforcing on, while setting the value to permissive is the same as adding enforcing=0 to turn enforcing off. Note that the command line kernel parameter overrides the configuration file.

However, setting the value to disabled is not the same as the selinux=0 kernel boot parameter. Rather than fully disabling SELinux in the kernel, the disabled setting instead turns enforcing off and skips loading a policy.

Tuesday, 26 May 2009

Adding Hyperlinks to Forum pages

[a href="http://www.blogger.com/url"]Link text[/a]

Replace square brackets with less than/greater than brackets.

Friday, 17 April 2009

How To Install Flash Player 10 (Fedora 10)


sudo rpm -ivh
http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
mkdir -p /usr/lib/mozilla/plugins
sudo yum install flash-plugin
mozilla-plugin-config -i -g -v

Sunday, 8 March 2009

Mounting NTFS Drives (Fedora 10)


Install the utility ntfs-config from the repositories:

After using it, your fstab files should read:

# /etc/fstab: static file system information.
#
#

tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
#Entry for /dev/sda5 :
UUID=d572a434-8fb1-4fc2-b808-5649d0cc8a3e / ext3 defaults 1 1
#Entry for /dev/sda7 :
UUID=463e2a0f-3bfa-4fd5-935b-2d1720a62aea /home ext3 defaults 1 2
#Entry for /dev/sdb1 :
UUID=72188BF931F7548A /media/Archives ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb5 :
UUID=448EE9AE6EA505E0 /media/Audio ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb6 :
UUID=57D531AA6BB0C0BE /media/Video ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sda6 :
UUID=0a44b859-4799-409b-86ac-d5708a7e141d swap swap defaults 0 0

#UUID=448EE9AE6EA505E0 /media/music ntfs-3g uid=1000,gid=100,umask=0 0 0
#UUID=72188BF931F7548A /media/archives ntfs-3g uid=1000,rw,gid=100,umask=0 0 0
#UUID=57D531AA6BB0C0BE /media/video ntfs-3g uid=1000,gid=100,umask=0 0 0
#UUID=DE487FA5487F7B5B /media/ntfs ntfs-3g uid=1000,gid=100,umask=0 0 0

Thursday, 26 February 2009

fstab - Backup (Fedora 10)


Dont forget to create the appropriate folders first!!!!

#
# /etc/fstab
# Created by anaconda on Thu Feb 19 18:50:36 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=d572a434-8fb1-4fc2-b808-5649d0cc8a3e / ext3 defaults 1 1
UUID=463e2a0f-3bfa-4fd5-935b-2d1720a62aea /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=0a44b859-4799-409b-86ac-d5708a7e141d swap swap defaults 0 0
#Added Mounts
#Audio
UUID=448EE9AE6EA505E0 /media/music ntfs-3g uid=1000,gid=100,umask=022 0 0
#Archives
UUID=72188BF931F7548A /media/archives ntfs-3g uid=1000,gid=100,umask=022 0 0
#Video
UUID=57D531AA6BB0C0BE /media/video ntfs-3g uid=1000,gid=100,umask=022 0 0
#NTFS Windows
UUID=DE487FA5487F7B5B /media/ntfs ntfs-3g uid=1000,gid=100,umask=022 0 0

Tuesday, 24 February 2009

Disabling Firefox's "Awesomebar" Permanently

In the address bar type "about:config" and press enter. Ignore the warranty warning by pressing "I'll be careful, I promise". Search for the "browser.urlbar.maxRichResults" entry, double click it and change the default number from 12 to -1. Goto "file", press "exit" and restart Firefox. The awesomebar should now be disabled.

Saturday, 21 February 2009

AF_INET Error In mplayer

To stop the AF_INET6 error when playing streaming media in mplayer, add the following line to ~/.mplayer/config:

prefer-ipv4 = yes

Backup xorg.conf (Fedora 11)

# Xorg configuration created by livna-config-display

Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
VendorName "Generic LCD Display"
ModelName "LCD Panel 1280x1024"
HorizSync 31.5 - 64.0
VertRefresh 56.0 - 65.0
Gamma 1
ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
ModeLine "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
ModeLine "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
SubSection "Display"
Virtual 1280 1024
Depth 24
Modes "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection