Перевод www.fedoraguide.info
Материал из База знаний проекта Russian Fedora
ВНИМАНИЕ! На этой странице необходимо:
- Дополнить содержимое (закончить копирование с www.fedoraguide.info)
- Упорядочить содержимое по логическим темам
- Проверить актуальность всей информации для Fedora 10
- Перевести содержимое
- Отформатировать содержимое к удобочитаемому виду
Неофициальный путеводитель по Fedora
Fedora 10 (Cambridge)
Fedora 10 (Cambridge) была выпущена 25 ноября 2008 года.
Это руководство предоставляет краткие сведения о том, как делать те или иные вещи в Fedora. Если Вы хотите способствовать развитию этого проекта, контактируйте с авторами на Fedora Forum. Если хотите способствовать - регистритуйтесь на форуме и участвуйте в разработке!
Туры
Если хотите ознакомиться с тем, как выглядит теперь Fedora, загляните в ознакомительный тур.
Что изменилось
Fedora сильно изменилась от релиза Fedora 9 к релизу Fedora 10. Доступен список изменений.
Наиболее общие проблемы и способы их решения
Common Bugs and their Solutions
Основные сведения
- Это руководство никак не связано с проектом Fedora или компанией Red Hat.
- Это руководство в оригинале дополняется путем отправки пожеланий по адресу admin <at> fedoraguide.info
- Нужны добровольцы для сопровождения нового контента, который будет появляться в этой wiki.
- Когда нужны права суперпользователя, везде, где только это возможно, используйте 'su -c' .
- Например, для обновления всей системы введите следующее: su -c 'yum update'
- Для сохранения файлов используйте правый клик мыши и пункт контекстного меню "Сохранить как"-"Save as".
- Основные предположения разработчиков о навыках пользователей сводятся к тому, что вы умеете загружать вашу систему и умеете вводить команды в терминале, если это необходимо.
- В Русской Федоре дополнительные репозитории подключаются автоматически в процессе инсталляции системы.
Переключение на пользователя root
- Прочитайте #Основные сведения
- Бывают моменты, когда вы должны иметь права пользователя root (администратора). Для повышения своих прав до прав пользователя root используйте команды
su --login
или
su -
Обновление Fedora
Как использовать Yum
- Прочитайте #Основные сведения
- Прочитайте #Репозитории
Yum - это очень мощный пакетный менеджер. Yum умеет разрешать зависимости пакетов, делая процедуру установки программ простой и быстрой. Yum также может искать, удалять и выводить списки пакетов.
Это краткая справка, которую yum предоставляет в командной строке.
Usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, check-update, list, remove, clean, grouperase > 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
На первый взгляд выглядит страшно, однако на самом деле использование yum сравнительно несложно. Руководствуйтесь примерами.
Примеры использования yum:
- Поиск приложения
Yum проверит все, что доступно в подключенных репозиториях, и выведет информацию, откуда вы можете получить тот или иной пакет.
yum search application_name
- Yum может вывести список всех доступных пакетов, и для каждого пакета выдаст информацию о том, из какого репозитория он может быть получен:
yum list available
- Для получения расширенной информации о конкретном пакете:
yum info application_name
- Для установки пакета:
yum install application_name
- Для вывода списка установленных rpm-пакетов:
yum list extras
- Для удаления rpm-пакетов.
Вы можете удалять пакеты вместе с их зависимостями. Если зависимость используется другим пакетом, она не будет удалена.
yum remove application_name
- Обновление системы.
Вы можете обновлять систему без какого-либо вмешательства в процесс, если вам нужно именно это.
yum update
- Не уверены, что обновления доступны? Используйте это:
yum check-update
- Если есть локально расположенный пакет, и его надо установить так, чтобы его зависимости были удовлетворены из сетевых репозиториев, достаточно будет команды:
yum localinstall /путь/к/пакету/rpm
Желаем вам счастливого yumming...
Рекомендуемые плагины
yum-presto
- Этот плагин ускоряет процессы обработки данных и загрузки пакетов с помощью информации о различиях между старым и новым пакетом на уровне файлов. Особенно помогает при установке большого количества обновлений. Установите плагин с помощью следующей команды:
su -c 'yum -y install yum-presto'
- Есть, однако, особенность использования yum-presto. Во время работы плагина должны быть доступны специальные репозитории presto. Отредактируйте /etc/yum.repos.d/fedora-updates-newkey.repo . Нужно изменить mirrorlist на:
Полезные сайты, посвященные Fedora
Несколько полезных ресурсов.
Решения проблем пользователя Fedora в стиле HOW-TO
Dangermouse's Website Весьма полезный сайт, посвященный скрипту для автоматической установки некоторых популярных пакетов.
Тред, посвященный скрипту Dangermouse's на форуме Fedora
Как установить Fedora
Обратитесь к официальной документации по установке (или просто установите Fedora).
Как обновить Fedora
- Посмотрите информацию на следующем сайте:
http://fedoraproject.org/wiki/YumUpgradeFaq#head-56b13936246769f517ac488a0098d193c7fc3600
- Убедитесь, что кеш yum очищен, затем выполните команду обновления и перезагрузите машину:
su -c 'yum clear all' su -c 'yum update'
- Для архитектуры i386
su -c '/bin/rpm -Uhv http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-8-3.noarch.rpm \ http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm'
- Для архитектуры x86_64
su -c '/bin/rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/x86_64/os/Packages/fedora-release-8-3.noarch.rpm \ http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/x86_64/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm'
- Рекомендуется отключить все сторонние репозитории и, возможно, потребуется удалить некоторые файлы.
su -c 'yum upgrade'
Проблемы установки
Для всех версий выявлены свои проблемы установки.
Как присоединится к проекту Fedora
Есть множество путей, используя которые вы можете помочь отличной операционной системе стать еще лучше. Прогресс не может быть быстрее без вашей помощи. Для присоединения к проекту:
Вы также можете присоединится к проекту Русская Федора.
Управление пользователями
Как установить/изменить пароль root
- Посмотрите #Основные сведения
- Посмотрите #Переключение на пользователя root
su --login
- Далее вы можете поменять пароль root командой:
passwd root
Как отключить учетную запись пользователя root
- Прочтите #Основные сведения
- Прочтите #Переключение на пользователя root
passwd -l root
Установка утилиты System-Config-User
- Прочтите #Основные сведения
- Установите system-config-users
su -c 'yum -y install system-config-users'
Как добавить/изменить атрибуты/удалить пользователя
- Прочтите #Основные сведения
- Прочтите #Установка утилиты System-Config-User
- Desktop -> System Settings -> Users and Groups
- Users and Groups
Users Tab -> Add User.../Properties/Delete
Как добавить/изменить атрибуты/удалить группу
- Прочтите #Основные сведения
- Прочтите #Установка утилиты System-Config-User
- Desktop -> System Settings -> Users and Groups
- Users and Groups
Groups Tab -> Add Group.../Properties/Delete
Как автоматически входить в рабочую среду GNOME (не безопасно)
- Прочтите #Основные сведения
- Desktop -> System Settings -> Login Screen
- Login Screen Setup
General Tab -> Automatic Login -> Login a user automatically on first bootup (Отметить) Automatic login username: Выберите "system_username"
Как изменить права доступа на файл/каталог
- Прочтите #Основные сведения
В файловом менеджере или на рабочем столе правый клик мыши на каталоге или файле -> Properties
Permissions Tab -> Read/Write/Execute (Отметьте нужные права для Owner/Group/Others)
Как изменить владельца файла/каталога
- Прочтите #Основные сведения
- Прочтите #Переключение на пользователя root
chown системное_имя_пользователя /путь_к_каталогу/файлу
- Изменить владельца рекурсивно, включая подкаталоги и содержащиеся в них файлы:
chown -R системное_имя_пользователя /путь_к_каталогу/*
Как изменить группу-собственника файла/каталога
- Прочтите #Основные сведения
- Прочтите #Переключение на пользователя root
chgrp системное_имя_группы /путь_к_каталогу/файлу
- Рекурсивно
chgrp -R системное_имя_группы /путь_к_каталогу/*
Вывести резюме вашего последнего изменения, произведенного с помощью rpm
- Прочтите #Основные сведения
rpm -qa --last | tac
Репозитории
Дополнительные репозитории, такие как tigro и RPM Fusion подключены в Русской Федоре по умолчанию. Помните, что существует риск нарушения целостности системы при установке пакетов из сторонних репозиториев.
Замечание: Подключение разнородных репозиториев может быть опасным. Защитите репозитории с помощью команд, показанных ниже.
Защитие ваши репозитории (на примере Fusion)
su -c 'yum -y install yum-protectbase' su -c 'perl -i -pe "s/(\[.*\])/\1\nprotect=yes/" /etc/yum.repos.d/{fedora*,rpmfusion*}'
Репозиторий Adobe
Создайте файл в каталоге репозиториев.
su -c 'rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm'
- После установки измените repo файл, как показано ниже:
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
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
Jpackage
- За исключением JPackage free и non-free generic, эта конфигурация специфична для Fedora 10 и Red Hat 5.00.
- Нужно находится внутри каталога, получая файл:
cd /etc/yum.repos.d/ su -c 'wget http://www.jpackage.org/jpackage.repo'
- Отредактируйте repo файл:
su -c 'gedit /etc/yum.repos.d/jpackage.repo'
- Следуйте образцу.
- Поместите символ # перед каждой строкой, которую вы не хотите использовать.
- Раскоментируйте (что означает удаление # ) каждую строку, в которой вы нуждаетесь.
- Чтобы репозиторий стал доступен, измените enabled=0 на enabled=1.
#- jpackage-fc for Fedora Core #- jpackage-rhel for Red Hat Enterprise Linux and derivatives
[jpackage-generic] name=JPackage (free), generic mirrorlist=http://www.jpackage.org/jpackage_generic_1.7.txt failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1
[jpackage17-f9] name=JPackage 1.7 (free) for Fedora 9 baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/fedora-9/free/ failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1
[jpackage50-f9] name=JPackage 5.0 (free) for Fedora 9 baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/5.0/fedora-9/free/ failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1
#[jpackage17-rhel50] #name=JPackage 1.7 (free) for Red Hat Enterprise Linux 5.0 #baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/redhat-el-5.0/free/ #failovermethod=priority #gpgcheck=1 #gpgkey=http://www.jpackage.org/jpackage.asc #enabled=0
#[jpackage17-rhel50] #name=JPackage 5.0 (free) for Red Hat Enterprise Linux 5.0 #baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/5.0/redhat-el-5.0/free/ #failovermethod=priority #gpgcheck=1 #gpgkey=http://www.jpackage.org/jpackage.asc #enabled=0
[jpackage-generic-nonfree] name=JPackage (non-free), generic mirrorlist=http://www.jpackage.org/jpackage_generic_nonfree.txt failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1
Для создания файла нужно быть с правами root.
su --login
Создайте репозиторий
cat <<EOF > /etc/yum.repos.d/google.repo
[google] name=Google - i386 baseurl=http://dl.google.com/linux/rpm/stable/i386 enabled=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub EOF
Существует ли графический интерфейс (GUI) для Yum
Существует несколько программных продуктов, которые используют yum в качестве движка.
Yumex
- Установить юмекс:
su -c 'yum -y install yumex'
Package Manager (Default)
Пакетный менеджер вызывается из следующего меню:
System -> Administration -> Add/Remove Software
Права пользователей в Fedora
Добавить пользователя в Sudo
Получите права root.
su --login
Добавьте своего пользователя в файл sudoers.
echo 'ваш_системный_логин ALL=(ALL) ALL’ >> /etc/sudoers
Аппаратное обеспечение
Видеодрайверы
- Пользователи NVidia. Загрузить из RPM Fusion kmod-nvidia с помощью yum и перезагрузится.
- Пользователи ATI. Если ваша видеокарта старее, чем Radeon 9600, все должно работать из коробки, если нет, ждите, пока ATI выпустит новый драйвер для ядра 2.6.23. Когда дождетесь, загрузите kmod-fglrx с помощью yum из RPM Fusion.
- Пользователи Intel радуются, если заработало из коробки.
Nvidia
Получение Linux драйверов от Nvidia.
http://www.nvidia.com/object/unix.html
Версия x86_64bit хорошо работает на моем AMD Athlon X2 ноутбуке. Nvidia (96xx)
- Прочитайте #Основные сведения
- Нужен репозиторий RPM Fusion (у пользователей Русской Федоры есть).
- Для владельцев более старых видеокарт:
su -c 'yum -y install kmod-nvidia-96xx'
ATI
Нужен репозиторий RPM Fusion (у пользователей Русской Федоры есть).
Замечание: отмечены некоторые баги в текущей версии.
su -c 'yum -y install kmod-fglrx xorg-x11-drv-fglrx-libs-32bit'
Драйверы беспроводных устройств
Intel IPW3945
- Это руководство по установке и настройке беспроводных сетевых карт Intel 3945 A/B/G с использованием FreshRPMS. Люди все еще шлют ошибки, которые возникают при использовании этого метода. Второй метод добавлен до кучи.
- Замечание: Новые драйвера для Fedora 10 очень хороши и следует их проверить перед установкой по методу, приведенному ниже. Используйте данный метод как последнее средство.
Метод 1
Нужен репозиторий FreshRPMS.
su -c 'yum --enablerepo=freshrpms install dkms-ipw3945'
- Нужно настроить свой интерфейс с помощью утилиты sytem-config-network. Множество людей забывают этот шаг. Удалите wlan0 и установите eth1.
System -> Administration -> Network
Method 2
Этот метод накопан на fedorasolved.org
Описание основных шагов и что мы ожидаем в итоге. Нужны права root.
- Выключите модули:
nano /etc/modprobe.d/blacklist
- Добавьте в точности эти строки в конце файла:
- iwl3945
blacklist iwl3945 blacklist mac80211
- Перегрузите систему.
- Создайте временный каталог на вашем рабочем столе, назвав его 'ipw3945' и загрузите в него файлы:
mkdir /home/$user/Desktop/ipw3945 (замените $user на ваше системное имя)
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
- Установите пакет разработки ядра и коллекцию компиляторов gcc:
yum install kernel-devel gcc
- Распакуйте тарболы в каталог, названный 'ipw3945', созданный ранее:
tar xvfz ipw3945-1.2.1.tgz tar xvfz ipw3945-ucode-1.14.2.tgz tar xvfz ipw3945d-1.7.22.tgz
- Скопируйте прошивку ucode и управляющий демон в соответствующие локации:
cp ipw3945-ucode-1.14.2/ipw3945.ucode /lib/firmware && cp ipw3945d-1.7.22/x86/ipw3945d /sbin
- (или выберите версии для x86_64, если это необходимо)
- Скомпилируйте и скопируйте модуль ядра в правильную локацию:
cd ipw3945-1.2.1 && make
su --login
cp /home/$user/Desktop/ipw3945/ipw3945-1.2.1/ipw3945.ko lib/modules/`uname -r`/kernel/drivers/net/wireless/
chmod 744 /lib/modules/`uname -r`/kernel/drivers/net/wireless/ipw3945.ko
depmod -ae
- Установите init-скрипт:
cp /home/$user/Desktop/ipw3945/ipw3945 /etc/init.d
chmod +x /etc/init.d/ipw3945
chkconfig --add ipw3945 && chkconfig ipw3945 on
- Перегрузите систему.
- Сконфигурируйте устройство:
system-config-network
- new --> wireless connection --> Intel Corporation PRO/Wireless 3945ABG Network Connection --> forward
- Перестартуйте сервис сети:
Если все остальные сетевые устройства не конфигурировались, установите их ip-адреса, шлюзы, DNS, маски подсетей, каналы wifi, SSID и ключи.
service network restart
Общие проблемы и их решение.
У многих портативных компьютеров со встроенными беспроводными утройствами есть WLAN переключатель, то есть тумблер для включения/отключения беспроводной радиосвязи.
Пожалуйста будте уверены, что Вы установили положение тумблера в режим on ("Вкл"), или Ваш ipw3945 беспроводной адаптер не будет коректно обнаружен и работоспособен.
Кроме того, отключите все другие сетевые карты до использования ipw3945. Дополнительная информация
Особые замечания:
Если Вам нужно включить режим мониторинга, режим 'Promiscuous' или 'RadioTap' для этого устройства, Вам нужно будет отредактировать Makefile
Перед компиляцией модуля раскомментируйте следующие строки:
CONFIG_IPW3945_MONITOR=y CONFIG_IEEE80211_RADIOTAP=y CONFIG_IPW3945_PROMISCUOUS=y
Что еще почитать
Madwifi
RPM Fusion должен быть доступен (в Русской Федоре доступен).
su -c 'yum -y install madwifi kmod-madwifi'
- Потребуется добавить следующие строки в файл modprobe.conf
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
- Сконфигурируйте ваш интерфейс
System -> Administration -> Network
IPW2x00
- Вам нужно будет определить, какую именно беспроводную карту вы имеете:
su -c '/sbin/lspci | grep Wireless'
- Вывод предыдущей команды должен быть примерно следующим:
02:01.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
02:01.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
- Инсталлируйте нужное firmware
su -c 'yum -y install ipw2xxx-firmware'
- Перегрузите машину и сконфигурируйте сеть:
System -> Administration -> Network
Broadcom b43 - Проприетарный драйвер
- Enable the RPM Fusion repo
http://fedoraguide.info/index.php?title=Fedora10#RPM_Fusion
- Install the driver
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".
Broadcom b43 - Открытый драйвер - (точно работает)
Работоспособность проверена вживую - Anganar
su -c 'yum -y install b43-fwcutter'
- Download the appropriate package based on this file
su -c 'gedit /usr/share/doc/b43-fwcutter-011/README'
- Fedora instructions can be located under the README.Fedora
su -c 'gedit /usr/share/doc/b43-fwcutter-011/README.Fedora'
- A copy of the README is listed below
Where can I find some driver source files? ------------------------------------------ Please check the references at http://www.linuxwireless.org/en/users/Drivers/bcm43xx#devicefirmware It is recommended that you extract firmware for both b43 and b43legacy in order to support both types of cards on your system.
- Download and extract the firmware
wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
tar -jxvf broadcom-wl-4.150.10.5.tar.bz2
- Cut the firmware
cd broadcom-wl-4.150.10.5.tar.bz2/driver /usr/bin/b43-fwcutter -w /lib/firmware wl_apsta_mimo.o
- Add the following line so that it can be configured by system-config-network
su -c 'echo "alias wlan0 b43" >> /etc/modprobe.conf'
- Restart NetworkManager
su -c '/sbin/service NetworkManager restart'
Ndiswrapper drivers howto
Некоторые драйверы которые не были разработаны для linux потребуют наличия Ndiswrapper для их функционирования. Bcm43xx драйверы могут быть ограничены до 11 Мбит\сек, использование Ndiswrapper способствует увеличению скорости.
Вам потребуется установить RPM Fusion репозиторий.
- Установим Ndiswrapper
su -c 'yum -y install kmod-ndiswrapper'
- Создадим директорию для драйвера.
su -c 'mkdir /ndiswrapper_drivers'
- Зарегистрируемся как root
su --login
- Теперь Вам нужно будет либо достать драйвер с диска драйверов для windows или загрузить нужные драйверы для Вашей сетевой карты с Wiki-страницы проекта Ndiswrapper
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
- Если все загрузилось и работает, добавьте ndiswrapper в конфигурационный файл modprobe.conf. Затем выйдете из под root.
ndiswrapper -ma echo "alias wlan0 ndiswrapper" >> /etc/modprobe.conf exit
- Настройте сеть
System -> Administration -> Network
or
su -c 'system-config-network'
- Драйвер BCM4318 может быть загружен по нижеприведенным ссылкам. Спасибо Fedora Solved за их размщение.
- BCM4318 драйвер для 32 битных систем (тут нужна ссылка с оригинала)
- BCM4318 драйвер для 64 битных систем (тут нужна ссылка с оригинала)
BCM4318 using Ndiswrapper
Там были некоторые проблемы с bcm43xx модулем работающим с broadcom bcm4318 устройствами. Решение заключается в том, чтобы использовать ndiswrapper, однако, bc43xx нужно удалить, чтобы избежать конфликтов
Загрузите BCM4318 драйвер используя нижеприведенные ссылки если у Вас нет оригинального диска с драйверами. Если у Вас есть оригинальные драйвера с диска или с Вашего windows раздела жесткого диска, то их использование дополнительно гарантирует функционирование. Спасибо Fedora Solved за их размещение.
- BCM4318 драйвер для 32 битных систем (тут нужна ссылка с оригинала)
- BCM4318 драйвер для 64 битных систем (тут нужна ссылка с оригинала)
- Зарегистрируемся как root
su --login
- Выгрузим модуль ядра и откроем блеклист файл модулей ядра в редакторе
/sbin/rmmod bcm43xx su -c 'gedit /etc/modprobe.d/blacklist'
- Добавим в блеклист драйвер, поместив следущую строку в самый низ открытого нами файла.
blacklist bcm43xx_mac80211
- Удалим устройства из system-config-network, затем создадим новое устройство
System -> Administration -> Network
Или
su -c 'system-config-network'
Активация боковых кнопок мыши в FireFox
Простое добавление двух строчек в файл xorg.conf делает доступным использование боковых кнопок мыши в браузере FireFox. Этот способ должен работать для большинства пятикнопочных мышей. Ниже приведен список моделей, для которых способ был проверен.
- Logitech MX510
- Logitech MX518
- Logitech MX700
- Intellimouse Explorer (first edition)
Создайте резервную копию файла конфигурации Х-сервера:
su -c 'cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak'
Отредактируйте конфигурационный файл:
su -c 'gedit /etc/X11/xorg.conf'
Найдите секцию Input Device для мыши и добавьте строки, как показано ниже. Возможно, вам также потребуется увеличить число кнопок. Просто поправьте директивы "Buttons" и "ButtonMapping". Имейте в виду, что вперед/назад, клик колесом прокрутки и покачивание колеса вправо/влево также описываются как кнопки.
Измените следующую секцию:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" EndSection
приведя ее к такому виду:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" EndSection
После чего можно перегрузить машину или перезапустить графический режим (Ctrl-Alt-BackSpace), чтобы убедиться, что ваши кнопки вперед/назад работают в FireFox. Если не установлен демон imwheel, этот метод скорее всего не будет работать в Nautilus.
Как просмотреть таблицу разделов
- Прочитайте #Основные сведения
su -c '/sbin/fdisk -l'
Как просмотреть использование дискового пространства
- Прочитайте #Основные сведения
su -c 'df -T -h'
Как просмотреть список смонтированных устройств
- Прочитайте #Основные сведения
mount
Как просмотреть список устройств PCI
- Прочитайте #Основные сведения
/sbin/lspci
Как просмотреть список USB устройств
- Прочитайте #Основные сведения
- Эту команду следует запускать от имени пользователя root.
lsusb
Как ускорить CD/DVD-ROM привод
- Прочитайте #Основные сведения
Пример. Предположим, что /dev/cdrom это расположение CD/DVD-ROM привода
su -c '/sbin/hdparm -d1 /dev/cdrom' su -c 'gedit /etc/hdparm.conf'
- Вставьте следующий строки в новый файл
/dev/cdrom {
dma = on
}
- Сохраните изменения
Как смонтировать/отмонтировать CD/DVD-ROM вручную, и показать все скрытые и ассоциированные файлы и папки
- Прочитайте #Основные сведения
Пример. Предположим, что /media/cdrom0/ это расположение CD/DVD-ROM привода
- Чтобы примонтировать CD/DVD-ROM выполните:
su -c 'mount /media/cdrom0/ -o unhide'
- Для отмонтирования CD/DVD-ROM
su -c 'umount /media/cdrom0/'
Как принудительно отмонтировать CD/DVD-ROM вручную
- Прочитайте #Основные сведения
Пример. Предположим, что /media/cdrom0/ это расположение CD/DVD-ROM привода
su -c 'umount /media/cdrom0/ -l'
Как перемонтировать все устройства перечисленные в /etc/fstab без перезагрузки
- Прочитайте #Основные сведения
su -c 'mount -a'
Compiz-fusion (3D эффекты)
- Прочитайте #Основные сведения
- Прочитайте #Репозитории
- Вам потребуется поддержка 3d, прочитайте #Видеодрайверы
- Установите compiz-fusion
su -c 'yum -y install compiz-fusion-extras libcompizconfig ccsm compiz-manager libcompizconfig'
- Для среды GNOME можно использовать дополнительное программное обеспечение
su -c 'yum -y install compiz-fusion-extras-gnome fusion-icon-gtk'
- Чтобы запустить compiz-fusion выполните следущую команду
compiz-manager
- Чтобы compiz-fusion выполнялся во время загрузки, необходимо добавить выполнение команды в следущему меню
System > Preferences > Personal > Sessions > Startup Programs
Приложения для воспроизведения мультимедиа-форматов
Установка Media Player (Mplayer/Kplayer)
Это приложение умеет воспроизводить мультимедиа файлы, созданные с помощью проприетарных кодеков.
Необходим доступ к RPM Fusion.
- Для Gnome
su -c 'yum -y install mplayer-gui'
- Для KDE
su -c 'yum -y install kplayer'
Установка плеера Xine
Необходим доступ к RPM Fusion.
su -c 'yum -y install xine'
Установка проприетарных кодеков
su -c 'yum -y install xine-lib-extras-nonfree'
Установка плеера VLC
Необходим доступ к RPM Fusion.
su -c 'yum -y install vlc'
Библиотека для чтения структуры DVD-дисков
- Прочитайте #Основные сведения
- Прочитайте #Репозитории
Этот компонент добавит поддержку чтения структуры dvd-дисков в Fedora.
su -c 'yum -y install libdvdread'
Кодеки-компоненты Windows ()
- Прочитите #Основные сведения
- В начале установите wget (бывают случаи, когда wget не установлен по умолчанию)
su -c 'yum -y install wget'
- Установка набора кодеков, охватывающих бОльшую часть релизов музыки и видео.
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*
Это тоже может помочь, но как правило не является обязательным.
su -c 'ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf \ /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs '
Поддержка MP3
Необходим доступ к RPM Fusion.
Gnome
Добавление поддержки MP3 в Gnome с помощью библиотек gstreamer.
su -c 'yum -y install gstreamer-plugins-ugly libmad libid3tag id3v2'
KDE
Добавление поддержки MP3 в KDE через KDE Multimedia
su -c 'yum -y install kdemultimedia-extras-nonfree id3v2'
или
su -c 'yum install xine-lib-extras-nonfree id3v2'
Codeina
- Этот функционал был добавлен в Fedora 9. Если codeina почему-либо не был установлен по умолчанию, выполните следующие команды. Когда вы попробуете воспроизвести mp3 файл, это программное обеспечение предоставит возможность загрузить нужный кодек.
su -c 'yum install codeina'
Picasa
Picasa позволяет управлять, редактировать и распространять файлы картинок. Всякий раз, когда вы запускаете Picasa, приложение автоматически находит все картинки на вашем компьютере и организует их в альбомы, организованные по датам. Поддерживается drag and drop для управления альбомами и группами в них.
Необходим доступ к Google Repo.
su -c 'yum install picasa'
Google Desktop
Google Desktop - это приложение для поиска, облегчающее доступ к информации на локальном компьютере и в Web. Локальный поиск поддерживает файлы почтовых отправлений, простые файлы, мультимедиа, изображения.
Необходим доступ к Google Repo.
su -c 'yum --enablerepo=google install google-desktop-linux'
Как установить редактор тегов ID3 (EasyTAG)
- Прочтите #Основные сведения
- Прочтите #Репозитории
yum --enablerepo=freshrpms install easytag
- Applications -> Sound & Video -> EasyTAG
Как установить редактор видео (Kino)
- Прочтите #Основные сведения
- Прочтите #Репозитории
su -c 'yum -y install kino'
- Applications -> Sound & Video -> Kino
Как установить K9copy
- Прочтите #Основные сведения
- Прочтите #Репозитории
su -c 'yum install k9copy'
Как установить DVD риппер (dvd::rip)
- Прочтите #Основные сведения
- Прочтите #Репозитории
su -c 'yum --enablerepo=freshrpms install dvdrip'
Firefox-твики
Советы по повышению скорости работы Firefox в Веб
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Адресная строка -> about:config
Фильтр: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true
- Перезапустите Mozilla Firefox
Как отменить бип-звук для ссылок и функции поиска в Mozilla Firefox
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Адресная строка -> about:config
Фильтр: accessibility.typeaheadfind.enablesound -> false
- Перезапустите Mozilla Firefox
Установка backspace-кнопки для перехода на предыдущую строку
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Адресная строка -> about:config
Фильтр: browser.backspace_action -> 0
- Перезапустите Mozilla Firefox
Быстрое закрытие диалога "Загрузки"
Перейдите к:
- Applications -> Internet -> Firefox Web Browser
- Вставьте в адресную строку
Адресная строка -> about:config
Отфильтруйте опции конфигурации
Фильтр: -> alerts.totalOpenTime -> 500
Уменьшить количество всплывающих окон
- Applications -> Internet -> Firefox Web Browser
Адресная строка -> about:config
Фильтр: -> dom.popup_maximum -> 5
Убрать кнопку "Перейти"
- Applications -> Internet -> Firefox Web Browser
Адресная строка -> about:config
Фильтр -> browser.urlbar.hideGoButton -> Yes
Улучшить скорость за счет использования tmpfsSpeed improvements using tmpfs
- Applications -> Internet -> Firefox Web Browser
Адресная строка -> about:config
- Кликните где-нибудь правый кнопкой в окне браузера и выберите
New -> String
- Наберите:
browser.cache.disk.parent_directory
- нажмите OK и введите в новом окне:
/tmp
- нажмите OK
- Также смотрите [1]
Fedora-твики
Улучшить вашу пропускную способность
Этот гайд был составлен по гайду Убунты
- Откройте файл sysctl.conf для редактирования и сохраните предыдущий файл sysctl.conf.
su -c 'cp /etc/sysctl.conf /etc/sysctl.conf.backup' su -c 'gedit /etc/sysctl.conf/
- Добавьте следующие строки
## увеличить макс. размер TCP-буфера для исп-я setsockopt() net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 ## увеличить Linux-автонастройку ограничений TCP-буфера ## мин., обычное и макс. число байтов исп-ся для ## установки максимума ниже 4 МБ или больше, если вы используете BDP-пути net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 ## не хранить ssthresh от предыдущего соединения net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_moderate_rcvbuf = 1 ## рекомендуется чтобы повысить скорость для 1000 BT ли выше net.core.netdev_max_backlog = 2500 ## это используйте для 10 Гигабит-Ethernet (раскоментируйте строки ниже) ## net.core.netdev_max_backlog = 30000 ## Turn off timestamps if you're on a gigabit or very busy network ## Having it off is one less thing the IP stack needs to work on ## net.ipv4.tcp_timestamps = 0 ## отключает выборочное подтверждение tcp-пакетов. net.ipv4.tcp_sack = 0 ## включает отправку пакетов методом скользящего окна net.ipv4.tcp_window_scaling = 1
- Сохраните файл и закройте. Запустите следующую команду
su -c '/sbin/sysctl -p'
Swappiness
- Для вашей установки Федоры вы можете изменять интенсивность выгрузки памяти в swap в зависимости от используемого swap-пространства. Чтобы сделать это, добавьте нижеприведенную строку и число от 0 до 100.
- Откройте файл sysctl.conf для редактирования и сохраните его резервную копию
su -c 'cp /etc/sysctl.conf /etc/sysctl.conf.backup' su -c 'gedit /etc/sysctl.conf'
- Добавьте следующую строку
vm.swappiness = 0
- Перезагрузите компьютер
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.
- Edit your fstab file and back it up
su -c 'cp /etc/fstab /etc/fstab.backup' su -c 'gedit /etc/fstab'
- Where the mount option says defaults you should add some more text.
- Before:
UUID=5f7e8362-66d0-4806-b2cf-61eb74200001 / ext3 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 / ext3 defaults,noatime,nodiratime 1 1 UUID=5f7e8362-66d0-4806-b2cf-61eb74200022 /home ext3 defaults,noatime,nodiratime 1 2 UUID=5f7e8362-66d0-4806-b2cf-61eb74200333 /boot ext3 defaults,noatime,nodiratime 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:
su -c 'yum -y install preload'
- 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).
Speed improvements using tmpfs
- Use tmpfs for frequently use temp folders.
- Add the following to /etc/fstab
#### RAM Drives #### tmpfs /tmp tmpfs defaults 0 0 tmpfs /var/tmp tmpfs defaults 0 0
- As this change is important for SSD (Solid State Drive) systems, it also make significant impact on applications such as Win4LinPro
Gnome Tweaks
Gnome Menu (delay)
- This is a simple alteration that will speed up your gnome menu load up.
echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
KDE Tweaks/Tips
Konqueror tabs (close buttons)
- Open the following file in Kedit
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
Viewing info pages in Konqueror/Run
- To view an info/man page in Konqueror all you have to do is:
info:progname
- Where progname is the program name such as:
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
- Where progname is the program name such as:
man:yum
- You can do this using Konqurero or Run (pushing Alt+F2)
Searching with Google in Konqueror/Run
- To search using Konqueror/Run using google you can simple type:
gg:yoursearch
- Such as
gg:fedoraguide
- You can do this using Konqueror or Run (pushing Alt+F2)
- To alter the standard search engine used Konqueror go to. (Thanks to Kim)
settings->configure konqueror->Web Shortcuts
Bash Настройки/Советы
Автоматическое исправление опечаток
- Интерпретатор Bash имеет встроенную утилиту "shopt", которая помогает находить опечатки (и не только), это может быть полезно.
- Для ее активизации выполните следующее
shopt -s cdspell
- Теперь можно проверить
cd /hme/marc /home/marc
Игнорировать регистр букв в именах файлов
- С помощью той же программы что и выше, Вы можете изменить Bash "поиск" программ игнорируя регистр букв
shopt -s nocaseglob
- Что происходит тогда, когда Вы нажимаете клавишу tab для поиска команды - интерпретатор bash будет делать поиск без учета регистра
Сделать файл полностью защищенным
- Чтобы сделать файл абсолютно защищенным, запустите эту команду от имени суперпользователя root.
su -c 'chattr +i myfile'
- Это поможет обеспечить дополнительную защиту файлу. Чтобы удалить этот атрибут, достаточно запустить следующую команду.
su -c 'chattr -i myfile'
Выполнение старых команд
- Для запуска старых команд, которые вы давно выполняли и точно их не помните попробуйте поискать их:
history | grep -i "часть_названия_команды"
- Прим. переводчика: более удобный способ - пользоваться сочетанием клавиш Ctrl+R
Множественное переименование файлов
- Иногда люди забывают добавлять расширение файлов в конец файла, Вы можете сделать это следующей командой.
rename file newfile file rename ipw3945howto ipw3945howto.txt ipw3945howto
Надежное удаление
- В Fedora есть программа, которая полностью сотрет ваши файлы. Man-страница поясняет как перезаписать файл(ы) повторно так, чтобы сделать восстановление намного труднее, используя даже дорогие аппаратные решения.
shred -z -u yourfile
Наблюдение за лог файлами
- Есть несколько способов следить за тем, что происходит в Ваших лог-файлах.
- There are several ways to follow what is going on in your logs. Один из таких путей заключается в использовании программы "wath"
su -c 'watch /var/log/messages'
- Другой путь использовать команду "tail"
su -c 'tail -f /var/log/messages'
- Опция -f означает следовать за журналом. Будут отображаться все изменения в Ваших лог-файлах
Плагины для Firefox
В этом разделе будет показано как утановить некоторые основные плагины для браузера FireFox, который является браузером по умолчанию в Fedora.
Flash
Для начала потребуется установить репозиторий #Adobe repository.
- Установим Flash плагин
su -c 'yum install flash-plugin'
- Если Вы не слышите звук во время воспроизведения флеш-видео роликов, просто установите пакет libflashsupport
su -c 'yum install libflashsupport'
Установка без использования репозитория #Adobe repository: Установите Flash Player 10:
su -c 'rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.12.36-release.i386.rpm'
- Flash плагин для 64 битной системы
Убедитесь, что Вы удалили пакеты flash-plugin, libflashsupport и nspluginwrapper до выполнения следующих шагов
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
перезапустите Firefox
Sun Java (Метод 1)
- Прим.переводчика: Самый простой способ установить Sun Java Runtime Environment - использовать репозиторий tigro
Существует несколько способов установки Sun Java Runtime Environment. Поскольку Sun JRE не является полностью открытой, она пока не включена в состав Fedora. Ситуация измениться в будущем, когда компания Sun сделает этот пакет полностью свободным.
До начала исталяции Sun Java JRE должны быть установлены некоторые пакеты.
su -c 'yum install compat-libstdc++-33 compat-libstdc++-296'
Так же, Вам необходимо обновить ссылки на библиотеки.
su -c '/sbin/ldconfig'
Вам потребуется загрузить пакет Java.
Вам потребуется загрузить *.bin файл. На данный момент последняя версия файла Java Runtime Environment (JRE) 6 обновление 4. (jre-6u4-linux-i586.bin)
Вам потребуются права суперпользователя root.
su --login
Перейдем в директорию /opt
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
Создадим java.sh скрипт.
/etc/profile.d/java.sh ====================== export JAVA_HOME=/opt/jre1.6.0_04 export PATH=$JAVA_HOME/bin:$PATH
Выполним его в терминале:
source /etc/profile.d/java.sh
Пишем в терминале следущее
/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6.0_04/bin/java 2
Настроим версию java
/usr/sbin/alternatives --config java
Сделаем Sun JRE пакетом по умолчанию для обработки java
There are 2 programs which provide 'java'.
Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2 /opt/jre1.6.0_04/bin/java Enter to keep the current selection[+], or type selection number:
Введем следущее:
2
Для проверки - если пакет включен, то Вы увидете напротив что он установлен.
/usr/sbin/alternatives --display java
- Перезапустите FireFox, чтобы убедиться, что FireFox использует java перейдите на следующий сайт ====== need link =====
- Кажется, что эта ошибка исправлена в новой версии libxcb. Вы можете найти более подробную информацию на эту ссылку в Bugzilla
Sun Java (Метод 2 - jdk-6u4-linux-i586.bin версия)
- Прочтите #General Notes
- Вам потребуется репозиторий #Jpackage
Некоторые пакеты потребуется установить до начала установки Sun Java.
su -c 'yum install compat-libstdc++-33 compat-libstdc++-296'
Затем необходимо обновить ссылки на библиотеки.
su -c '/sbin/ldconfig'
- Вам потребуется загрузить пакет Java с сайта компании Sun. При загрузке вам потребуется выбрать *bin файл, НЕ *rpm! Текущая версия - jdk-6u4-linux-i586.bin
- Так же Вам потребуется установить некоторые дополнительные пакеты.
su -c 'yum install rpm-build yum-utils'
- Зайдем под суперпользователем root
su --login
- Создадим каталоги необходимые для сборки и переместим загруженные файлы в соответствующий каталог.
rpmdev-setuptree
mv /home/desktop/YourUsername/jdk* /usr/src/redhat/SOURCES/
- Перейдем в указанную директорию.
cd /usr/src/redhat/SRPMS/
- Загрузим SRC RPM пакет
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- Пересоберем RPM пакет
setarch i586 rpmbuild --rebuild java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- Удалите некоторые файлы, которые не установятся на Fedora
rm -f /usr/src/redhat/RPMS/i586/java-1.6.0-sun-fonts* /usr/src/redhat/RPMS/i586/java-1.6.0-sun-jdbc*
- Установим собранные пакеты RPM
yum --nogpgcheck localinstall /usr/src/redhat/RPMS/i586/java-1.6.0-sun-*
- Создадим символическую ссылку на библиотеку, чтобы она работала в Firefox
ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
- Теперь необходимо посмотреть и убедиться в том, что java работает и нужной нам версии (прим. переводчика - проверить версию java можно набрав в адресной строке about:config), если версия будет отличаться от той что мы устанавливали, то необходимо проделать следующие шаги.
- Сделаем Sun JRE пакетом по умолчанию для обработки java (прим. переводчика - необходимо использовать команду /usr/sbin/alternatives --config java от имени пользователя root)
There are 2 programs which provide 'java'.
Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2 /opt/jre1.6.0_04/bin/java Enter to keep the current selection[+], or type selection number:
Выберем нужную нам версию:
2
Теперь проверьте работает ли java, убедится в этом можно если пакет отмечен как "установлен".
Mplayer (Просмотр видеофильмов)
Если Вы хотите просмотреть видеофильм, например avi, в браузере.
Вам потребуется подключенный репозиторий RPM Fusion.
su -c 'yum install mplayerplug-in'
Xine (Просмотр видеофильмов)
Если Вы хотите просмотреть видеофильм, например avi, в браузере.
Вам потребуется подключенный репозиторий RPM Fusion.
su -c 'yum install totem-xine-mozplugin'
Как просмотреть mms поток
Как вручную просмотреть mms (Microsoft Media Stream) поток в Mozilla Firefox
- Запустите Ваш firefox.
- Набирите в адресной строке: about:config
- Теперь просто сделайте правый клик где-нибудь в главном окне. Появиться небольшое окно с опциями. Выберете "создать", затем "строку".
- Затем скопируйте эту строку в появившееся текстовое поле:
network.protocol-handler.app.mms
- В следующей текстовой области вставьте эту строку:
/usr/bin/mplayer
- Теперь Вам потребуется проделать тоже самое еще раз, но только в этот раз вам потребуется выбрать "логическое" вместо "строку", а вставлять нужно эту строку:
network.protocol-handler.external.mms
- Затем установите
true
Как просмотреть файлы в формате Quicktime
Вам потребуется подключенный репозиторий RPM Fusion.
su -c 'yum install libquicktime'
Ссылка на Adobe Acrobat для плагинов mozilla
- Прочтите #General Notes
Ссылка на каталог плагинов mozilla позволяет просматривать PDF файлы в окне браузера вместо их просмотра в Acrobat Reader
cd /usr/lib/mozilla/plugins
su -c 'ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so'
CD/DVD Creation/Burning
Как очистить CD/DVD
Вот так можно быстро очистить диски в консоли:
- Вставьте CD/DVD диск
su -c 'umount /dev/cdrom' cdrecord dev=/dev/cdrom blank=fast
- Просто уточнение - cdrecord не установлен в FC9 вообще, взамен есть программа "wodim", ссылкой на которую является cdrecord. Wodim - это модифицированная версия старой cdrecord, а не текущей программы исходного автора.
CD/DVD Burning
GnomeBaker
A burning utility known as Gnome-Baker
su -c 'yum install gnomebaker'
K3B
K3B is a burning program with similar functionalities to closed source Nero
su -c 'yum install k3b'
- To enable MP3 and other proprietary support in K3B
su -c 'yum install k3b-extras-nonfree'
CD/DVD Creator
Places -> CD/DVD Creating
Then when loaded.
File Menu -> Write to Disc
How to Burn an Image (iso) to Disc
Right click on image (ISO) file -> Write to Disc
How to Create an Image (iso) File
- Using a folder as the data
mkisofs -r -o file.iso /location_of_folder/
- Creating an iso from a CD/DVD
su -c 'umount /dev/cdrom'
readcd dev=/dev/cdrom f=file.iso
How to Un/Mount an Image (iso) without burning it
- To mount your file.iso
mkdir ~/your_disc/
su -c 'mount file.iso ~/your_disc -t iso9660 -o loop'
To access your file.iso you can go into the directory ~/your_disc
- To unmount your file.iso
su -c 'umount ~/your_disc/'
How to generate MD5 checksum files
- Read #General Notes
md5sum file.iso > file.iso.md5
How to check MD5 checksum of files
- Read #General Notes
e.g. Assumed that file.iso and file.iso.md5 are in the same folder
md5sum -c file.iso.md5
How to set/change the burn speed for CD/DVD Burner
- Read #General Notes
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed)
How to enable burnproof for CD/DVD Burner
* Read #General Notes * Applications -> System Tools -> Configuration Editor * Configuration Editor
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)
How to enable overburn for CD/DVD Burner
* Read #General Notes * Applications -> System Tools -> Configuration Editor * Configuration Editor
/ -> apps -> nautilus-cd-burner -> overburn (Checked)
Installing Music Players
Installing a Music Player (Songbird)
- Read #General Notes
- I have since grabbed Martje_001 from ubuntuforums
- It has been modified slightly to be updated to the latest version.
- You will need to paste this script into Gedit then run the script as root.
gedit
- Copy and paste the script below and save it with the filename installsongbird.sh
#!/bin/bash if [ -d /opt/songbird ]; then zenity --info --text="You appear to already have Songbird installed. To get the newest version, you should use the self-update function in Songbird instead of using this script." exit fi cd /tmp uname -m > tmp.arch.txt if grep -q "64" tmp.arch.txt ; then anw=`zenity --question --text "You appear to have an AMD64 architecture. Do you want to install the 64-bit version of Songbird?"; echo $?` if [ $anw = 0 ] ; then echo 0 wget http://www.xs4all.nl/~mgj1/Songbird/64.bit URL=`head -n 1 64.bit | tail -n 1` FILE=`head -n 2 64.bit | tail -n 1` rm 64.bit wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..." tar -xvzf "$FILE" else zenity --info --text="Installation cancelled." fi elif grep -q "86" tmp.arch.txt ; then anw=`zenity --question --text "You appear to have an x86 architecture. Do you want to install the i686 version of Songbird?"; echo $?` if [ $anw = 0 ] ; then gksudo "echo 0" wget http://www.xs4all.nl/~mgj1/Songbird/32.bit URL=`head -n 1 32.bit | tail -n 1` FILE=`head -n 2 32.bit | tail -n 1` rm 32.bit wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..." tar -xvzf "$FILE" else zenity --info --text="Installation cancelled." fi else zenity --info --text="This script works for only x86 and AMD64 architectures." fi rm tmp.arch.txt mv Songbird /opt/songbird rm Songbird*.tar.gz /usr/sbin/alternatives --install /usr/bin/Songbird songbird /opt/songbird/songbird 2 chown -Rf nobody.nobody /opt/songbird chmod -Rf 777 /opt/songbird/ wget -c -q http://www.psychocats.net/ubuntu/songbirdicon.png mv songbirdicon.png /usr/share/pixmaps/songbird.png wget -c -q http://www.psychocats.net/ubuntu/songbird.desktop mv songbird.desktop /usr/share/applications/songbird.desktop zenity --info --text="After you refresh your menus, Songbird should be available as an application within the menus. If not, the launcher for Songbird should use the command Songbird (with a capital S). \n \nEnjoy!"
- Make the script executible
chmod +x installsongbird.sh
- Switch to root
su --login
- Switch to the home directory where you saved the script
cd /home/YourUsername
- Run the script
./installsongbird.sh
- To uninstall run the following script as root in the same manner you did before.
#!/bin/bash anw=`zenity --question --text "This will remove Songbird. Continue?"; echo $?` if [ $anw = 0 ] ; then rm -rf /opt/songbird /usr/sbin/alternatives --remove Songbird /usr/bin/Songbird rm /usr/share/applications/songbird.desktop rm /usr/share/pixmaps/songbird.png anw=`zenity --question --text "Do you want to keep your preferences?"; echo $?` if [ $anw = 1 ] ; then rm -r ~/.songbird fi fi zenity --info --text="Songbird is now removed from your system."
- Then run this script as root.
sh uninstallsongbird.sh
- Finally if you want to remove your preferences you will need to switch to your user and run the following command
rm -r ~/.songbird*
XMMS (playing mp3's)
How to play MP3's using a program such as xmms.
You need to have the RPM Fusion enabled.
Setting Winamp Presets in XMMS
You will need to have installed XMMS from above.
- Create a file in your home directory
gedit ~/.xmms/eq.preset
- Add this into the file.
; ; 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) Full Bass] Preamp=-1.11022e-15 Band0=-8 Band1=9.6 Band2=9.6 Band3=5.6 Band4=1.6 Band5=-4 Band6=-8 Band7=-10.4 Band8=-11.2 Band9=-11.2 [(WinAmp) Full Bass & Treble] Preamp=-1.11022e-15 Band0=7.2 Band1=5.6 Band2=-1.11022e-15 Band3=-7.2 Band4=-4.8 Band5=1.6 Band6=8 Band7=11.2 Band8=12 Band9=12 [(WinAmp) Full Treble] Preamp=-1.11022e-15 Band0=-9.6 Band1=-9.6 Band2=-9.6 Band3=-4 Band4=2.4 Band5=11.2 Band6=16 Band7=16 Band8=16 Band9=16.8 [(WinAmp) Laptop Speakers / Headphones] Preamp=-1.11022e-15 Band0=4.8 Band1=11.2 Band2=5.6 Band3=-3.2 Band4=-2.4 Band5=1.6 Band6=4.8 Band7=9.6 Band8=12.8 Band9=14.4 [(WinAmp) Large Hall] Preamp=-1.11022e-15 Band0=10.4 Band1=10.4 Band2=5.6 Band3=5.6 Band4=-1.11022e-15 Band5=-4.8 Band6=-4.8 Band7=-4.8 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 [(WinAmp) Soft rock] Preamp=-1.11022e-15 Band0=4 Band1=4 Band2=2.4 Band3=-1.11022e-15 Band4=-4 Band5=-5.6 Band6=-3.2 Band7=-1.11022e-15 Band8=2.4 Band9=8.8 [(WinAmp) Techno] Preamp=-1.11022e-15 Band0=8 Band1=5.6 Band2=-1.11022e-15 Band3=-5.6 Band4=-4.8 Band5=-1.11022e-15 Band6=8 Band7=9.6 Band8=9.6 Band9=8.8
- Save the file
- Load the preset from within xmms
Open the equalizer -> Click Preset -> Load -> Presets
su -c 'yum install xmms-mp3'
Amarok (с поддержкой mp3)
Вам нужен подключенный репозиторий RPM Fusion.
su -c 'yum install amarok amarok-extras-nonfree'
Audacious (с поддержкой MP3)
Вам нужен подключенный репозиторий RPM Fusion.
- Доступно множество плагинов
su -c 'yum install audacious audacious-plugins-nonfree-mp3'
How to install Multimedia Player (RealPlayer 10)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install compat-libstdc++-33'
- Download RealPlayer Gold from here.
- Install it.
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'
- Applications -> Sound & Video -> RealPlayer 10
How to install Stream Directory Browser (streamtuner)
- Read #General Notes
- Read #Repositories
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
su -c 'yum --enablerepo=freshrpms install streamtuner'
- Applications -> Sound & Video -> streamtuner
How to extract RAR files (rar)
Rar files are starting to be used extensively on the internet. You can install the package in Fedora.
You need to have the RPM Fusion enabled.
su -c 'yum install unrar'
Audio Editor (Audacity)
You need to have the RPM Fusion enabled.
This will enable the non-free aspects of audacity.
su -c 'yum install audacity-nonfree'
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.
- Download Google Earth either using wget or from [http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
here.]
wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
- Run the associated bin file.
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.
Работа с NTFS-разделами
Использовать NTFS-разделы стало проще.
su -c 'yum install ntfs-3g ntfs-config'
Настройка NTFS-разделов с использованием ntfs-config
- Вы можете настроить NTFS-разделы вручную или просто использовать утилиту ntfs-config, которая выполняет автоматическую настройку. Ниже объясняется как использовать ntfs-config.
- Создайте резервую копию файла /etc/fstab, прежде чем делать что-либо. Эта копия вам может понадобится в случае ошибки.
su -c 'cp /etc/fstab /etc/fstab.original'
- Теперь достаточно запустить ntfs-config.
su -c 'ntfs-config'
Ручная настройка разделов Windows
Установка папки для NTFS-раздела
- Создайте папку в которой вы хотите смонтировать ваш NTFS-раздел.
su -c 'mkdir /media/windows'
- Если вы монтируете ваши разделы в каталоге /media, тогда они появятся в секции "Съёмные носители" пункта меню Переход в Gnome и на Рабочем столе. Если вы не хотите чтобы ваши разделы отображались там, смонтируйте ваши разделы в другом каталоге, например в /mnt.
- Теперь вам нужно найти ваш NTFS-раздел, это можно сделать следующий командой.
su -c '/sbin/fdisk -l'
- Такая команда вернёт вам примерно следующее.
Диск /dev/sda: 200.0 GB, 200048565760 байт 255 heads, 63 sectors/track, 24321 cylinders Units = цилиндры of 16065 * 512 = 8225280 bytes Устр-во Загр Начало Конец Блоки Id Система /dev/sda1 * 1 11572 92952058+ 7 HPFS/NTFS /dev/sda2 11573 23321 94373842+ 83 Linux /dev/sda3 23322 24321 8032500 82 Linux swap / Solaris Диск /dev/sdb: 200.0 GB, 200048565760 байт 255 heads, 63 sectors/track, 24321 cylinders Units = цилиндры of 16065 * 512 = 8225280 bytes Устр-во Загр Начало Конец Блоки Id Система /dev/sdb1 * 1 24321 195358401 b W95 FAT32
- Теперь необходимо внести запись в таблицу файловых систем, для этого введите следующее.
su -c 'nano /etc/fstab'
- Затем в текстовом редакторе введите примерно следующее в последней строке файла.
/dev/sda1 /media/windows ntfs-3g defaults,fmask=0000,dmask=0000,uid=500 0 0
- Если ваш индентификатор раздела отличен от "/dev/sda1", то замените его на идентификатор вашего устройства. (Например, им может быть "/dev/sda1" в случае если у вас SATA/SCSI накопитель.) Когда добавите новую строку, нажмите сtrl+o. В поле "Имя Файла для записи" укажите /etc/fstab и нажмите Ввод, редактор сохранит этот файл. Используйте сочетание клавиш ctrl+x для выхода из редактора. Теперь вам нужно смонтировать ваш раздел.
su -c 'mount -a'
- В ответ на появившуюся подсказку введите пароль и нажмите Ввод.
- Закройте терминал.
- Теперь ваш NTFS-раздел должен быть доступен через Nautilus в папке "/media/windows".
Ручное монтирование/размонтирование NTFS-разделов с доступом только на чтение для всех пользователей
- Прочтите #Основные сведения
- Прочтите #Как просмотреть таблицу разделов
- Прочтите #Работа с NTFS-разделами
Для примера предположим, что NTFS-раздел расположен в файле /dev/hda1, а локальная точка монтирования в папке /media/windows. Тогда,
- Чтобы смонтировать NTFS-раздел выполните следующие команды.
su -c 'mkdir /media/windows'
su -c 'mount /dev/hda1 /media/windows/ -t ntfs-3g -o nls=utf8,umask=0222'
- Чтобы размонтировать раздел выполните
su -c 'umount /media/windows/'
Ручное монтирование/размонтирование FAT-разделов с доступом на чтение и запись для всех пользователей
- Прочтите #Основные сведения
- Прочтите #Как просмотреть таблицу разделов
Для примера предположим, что FAT-раздел расположен в файле /dev/hda1, а локальная точка монтирования в папке /media/windows. Тогда,
- Чтобы смонтировать FAT-раздел выполните следующие команды.
su -c 'mkdir /media/windows'
su -c 'mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000'
- Чтобы размонтировать раздел выполните
su -c 'umount /media/windows/'
Монтирование NTFS-разделов во время загрузки ОС с доступом только на чтение для всех пользователей
- Прочтите #Основные сведения
- Прочтите #Как просмотреть таблицу разделов
- Прочтите #Установка папки для NTFS-раздела
Для примера предположим, что NTFS-раздел расположен в файле /dev/hda1, а локальная точка монтирования в папке /media/windows.
su -c 'mkdir /media/windows'
su -c 'cp /etc/fstab /etc/fstab_backup'
su -c 'gedit /etc/fstab'
- Добавьте в конец файла следующую строку.
/dev/hda1 /media/windows ntfs-3g nls=utf8,umask=0222 0 0
- Сохраните изменённый файл.
- Прочтите #Как перемонтировать все устройства перечисленные в /etc/fstab без перезагрузки
Монтирование FAT-разделов во время загрузки ОС с доступом на чтение и запись для всех пользователей
- Прочтите #Основные сведения
- Прочтите #Как просмотреть таблицу разделов
Для примера предположим, что FAT-раздел расположен в файле /dev/hda1, а локальная точка монтирования в папке /media/windows.
su -c 'mkdir /media/windows'
su -c 'cp /etc/fstab /etc/fstab_backup'
su -c 'gedit /etc/fstab'
- Добавьте в конец файла следующую строку.
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
- Сохраните изменённый файл.
- Прочтите #Как перемонтировать все устройства перечисленные в /etc/fstab без перезагрузки
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.
su -c 'yum install azureus'
Bittorrent
The orginal bittorrent client.
su -c 'yum install bittorrent'
Bittorrent (gui)
The graphical interface to the bittorrent client.
su -c 'yum install 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
su -c 'yum install wine'
Utorrent
To install UTorrent you will need to install wine as stated above.
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.
The freetype-freeworld package uses a technique described in this bug report.
su -c 'yum install freetype-freeworld'
Microsoft Core Fonts
These fonts need to be built from the web so you will build an rpm package based on a SPEC file.
su -c 'yum install wget rpmdevtools rpmbuild cabextract ttmkfdir'
- Then create the rpmdev directory
rpmdev-setuptree
- Switch to your SPECS directory that you created in the previous step.
cd ~/rpmbuild/SPECS/
- Download the spec file.
wget http://dl.atrpms.net/all/chkfontpath-1.10.1-2.fc9.x86_64.rpm
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
- run the following command to build the rpm
rpmbuild -bb msttcorefonts-2.0-1.spec
- Move to where the msttcorefonts rpm was created
cd ~/rpmbuild/RPMS/noarch/
- Download and install the msttcorefonts and dependencies
su -c 'rpm -ivh chkfontpath-1.10.1-2.fc9.x86_64.rpm'
su -c 'rpm -ivh msttcorefonts-2.0-1.noarch.rpm'
- Then run the following code to restart the font server.
su -c '/sbin/service xfs reload'
Or
su -c '/etc/init.d/xfs reload'
Turn on smooth fonts
This will turn on smooth fonts.
gedit ~/.fonts.conf
You then need to enter this data into it.
<?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
su -c 'yum install amsn'
Gaim/Pidgin
su -c 'yum install gaim'
Internet Relay Chat (IRC)
You can connect to internet relay chat servers to communicate with other people.
XChat
su -c 'yum install XChat'
- When installed you need to choose a server and log in name.
- For more information
How to install Skype
- Read #General Notes
- Read #Repositories
- Add the following repository to your Fedora install.
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
su -c 'yum -y install skype'
How to install Download Manager (Downloader for X)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install d4x'
- Applications -> Internet -> Downloader for X
How to install FTP Client (gFTP)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install gftp'
- Applications -> Internet -> gFTP
How to install P2P eMule Client (aMule)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install amule'
- Applications -> Internet -> aMule
How to install Image Viewer (Gwenview)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install gwenview'
- Applications -> Graphics -> Gwenview
How to install Email Client (Mozilla Thunderbird)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install thunderbird'
- Applications -> Internet -> Thunderbird Mail Client
How to install Newsreader (Pan)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install pan'
- Applications -> Internet -> Pan Newsreader
How to install CHM viewer (GnoCHM)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install gnochm'
- Applications -> Accessories -> CHM Viewer
How to install RSS/RDF/Atom Newsreader (RSSOwl)
- Read #General Notes
- Read #Repositories
- Read #Sun Java
- Go to rssowl and download your version this example is for x86
su -c 'tar zxvf rssowl_1_2_3_linux_bin.tar.gz -C /opt/'
su -c 'chown -R root:root /opt/rssowl_1_2_3_linux_bin/'
su -c 'gedit /usr/bin/runRSSOwl.sh'
- Insert the following lines
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
- Save the edited file
su -c 'chmod +x /usr/bin/runRSSOwl.sh'
su -c 'gedit /usr/share/applications/RSSOwl.desktop'
- Create a desktop file
[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;
- Save the edited filed
- Applications -> Internet -> RSSOwl
How to install Web Authoring System (bluefish)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install bluefish'
- Applications --> Programming --> Bluefish Editor
How to install KDE Web Development Environment (quanta plus)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install kdewebdev'
- Applications -> Programming -> Quanta Plus
How to install Accounting Application (GnuCash)
- Read #General Notes
- Read #Repositories
su -c 'yum -y install gnucash'
- Applications -> Office -> GnuCash
How to install Partition Editor (GParted)
- Read #General Notes
- Read #Repositories
su -c 'yum install gparted'
- Applications -> System Tools -> GParted
How to install Firewall (Firestarter)
- Read #General Notes
- Read #Repositories
su -c 'yum install firestarter'
- Applications -> System Tools -> Firestarter
How to install Firewall (Fedora Firewall)
- Read #General Notes
- Read #Repositories
su -c 'yum install system-config-firewall'
- System -> Administration - Firewall
How to configure SELinux (Fedora SELinux)
- Read #General Notes
- Read #Repositories
su -c 'yum install system-config-selinux'
- Applications -> System Tools -> SELinux Management
How to install network traffic analyzer (Wireshark)
- Read #General Notes
- Read #Repositories
su -c 'yum install wireshark wireshark-gnome'
- Applications -> Internet -> Wireshark
How to install Desktop Publishing Application (Scribus)
- Read #General Notes
- Read #Repositories
su -c 'yum install scribus'
- Applications -> Office -> Scribus
How to install Desktop Applets (gDesklets)
- Read #General Notes
- Read #Repositories
su -c 'yum install gdesklets'
- Applications -> Accessories -> gDesklets
- For more info see: http://gdesklets.gnomedesktop.org/
How to install Basic Compilers (gcc)
- Read #General Notes
- Read #Repositories
su -c 'yum install gcc gcc-c++'
How to set up a Development Environment
- Read #General Notes
- Read #Repositories
- Add development repo
su -c 'gedit /etc/yum.repos.d/fedora-devel.repo'
- Add the following lines to the new file
[development] name=Fedora - Development #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/os/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch enabled=1 gpgcheck=0
- Save the edited file
su -c 'yum groupinstall "Development Tools"'
How to install an Integrated Development Environment (Anjuta)
- Read #General Notes
- Read #Repositories
su -c 'yum install anjuta
- Applications -> Programming -> Anjuta IDE
How to install a 3D modeling tool (Blender 3D)
- Read #General Notes
- Read #Repositories
su -c 'yum install blender'
- Applications -> Graphics -> Blender 3D modeller
How to install a game Frozen-Bubble
- Read #General Notes
- Read #Repositories
su -c 'yum install frozen-bubble
- Applications -> Games -> Frozen-Bubble
- For more games see: http://games.linux.sk/ or http://www.tuxgames.com/
How to install virtual planetarium (Stellarium)
- Read #General Notes
- Read #Repositories
su -c 'yum install stellarium'
- Applications -> Graphics -> Stellarium nightsky renderer
How to install the KDE Edutainment applications
- Read #General Notes
- Read #Repositories
su -c 'yum install kdeedu'
- Applications -> Edutainment -> ...
Other Desktop Environments
- Fedora generally comes with Gnome to install another desktop environment look below.
How to install KDE
- Read #General Notes
- Read #Repositories
su -c 'yum groupinstall kde'
- Log Out
- In sessions choose KDE
- Log in
How to install XFCE
- Read #General Notes
- Read #Repositories
su -c 'yum groupinstall xfce
- Log out
- In sessions choose xfce
- Log in
Commercial Applications
How to install Windows 9x/ME/2000/XP (Win4Lin)
How to install Windows Applications (CrossOver Office)
How to install Windows Games (Cedega)
Networking
How to configure VPN client (PPTP)
Install PPTP Config
su -c 'yum install pptp'
Configure PPTP Config
Launch it beneath Internet, then input the following fields as described:
Server Tab:
- Name - short description of this connection
- Server - dns server name or ip address of the target PPTP server
- Domain - domain name if using Windows or Active Directory authentication
- Username - simply your username to login with
- Password - the password to use with the username above
Routing Tab: For Routing Style select 'Client to LAN'. Then click Edit Network Routes then add the target network in the following format "192.168.0.0/24' for all IP Addresses in the block 192.168.0.*. Next type a short name for this network route and click Add.
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.
Finally click Add then Start
How to configure Google Talk
- See the answer at Google Talk Help Center
How to activate/deactivate network connections
- Read #General Notes
- Desktop -> System Settings -> Network
- Devices Tab
- Activate/Deactivate
How to configure network connections
- Read #General Notes
- Desktop -> System Settings -> Network
- Network Configuration
- Edit
- Read #How to activate/deactivate network connections
How to change computer name
- Read #General Notes
hostname your_desired_computer_name
How to change computer descriptions
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
- Find this line
... server string = Samba Server ...
- Replace with the following line
server string = new_computer_descriptions
- 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'
How to change computer Domain/Workgroup
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf_backup'
su -c 'gedit /etc/samba/smb.conf'
- Find this line
... workgroup = MSHOME ...
- Replace with the following line
workgroup = new_domain_or_workgroup
- Save the edited file
testparm
su -c '/etc/init.d/smb restart'
How to assign Hostname to local machine with dynamic IP using free DynDNS service
- Read #General Notes
- Read #How to add extra repositories
e.g. Assumed that internet connections have been configured properly Register free Dynamic DNS at https://www.dyndns.org Automatically refresh IP in DynDNS Database/DNS every hour
* * * * * means minute hour date month year
su -c 'yum install ipcheck'
su -c 'gedit /root/dyndns_update.sh'
- Insert the following lines into the new file
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
- Save the edited file
su -c 'chmod 700 ~/dyndns_update.sh'
su -c 'sh ~//dyndns_update.sh'
su -c 'export EDITOR=gedit && crontab -e'
- Append the following line at the end of file
00 * * * * sh /home/YourUsername/dyndns_update.sh
- Save the edited file
How to share folders the easy way
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
Right click on folder -> Share folder
Shared folder -> Share with: Select "SMB"
Share properties -> Name: Specify the share name
How to browse network computers
- Read #General Notes
e.g. Assumed that network connections have been configured properly If computers or network folders could not be found, try access them directly Read #How to access network folders without mounting
- Places -> Network Servers
How to access network folders without mounting
- Read #General Notes
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1 Shared folder's name: linux
- Applications -> Run Application...
- Run Application
smb://192.168.0.1/linux
How to mount/unmount network folders manually, and allow all users to read
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
- To mount network folder
su -c 'mkdir /media/sharename'
su -c 'mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword'
- To unmount network folder
su -c 'umount /media/sharename/'
How to mount/unmount network folders manually, and allow all users to read/write
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
- To mount network folder
su -c 'mkdir /media/sharename'
su -c 'mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777'
- To unmount network folder
su -c 'umount /media/sharename/'
How to mount network folders on boot-up, and allow all users to read
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
su -c 'mkdir /media/sharename'
su -c 'gedit ~/.smbcredentials'
- Insert the following lines into the new file
username=myusername password=mypassword
- Save the edited file
chmod 700 ~/.smbcredentials
su -c 'cp /etc/fstab /etc/fstab_backup'
su -c 'gedit /etc/fstab'
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename cifs credentials=/home/yourusername/.smbcredentials 0 0
- Save the edited file
- Read #How to remount /etc/fstab without rebooting
How to mount network folders on boot-up, and allow all users to read/write
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
su -c 'mkdir /media/sharename'
su -c 'gedit ~/.smbcredentials'
- Insert the following lines into the new file
username=myusername password=mypassword
- Save the edited file
chmod 700 ~/.smbcredentials
su -c 'cp /etc/fstab /etc/fstab_backup'
su -c 'gedit /etc/fstab'
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename cifs credentials=/home/your_username/.smbcredentials,dmask=0777,fmask=0777 0 0
- Save the edited file
- Read #How to remount /etc/fstab without rebooting
Remote Desktop
How to configure remote desktop (not secure)
- Read #General Notes
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
- Desktop -> Preferences -> Remote Desktop
- Remote Desktop Preferences
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
How to connect into remote Fedora desktop
- Read #General Notes
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
Press 'F8' -> Quit viewer
Remote conection Script by fedorajim
Open a teminal window and switch to root.
su -c 'gedit /usr/local/bin/remote2someone'
Add the following text to the text editor
#!/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.
How to connect into remote Fedora desktop via Windows machine
- Read #General Notes
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
- Download VNC Viewer: Here
Security
What are the basic things I need to know about securing my Fedora
- Read #General Notes
- Ensure hard drive is first in BIOS boot-up sequence
o To prevent trespassers from using Linux Installation CD which allows them to gain root user access o To prevent trespassers from using Linux Live CD (e.g. Fedora/KNOPPIX/MEPIS) which allows them to destroy/browse/share the entire hard drive o To prevent trespassers from installing another Operating System
- Ensure a password is set for BIOS
o To prevent trespassers from changing the BIOS boot-up sequence
- Ensure computer is located at a secured place
o To prevent trespassers from removing computer's hard drive which allows them to destroy/browse/share the entire hard drive from a different computer o To prevent trespassers from removing computer's on-board battery which resets the BIOS password
- Ensure passwords used on the system cannot be easily guessed
o To prevent trespassers from cracking password file using brute force attacks (e.g. John the Ripper) o Create password with minimum length of 8 characters o Create password with mixture of characters/numbers, and upper/lower case
- Ensure interactive editing control for GRUB menu is disabled
o To prevent trespassers from modifying kernel boot-up arguments which allows them to have root user access o Read #How to disable all interactive editing control for GRUB menu
- Ensure history listing is disabled in Console mode
o To prevent trespassers from seeing previously issued commands o Read #How to disable history listing in Console mode
- Ensure Ctrl+Alt+Del is disabled in Console mode
o To prevent trespassers from restarting the system without permission in Console mode o Read #How to disable Ctrl+Alt+Del from restarting computer in Console mode
- Ensure interactive option is set for remove, copy and move of files/folders in Console mode
o To prevent accidental removal/overwritten of files/folders o Read #How to enable prompt before removal/overwritten of files/folders in Console mode
- For day to day usage, login as a normal user
o To prevent accidental deletion/modification of system files/folders o Read #How to add/edit/delete system users
- Disable root user account, use "sudo" instead
o To reduce the amount of time spent with root privileges, and thus the risk of inadvertently executing a command as root o "sudo" provides a more useful audit trail (/var/log/auth.log) o Read #How to disable root user account
- Install a Firewall
o A firewall does not guarantee security but it is in most environments the first line of defense against network based attacks o Read #How to install Firewall (Firestarter)
- Perform vulnerability test
o Nessus is a great tool designed to automate the testing and discovery of known security problems o Read #How to install Vulnerability Scanner (Nessus)
How to disable all interactive editing control for GRUB menu
- Read #General Notes
Make sure you backup the files
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'
- Find this section
... ## 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 ...
- Add the following line below it
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- Find this section
... 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 ...
- Replace with the following lines
#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
- Save the edited file
How to disable history listing in Console mode
- Read #General Notes
rm -f $HOME/.bash_history
touch $HOME/.bash_history
chmod 000 $HOME/.bash_history
How to disable Ctrl+Alt+Del from restarting computer in Console mode
- Read #General Notes
su -c 'cp /etc/inittab /etc/inittab_backup'
su -c 'gedit /etc/inittab'
- Find this line
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
- Replace with the following line
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- Save the edited file
su -c 'telinit q'
How to enable prompt before removal/overwritten of files/folders in Console mode
- Read #General Notes
gedit /someuser/.bashrc
- Find this line
#User specific aliases and functions
Add the following line below it
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
- Save the edited file
SELinux (with references)
- 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.
- Read #General Notes
- Fedora Project SELinux Page
- SELinux Commands
- One way to modify SELinux is to use system-config-securitylevel. Install it with the following command.
su -c 'yum install system-config-securitylevel]
- 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
- Make sure you are in your SELinux Source directory
cd $SELINUX_SRC/
- Make sure you backup the existing local.te file
cp domains/misc/local.te domains/unused/local.te.backup
- Set Audit2Allow to analyse your log file and generate a policy.
audit2allow -i /var/log/messages -o ./local.te
- View the files
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.
allow syslogd_t bin_t:dir search;
allow syslogd_t bin_t:file { execute execute_no_trans getattr \
read };
allow syslogd_t bin_t:lnk_file read;
allow syslogd_t etc_runtime_t:file { getattr read };
allow syslogd_t proc_kmsg_t:file write;
allow syslogd_t proc_t:file { getattr read };
- When you are happy install the policy
semodule -i local.te
- Do the action that you were doing to generate the error and verify that it has been rectified.
Rescue Mode
How to use Fedora Installation CD, to gain root user access
- Read #General Notes
- Insert Fedora CD #1 into your CD-ROM and boot from it
linux rescue
How to change root user/main user password if forgotten
- Read #General Notes
- Read #How to gain root user access without login
- To change root user password
# passwd root
- To change main user password
# passwd system_main_username
How to change GRUB menu password if forgotten
- Read #General Notes
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'
- Find this line
... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ...
- Replace with the following line
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- Save the edited file
How to restore GRUB menu after Windows installation
- Read #General Notes
- Read #How to use Fedora Installation CD, to gain root user access
e.g. Assumed that /dev/hda is the location of /boot partition
# su -c /sbin/grub-install /dev/hda'
How to add Windows entry into GRUB menu
- Read #General Notes
- Read #How to list partition tables
e.g. Assumed that /dev/hda1 is the location of Windows partition
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
- Append the following lines at the end of file
title Microsoft Windows root (hd0,0) savedefault makeactive chainloader +1
- Save the edited file
How to read Linux partitions (ext2, ext3) in Windows machine
- Read #General Notes
- Download Explore2fs: Here
OR
- See www.fs-driver.org
Tips & Tricks
How to add extra Wallpapers, Icons and Themes
- Read #General Notes
- To add extra backgrounds
wget -c http://easylinux.info/uploads/backgrounds.tar.gz
su -c 'tar zxvf backgrounds.tar.gz -C /usr/share'
rm -f backgrounds.tar.gz
- Check weather you have file backgrounds.xml in your .gnome/ directory
ls $HOME/.gnome2/ | grep "backgrounds.xml"
- If this line printed out "backgrounds.xml" then run
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'
- To add extra Icons and Themes run
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)
How to add extra Themes (Gnome-themes-extras)
- Fedora 9 now come swith a new package called gnome-themes-extras install it by doing:
su -c 'yum install gnome-themes-extras'
- 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
- Read #General Notes
su -c 'yum install nautilus-open-terminal'
- Right Click the Desktop -> Open Terminal
How to get a shortcut to Root Terminal
- Read #General Notes
- Read #How to add extra repositories
su -c 'yum --enablerepo=dries install gksu'
- Applications -> System Tools -> Root Terminal
How to enable the "Switch User" button on the GNOME screensaver
- To do this to just for one user
gconftool-2 --type bool --set /apps/gnome-screensaver/user_switch_enabled true
- To do this for every user
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-screensaver/user_switch_enabled true
How to restart GNOME without rebooting computer
- Read #General Notes
- Save and close all opened applications
Press 'Ctrl + Alt + Backspace'
or
su -c '/usr/sbin/gdm-restart'
How to turn on Num Lock on GNOME startup
- Read #General Notes
- Read #How to add extra repositories
su -c 'yum install numlockx
su -c 'cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup'
su -c 'gedit /etc/X11/gdm/Init/Default'
- Find this line (the last line)
... exit 0
- Add the following lines above it
if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi
- Save the edited file
- Read #How to restart GNOME without rebooting computer
How to switch to Console mode in GNOME
- Read #General Notes
- To switch to Console mode
Press 'Ctrl + Alt + F1' (F2 - F6)
- To switch between consles in Console mode
Press 'Alt + F1' (F2 - F6)
- To switch back to GNOME mode
Press 'Alt + F7'
How to disable Ctrl+Alt+Backspace from restarting X in GNOME
- Read #General Notes
su -c 'cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup'
su -c 'gedit /etc/X11/xorg.conf'
- Append the following lines at the end of file
Section "ServerFlags" Option "DontZap" "yes" EndSection
- Save the edited file
- Read #How to restart GNOME without rebooting computer
How to enable Ctrl+Alt+Del to open System Monitor in GNOME
- Read #General Notes
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
How to refresh GNOME desktop
- Read #General Notes
killall nautilus
How to refresh GNOME panel
- Read #General Notes
killall gnome-panel
How bypass Keyring's Password
- Read #General Notes
- Install Pam keyring
su -c 'yum install pam_keyring'
- 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
- Make sure it is executible
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
System -> Preferences -> Personal -> Sessions
- Click on the startup tab
- Click the add button
- Enter the following details
Name: Keyring Script Command:~/.key.sh Comment: My automatic unlock script
- To enable it straight away run the following command.
~/.key.sh
How to open each folder in the same window in Nautilus
- Read #General Notes
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> nautilus -> preferences -> always_use_browser (Checked)
How to enable autosave in Gedit and disable creation of some_file~ files
- Read #General Notes
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy (Unchecked)
/ -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save (Checked)
How to show all hidden files/folders in Nautilus
- Read #General Notes
- Places -> Home Folder
- To temporary show all hidden files/folders in Nautilus
Press 'Ctrl + H'
- To permanently show all hidden files/folders in Nautilus
Edit Menu -> Preferences
Views Tab -> Default View -> Show hidden and backup files (Checked)
How to browse files/folders as root user in Nautilus
- Read #General Notes
- Read #How to add extra repositories
su -c 'yum install gksu'
- To install File Browser (Root)
su -c 'gedit /usr/share/applications/Nautilus-root.desktop'
- 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;
- Save the edited file
- To browse files/folders as root user in Nautilus
Applications -> System Tools -> File Browser (Root)
How to show Desktop Icons (Computer, Home, Trash)
- Read #General Notes
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> nautilus -> desktop ->
computer_icon_visible (Checked)
home_icon_visible (Checked)
trash_icon_visible (Checked)
How to change default file type "Open with" program
- Read #General Notes
Right click on file -> Properties
Open With Tab -> Add
Select "Open with" program
Select "Open with" program (Checked)
How to change preferred email client to Mozilla Thunderbird
- Read #General Notes
- Read #How to install Email Client (Mozilla Thunderbird)
- Desktop -> Preferences -> Preferred Applications
- Preferred Applications
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s
How to open files as root user via right click
- Read #General Notes
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- Insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gnome-"gnome-open $uri" & done
- Save the edited file
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
How to disable beep sound in Terminal mode
- Read #General Notes
- Applications -> System Tools -> Terminal
- Terminal
Edit Menu -> Current Profile...
General Tab -> General -> Terminal bell (Un-Checked)
How to install/uninstall .rpm files
- Read #General Notes
- To install .rpm file
su -c 'rpm -i package_file.rpm'
- To uninstall .rpm file
su -c 'rpm -e package_name'
How to rename all files in directory at once
- Read #General Notes
- To install "mvb" file name renamer
- Best done as root
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
- To rename all files in directory at once
mvb NEW_NAME
How to manipulate all image files in directory at once
- Read #General Notes
- To install bash batch image processing script
- Read #How to add extra repositories
su -c 'yum install ImageMagick'
wget -c http://easylinux.info/uploads/bbips.0.3.2.sh
su -c 'cp bbips.0.3.2.sh /usr/bin/bbips'
su -c 'chmod 755 /usr/bin/bbips'
- To manipulate all image files in directory at once
bbips
How to set System-wide Environment Variables
- Read #General Notes
su -c 'cp /etc/bash.bashrc /etc/bash.bashrc_backup'
su -c 'gedit /etc/bash.bashrc'
- Append the System-wide Environment Variables at the end of file
- Save the edited file
How to save "man" outputs into files
- Read #General Notes
man command | col -b > file.txt
How to show GRUB menu on boot-up
- Read #General Notes
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
- Find this line
... hiddenmenu ...
- Replace with the following line
#hiddenmenu
- Save the edited file
How to change the timeout seconds for GRUB menu on boot-up
- Read #General Notes
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
- Find this line
... timeout 3 ...
- Replace with the following line
timeout X_seconds
- Save the edited file
How to change default Operating System boot-up for GRUB menu
- Read #General Notes
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
- Find this line
... default 0 ...
- Replace with the following line
default X_sequence
- Save the edited file
How to display Splash Image for GRUB menu on boot-up
- Read #General Notes
e.g. Assumed that hd0,1 is the location of Fedora boot partition
wget -c http://easylinux.info/uploads/fedora.xpm.gz
su -c 'chmod 644 fedora.xpm.gz'
su -c 'mkdir /boot/grub/images'
su -c 'cp fedora.xpm.gz /boot/grub/images/'
su -c 'cp /boot/grub/menu.lst /boot/grub/menu.lst_backup'
su -c 'gedit /boot/grub/menu.lst'
- Find this section
# menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ...
- Add the following line below it
splashimage (hd0,1)/boot/grub/images/fedora.xpm.gz
- Save the edited file
How to convert Wallpaper to Splash Image for GRUB menu
- Read #General Notes
e.g. Assumed that wallpaper.png is the Wallpaper to be converted to Splash Image splashimage.xpm.gz is the Splash Image for GRUB menu
convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm
- Read #How to display Splash Image for GRUB menu on boot-up (use splashimage.xpm.gz instead of Fedora.xpm.gz)
How to temporary skip boot-up services
- Read #General Notes
Press 'Ctrl + C'
How to permanently disable/enable boot-up services
- Read #General Notes
- Read #How to install Boot-Up Manager (BUM)
How to clean /tmp/ folder contents on shutdown
- Read #General Notes
su -c 'cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup'
su -c 'gedit /etc/init.d/sysklogd'
- Find this section
... stop) log_begin_msg "Stopping system log daemon..." start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile log_end_msg $? ...
- Add the following line below it
rm -fr /tmp/* /tmp/.??*
- Save the edited file
How to scroll up and down to view previous outputs in Console mode
- Read #General Notes
- To scroll up to view previously outputs
Press 'Shift + Page Up'
- To scroll down to view previously outputs
Press 'Shift + Page Down'
How to forcefully empty Trash in GNOME
- Read #General Notes
rm -fr $HOME/.Trash/
How to remove duplicate menu/menu items in GNOME
- Read #General Notes
rm -f $HOME/.config/menus/applications.menu
Open Terminal Here in Nautilus
gedit ~/.gnome2/nautilus-scripts/"Open Terminal Here"
add the following text
#!/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='$_'";
}
Save and close Gedit
Right click the desktop choose Scripts then "Open Terminal Here"
Open Root Terminal Here in Naultilus
- Read #Set up Sudo on your PC
gedit ~/.gnome2/nautilus-scripts/"Open Root Terminal Here"
Add the following
#!/bin/sh cd $NAUTILUS_SCRIPT_CURRENT_URI sudo gnome-terminal
Save and close Gedit
Right click the desktop choose Scripts then "Open Terminal Here"
