Fedora Help
Fedora Help
Fedora Help
su -c 'yum update'
1. I have Fedora 11 using i386/i686 so while this is configured for i386/i686 if something does
not perform on your 64 bit version please provide me with information so that I can rectify it.
I do not own a 64 bit machine so I can not test the results.
2. When saving files right click and save-as to your desktop.
3. The assumption is you know how to boot your system and you know how to type into your
terminal if required.
4. I will be adding repositories to make it as simple as possible for installation. I will not have
the additional repositories added by default except for RPM Fusion.
Switching to Root
su –login or su -
Fedora Updates
Yum is a very powerfull package manager. yum will resolve dependencies for you and makes installing
applications a breeze. yum also searches, removes, and lists packages for you.
Options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards
allowed)
--disablerepo=[repo] disable one or more repositories (wildcards
allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin] disable plugins by name
From a first look this can look rather intimidating, but this is rather easy.
Examples:
Yum will search all your enabled repos and tell you where you can obtain the package from
Yum can list all available packages from your enabled repos and tell you where you can
obtain the package from:
Installing applications
Installing is as easy as
Listing rpms
yum can list installed rpms for you from the repos you have enabled
Removing rpms
Yum can remove an application and the dependencies it installed with that application. It will not
remove dependencies if another application installed needs them.
Yum can update the system for you without user interaction if you want it to.
yum update
yum check-update
Local install
Recommended Plugins
yum-presto
Fedora Forum
Fedora Project
Fedora Solved
Dangermouse's Website
There is a very helpful thread relating to a script which will install some of the more popular
packages.
To install Fedora refer to the Installation documents and the common problems.
Installation Documents
http://fedoraproject.org/wiki/YumUpgradeFaq#head-56b13936246769f517ac488a0098d193c7fc3600
Make sure you clear your yum cache then update everything and reboot
You will need to disable all other repositories during the upgrade and you will need to delete
some files in order to complete the transition.
su -c 'yum upgrade'
There are lots of ways you can help make this great operating system even better. It also can't progress
faster without your help. If you want to get involved or are interested in getting involved.
Users Administration
passwd root
passwd -l root
Beware! If you do not have some other manner of executing commands as root (such as sudo) set up,
this will effectively lock you out of your own system! The only way to unlock the root account should
this happen is to boot from media (such as the install disk in rescue mode) and execute:
passwd -u root
Installing System-Config-User
Repositories
These additional software repositories will not be enabled by default. This is because there is a risk to
your installation with differing version details which may leave your computer unable to
function.
Note: Mixing repositories can be dangerous. After installation of the RPM Fusion repository
protect it using the command listed here.
RPM Fusion
Adobe
When that has been installed edit the repo file to look like the following.
su -c 'gedit /etc/yum.repos.d/adobe-linux-i386.repo'
[adobe-linux-i386]
name=Adobe Systems Incorporated
baseurl=http://linuxdownload.adobe.com/linux/i386/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
Atrpms
su -
cat <<EOF> /etc/yum.repos.d/atrpms.repo
[atrpms]
name=Fedora Core \$releasever - \$basearch - ATrpms
baseurl=http://dl.atrpms.net/f\$releasever-\$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled = 0
EOF
su --login
There are several types of software to help in the graphical area for yum.
Yumex
Permissions in Fedora
Log in as root.
su --login
Hardware
Video Drivers
NVidia users, install the RPM Fusion repositories and yum for kmod-nvidia and reboot.
For ATI users, if your card is older than Radeon 9600, it should work out-of-the-box, if not,
you will need to wait until ATI releases a new driver for kernel 2.6.23 and yum for kmod-
fglrx from RPM Fusion after it has been released.
Intel user cheer to yourself as it works out-of-the-box.
Nvidia (For GeForce 6, 7, 8, 9 & 200 series cards)
64 bit
32 bit
Or
http://www.nvidia.com/object/unix.html
64 bit
32 bit
ATI
Wireless Drivers
Intel IPW3945
This is a guide to installing and setting up the Intel 3945 A/B/G wireless network adapter
using FreshRPMS. It seems people are still having issues with this method. I will add the
other method to aid in sorting out the issues.
Note: The Fedora 11 drivers are very good and you should try them ahead of installing these.
Install these as a last resort.
Method 1
You must Configure your wireless using sytem-config-network a lot of people are
forgetting this step. Do it through system-config-network. Delete wlan0 and install eth1
Method 2
Credit for this method comes from the great fellas at fedorasolved.org
Basic description of what will be done and what is expected. Learn to become root here.
nano /etc/modprobe.d/blacklist
add these exact lines at the bottom then save and exit:
#iwl3945
blacklist iwl3945
blacklist mac80211
reboot
Create a temp directory on your desktop called 'ipw3945' and download the following files
into it:
http://prdownloads.sourceforge.net/ipw3945/ipw3945-1.2.1.tgz?download
http://bughost.org/ipw3945/ucode/ipw3945-ucode-1.14.2.tgz
http://bughost.org/ipw3945/daemon/ipw3945d-1.7.22.tgz
http://fedoraos.org/ipw3945/ipw3945
Unpack the gzipped tarballs into the directory on your desktop called 'ipw3945' that we
created earlier:
Compile and copy the resuling kernel module to the correct location (for more options here
see 'more information' below):
su --login
cp /home/$user/Desktop/ipw3945/ipw3945-1.2.1/ipw3945.ko
lib/modules/`uname -r`/kernel/drivers/net/wireless/
depmod -ae
cp /home/$user/Desktop/ipw3945/ipw3945 /etc/init.d
chmod +x /etc/init.d/ipw3945
chkconfig --add ipw3945 && chkconfig ipw3945 on
reboot
system-config-network
new --> wireless connection --> Intel Corporation PRO/Wireless 3945ABG Network
Connection --> forward
Once you have disabled all other network cards, configured your ip address, gateway, DNS, subnet
mask, SSID, wifi channel, and encryption key:
Many laptops with built in wireless have a WLAN switch that is a toggle switch for enabling/disabling
the wireless radio.
Please make sure you check this is on, or your ipw3945 wireless adapter will not detect correctly or
work at all.
Also, disable all other network cards before attempting to use the ipw3945. More Information
Special Notes:
If you'd like Monitor Mode, Promiscuous Mode or RadioTap enabled for this device you will need to
edit the Makefile in
Step 7 before compiling the kernel module uncomment the corresponding line(s): Code:
CONFIG_IPW3945_MONITOR=y CONFIG_IEEE80211_RADIOTAP=y
CONFIG_IPW3945_PROMISCUOUS=y
Added Reading
http://fedoraos.org
Madwifi
You will need to add the following lines to your modprobe.conf file
su -c 'gedit /etc/modprobe.conf'
## Start Atheros Stuff
alias wifi0 ath_pci
alias ath0 ath_pci
options ath_pci autocreate=sta
## End Atheros Stuff
IPW2x00
http://fedoraguide.info/index.php?title=Fedora10#RPM_Fusion
su -c 'yum update'
su -c 'yum install broadcom-wl'
Go to System > Administration > Network and select the wireless device and check "Controlled by
Network Manager" and "Activate device when computer starts".
su -c 'gedit /usr/share/doc/b43-fwcutter-008/README'
su -c 'gedit /usr/share/doc/b43-fwcutter-008/README.Fedora'
su -c '/sbin/modprobe b43'
wget http://downloads.openwrt.org/sources/broadcom-wl-
4.80.53.0.tar.bz2
tar -jxvf broadcom-wl-4.80.53.0.tar.bz2
cd broadcom-wl-4.80.53.0/kmod
/usr/bin/b43-fwcutter -w /lib/firmware wl_apsta.o
Restart NetworkManager
Some drivers which are not released for linux will require Ndiswrapper to function. Bcm43xx driver
may have been limited to 11Mbs using Ndiswrapper increases the speed.
Install Ndiswrapper
su -c 'mkdir /ndiswrapper_drivers'
Log in as root
su --login
Now you will either need to get the drivers from your windows driver disk or download the
drivers needed for your network card from the Ndiswrapper Wiki
cp netbc564.inf /ndiswrapper_drivers/
cp bcmwl564.sys /ndiswrapper_drivers/
ndiswrapper -i netbc564.inf
Installing netbc564
Forcing parameter IBSSGMode|0 to IBSSGMode|2
ndiswrapper -l
Installed drivers:
netbc564 driver present, hardware present
modprobe ndiswrapper
If everything loads and works add ndiswrapper to your modprobe.conf file. Then exit from
root.
ndiswrapper -ma
echo "alias wlan0 ndiswrapper" >> /etc/modprobe.conf
exit
or
su -c 'system-config-network'
The BCM4318 driver can be downloaded from the following links. Thanks go to Fedora
Solved for hosting them.
There have been issues with bcm43xx actually working with the bcm4318 broadcom device. A solution
is to use ndiswrapper, however, the bc43xx bits need to be removed to avoid conflicts
Download the BCM4318 drivers from the following links if you do not have the original driver disc.
If you have the original drivers from disc or your windows partition use those drivers that are
guaranteed to function. Thanks go to Fedora Solved for hosting them.
Log in as root
su --login
Unload the kernel module and open up the module blacklist file
/sbin/rmmod bcm43xx
su -c 'gedit /etc/modprobe.d/blacklist'
Blacklist the driver by adding the following line at the bottom of the file just opened.
blacklist bcm43xx_mac80211
Or
su -c 'system-config-network'
Just add two lines to xorg.conf will activate side-mouse-buttons in FireFox. This should work with
most 5-button mouse. Here is a list of mice that worked with this instruction.
Logitech MX510
Logitech MX518
Logitech MX700
Intellimouse Explorer (first edition)
If you do not already have an /etc/X11/xorg.conf file (on Fedora 11, this is not created by default), you
need to create one:
su - -c 'gedit /etc/X11/xorg.conf'
Find the Input Device section for your mouse and add two lines as shown below. You may also
increase the number of buttons if your mouse has more than 7, just fix the rest of the section based
upon the number of buttons (remember back/forward, wheel click & tilt left/right all count as buttons)
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
...
Option "Protocol" "ExplorerPS/2"
...
Option "Emulate3Buttons" "true"
EndSection
to:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
...
Option "Protocol" "ExplorerPS/2"
...
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
EndSection
If you do not have a section for the mouse (it is not created by default), add the above section (less the
"..." parts) to the end of the file, and change the ServerLayout section to reference it:
Section "ServerLayout"
... already existing entries ...
InputDevice "Configured Mouse" "Pointer"
EndSection
At this point you can reboot your computer or restart the X server (Ctrl-Alt-BackSpace) to see if your
forward/back buttons work in FireFox. They still won't work in Nautilus yet until you install the
imwheel dameon.
su -c '/sbin/fdisk -l'
su -c 'df -T -h'
mount
/sbin/lspci
lsusb
/dev/cdrom {
dma = on
}
How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated
files/folders
To mount CD/DVD-ROM
To unmount CD/DVD-ROM
su -c 'umount /media/cdrom0/'
su -c 'mount -a'
Applications
compiz-manager
System > Preferences > Personal > Sessions > Startup Programs
Multimedia Applications
For gnome
For KDE
DVD Playback
This will enable the codecs required to play most media released.
cd /tmp
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-
20071007.tar.bz2
tar -jxvf all-20071007.tar.bz2
su -c 'mkdir -p /usr/local/lib/codecs'
su -c 'cp all-20071007/* /usr/local/lib/codecs'
rm -rf /tmp/all-20071007*
MP3 Playback
Gnome
KDE
OR
Codeina
This is a new feature in Fedora 9. It should be installed by default. If not run the following
commands. When you try to run an mp3 file it will offer you the opportunity to download a
codec.
Picasa
Picasa is software that helps you instantly find, edit and share all the pictures on your computer. Every
time you open Picasa, it automatically locates all your pictures (even ones you forgot you had) and
sorts them into visual albums organized by date with folder names you will recognize. You can drag
and drop to arrange your albums and make labels to create new groups. Picasa makes sure your
pictures are always organized.
Google Desktop
Google Desktop is a desktop search application that gives you easy access to information on your
computer and from the web. Desktop makes searching your own email, files, music, photos, and more
as easy as searching the web with Google.
Firefox Tweaks
Mozilla Firefox
How to disable beep sound for link find function in Mozilla Firefox
Mozilla Firefox
Address Bar -> about:config
Filter: accessibility.typeaheadfind.enablesound -> false
Mozilla Firefox
Type in:
browser.cache.disk.parent_directory
press OK, and type in the new window:
/tmp
press OK
Fedora tweaks
Open the sysctl.conf file for editing and backup your previous sysctl.conf file
su -c '/sbin/sysctl -p'
Swappiness
You can change how agressively Fedora uses swap space by changing its "swappiness". To do
this, specify the sysctl vm.swappiness parameter with a number between 0-100. A value of 0
means "only swap when out of memory", while 100 means "proactively swap out as many
unused pages as possible to free up memory". The default value is 60.
sysctl -w vm.swappiness=NN
To make the change take effect on every reboot, open the sysctl.conf file for editing and
backup your previous sysctl.conf file
vm.swappiness = NN
Noatime
Noatime affects how often the system updates your time in your computer. This is a
significant loss in speed according to the kernel Devs. To speed it up do the following
modifications.
Where the mount option says defaults you should add some more text.
Before:
UUID=5f7e8362-66d0-4806-b2cf-61eb74200001 /
ext4 defaults 1 1
UUID=5f7e8362-66d0-4806-b2cf-61eb74200022 /home
ext3 defaults 1 2
UUID=5f7e8362-66d0-4806-b2cf-61eb74200333 /boot
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=5f7e8362-66d0-4806-b2cf-61eb74204444 swap
swap defaults 0 0
After:
UUID=5f7e8362-66d0-4806-b2cf-61eb74200001 /
ext4 noatime 1 1
UUID=5f7e8362-66d0-4806-b2cf-61eb74200022 /home
ext3 noatime 1 2
UUID=5f7e8362-66d0-4806-b2cf-61eb74200333 /boot
ext3 noatime 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=5f7e8362-66d0-4806-b2cf-61eb74204444 swap
swap defaults 0 0
Notice the only modification is to the lines that mount my default partitions. After the editing
has been completed you will need to restart your computer for it to take effect.
If you don't wish to reboot the computer, you may also remount the partitions of the live
system:
su -c 'mount / -o remount'
su -c 'mount /home -o remount'
Preload
Preload is an adaptive readahead daemon, that will monitor which programs you use most.
Parts of these programs will be cached to speed up their load time. You can get it by running
the following command:
After having installed it, remember to check if it's running and if it's enabled to start at boot
time. You may do this by going to System -> Administration -> Services and scrolling down
to the "preload" entry: if it isn't checked, check it (click on the "Enable" button).
The "mode=1777" option sets the "sticky bit" on the mount, which allows all users write
access, but
in Fedora 11. Without it, many services will be prevented from writing to the directories.
As this change is important for SSD (Solid State Drive) systems, it also make significant
impact on applications such as Win4LinPro
Gnome Tweaks
This is a simple alteration that will speed up your gnome menu load up.
KDE Tweaks/Tips
kedit ~/.kde/share/config/konquerorrc
Now you will either need to add the following to the [FMSettings] or add [FMSettings] to
the file. I will assume that you don't have the [FMSettings].
[FMSettings]
AddTabButton=false
CloseTabButton=false
HoverCloseButton=true
info:bash
You put this in the address bar of Konqueror. To do this using man all you have to do is
change the line to the following:
man:progname
man:yum
gg:yoursearch
Such as
gg:fedoraguide
To alter the standard search engine used Konqueror go to. (Thanks to Kim)
Bash Tweaks/Tips
Auto-correct typos
Bash has a build in command called shopt which helps to find errors this may be helpful.
To enable it start the following
shopt -s cdspell
Test it
cd /hme/marc
/home/marc
Using the same program as above you can change bash to search ignoring case for programs
shopt -s nocaseglob
What you do then is when you push tab to find a filename bash will do a case insensitive
search
To make a file completely safe even as the root user run the following command.
su -c 'chattr +i myfile'
This will make the file extra secure. To remove it run the following command
su -c 'chattr -i myfile'
Sometimes people forget to add file types to the end of files you can do this running the
following command.
Deleting securely
In Fedora there is program that will completely delete your files. The man page explains it like
this Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very
expensive hardware probing to recover the data.
shred -z -u yourfile
Watching logs
There are several ways to follow what is going on in your logs. One way is to use the program
watch
su -c 'watch /var/log/messages'
su -c 'tail -f /var/log/messages'
The -f command means to follow the log. This will show any updates to the your messages
log file
Firefox Plugins
This section will install some basic browser plugins for firefox which is the default browser in Fedora
7.
Flash
If you don't hear audio during playback of flash video just install packet called libflashsupport
su -c 'rpm -ivh
http://fpdownload.macromedia.com/get/flashplayer/current/flash-
plugin-10.0.12.36-release.i386.rpm'
64bit Flash
Make sure to uninstall flash-plugin, libflashsupport and nspluginwrapper before you do these steps
wget
http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-
10.0.d20.7.linux-x86_64.so.tar.gz
tar xvzf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz -C
~/.mozilla/plugins
restart Firefox
Java (Openjdk)
The new Fedora Open JDK that is part of Fedora can be used for as far as I can tell every java
application I have come across. There seems to be no reason to follow either method listed
below.
There are several methods to install the Sun Java Runtime Environment. It has not been completely
open sourced so it is not included in Fedora at this stage. This will change in the future when Sun has
completely open sourced this package.
su -c '/sbin/ldconfig'
You need to download the *.bin file. Currently the file is Java Runtime Environment (JRE) 6 update 4.
(jre-6u4-linux-i586.bin)
su --login
cd /opt
sh /home/marc/Desktop/jre-6u3-linux-i586.bin
ln -s /opt/jre1.6.0_04/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
In the terminal:
source /etc/profile.d/java.sh
Restart firefox to make sure firefox is making use of the java go to the following website.
It seems that this bug is fixed with a new version of libxcb. You can find more info at this
Bugzilla reference
su -c '/sbin/ldconfig'
You will need to download the Java package from Sun. When you download you will need to
download the *bin file NOT the *rpm file. Current version is jdk-6u4-linux-i586.bin
You will need to install some pre-requisite packages.
Switch to root
su --login
Move the files to the appropriate directory and create the directories.
rpmdev-setuptree
mv /home/desktop/YourUsername/jdk* /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SRPMS/
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-
free/SRPMS/java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
rm -f /usr/src/redhat/RPMS/i586/java-1.6.0-sun-fonts*
/usr/src/redhat/RPMS/i586/java-1.6.0-sun-jdbc*
ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/
Check to see if it is functioning at java if it shows the wrong version do the following steps.
Restart firefox to make sure firefox is making use of the java go to the following website.
It seems that this bug is fixed with a new version of libxcb. You can find more info at this
Bugzilla reference
su -c '/sbin/ldconfig'
You will need to download the Java package from Sun. When you download you will need to
download the *bin file NOT the *rpm file. Current version is jdk-6u4-linux-i586.bin
You will need to install some pre-requisite packages.
Switch to root
su --login
Move the files to the appropriate directory and create the directories.
rpmdev-setuptree
mv /home/desktop/YourUsername/jdk* /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SRPMS/
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-
free/SRPMS/java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
rm -f /usr/src/redhat/RPMS/i586/java-1.6.0-sun-fonts*
/usr/src/redhat/RPMS/i586/java-1.6.0-sun-jdbc*
ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/
Check to see if it is functioning at java if it shows the wrong version do the following steps.
Got to Sun Java Download Page and download and save the x64bit RPM version.
Unpack and extract the RPM from the Sun Java x86_64 'bin' file downloaded:
cd ./Download
sh ./jre-6u17-linux-x64-rpm.bin
su -c 'rpm -i jre-6u16-linux-amd64.rpm'
su -c 'update-alternatives --install
/usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so
/usr/java/latest/jre/lib/amd64/libnpjp2.so 99'
su -c 'update-alternatives --config libjavaplugin.so'
Restart firefox to make sure firefox is making use of the java go to the following website.
Now just right click somewhere into the main window. A little box with options to choose will
appear. Choose "new", then "string".
Then copy the following line into the appearing text field:
network.protocol-handler.app.mms
/usr/bin/mplayer
Now you do the same thing again, but this time you do not choose "string" but "boolean", and
the line to copy is:
network.protocol-handler.external.mms
Then set
true
Linking to the mozilla plugins folder will allow you to view the pdf in the browser instead of viewing
with Acrobat Reader
cd /usr/lib/mozilla/plugins
su -c 'ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so'
CD/DVD Creation/Burning
su -c 'umount /dev/cdrom'
cdrecord dev=/dev/cdrom blank=fast
Just a clarification, I cdrecord is not installed on FC9 at all, rather there is a program called
"wodim" which is linked to cdrecord. Wodim is a modified version of an old version of
cdrecord, not the current program from the original author.
CD/DVD Burning
GnomeBaker
K3B
CD/DVD Creator
su -c 'umount /dev/cdrom'
readcd dev=/dev/cdrom f=file.iso
mkdir ~/your_disc/
su -c 'mount file.iso ~/your_disc -t iso9660 -o loop'
su -c 'umount ~/your_disc/'
e.g. Assumed that file.iso and file.iso.md5 are in the same folder
md5sum -c file.iso.md5
Songbird RPM's are available from the official Songbird contribution website. To install,
follow the link and download either the i386 rpm for 32 bit installs or the x86_64 rpm for 64
bit installs.
Please note the the following packages are required in order to have full playback capabilities:
gedit ~/.xmms/eq.preset
;
; WinAmp EQ presets for XMMS. converted by Urpo Lankinen
<wwwwolf@iki.fi>
; Do whatever you want with these. I don't care. No warranty
; expressed or implied. (And if you blast your speakers with these.
; It's Nullsoft's fault anyway =)
;
[Presets]
Preset0=(WinAmp) Classical
Preset1=(WinAmp) Club
Preset2=(WinAmp) Dance
Preset3=(WinAmp) Full Bass
Preset4=(WinAmp) Full Bass & Treble
Preset5=(WinAmp) Full Treble
Preset6=(WinAmp) Laptop Speakers / Headphones
Preset7=(WinAmp) Large Hall
Preset8=(WinAmp) Live
Preset9=(WinAmp) Party
Preset10=(WinAmp) Pop
Preset11=(WinAmp) Reggae
Preset12=(WinAmp) Rock
Preset13=(WinAmp) Ska
Preset14=(WinAmp) Soft
Preset15=(WinAmp) Soft rock
Preset16=(WinAmp) Techno
[(WinAmp) Classical]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=-1.11022e-15
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-1.11022e-15
Band6=-7.2
Band7=-7.2
Band8=-7.2
Band9=-9.6
[(WinAmp) Club]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=8
Band3=5.6
Band4=5.6
Band5=5.6
Band6=3.2
Band7=-1.11022e-15
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Dance]
Preamp=-1.11022e-15
Band0=9.6
Band1=7.2
Band2=2.4
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-5.6
Band6=-7.2
Band7=-7.2
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Live]
Preamp=-1.11022e-15
Band0=-4.8
Band1=-1.11022e-15
Band2=4
Band3=5.6
Band4=5.6
Band5=5.6
Band6=4
Band7=2.4
Band8=2.4
Band9=2.4
[(WinAmp) Party]
Preamp=-1.11022e-15
Band0=7.2
Band1=7.2
Band2=-1.11022e-15
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-1.11022e-15
Band6=-1.11022e-15
Band7=-1.11022e-15
Band8=7.2
Band9=7.2
[(WinAmp) Pop]
Preamp=-1.11022e-15
Band0=-1.6
Band1=4.8
Band2=7.2
Band3=8
Band4=5.6
Band5=-1.11022e-15
Band6=-2.4
Band7=-2.4
Band8=-1.6
Band9=-1.6
[(WinAmp) Reggae]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=-1.11022e-15
Band3=-5.6
Band4=-1.11022e-15
Band5=6.4
Band6=6.4
Band7=-1.11022e-15
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Rock]
Preamp=-1.11022e-15
Band0=8
Band1=4.8
Band2=-5.6
Band3=-8
Band4=-3.2
Band5=4
Band6=8.8
Band7=11.2
Band8=11.2
Band9=11.2
[(WinAmp) Ska]
Preamp=-1.11022e-15
Band0=-2.4
Band1=-4.8
Band2=-4
Band3=-1.11022e-15
Band4=4
Band5=5.6
Band6=8.8
Band7=9.6
Band8=11.2
Band9=9.6
[(WinAmp) Soft]
Preamp=-1.11022e-15
Band0=4.8
Band1=1.6
Band2=-1.11022e-15
Band3=-2.4
Band4=-1.11022e-15
Band5=4
Band6=8
Band7=9.6
Band8=11.2
Band9=12
Open the equalizer -> Click Preset -> Load -> Presets
su -c 'yum install xmms-mp3'
Assumed that .rpm file has been downloaded to your Desktop, because Firefox by default
downloads everything to your Desktop
su -c 'rpm -ivh Desktop/RealPlayer10GOLD.rpm'
su -c 'yum remove HelixPlayer'
wget -c
ftp://ftp.freshrpms.net/pub/dag/dries/packages/streamtuner/fc5-
i386/streamtuner-0.99.99-1.fc5.rf.i386.rpm
su -c 'rpm -ivh streamtuner-0.99.99-1.fc5.rf.i386.rpm'
su -c 'rm -f streamtuner-0.99.99-1.fc5.rf.i386.rpm'
or
Rar files are starting to be used extensively on the internet. You can install the package in Fedora.
Google Earth
You will need either the nvidia or ATI drivers installed to view the graphics properly. It is
unsure whether Google Earth will work when F8 is released. I will update this when I know
further.
here.]
wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
sh GoogleEarthLinux.bin
Note: There are issues relating to the latest ATI drivers (8.40.4)with Google Earth. A solution
has been found. Please read this post for a way of solving it.
You can setup ntfs partition manually which is explained how to do in a paragraphs beneath
this, or just use ntfs-config utility that does that automatically for you. Please first backup your
/etc/fstab file before you do anything so you can revert back if you make a mess out of it.
su -c 'ntfs-config'
You will need to create a folder which you can 'mount' your windows partition in.
su -c 'mkdir /media/windows'
If you mount your partitions in /media directory they show up in "Removable media" under
Places menue in Gnome and on Desktop. If you don't want your partitions showing there
mount then under some other directory; for example unders /mnt.
Now you need to locate your windows partition, do this with the following command.
su -c '/sbin/fdisk -l'
Now an entry is needed in the files system table, to do so enter the following.
su -c 'nano /etc/fstab'
Now in text editor make and entry similar to the follwing as the last line of the file.
If your partition identifier is not "/dev/sda1" substitute the correct device. (For example it
might be "/dev/sda1" if you have a SATA /SCSI drive.) Once the new line is added press
ctrl+o, at the File Name to Write: /etc/fstab prompt; press enter, this will save the file. Then
press ctrl+x to exit the editor. Now you need to mount your new partitions.
su -c 'mount -a'
How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only
su -c 'mkdir /media/windows'
su -c 'mount /dev/hda1 /media/windows/ -t ntfs-3g -o
nls=utf8,umask=0222'
How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write
su -c 'mkdir /media/windows'
su -c 'mount /dev/hda1 /media/windows/ -t vfat -o
iocharset=utf8,umask=000'
su -c 'umount /media/windows/'
How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only
How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
Bittorrent Clients
Fedora is released using bittorrent and it is the recommended way to download the Fedora ISO's. Here
are some programs you can install to enable bittorrent.
Azureus
This is enabled in extras already.
Bittorrent
Bittorrent (gui)
Windows Emulators
Wine
Wine is one of the busiest and fastest changing emulators out on the market. You can find a lot of info
relating to what windows programs work at the Wine Application DB
Utorrent
wine utorrent.exe
Fonts
After you install the fonts you need to log off and then log back on for the fonts to be enabled and
functioning.
Free-type Freeworld
More information relating to fonts can be found on the Linux Font HOWTO.
These fonts need to be built from the web so you will build an rpm package based on a SPEC file.
rpmdev-setuptree
Switch to your SPECS directory that you created in the previous step.
cd ~/rpmbuild/SPECS/
wget http://dl.atrpms.net/all/chkfontpath-1.10.1-2.fc11.x86_64.rpm
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
run the following command to build the rpm
cd ~/rpmbuild/RPMS/noarch/
If you have installed the xfs fontserver (it is not installed by default in Fedora 11), then run the
following code to reload it:
Or
su -c '/etc/init.d/xfs reload'
gedit ~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
Windows Messaging
To enable Windows Messaging on your computer you will need to install one program.
Amsn
Pidgin
You can connect to internet relay chat servers to communicate with other people.
XChat
su -
cat <<EOF> /etc/yum.repos.d/skype.repo
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://gd.tuwien.ac.at/infosys/phone/skype/rpm-public-key.asc
EOF
Install skype
The skype 2.1 is release for 32bit only, however it is easy to make it working on a 64bit system. Just
install the 32bit RPM described above or directly from the skype download website, and install the
32bit version of libv4l;
The launch skype from command line (or modify your menu to do the equivalent of);
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:$
{LD_LIBRARY_PATH}
cd /opt/rssowl_1_2_3_linux_bin/
./run.sh
su -c 'chmod +x /usr/bin/runRSSOwl.sh'
su -c 'gedit /usr/share/applications/RSSOwl.desktop'
[Desktop Entry]
Name=RSSOwl
Comment=RSSOwl
Exec=runRSSOwl.sh
Icon=/opt/rssowl_1_2_3_linux_bin/rssowl.xpm
Terminal=false
Type=Application
Categories=Application;Network;
su -c 'gedit /etc/yum.repos.d/fedora-devel.repo'
[development]
name=Fedora - Development
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/developme
nt/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?
repo=rawhide&arch=$basearch
enabled=1
gpgcheck=0
Fedora generally comes with Gnome to install another desktop environment look below.
Log Out
In sessions choose KDE
Log in
Log out
In sessions choose xfce
Log in
Commercial Applications
http://www.win4lin.com
http://www.codeweavers.com
http://www.transgaming.com
Networking
as root…
# rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc11/pptp-
release-current.noarch.rpm
# yum –enablerepo=pptp-stable install pptpconfig
Launch it beneath Internet, there should be a new icon for it, then input the following fields as
described:
Server Tab:
DNS Tab: Checking Automatic is recommended, if this doesn't work however you can specify DNS
Servers in the Server box. Also input something like "search mycompany.com" in the Options field
which will make host name resolution simpler.
Encryption & Misc Tab: Defaults here should be good, but if you are troubleshooting you can uncheck
everything.
hostname your_desired_computer_name
...
server string = Samba Server
...
Save the edited file, then check for errors and restart
testparm
su -c '/etc/init.d/smb restart'
or
testparm
su -c 'service smb restart'
...
workgroup = MSHOME
...
workgroup = new_domain_or_workgroup
testparm
su -c '/etc/init.d/smb restart'
How to assign Hostname to local machine with dynamic IP using free DynDNS service
USERNAME=myusername
PASSWORD=mypassword
HOSTNAME=myhostname.dyndns.org
cd ~/
if [ -f /root/ipcheck.dat ]; then
ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
else
ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD
$HOSTNAME
fi
00 * * * * sh /home/YourUsername/dyndns_update.sh
smb://192.168.0.1/linux
How to mount/unmount network folders manually, and allow all users to read
su -c 'mkdir /media/sharename'
su -c 'mount //192.168.0.1/linux /media/sharename/ -o
username=myusername,password=mypassword'
su -c 'umount /media/sharename/'
How to mount/unmount network folders manually, and allow all users to read/write
su -c 'mkdir /media/sharename'
su -c 'mount //192.168.0.1/linux /media/sharename/ -o
username=myusername,password=mypassword,dmask=777,fmask=777'
su -c 'umount /media/sharename/'
How to mount network folders on boot-up, and allow all users to read
username=myusername
password=mypassword
How to mount network folders on boot-up, and allow all users to read/write
username=myusername
password=mypassword
The X Server is pr. default started with the '-nolisten tcp' option
and thus disallows any remote X sessions.
To fix that change the [security] section to include the
'DisallowTCP=false'
[root@noone~]$ more /etc/gdm/custom.conf
# GDM configuration storage
[xdmcp]
[chooser]
[security]
DisallowTCP=false
[debug]
[root@noone ~]$
If that does not work you might have issues with your firewall or
xhost
Firewall:
System -> Administration -> Firewall
Then in other ports you Add port 6000 (X11 port)
xhost:
man xhost
or
'xhost user@server'
Remote Desktop
Warning! Remote Desktop will only work if there's a GNOME login session
Leaving computer with an unattended GNOME login session is not secure
Use (System -> Lock Screen) and off the monitor when computer is left unattended
Sharing ->
Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->
Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password
e.g. Assumed that remote Fedora machine have configured Remote Desktop
Read #How to configure remote desktop (not secure)
Remote Fedora machine: 192.168.0.1
vncviewer -fullscreen 192.168.0.1:0
To quit vncviewer
su -c 'gedit /usr/local/bin/remote2someone'
#!/bin/bash
# Written by fedorajim
# enter the IP address ofthe remote PC
IPADDRESS="$(zenity --entry --title "Enter IP Address" --text "Enter
the IP Address of the remore PC:")"
echo $IPADDRESS
#Enter the username you aregoing to login with
UserName="$(zenity --entry --title "Enter User Name" --text "Enter
the User Name to connect with:")"
echo $UserName
# opens a new terminal window and connects to remote PC
function ssh_Remote_PC
{
gnome-terminal -x ssh -L 5911:$IPADDRESS:5901 $UserName@$IPADDRESS
}
function View_Remote_PC
{
gnome-terminal -x vncviewer localhost:11
}
#################################################
selection=
until [ "$selection" = "0" ]; do
echo ""
echo "######################"
echo "1 - Make Remote Connection"
echo "2 - display Remote Desktop"
echo "0 - exit program"
echo ""
echo -n "Enter selection: "
read selection
echo ""
#####################
# Commands executed #
#####################
case $selection in
1 ) $(ssh_Remote_PC) ;;
2 ) $(View_Remote_PC) ;;
0 ) exit ;;
* ) echo "Please enter 1, 2 or 0"
esac
done
Click save and close the text editor. Right click the desktop an choose create launcher add the
following to the Create Launcher dialog
Name: remote2someone
Comment: ssh remote connection
Command: /usr/local/bin/remote2someone
Type: application
Run in Terminal: Checked
Icon: click the Icon button and choose a icon
Click save.
e.g. Assumed that remote Fedora machine have configured Remote Desktop
Read #How to configure remote desktop (not secure)
Remote Fedora machine: 192.168.0.1
Security
What are the basic things I need to know about securing my Fedora
grub
grub> md5crypt
Password: ****** (Fedora)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
...
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all
interactive editing
# control (menu entry editor and command-line) and entries protected
by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
...
...
title Fedora, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
...
rm -f $HOME/.bash_history
touch $HOME/.bash_history
chmod 000 $HOME/.bash_history
...
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
...
su -c 'telinit q'
gedit /someuser/.bashrc
One of the biggest issues that new users have relates to SELinux. Here are a few links to help
fix the situation with one fail safe technique that automatically builds an approval.
SELinux Commands
One way to modify SELinux is to use system-config-securitylevel. Install it with the following
command.
The failsafe way which fixes most issues is to use audit2allow by scanning your logs and
creating a policy to allow those denials. Some light reading as well can be found with the Red
Hat SELinux Guide.
Note: Make sure you relabel all your files prior to doing this. That may fix the problem. To
relabel your files go to system-config-securitylevel and there will be a choice to relabel on
next reboot. Tick that box and then restart. The other option is to run the following commands.
touch /.autorelabel
reboot
The other option is to try and fix the files on a live system. You can attempt this running the
following command. This may make the system unstable and the reboot method is preferred
and recommended.
fixfiles relabel
Switch to root
su --login
cd $SELINUX_SRC/
cp domains/misc/local.te domains/unused/local.te.backup
cat local.te
The output may look like this. Make sure there are no double entries and make sure that they
look reasonable and correct.
semodule -i local.te
Do the action that you were doing to generate the error and verify that it has been rectified.
Rescue Mode
linux rescue
# passwd root
# passwd system_main_username
grub
grub> md5crypt
Password: ****** (Fedora)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
...
password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
...
OR
See www.fs-driver.org
wget -c http://easylinux.info/uploads/backgrounds.tar.gz
su -c 'tar zxvf backgrounds.tar.gz -C /usr/share'
rm -f backgrounds.tar.gz
cp --preserve=ownership $USER_HOME/.gnome2/backgrounds.xml
$USER_HOME/.gnome2/backgrounds.xml_backup
sed -n -e '1,3p' $USER_HOME/.gnome2/backgrounds.xml_backup >
$USER_HOME/.gnome2/backgrounds.xml
cat /usr/share/backgrounds/frog.xml >>
$USER_HOME/.gnome2/backgrounds.xml
sed -n -e '4,$p' $USER_HOME/.gnome2/backgrounds.xml_backup >>
$USER_HOME/.gnome2/backgrounds.xml
ELSE run
su -c 'cp /usr/share/backgrounds/backgrounds.xml
$USER_HOME/.gnome2/backgrounds.xml'
su -c 'chmod 777 $USER_HOME/.gnome2/backgrounds.xml'
wget -c http://easylinux.info/uploads/icons.tar.gz
tar zxvf icons.tar.gz -C $USER_HOME
rm -f icons.tar.gz
wget -c http://easylinux.info/uploads/themes.tar.gz
tar zxvf themes.tar.gz -C $USER_HOME
rm -f themes.tar.gz
Try changing your background, and look in Applications -> Preferences -> Themes (Theme
details)
Fedora 9 now come swith a new package called gnome-themes-extras install it by doing:
To change the theme go to System -> Preferences -> Look and Feel -> Appearance you will
then be able to change the theme.
How to add the Open Terminal to the R-Click
or
su -c '/usr/sbin/gdm-restart'
...
exit 0
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
Section "ServerFlags"
Option "DontZap" "yes"
EndSection
killall nautilus
killall gnome-panel
Create the script which will automatically pass the password to keyring
gedit ~/.key.sh
Add the next section and change the word password to your password
#! /bin/bash
echo password | /usr/libexec/pam-keyring-tool --unlock
--keyring=default -s
chmod +x ~/.key.sh
Add the script to the startup sequence so that the script is run on boot.
Go through the menu listed below
~/.key.sh
/ -> apps -> gedit-2 -> preferences -> editor -> save ->
create_backup_copy (Unchecked)
/ -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save
(Checked)
su -c 'gedit /usr/share/applications/Nautilus-root.desktop'
o Insert the following lines into the new file
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksu "nautilus --browser ."
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
o Save the edited file
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-
thunderbird %s
su -c 'rpm -i package_file.rpm'
su -c 'rpm -e package_name'
wget -c http://easylinux.info/uploads/mvb_1.6.tgz
tar zxvf mvb_1.6.tgz -C /usr/share/
chown -R root:root /usr/share/mvb_1.6/
ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
mvb NEW_NAME
bbips
Append the system-wide environment variables to the file. The variable assignments are of the
form:
VARIABLE1=value
VARIABLE2=value
export VARIABLE1 VARIABLE2
su - -c 'gedit /etc/profile.d/local.csh
Append the system-wide environment variables to the file. The variable assignments are of the
form:
...
hiddenmenu
...
#hiddenmenu
...
timeout 3
...
...
default 0
...
default X_sequence
splashimage (hd0,1)/boot/grub/images/fedora.xpm.gz
Read #How to display Splash Image for GRUB menu on boot-up (use splashimage.xpm.gz
instead of Fedora.xpm.gz)
...
stop)
log_begin_msg "Stopping system log daemon..."
start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile
$pidfile
log_end_msg $?
...
rm -fr $HOME/.Trash/
rm -f $HOME/.config/menus/applications.menu
#!/usr/bin/perl -w
use strict;
$_ = $ENV{'NAUTILUS_SCRIPT_CURRENT_URI'};
if ($_ and m#^file:///#) {
s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
s#^file://##;
exec "gnome-terminal --working-directory='$_'";
}
# Added 2003-12-08 Dexter Ang
if ($_ == "x-nautilus-desktop:///") {
$_ = $ENV{'HOME'};
$_ = $_.'/Desktop';
exec "gnome-terminal --working-directory='$_'";
}
Right click the desktop choose Scripts then "Open Terminal Here"
#!/bin/sh
cd $NAUTILUS_SCRIPT_CURRENT_URI
sudo gnome-terminal
Right click the desktop choose Scripts then "Open Terminal Here"
Servers
or
su -c 'yum -y install samba'
su -c 'yum -y install samba-client'
su -c 'yum -y install system-config-samba'
Use *Desktop -> System Settings -> Server Settings -> Samba
or
su -c 'smbpasswd -a system_username'
su -c 'gedit /etc/samba/smbusers'
o Insert the following line into the new file
o Save the edited file
To edit network user
su -c 'smbpasswd -a system_username'
su -c 'smbpasswd -x system_username'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
testparm
su -c '/etc/init.d/smb restart'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[homes]
comment = Home Directories
browseable = yes
writeable = no
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/group'
su -c 'chmod 777 /home/group/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = no
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/group'
su -c 'chmod 777 /home/group/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = yes
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/public'
su -c 'chmod 777 /home/public/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[public]
comment = Public Folder
path = /home/public
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
Save the edited file
Read #How to add/edit/delete network users
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/public'
su -c 'chmod 777 /home/public/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/public'
su -c 'chmod 777 /home/public/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = share
testparm
su -c '/etc/init.d/smb restart'
su -c 'mkdir /home/public'
su -c 'chmod 777 /home/public/'
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
...
; security = user
...
security = share
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
testparm
su -c '/etc/init.d/smb restart'
http://localhost
Apache tips
su -c 'cp /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf_original'
su -c 'gedit /etc/httpd/conf/httpd.conf '
ServerSignature off
ServerTokens ProductOnly
restart apache
su -c '/etc/rc.d/init.d/httpd restart'
su -c 'gedit /etc/httpd/conf.d/alias'
su -c '/etc/init.d/httpd restart'
http://localhost/URL-path
How to change the default port number for Apache HTTP Server
Listen 80
Listen 78
Save the edited file
/etc/init.d/httpd restart
http://localhost:78
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Remote Fedora machine: 192.168.0.1
ssh username@192.168.0.1
How to copy files/folders from remote Fedora machine into local machine (scp)
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Remote Fedora machine: 192.168.0.1
Remote files/folders location: /home/username/remotefile.txt
Local machine save location: . (current directory)
scp username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from remote Fedora machine into local machine using Nautilus(scp)
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Remote Fedora machine: 192.168.0.1
Remote files/folders location: /home/username/remotefile.txt
Local machine save location: . (current directory)
Add the following details when you have opened the window
Service Type:SSH
Server:192.168.0.1
Port:Leave blank
Folder:/home/username
Username:username
Name to use for connection:Remote Machine's Name
How to copy files/folders from local machine into remote Fedora machine (scp)
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Local files/folders location: localfile.txt
Remote Fedora machine: 192.168.0.1
Remote Fedora machine save location: /home/username/
scp localfile.txt username@192.168.0.1:/home/username/
If not specifying the remote directory, the home directory for that user will be used:
How to copy files/folders from remote Fedora machine into local machine (rsync)
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Remote Fedora machine: 192.168.0.1
Remote files/folders location: /home/username/remotefile.txt
Local machine save location: . (current directory)
rsync -v -u -a --delete --rsh=ssh --stats
username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from local machine into remote Fedora machine (rsync)
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
Local files/folders location: localfile.txt
Remote Fedora machine: 192.168.0.1
Remote Fedora machine save location: /home/username/
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt
username@192.168.0.1:/home/username/
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
How to copy files/folders from/into remote Fedora machine via Windows machine
e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall
allows to connect to it
How to configure FTP Server to allow anonymous FTP user to read only
su -c '/etc/init.d/proftpd restart'
<Anonymous ~ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
</Anonymous>
su -c '/etc/init.d/proftpd restart'
<Anonymous /location_of_folder/>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
su -c '/etc/init.d/proftpd restart'
Port 21
Port 77
su -c '/etc/init.d/proftpd restart'
e.g. Assumed that remote Fedora machine have installed FTP Server service
Read #How to install FTP Server for File Transfer service
Automatically start
chkconfig pure-ftpd on
How to configure FTP Server to allow anonymous FTP user to read only
NoAnonymous no
su -c '/etc/init.d/pure-ftpd restart'
AnonymousCanCreateDirs no
AnonymousCantUpload yes
To
AnonymousCanCreateDirs yes
AnonymousCantUpload no
su -c '/etc/init.d/pure-ftpd restart'
# Bind 127.0.0.1,21
Bind 77
su -c '/etc/init.d/pure-ftpd restart'
For gnome
For KDE
OR
pptpconfig
Find the following lines and alter them to what is provided. The config line is very big so back
it up.
su -c 'gedit /etc/mail/sendmail.mc'
LOCAL_DOMAIN(`mail.your.domain.com)dnl
MASQUERADE_AS(`your.domain.com')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
su -c 'gedit /etc/mail/virtusertable'
Add your usernames and email addresses at the bottom in that format.
name@your.domain.com name
make -C /etc/mail
su -c 'gedit /etc/aliases'
# Person who should get root's mail
root: youradminusername
youradminusername: youradminusername
Close the file down and run the following command as root. Make sure it comes up on boot
newaliases
chkconfig sendmail on
Restart sendmail
su -c '/etc/init.d/sendmail restart'
Mail server (dovecot)
chkconfig dovecot on
POP/IMAP settings
su -c 'gedit /etc/dovecot.conf'
listen = [::]
Set the mail location. The example below creates in your home directory a mail folder called
Maildir
# mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
# mail_location =
mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
maildir:~/Maildir
su -c 'gedit /etc/denyhosts.conf'
Modify the following lines to match what is listed below. Remember to remove the '#' at the
beginning of the lines
PURGE_DENY = 4w
BLOCK_SERVICE = ALL
DENY_THRESHOLD_INVALID = 5
DENY_THRESHOLD_VALID = 10
DENY_THRESHOLD_ROOT = 0
DENY_THRESHOLD_RESTRICTED = 1
SYSLOG_REPORT=YES
AGE_RESET_VALID=5d
AGE_RESET_ROOT=25d
SYNC_SERVER = http://xmlrpc.denyhosts.net:9911
SYNC_INTERVAL = 1h
SYNC_UPLOAD = yes
SYNC_DOWNLOAD_RESILIENCY = 5h
chkconfig named on
The easiest method is to follow the following howto from Redhat it is exactly the same as
what I used.
chkconfig dhcpd on
Adjust your config to have a range issued in between 192.168.1.100 -> 192.168.1.200
Note: Remember the curly braces {}
If you want to have an ip linked to a print-server named print-server you follow the host
section listed below.
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
allow bootp;
ddns-update-style ad-hoc;
host strikeforce {
hardware ethernet 00:0F:EA:3E:12:58;
fixed-address 192.168.1.150;
}
Make sure you it is turned on when you boot. Run the command as root.
chkconfig ntpd on
or
su -c 'yum install mysql'
su -c 'yum install mysql-server'
su -c 'yum install php-mysql'
su -c 'yum install MySQL-python'
su -c '/etc/init.d/mysqld start'
mysqladmin -u root password new_db_user_password