Tag Archives: Fedora

Reliance ATZ USB CDMA Modem on fedora , ubuntu and other linux

1) Find Vendor and ProdID

Do

cat /proc/bus/usb/devices

In the generated list where Manufacturer is ZTE , Incorporated

Take Vendor and ProdID

eg. Vendor=19d2 ProdID=fffd

-You can also use lsusb to get entry with ONDA Communication S.p.A in format   a:b

eg  19d2:fffd

2) Load Module
modprobe usbserial vendor=0x19d2 product=0xfffd

After this step 3 interfaces /dev/ttyUSB* where *(0-2)
should be created .(if not then rmmod usbserial ->remove device->modprobe again->insert device )

3)Configure (Run in root mode)(NOT FOR FEDORA go to 6)
wvdialconf

4)Edit /etc/wvdial.conf
Add number eg. #777
Add your username and password in the fields.

5)Run
Ideally running wvdial should be enough.
(try ping google.com to check if you are connected)

6)However in fedora(and if above steps dont work for you) after modprobe
Go to System>Administration>Network>New>Modem>
In Modem Properties (Despite error)
change device to /dev/ttyUSB0
Modem Volume=low
->Forward
Phone number #777
Username and Password -as you have
Provider Name -any
->Forward
Save And activate
Try ping google.com

Fixing Broadcom 802.11 Linux STA driver

Well Broadcom 802.11 Linux STA driver works with 2.6.25 Kernels but for newer kernels additional Parameters have to be included.Without supplying addidtional parameters following errors may arise while making

(Am using Fedora 9 i386 with a bcm 4312 rev 02)

error: too few arguments
to function ‘iwe_stream_add_point’

Warning: passing
argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type

SOLUTION (THIS ALSO HOLDS TRUE FOR NDISWRAPPER)

1) cd hybrid-portsrc-x86_32_5_10_27_6/src/wl/sys

(or 64-bit ….x86_64.. .. instead of x86_32)

2) Make Backup and Open wl_iw.c

3) For Every “iwe_stream_add_event” and “iwe_stream_add_point” function calls Add a first Parameter info

save.

4)Now Try Compiling with instructions from my previous post

OR if you are 2 lazy Download this wl_iw.c and replace at above directory (USE THIS AT YOUR OWN RISK)

UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

I had been noticing for many months now that certain udf discs were not being mounted by fedora 8.

Giving Message:
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Earlier i had thought it just to be defect of my drive but after my drive got replaced and after installing fedora 9 i decided to check up and voila !!This bug has been reported in nearly all distros.(well duh since kernel has bug)

Solution Continue reading UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

Fedora 9 essentials guide

A basic guide to satisfy all your needs:

NOTE:all commands r to be typed in terminal with sudo or su login
PS:” All yum commands can be replaced by package kit alternatives type “info pkcon” in terminal.

1)Adding livna repositories : (VERY ESSENTIAL ALL OTHER STEPS REQUIRE THIS)
Since Fedoras own repositories dont have much softwares use livna or packman repositories
rpm -ivh http://rpm.livna.org/livna-release-9.rpm
then yum update

2)YUMEX :install yumex for gui interface for yum , though package kit suffices.

3)MP3 SUPPORT:
Continue reading Fedora 9 essentials guide

Enabling WiFi in Fedora 9 HP 6515b using Ndiswrapper

1) You got  to have GCC 4+ and MAKE installed in your system to compile Ndiswrapper(get them from dvd)

2)in terminal go to the directory containig ndiswrapper tarball package (type following commands as super user -> su or sudo -i

3)make

4)make install

5)See COMMON STEPS

Alternate:

1) If you got the live cd be prepared to download and install gcc from internet ( connect to friends comp)

or download and install the packages:

binutils
gcc
kernel-headers
dkms
glibc-devel
libgomp
dkms-ndiswrapper
glibc-headers
kernel-devel
make

COMMON STEPS

1)/usr/sbin/ndiswrapper -i bcmwl5.inf (this is the win xp driver obtain it from windows installation or setup given by hp)

2)use “/usr/sbin/ndiswrapper -m”

3)use “/usr/sbin/ndiswrapper -mi”

4)use “/usr/sbin/ndiswrapper -ma”

5)gedit “/etc/modprobe.d/blacklist”

add following lines ->

blacklist b43

blacklist ssb

3)Reboot and see if the wifi networks are shown if not use “/sbin/modprobe ndiswrapper”

and add the same line to /etc/rc.local

IF THE ABOVE STEPS DON’T WORK PLEASE TELL ME THE EXACT PROBLEM.

PEOPLE WITH OTHER WIRELESS CARDS TRY SAM PROCCEDURE WITH DIFFERENT DRIVER (MAKE SURE YOU ARE INSTALLING THE WIRELESS CARD DRIVER AND NOT THE CONTROLLER DRIVER)

Fedora 9 rocks !!!

Well am writing this post from fedora 9 and least to say it rocks !!!

The major fixes inculude pirut being replaced by Package Kit which consumes less memory (phew i can still remember yum directly consuming about 200 MB of precious ram) and has a faster download rate (yipee i don’t have to use smart anymore). A lot of security upgrades such as mounting lock giving access to root / sudoers only.

-A seperate bootloader option ( to view only + change boot time.)

-Gnome 2.22

– Ahhhh direct graphical boot for my ati 1250 express radeon chipset (though no default working 3d effects)

-Default games pretty much same (ok its not that i can beat the comp in chess !!)

– Firefox 3 beta 5 default browser much faster than 2 consumes less memory .

