Saturday, December 28, 2013

Nvidia driver installation in Fedora 20

Follow the below steps to install nvidia drivers

1. Enable access to RPM Fusion non free repository

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

2. Install kernel-devel and nvidia packages.

yum install kernel-devel
yum install akmod-nvidia xorg-x11-drv-nvidia-libs

3. Reboot the PC

Sunday, August 16, 2009

Adding ntfs partitions in fstab

This section describes how to add the ntfs partitions in the fstab so that they will get mounted automatically while bootup itself

1. Find the partitions which are ntfs
/dev/sda1, /dev/sda6, /dev/sda7 are ntfs partitions in my system.

saravanan@saravanan-desktop:~$ sudo fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f4a0f4a

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6081 48838656 7 HPFS/NTFS
/dev/sda2 6082 30401 195350400 5 Extended
/dev/sda5 8154 11800 29294496 83 Linux
/dev/sda6 11801 17598 46572403+ 7 HPFS/NTFS
/dev/sda7 17599 30401 102840066 7 HPFS/NTFS
/dev/sda8 6082 6329 1991997 82 Linux swap / Solaris
/dev/sda9 6330 8153 14651248+ 83 Linux

Partition table entries are not in disk order
saravanan@saravanan-desktop:~$


2. Create three directories for mounting the three ntfs partitions (name it as you wish).

saravanan@saravanan-desktop:~$ sudo mkdir /media/windows
saravanan@saravanan-desktop:~$ sudo mkdir /media/media
saravanan@saravanan-desktop:~$ sudo mkdir /media/download


3. Add the following lines to the end of the /etc/fstab file.

/dev/sda1 /media/windows ntfs-3g defaults,force 0 0
/dev/sda6 /media/media ntfs-3g defaults,force 0 0
/dev/sda7 /media/download ntfs-3g defaults,force 0 0


4. The content of the fstab file will now be like this,

saravanan@saravanan-desktop:~$ sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc defaults 0 0
# / was on /dev/sda9 during installation
UUID=a279e8ee-83fa-4fcc-afd7-6ca8ea508fb4 / ext4 relatime,errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=c8203577-d56f-4806-bf3c-95e8d0508cc4 /home ext4 relatime 0 2
# swap was on /dev/sda8 during installation
UUID=c9bcea3f-1d09-4787-b95a-730664fdf7a7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/windows ntfs-3g defaults,force 0 0
/dev/sda6 /media/media ntfs-3g defaults,force 0 0
/dev/sda7 /media/download ntfs-3g defaults,force 0 0
saravanan@saravanan-desktop:~$


5. You can either reboot the system to check that the partitions are getting properly mounted (OR) You can mount the partitions using 'sudo mount -a' command


Note: The 'force' option in the fstab file is used to force mount the partitions in case of unclean shutdown. Normally if there was a unclean shutdown, the ntfs partitions will not be automatically mounted during the bootup. To avoid this, the 'force' option is added.

Saturday, May 2, 2009

How to make USB storage device to get detected while booting ?

1. add the word "usb_storage" to the end of the file "/etc/modules"
2. save the file and reboot
3. usb storage devices are loaded at boot time

saravanan@saravanan-desktop:~$ sudo cat /etc/modules
[sudo] password for saravanan:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
rtc
usb_storage
saravanan@saravanan-desktop:~$

Sunday, January 25, 2009

Monday, November 3, 2008

Installation help for Doom 3 (linux binaries)

Download the linux binaries for doom 3 game from the net.
doom3-CD1.iso
doom3-CD2.iso
doom3-CD3.iso

Mount the image via loopback device 
mount -t iso9660 /path/to/doom3-CD1.iso /mnt/cdrom/ -o loop 

Install the linux client 
sh /mnt/cdrom/doom3-linux-1.1.1286.x86.run 

Now, install the game files 
cd /usr/local/games/doom3/base 
tar -xjvf /mnt/cdrom/files-1.tar.bz2 
umount /mnt/cdrom 


Do the same for the remaining images 
mount -t iso9660 /path/to/doom3-CD2.iso /mnt/cdrom/ -o loop 
tar -xjvf /mnt/cdrom/files-2.tar.bz2 
umount /mnt/cdrom 


mount -t iso9660 /path/to/doom3-CD3.iso /mnt/cdrom/ -o loop 
tar -xjvf /mnt/cdrom/files-3.tar.bz2 
umount /mnt/cdrom 


Now you can execute: 
doom3


If u have probelms with the sound in doom 3 run doom3 using this 
doom3 +set s_driver oss 

If the above also didnt work.. Restart ur system after using the above command and now it will work fine..

Simple way to mount a Windows share in Linux

The following command mounts a Windows Share in Linux.

sudo mount -t cifs "//10.0.0.3/Share_Name" "/mnt/folder_name" -o username=workgroup/user_name,password=xxxxxx

"//10.0.0.3/Share_Name" -> Ip address of the windows machine + Share Name
"/mnt/folder_name" - > Folder in linux where the share has to be mounted
username=workgroup/user_name,password=xxxxxx -> Specify the workgroup, username & password for the Windows machine

Note : 
1. 'smbfs' package should be installed in the Linux machine for mounting the Windows share
2. Unmount the share using the following command,
    sudo umount /mnt/folder_name

How to restore Grub from a live Ubuntu cd.

How to restore Grub from a live Ubuntu cd.

This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.

(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see "sudo" that will mean to you that the following command should be entered at a root terminal.)

Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.

When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)

Code:
sudo grub
This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter these commands

Code:
find /boot/grub/stage1
This will return a location. If you have more than one, select the installation that you want to provide the grub files.
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)

Code:
root (hd?,?)
Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)

Next enter the command to install grub to the mbr

Code:
setup (hd0)
Finally exit the grub shell
Code:
quit
That is it. Grub will be installed to the mbr.
When you reboot, you will have the grub menu at startup.

Now the explanation.
Sudo grub gets you the grub shell.
Find /boot/grub/stage1 has grub locate the file stage1. What this does is tell us where grub's files are. Only a small part of grub is located on the mbr, the rest of grub is in your boot folder. Grub needs those files to run the setup. So you find the files and then you tell grub where to locate the files it will need for setup.
So root (hd?,?) tells grub it's files are on that partition.
Finally setup (hd0) tells grub to setup on hd0. When you give grub the parameter hd0 with no following value for a partition, grub will use the mbr. hd0 is the grub label for the first drive's mbr.
Quit will exit you from the grub shell.