Hi guys,
If you are using fedora 17 you must have noticed that it has disabled root access by default. If you want root access all you had to do was open up a shell and type su -root and change in to root mode. But There is a way (There should be for sure :D :D ) that u can enable root mode.
Lets see how you can aquire this.
Open up a shell and change into root
su -root
now cd into /etc/pam.d directory
cd /etc/pam.d
Now we are about to change a file. Ok what did you learnt when you were child about editing files?? Yeah you have to take a backup of that file in case you are screwed :P :P
Ok folks now we are going to edit gdm-password file.
cp gdm-password gdm-password.bak
Now open that file using a text editor such as vi. In my case I used nano as it is so simple.
nano gdm-password
Now find the line
auth required pam_succeed_if.so user != root quiet
and comment that line like thi,
##auth required pam_succeed_if.so user != root quiet
Now save and exit from text editor...
Ok pal. Now it is all over. U won the battle and now you have control over root account. Feel free to login as root in your next boot... :D :D
Monday, October 8, 2012
Saturday, October 6, 2012
Dell Inspiron N5110 Wireless setup under Linux ( Tested on CentOs 6.3)
Ubuntu normally comes with lot of drivers installed. So no one will have to install drivers manually for their home usage. But when it comes to Fedora, CentOs, RedHat, Debian etc etc wireless wont be pre installed. You will have to download Linux drivers manually and configure the system to use it. Method described under this post will work for most of Broadcom wireless devices under many Linux versions. OK Let's get started.
This post will cover the Driver installation of DELL Inspiron n5110 Laptop under CentOs 6.3 .
First download Linux driver from Brodcom.
http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_64-v5_100_82_112.tar.gz
Then download and install kernel-devel package and gcc.
yum install kernel-devel gcc
Now in shell go to the hybrid-postsrc_x86_64-v5_100_82_112.tar.gz
then unzip the tar file.
After that go to hybrid-postsrc_x86_64-v5_100_82_112 directory.
Now build the driver as a Linux Loadable kernel module
make clean
make
if any error occured, try
This post will cover the Driver installation of DELL Inspiron n5110 Laptop under CentOs 6.3 .
First download Linux driver from Brodcom.
http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_64-v5_100_82_112.tar.gz
Then download and install kernel-devel package and gcc.
yum install kernel-devel gcc
Now in shell go to the hybrid-postsrc_x86_64-v5_100_82_112.tar.gz
then unzip the tar file.
tar xzf hybrid-postsrc_x86_64-v5_100_82_112.tar.gz
After that go to hybrid-postsrc_x86_64-v5_100_82_112 directory.
Now build the driver as a Linux Loadable kernel module
make clean
make
if any error occured, try
make API=WEXT
or
make API=CFG80211
Let the system scan wireless device.
This will load the driver for current session.If you want to load the driver in bootup follow the instructions given below.
cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
Now you'r Drivers should work properly.
Then it will create some files including wl.ko
Now it is time to load the driver
to do that,
modprobe lib80211
insmod wl.ko
Let the system scan wireless device.
This will load the driver for current session.If you want to load the driver in bootup follow the instructions given below.
cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
Now you'r Drivers should work properly.
Monday, October 1, 2012
How to mount NTFS in CentOs
By default CentOs does not support NTFS partitions. That is a huge pain because if you have iso and lot of stuff inside your NTFS partition and you won't be able to use it.
Installing some tools would do the trick for you.
Step 1
-----------
Installing rpmforge repository.
If you already have installed this repository you can skip this step.
Download Appropriate package
then insert following code to install GPG key
Change directory to downloaded path.
Install package using
-----------
Now install following packages.
You may also need following packages,
If you cannot install them that means EEPL repo has been disabled.To enable that repository enter following code.
Now you can browse your NTFS partition using file browser. But if you want to mount a partition into a folder you can follow given instructions.
Step 3 (Mounting NTFS Partition)
---------------------------------------------------------------------
Lets say your ntfs partition is /dev/sda3
Create a mount point
Ex: /my/hdd
Then edit /etc/fstab
add following line to fstab
#To read only access
Save the file.
Now mount the file system.
Ok you are done now. :D :D
Installing some tools would do the trick for you.
Step 1
-----------
Installing rpmforge repository.
If you already have installed this repository you can skip this step.
If the rpmforge repo is disabled by default, insert following code
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g
Download Appropriate package
then insert following code to install GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
If an error occurred like following, that means it has already completed.
Change directory to downloaded path.
Install package using
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
Step 2
-----------
Now install following packages.
yum install fuse fuse-ntfs-3g
You may also need following packages,
yum install ntfs-3g
yum install ntfsprogs ntfsprogs-gnomevfs
If you cannot install them that means EEPL repo has been disabled.To enable that repository enter following code.
yum --enablerepo epel install ntfs-3g
Now you can browse your NTFS partition using file browser. But if you want to mount a partition into a folder you can follow given instructions.
Step 3 (Mounting NTFS Partition)
---------------------------------------------------------------------
Lets say your ntfs partition is /dev/sda3
Create a mount point
Ex: /my/hdd
Then edit /etc/fstab
add following line to fstab
#To read only access
/dev/sda3 /my/hdd ntfs-3g ro,umask=0222,defaults 0 0
#To read and write access
/dev/sda3 /my/hdd ntfs-3g rw,umask=0000,defaults 0 0
Save the file.
Now mount the file system.
mount /mymnt/win
Ok you are done now. :D :D