Home : Tutorials
: Fedora Core 6 Setup Guide
What I do to setup Redhat Linux Fedora Core 6 - WORK IN PROGRESS
I use most of the defaults for now except I
disable IPv6 from my network card. If you selected to
boot into KDE or Gnome yum will start updating automatically in the background.
You will be notified of the updates available & should install them.
At this time I am seeing 227 updates available from Package Updater the
automatic update GUI for yum. Unless you cancel to run the manual
yum commands this will take a while. Once it shows the list of available
updates, single-left click Apply Updates & reboot once the updates
are complete. There are many things installed that are not needed.
It will speed things up if you don't select extra packages during the
initial install but there are things to remove if you used the default
install.
If you selected
to login to the console as root & run:
Installing Livna or FreshRPMS
There are more repositories
available but I have only needed these two.
-
rpm -ivh
http://rpm.livna.org/livna-release-6.rpm
OR
-
rpm -ivh
http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/6/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
Configuring
Yum
-
yum install
yum-fastestmirror
- to make updating and using yum much faster when
downloading updates
-
yum install
yumex
- yumex #graphical interface to
yum, broswe & queue downloads
-
yum remove
fetchmail* sendmail* irqbalance* pcmcia* hplip* vdr*
- fetchmail #unless you intend to
run a mail server
- sendmail # unless you intend to
run sendmail mail server
- irqbalance #unless you have more
than one processor installed in your computer
- pcmcia #unless you are running from
a laptop
- hplip #unless you have an hewlett
packard printer/scanner connected to you computer
- vdr #unless you have a hdr video
card
-
yum -y update
- -y = answers yes to all questions
during update of all installed packages
Installing
a few prerequsites
-
yum
install compat-libstdc++-33 compat-libstdc++-296
- yum install compat-gcc-34 compat-gcc-34-c++
- yum install gstreamer-plugins*
- yum update kernel alsa-lib alsa-utils cabextract
-
yum -y install
vlc*
- -y can is optional to avoid y/n prompts & applies
to using yum in the rest of this document.
Without faad2
support due to conflict with faad2 2.5, xmms-faad2 from the Livna repo
needs faad2 2.0.19 so make sure it's excluded from /etc/yum.repos.d/livna.repo
to install the latest version from Freshrpms.
I configure
Grip with these lame encoding options to rip my audio CD's to MP3 files.Setting
Aliases
* vim ~/.bashrc
o this file sets aliases for each user, not globally
I add these aliases to ~/.bashrc for extrating archives in one step
alias ungz='tar xfjv'
alias unbz='tar xfzv'
* source ~/.bashrc
o if new .bashrc is created you must make executable before sourcing with
CHMOD shown above.
Another option is to make a users .bashrc available when using the root
account.
* rm /home/user/.bashrc
* ln -s /home/user/.bashrc /root/.bashrc
-
yum install
audacity-nonfree
Only run the
next command if you get a conflict with the native Audacity package
Install
Gnome Baker - http://sourceforge.net/projects/gnomebaker/
Install
A Few Different Things
- yum install unrar wmix
- unrar - file decompression library
- wmix - mixer widget
Making VLC the Default DVD
Player
-
gconftool-2
--set /desktop/gnome/volume_manager/autoplay_dvd_command \ 'vlc dvd:///dev/cdrom'
--type='string'
Note:
Additional special
URIs are recognized. You are using the dvd:/// URI in the above command.
Others include:
computer:/// - objects for each mounted device, plus the network
network:/// - available networks to browse
burn:/// - a virtual folder for burning data CDs/DVDs
smb:/// - available windows/samba network resources
x-nautilus-desktop:/// - desktop objects and icons
file:/// - local files
trash:/// - local trash directory
gconftool-2
-
gconftool-2
-a /desktop/gnome/volume_manager
- lists many autoload/autostart keys that can be
set.
- gconftool-2 --set /desktop/gnome/volume_manager/autoplay_cda
\ 'false' --type='string'
- i like to disable autoplay on audio CD's
- gconftool-2 --set /desktop/gnome/volume_manager/autoplay_cda_command
\ 'grip' --type='string'
- instead of disabling autoplay on Audio CD's (audio
tracks show as .CDA files) you could run Grip instead of Totem,
the default, so you can make MP3 files from your original audio
CD's.
Installing
Real Audio 10 Gold
If you
haven't already you need to run:
- yum install compat-libstdc++-33 compat-libstdc++-296
Download
RealPlayer10GOLD.rpm from:
There are other
sites with instructions, soon to be listed at the bottom of this page,
to configure Real Audio more completly. I don't use Real Audio much
any more because it is trashy. It had it's time & place when
I was on dial-up but MP3 files have much better quality. I run realplay
and drop the files I want to play into the running program. If you
like streaming audio try www.shoutcast.com,.
See also about installing Streamripper below.
Open a terminal.
Log in as root to install wine and cabextract:
-
yum install
wine cabextract
- if you haven't installed cabextract already
Logout and install
IEs 4 Linux with your normal user account:
-
-
tar zxvf
ies4linux-latest.tar.gz
-
cd ies4linux-2.0.5
-
./ies4linux
Install
Google Toolbar for Internet Explorer 6.0 SP1
Download,
Open, Install with Internet Explorer.
Install Shockwave for Internet
Explorer 6.0 SP1
Download,
Open, Install with Internet Explorer.
Install
Windows Media Player 6.4 -
http://tsx.nl/index.php?p=wmp4linux
- mkdir mp64
- cd mp64
- wget http://tsx.nl/files/wmp64.tgz
- tar zxvf wmp64.tgz
- ./wmp.inst
- In order to run the installer you must have cabextract installed.
- ~/bin/wmp6
Installing
Streamripper - http://streamripper.sourceforge.net/
Do you
want to save streaming MP3 radio stations for later playback?
Download
latest version of Streamripper:
- tar xfzv streamripper-1.62.tar.gz
- cd streamripper-1.62.tar.gz
- ./configure
- make
- make check
- Shift-Page Up once to see if the tests failed or not.
- You should see a message that says All 2 tests passed.
- Page Down to return to prompt from scrollback.
- streamripper http://192.168.1.2 -o never -t -q 001 -d ~/streams
- to never overwrite saved streams & write them in the current
users home directory under streams.
- get stream URL by right clicking on the playlist entry in Totem,
the default player, & copying.
- find streams at Shoutcast.
Configure
SSH
FC6 does
not enable protocol 1 by default. You should not need to edit /etc/ssh/sshd_config
unless you wish to tighten security further by allowing only certain machines
to access or to change the default port, 22. I don't have such needs
on my Fedora computers..
- ssh-keygen
-t dsa
- while logged on as whatever user you want to connect
as.
Installing
Remote Desktop Connection
Only use this section
if you wish to remote control Windows XP/2003/Vista computers.
Use this
to connect:
- rdesktop -u username 192.168.1.2
- connecting this way is the most basic but virtual
audio drivers for local playback will not work.
- rdesktop -u username -r sound:local 192.168.1.2
- connect this way to hear the sound from the remote
Windows XP or higher on your local Fedora computer.
- rdesktop -u username -0 -r sound:remote 192.168.1.2
- to connect so that the virtual audio drivers aren't
created & play audio on the remote XP or higher system.
Configuring
Samba
Only install this if
you wish to share files with Windows computers.
To
specify the Windows workgroup and description string, edit the following
lines in your /etc/samba/smb.conf file:
workgroup = WORKGROUPNAME
server
string = BRIEF COMMENT ABOUT SERVER
Uncomment
this line:
Add this
to the end of the file to allow all users full access.
[shared]
path=/shared
guest ok=no
writeable=yes
printable=no
create mask=0777
browseable=yes
valid users = username @root
Create
the share point with the following commands:
- mkdir
-m 777 /shared
- chown
-R :users /shared
pdbedit
is used to manage Samba account using the tdbsam backend.
- pdbedit -L
- pdbedit
-a -u efudd
- add a new Samba user, must match up to an existing
Linux account
- pdbedit
-r -u efudd -f 'Elmer Fudd'
- modify the full name for the Samba user account
efudd
Control
Samba services with the following commands:
- /etc/rc.d/init.d/smb
restart
- /etc/rc.d/init.d/smb
start
- /etc/rc.d/init.d/smb
stop
If you
can't create folders or other access problems
- setsebool
-P smbd_disable_trans 1
CHMOD
- chmod go-w ~/file
- chmod go= /root/file
- make file private to all users but yourself, revoke
all group & other permissions
- chmod a+rw /etc/file
- make file writeable & readable for all users
- chmod a+x scriptfile
- make scriptfile executable for all users
- chmod +x scriptfile
- makes a script executable or sourceable
Note:
Permissions
u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.
Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions (culmutive):
400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
Fedora
Core 6 uses CIFS instead of SMBFS
- mkdir
-p /mnt/win
- create a mount point at /mnt/win
- vim /etc/fstab
Add
this line to /etc/fstab, using the correct IP address & sharename.
- //192.168.1.2/sharename /mnt/win cifs credentials=/root/.smbcredentials,uid=500,gid=500
1 2
- it's been said that CIFS likes IP addresses instead
of computer names. that is the way.
Create
/root/.smbcredentials:
Add only
the following lines to ~/.smbcredentials
username=useraccount
password=userpass
Use this
command to protect ~/.smbcredentials from prying eyes.
- chmod
600 /root/.smbcredentials
Mount
cifs shares listed in /etc/fstab as root
Use this
command to mount a cifs share not found in /etc/fstab manually.
- mount
-t cifs //192.168.1.2/share /mountpoint -o user=useraccount,password=userpass
Setting
Aliases
- vim ~/.bashrc
- this file sets aliases for each user, not globally
I add
these aliases to ~/.bashrc for extrating archives in one step
alias
btar='tar xfzv'
alias
gtar='tar xfjv'
- source ~/.bashrc
- if new .bashrc is created you must make executable
before sourcing with CHMOD shown above.
Another
option is to make a users .bashrc available when using the root account.
- rm /root/.bashrc
- ln -s /home/user/.bashrc /root/.bashrc
Disable
IPv6 Networking Support
Edit /etc/sysconfig/network
- vim
/etc/sysconfig/network
Change:
NETWORKING_IPV6=yes
To:
NETWORKING_IPV6=no
Add:
alias
net-pf-10 off
alias ipv6 off
Stop
IPv6 Firewall
- /etc/init.d/ip6tables
stop
Disable
IPv6 Firewall
- /sbin/chkconfig
--level 35 ip6tables off
Update
or Add:
::1
localhost.localdomain localhost
#Comment or leave IPv6 entry, removing may cause
some problems.
To:
127.0.0.1
localhost.localdomain localhost #Add or change
IPv4 entry to this.
List
subdirs in the current directory
Get
the size of all directories in the current directory
- find . -maxdepth 1 -type d -print | xargs du
-sk | sort –rn
Create
Screenshots from within X-Windows
- import screen.jpg
- drag a box around what you want to take a screenshot
of
Basic
VIM Commands
VIM commands:
The arrow keys move the cursor around.
-
i to insert
text.
-
ESC :wq
to write & quit.
-
ESC :q!
to quit & no save
- ESC :i to insert line
- ESC :d to delete line
Links
Fedora
Core 6 Tips & Tricks - Additional help with installing Real Player
& Sun Java plugins.
The
Simple eXperience - Installing Windows Media Player 6.4