0% found this document useful (0 votes)
662 views1 page

Fedora 12 Cheat Sheet

This document provides a cheat sheet for common commands and tasks in Fedora 12, including commands for managing privileges and sudo access, networking tools, applications, system services, package management with YUM, configuring displays, setting up a firewall, and installing multimedia plugins. Key commands covered include sudo, ifconfig, iwconfig, service, yum, iptables, and packages for installing Flash, MP3, and video support.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
662 views1 page

Fedora 12 Cheat Sheet

This document provides a cheat sheet for common commands and tasks in Fedora 12, including commands for managing privileges and sudo access, networking tools, applications, system services, package management with YUM, configuring displays, setting up a firewall, and installing multimedia plugins. Key commands covered include sudo, ifconfig, iwconfig, service, yum, iptables, and packages for installing Flash, MP3, and video support.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Fedora 12 Cheat Sheet More Fedora scoops and articles Digitizor

Privileges Network
sudo command – run command as root ifconfig – show network information
sudo -s – open a root shell iwconfig – show wireless information
sudo -s -u user – open a shell as user sudo iwlist scan – scan for wireless network
sudo -k – forget sudo passwords sudo service network restart – reset network
gksudo command – visual sudo dialog (GNOME) for manual configuration
kdesudo command – visual sudo dialog (KDE) (file)/etc/sysconfig/network-scripts/ifcfg-
sudo visudo – edit /etc/sudoers interface – edit your gateway here
sudo nautilus – root file manager (GNOME) sudo service NetworkManager restart – reset
sudo konqueror – root file manager (KDE) network to use NetworkManager
passwd – change your password sudo chkconfig --level 35 network on \ sudo
chkconfig --level 35 NetworkManager off –
in case you have network problems with the
Application Names NetworkManager applet.
nautilus – file manager (GNOME)
ifup interface – bring interface online
dolphin – file manager (KDE)
ifdown interface – disable interface
kate – text editor (KDE)
gedit – text editor (GNOME)
Display
Ctrl+Alt+Bksp – restart X display if frozen
System Services (file)/etc/X11/xorg.conf – display config
sudo service service status – check if
Xorg -configure – create new config file
service is running
Ctrl+Alt+FN – switch to ttyN
sudo service service start – start service
Ctrl+Alt+F1 – switch back to X display
sudo service service stop – stop service
sudo service service restart – restart ser-
vice Package Management
runlevel – get current runlevel sudo yum update – same as update
sudo chkconfig --level 35 service on/off – sudo yum check-update – check for availabi-
set service to run/not run in runlevels 3,5 lity of updates for installed packages
uname -r – get kernel version sudo yum install pkg – install pkg
uname -a – get all kernel information sudo yum remove pkg – remove pkg
sudo yum clean – clean the cache
Setup YUM and SUDO (file) /etc/yum.conf – configuration for the
Setting up SUDO: su -c 'echo "$USER repos. Set keepcache=1 in this file for
ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers' retaining all packages downloaded by yum
Setting up YUM: sudo rpm -ivh Fixing the YUM/RPM Database:
http://download1.rpmfusion.org/free/fedora/rpmfus sudo yum clean all
ion-free-release-stable.noarch.rpm \ sudo yum clean metadata
http://download1.rpmfusion.org/nonfree/fedora/rpm sudo yum clean dbcache
fusion-nonfree-release-stable.noarch.rpm && sudo sudo rpm -vv --initdb
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY- sudo rm -f /var/lib/rpm/__db*
rpmfusion-* && sudo rpm --import /etc/pki/rpm- sudo rpmdb -vv --rebuilddb > /dev/null
gpg/*

Firewall Setup MP3 and Video


sudo service iptables on – start firewall Audio(MP3): sudo yum install rhythmbox
sudo service iptables off – stop firewall gstreamer-plugins-ugly gstreamer-plugins-bad
sudo iptables -L – show current config gstreamer-ffmpeg
sudo iptables -a INPUT -j ACCEPT – allow all Video: sudo yum install xine xine-lib-extras
xine-lib-extras-freeworld
connections
sudo iptables -a INPUT -j REJECT – deny all
connections Flash Plugin
sudo iptables -a INPUT --dport port -j Flash Support: sudo rpm -ivh
ACCEPT – allow connection to port http://fpdownload.macromedia.com/get/flashplayer/
sudo iptables -a INPUT --dport port -j current/flash-plugin-10.0.32.18-release.i386.rpm
&& su -c 'yum install flash-plugin alsa-plugins-
REJECT – deny connection to port
pulseaudio libcurl'
sudo iptables -F – Reset firewall config
E-mail: [email protected]: visit us at: http://digitizor.com Licensed under CC-BY-SA 3.0. Free to redistribute; see creativecommons.org for details.

You might also like