-Lot more but go read it yourself in the documentation !! (see install pics though)

Ultimate Essentials tips Fedora 8 Guide

(all commands r to be typed in terminal with sudo or su logon)

After installation essentials:

1)Adding livna repositories : (VERY ESSENTIAL ALL OTHER STEPS REQUIRE THIS)
Since Fedoras own repositories dont have much softwares use livna or packman repositories
rpm -Uhv http://rpm.livna.org/livna-release-8.rpm
then yum update

2)YUMEX :install yumex for gui interface for yum , believe me u need it to get to choose your architecture else yum seems to download all versions .( unless u specify 64bitx86 or i386).
yum -y install yumex

3)MP3 SUPPORT:

Now u can either use YUMEX or type in terminal.
Gstreamer & Xine

yum -y install gstreamer-plugins-ugly gstreamer-plugins-bad libmad libid3tag amarok-extras-nonfree

Note: this is needed for players like: banshee, listen, exaile, amarok ,rhythmbox,xmms

install any player eg for amarok yum install amarok amarok-extras-nonfree

4)GCC compatibility:

Fedora 8 ships and uses GCC 4.1. Some applications that were compiled with an older GCC (ex: 3.2) will require compatibility libraries

yum -y install compat-libstdc++-33 compat-libstdc++-296

5)REAL PLAYER:

Download RealPlayer 11 from: http://www.real.com/linux/. use the .bin not the .rpm.

Select: “Advanced Installation RedHat Package”

Before installing RealPlayer, make sure to have the compat-libstdc++-33 compatibility libraries installed.
yum install compat-libstdc++-33
For RPM:
sudo rpm -ivh RealPlayer11.rpm

note:if real/helix or any plugin doesnt load in firefox use:sudo /usr/bin/mozilla-plugin-config -i -f

6)Video Players: mostly vlc,xine and mplayer r used:

mplayer: yum install mplayer mplayer-gui mplayer-skins mplayer-fonts mplayerplug-in mencoder
xine yum install xine xine-lib-extras xine-lib-extras-nonfree libdvdcss
vlc yum install vlc

i prefer xine as it has DVD playback.

7)Video Binary Codecs: some unsupported formats can be played by installing codecs from original mplayer project:

Download http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

then

mkdir -p /usr/lib/codecs

tar -jxvf all-20071007.tar.bz2 –strip-components 1 -C /usr/lib/codecs/

*Remember to be in su or use sudo

8)Macromedia Flash :

For 32 bit:

install the Adobe YUM repository, and install through yum:

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum install flash-plugin

For 64 bit:

mkdir -p /usr/lib/mozilla/plugins
yum install nspluginwrapper.{i386,x86_64} pulseaud/io-lib.i386
yum install flash-plugin
mozilla-plugin-config -i -g -v

*Remember to be in su or use sudo

9)Mounting Partitions: Fedora 8 has ntfs 3g preinstalled but sometimes the partitions dont get mounted hence editing fstab gives read/write support on boot

a) use fdisk : /sbin/fdisk -l
b) note down partions u wnt to access name (eg sda1) type (eg ntfs or FAT32)
c)open gedit in sudo mode
d)open /etc/fstab
e)make mount points:
mkdir /media/drive
drive can be replaced by whatever name u choose

f)
for ntfs drive sda1 keeping name c_drive /dev/sda1 /media/c_drive ntfs-3g rw,defaults,umask=0000 0 0
or simply /dev/sda1 /media/c_drive ntfs-3g defaults 0 0

if drive is fat use vfat instead of ntfs-3g u dont require other lines

10)Iced Tea Java is by default installed if not use yum install java-1.7.0-icedtea java-1.7.0-icedtea-plugin

11)Samba filesharing with windows networks : (!!still has issues!!)
1. Install Samba

It is best to have Samba installed in the installation process. If not yum users can install using: Add/Remove Software > Servers > Windows File Server. Users without yum can install the following packages from their DVD (or download): samba, samba-common, samba-client.

2. Add Shares

gedit /etc/samba/smb.conf

[c_drive]
path = /media/c_drive
public = yes
writable = no
[netshare]
path = /data/
public = yes
writable = yes

If ‘writable’ the location must be writable in Linux first. Additionally permissions must match (for example: drw-rw-rw-).

If home data (all personal files under /home/username) is to be accessible, then set ‘browseable = yes’ under [homes] (~line 250). This configuration file is very descriptive, read through it to get more ideas or information.

3. Add Users

To access shares, you must be a valid user. Add valid users AND passwords using the smbpasswd command.

This login name WILL be the login name and password you use from Windows to access your Linux computer. The password does NOT need to match your Linux password.

smbpasswd -a username

4. Start Samba Service

Run samba and check for any errors:

/etc/init.d/smb start
Use chkconfig or serviceconf to enable samba (smb) in both runlevels 3 and 5. This will make sure to run Samba each time Fedora boots.

/sbin/chkconfig –list smb
/sbin/chkconfig –level 35 smb on
/sbin/chkconfig –list smb
/etc/init.d/smb restart

Firewall Users

Run system-config-securitylevel

To allow Samba access to work through your firewall you must set ‘Samba’ as a ‘Trusted service’.

SELinux Users

SELinux has significant control over restricting different parts of Samba. Run system-config-selinux. Please read lines #23 – #51 in /etc/samba/smb.conf for a better explanation. The following is NOT complete.

On the command line you can run:

/usr/sbin/setsebool -P samba_export_all_rw on

For any changes made above to the SELinux settings or smb.conf, it is recommended to restart Samba.