Fedora Core 5 alustamisjuhend
Aidake koostamisega/tõlkimisega! |
Sisukord
- 1 Fedora Core 5 alustamisjuhend
- 2 Üldised Märkused
- 3 Alustuseks
- 4 Repositooriumid
- 5 Fedora Uuendamine
- 6 Täiendavad rakendused
- 6.1 Kuidas kasutada Yum-i?
- 6.2 List out your last update with rpm
- 6.3 Kuidas lisada graafiline liides yum-ile?
- 6.4 NetworkManager for Gnome
- 6.5 Kuidas paigaldada Menu Editor GNOME-le?
- 6.6 How to install Clipboard Daemon for GNOME
- 6.7 Kuidas paigaldada Java töökeskkond (J2SE Runtime Environment -- JRE) koos Mozilla Firefoxi pluginaga?
- 6.8 How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox
- 6.9 How to install PDF Reader (Adobe Reader)
- 6.10 Link Adobe Acrobat to the mozilla plugins
- 6.11 How to install Download Manager (Downloader for X)
- 6.12 Kuidas paigaldada FTP klient (gFTP)?
- 6.13 How to install File share utility (DC++)
- 6.14 Kuidas paigaldada P2P BitTorrent klient (Azureus)?
- 6.15 Kuidas paigaldada P2P eMule klient (aMule)?
- 6.16 Kuidas paigaldada P2P Gnutella klient (LimeWire)?
- 6.17 Kuidas paigaldada suhtlusprogramm (Skype)?
- 6.18 Kuidas paigaldada multimeedia koodekid?
- 6.19 Kuidas paigaldada DVD taasesitamise võimalus?
- 6.20 Kuidas paigaldada multimeedia mängija (MPlayer) koos Mozilla Firefoxi pluginaga?
- 6.21 How to install Multimedia Player (VLC)
- 6.22 How to install Multimedia Player (XMMS)
- 6.23 How to install Multimedia Player (amaroK)
- 6.24 How to install Multimedia Player (RealPlayer 10)
- 6.25 How to install Stream Directory Browser (streamtuner)
- 6.26 How to install ID3 Tag Editor (EasyTAG)
- 6.27 How to install Video Editor (Kino)
- 6.28 How to install Audio Editor (Audacity)
- 6.29 How to install DVD Ripper (dvd::rip)
- 6.30 How to install Image Viewer (Gwenview)
- 6.31 How to install Email Client (Mozilla Thunderbird)
- 6.32 How to install Newsreader (Pan)
- 6.33 How to install RSS/RDF/Atom Newsreader (RSSOwl)
- 6.34 How to install CHM viewer (GnoCHM)
- 6.35 How to install Web Authoring System (Nvu)
- 6.36 How to install Web Authoring System (bluefish)
- 6.37 How to install KDE Web Development Environment (quanta plus)
- 6.38 How to install Accounting Application (GnuCash)
- 6.39 How to install Desktop Publishing Application (Scribus)
- 6.40 How to install CD/DVD Burning Application (GnomeBaker)
- 6.41 How to install CD/DVD Burning Application (k3b)
- 6.42 How to install Partition Editor (GParted)
- 6.43 Kuidas paigaldada tulemüür? (Firestarter)
- 6.44 How to install network traffic analyzer (Ethereal)
- 6.45 How to install RAR Archiver (rar)
- 6.46 How to install Extra Fonts
- 6.47 How to install Desktop Applets (gDesklets)
- 6.48 How to install Basic Compilers
- 6.49 How to set up Development environment
- 6.50 How to install Integrated Development Environment (Anjuta)
- 6.51 How to install 3D modeling tool (Blender 3d)
- 6.52 How to install game Frozen-Bubble
- 6.53 How to install virtual planetarium (Stellarium)
- 6.54 How to install KDE Edutainment applications
- 7 Other Desktop Environments
- 8 Kommertsrakendused
- 9 Kasutajate haldus
- 9.1 Set up Sudo on your PC
- 9.2 How to set/change/enable root user password
- 9.3 How to disable root user account
- 9.4 How to add/edit/delete system users
- 9.5 How to add/edit/delete system groups
- 9.6 How to automatic login into GNOME (not secure)
- 9.7 How to change files/folders permissions
- 9.8 How to change files/folders ownership
- 9.9 How to change files/folders group ownership
- 10 Hardware
- 10.1 how to get wireless working Intel IPW2200 b,g
- 10.2 How to install Graphics Driver (NVIDIA)
- 10.3 How to install Graphics Driver (ATI)
- 10.4 How to identify Modem chipset
- 10.5 How to list partition tables
- 10.6 How to list filesystem disk space usage
- 10.7 How to list mounted devices
- 10.8 How to list PCI devices
- 10.9 How to list USB devices
- 10.10 How to speed up CD/DVD-ROM
- 10.11 How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated files/folders
- 10.12 How to forcefully unmount CD/DVD-ROM manually
- 10.13 How to remount /etc/fstab without rebooting
- 11 CD/DVD Burning
- 11.1 How to blank CD-RW/DVD-RW
- 11.2 How to burn files/folders into CD/DVD
- 11.3 How to burn Image (ISO) files into CD/DVD
- 11.4 How to duplicate CD/DVD
- 11.5 How to create Image (ISO) files from CD/DVD
- 11.6 How to create Image (ISO) files from folders
- 11.7 How to generate MD5 checksum files
- 11.8 How to check MD5 checksum of files
- 11.9 How to mount/unmount Image (ISO) files without burning
- 11.10 How to set/change the burn speed for CD/DVD Burner
- 11.11 How to enable burnproof for CD/DVD Burner
- 11.12 How to enable overburn for CD/DVD Burner
- 12 Networking
- 12.1 How to configure Google Talk
- 12.2 How to activate/deactivate network connections
- 12.3 How to configure network connections
- 12.4 How to change computer name
- 12.5 How to change computer descriptions
- 12.6 How to change computer Domain/Workgroup
- 12.7 How to assign Hostname to local machine with dynamic IP using free DynDNS service
- 12.8 How to share folders the easy way
- 12.9 How to browse network computers
- 12.10 How to access network folders without mounting
- 12.11 How to mount/unmount network folders manually, and allow all users to read
- 12.12 How to mount/unmount network folders manually, and allow all users to read/write
- 12.13 How to mount network folders on boot-up, and allow all users to read
- 12.14 How to mount network folders on boot-up, and allow all users to read/write
- 13 Remote Desktop
- 14 Windows
- 14.1 How to install support for NTFS
- 14.2 How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only
- 14.3 How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write
- 14.4 How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only
- 14.5 How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
- 15 Security
- 16 Rescue Mode
- 16.1 How to use Fedora Installation CD, to gain root user access
- 16.2 How to change root user/main user password if forgotten
- 16.3 How to change GRUB menu password if forgotten
- 16.4 How to restore GRUB menu after Windows installation
- 16.5 How to add Windows entry into GRUB menu
- 16.6 How to read Linux partitions (ext2, ext3) in Windows machine
- 17 Tips & Tricks
- 17.1 How to add extra Wallpapers, Icons and Themes
- 17.2 How to add the Open Terminal to the R-Click
- 17.3 How to get a shortcut to Root Terminal
- 17.4 How to restart GNOME without rebooting computer
- 17.5 How to turn on Num Lock on GNOME startup
- 17.6 How to switch to Console mode in GNOME
- 17.7 How to disable Ctrl+Alt+Backspace from restarting X in GNOME
- 17.8 How to enable Ctrl+Alt+Del to open System Monitor in GNOME
- 17.9 How to refresh GNOME desktop
- 17.10 How to refresh GNOME panel
- 17.11 How to open each folder in the same window in Nautilus
- 17.12 How to enable autosave in Gedit and disable creation of some_file~ files
- 17.13 How to show all hidden files/folders in Nautilus
- 17.14 How to browse files/folders as root user in Nautilus
- 17.15 How to show Desktop Icons (Computer, Home, Trash)
- 17.16 How to change default file type "Open with" program
- 17.17 How to change preferred email client to Mozilla Thunderbird
- 17.18 How to open files as root user via right click
- 17.19 How to disable beep sound in Terminal mode
- 17.20 How to load Web site faster in Mozilla Firefox
- 17.21 How to disable beep sound for link find function in Mozilla Firefox
- 17.22 How to install/uninstall .rpm files
- 17.23 How to rename all files in directory at once
- 17.24 How to manipulate all image files in directory at once
- 17.25 How to set System-wide Environment Variables
- 17.26 How to save "man" outputs into files
- 17.27 How to show GRUB menu on boot-up
- 17.28 How to change the timeout seconds for GRUB menu on boot-up
- 17.29 How to change default Operating System boot-up for GRUB menu
- 17.30 How to display Splash Image for GRUB menu on boot-up
- 17.31 How to convert Wallpaper to Splash Image for GRUB menu
- 17.32 How to temporary skip boot-up services
- 17.33 How to permanently disable/enable boot-up services
- 17.34 How to clean /tmp/ folder contents on shutdown
- 17.35 How to scroll up and down to view previous outputs in Console mode
- 17.36 How to forcefully empty Trash in GNOME
- 17.37 How to remove duplicate menu/menu items in GNOME
- 17.38 Open Terminal Here in Nautilus
- 17.39 Open Root Terminal Here in Naultilus
- 18 Samba Server
- 18.1 How to install Samba Server for files/folders sharing service
- 18.2 How to add/edit/delete network users
- 18.3 How to share home folders with read/write permissions (Authentication=Yes)
- 18.4 How to share home folders with read only permission (Authentication=Yes)
- 18.5 How to share group folders with read only permission (Authentication=Yes)
- 18.6 How to share group folders with read/write permissions (Authentication=Yes)
- 18.7 How to share public folders with read only permission (Authentication=Yes)
- 18.8 How to share public folders with read/write permissions (Authentication=Yes)
- 18.9 How to share public folders with read only permission (Authentication=No)
- 18.10 How to share public folders with read/write permissions (Authentication=No)
- 19 SSH
- 19.1 How to SSH into remote Fedora machine
- 19.2 How to copy files/folders from remote Fedora machine into local machine (scp)
- 19.3 How to copy files/folders from local machine into remote Fedora machine (scp)
- 19.4 How to copy files/folders from remote Fedora machine into local machine (rsync)
- 19.5 How to copy files/folders from local machine into remote Fedora machine (rsync)
- 19.6 How to SSH into remote Fedora machine via Windows machine
- 19.7 How to copy files/folders from/into remote Fedora machine via Windows machine
- 20 Andmebaasiserver
- 21 Web Server
- 22 FTP Server
- 22.1 How to install FTP Server for File Transfer service
- 22.2 How to configure FTP Server to allow anonymous FTP user to read only
- 22.3 How to configure FTP Server to allow anonymous FTP user to read/write
- 22.4 How to map anonymous FTP user to folders outside /home/ftp/
- 22.5 How to change the default port number for FTP Server
- 22.6 How to ftp into remote Fedora machine via Windows machine
Fedora Core 5 alustamisjuhend
See juhend põhineb Linux Center of University of Latvia kirjutatud Fedora Core 5 Starter Guidel.
Paljusid asju, mis siinses juhendis on õpetatud saab lihtsamalt teha kasutades Fedora Frogi
Üldised Märkused
- Tegu on Fedora Core 5 alustamisjuhendiga. Antud juhend ei ole mingil moel seotud Fedora või RedHatiga.
- Juhend on testitud vaikimisi Fedora Core 5 "Peroisnal computer" paigaldusega vaikimisi pakettidega.
- Juhul, kui näete sinisel taustal kastis teksti, siis peate need käsud käivitama Terminalis. (Applications -> System Tools -> Terminal) või kasutama neid käske vastavalt muudele juhenditele.
- Et vältida kirjutamisel tekkinud apsakaid kopeerige ja kleepige need käsud siit lehelt Terminali (parem klikk tähistatud käsul hiirega -> "Copy" või "Paste". Te võite kasutada ka klahvikombinatsioone Ctrl+C kopeerimiseks ja Shift+Insert kleepimiseks)
- NB: Te peate käivitama need käsud root kasutaja õigustes. Seega enne jätkamist:
su -
- ja sisetage oma root kasutaja parool.
- või
- Lugege #How to get a shortcut to Root Terminal
- Juhul, kui Teile ei meeldi töötada Terminalis võite paigaldada graafilise yum-i liidese. Lugege #How to install Graphical User Interface for yum
- "yum" ja "wget" nõuavad internetiühenduse olemasolu, et alla laadida ja paigaldada uuendusi, programme
- Loodetavasti on antud juhendist Teile kasu
- Kui jääte hätte, siis võite abi saamiseks pöörduda Pingviini Webi
Alustuseks
Mis on Fedora?
Kus ma võin näha Fedora kuvapilte?
Kust ma leian nimekirja programmidest, mis tulevad kaasa Fedoraga?
Kust ma võin Fedora alla laadida?
Kust ma võin abi leida?
Inglise keelsed lehed:
- Ametlik Dokumentatsioon
- Fedora Core 5 Linux Paigalduse näpunäited
- Mitteaemtlik Fedora KKK
- Fedora Core 5 Nipid ja Trikid
- Mauriat Miranda's personaalne Fedora Core 5 paigalduse juhend
- Fedora Foorum
- Fedora Solved
- Muud kohad
Eesti lehed:
Kust ma võin leida uusi programme?
- http://gnomefiles.org/
- http://freshmeat.net
- http://sourceforge.net/
- http://kde-apps.org/
- Fedora Extras project
- http://rpm.pbone.net/
- http://rpm.livna.org/
Kust ma võin leida vahendeid oma töölaua muutmiseks?
Repositooriumid
Kuidas lisada repositooriume?
- Lugege #Üldised Märkused
- Asendage oma vana yum.conf järgnevaga:
cd /etc mv -f yum.conf yum.conf.bak wget http://www.fedorafaq.org/samples/yum.conf rpm -Uvh http://www.fedorafaq.org/yum
RPMforge repositooriumi lisamine
- Lugege #Üldised Märkused
- Lugege #Kuidas importida GPG võtmeid?
Adding the RPM forge repo is a alternative to the repos that get installed from the fedorafaq website. Note: These two groups are mutually incompatible and can cause errors in your installation if used together for automatic updates.
- freshrpms
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
- dries
gedit /etc/yum.repos.d/dries.repo
- Lisage järgnevad read uute faili
[dries] name=Extra Fedora rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/ http://apt.sw.be/dries/fedora/fc4/$basearch/dries/RPMS/ failovermethod=priority enabled=0 gpgcheck=1
- newrpms
gedit /etc/yum.repos.d/newrpms.repo
- Lisage järgnevad read uute faili
[newrpms.sunsite.dk] name=Fedora Core 5 i386 NewRPMS.sunsite.dk baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever http://newrpms.atrpms.net/apt/redhat/en/$basearch/fc$releasever failovermethod=priority enabled=0 gpgcheck=1
Kuidas importida GPG võtmeid?
- Lugege #Üldised Märkused
- Pidage meeles, te peate olema root kasutaja õigustes.
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt rpm --import /usr/share/doc/fedora-release-*/*GPG-KEY*
Fedora Uuendamine
Kuidas manuaalselt uuendada Fedorat?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum check-update yum update
- Alternatiiv on kasutada selleks pup-i (Package Updater)
pup
- Sealt menpüüst:
Applications -> System Tools -> Software Updater
Täiendavad rakendused
Kuidas kasutada Yum-i?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum on väga võimas paketihaldur. Ta võimaldab Teil lahendada sõltuvuse probleemid erinevate paketide paigaldamisel. yumi abil on samuti võimalik otsida, paigaldada ja eemaldada rakendusi.
kasutamine: yum [options] < update | install | info | remove | list | clean | provides | search | check-update | groupinstall | groupupdate | grouplist | groupinfo | groupremove | makecache | localinstall | erase | upgrade | whatprovides | localupdate | resolvedep | shell | deplist > 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) --exclude=[package] exclude package(s) by name or glob --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins
Esmapilgul võib see tunduda küll keerulisena, kuid tegelikult see nii pole.
- Examples:
- To seach for a application
Yum will search all your enabled repos and tell you where you can obtain the package from
yum search application_name
- Yum can list all available packages from your enabled repos and tell you where you can obtain the package from:
yum list available
- To find out more info about some package
yum info application_name
- Installing applications
Inastalling is as easy as
yum install application_name
- Listing rpms
yum can list installed rpms for you from the repos you have enabled
yum list extras
- Removing rpms
Yum can remove a application and the dependenciesit installed with tat application. it will not remove depenencies if another application installed needs them.
yum remove application_name
- Updating the system
Yum can update the system for you with out user interact if you want it to.
yum update
- Not sure if you have upates?
yum check-update
- Local install
downloaded a rpm and cannot install it with rpm because of dependencies?
yum localinstall /path/to/the/rpm
- Happy yumming...
List out your last update with rpm
- Lugege #Üldised Märkused
rpm -qa --last | tac
Kuidas lisada graafiline liides yum-ile?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install yumex
- Applications -> System Tools -> Yum Extender
NetworkManager for Gnome
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
Start the services
chkconfig --level 345 NetworkManager on chkconfig --level 345 NetworkManagerDispatcher on service NetworkManager start service NetworkManagerDispatcher start
Click the Radar or connected icon in the system tray and choose "New wireless network".
Enter your information
Kuidas paigaldada Menu Editor GNOME-le?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install alacarte
- Applications -> Accessories System Tools -> Alacarte Menu Editor
How to install Clipboard Daemon for GNOME
- Lugege #Üldised Märkused
- first 5 commands are done as root the last is user your user ID.
wget -c http://easylinux.info/uploads/gnome-clipboard-daemon-1.0.bin.tar.bz2 tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/ rm -f gnome-clipboard-daemon-1.0.bin.tar.bz2 chown root:root /usr/bin/gnome-clipboard-daemon chmod 755 /usr/bin/gnome-clipboard-daemon gnome-clipboard-daemon & exit export EDITOR=gedit && crontab -e
- Add the following line at the end of file
@reboot gnome-clipboard-daemon
- Save edited file
Kuidas paigaldada Java töökeskkond (J2SE Runtime Environment -- JRE) koos Mozilla Firefoxi pluginaga?
- Lugege #Üldised Märkused
- Laadige alla Linuxile mõeldud ise lahti pakkiv fail (jre-1_5_0_06-linux-i586.bin)
Java's Site lehelt ja salvestage see oma kodu kataloogi
mv jre-1_5_0_06-linux-i586.bin /opt cd /opt chmod +x jre-1_5_0_06-linux-i586.bin ./jre-1_5_0_06-linux-i586.bin ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
Java plugin on nüüd paigaldatud.
ls /usr/lib/mozilla/plugins
Selleks, et käivitada Java rakendusi nagu limewire tuleb veel jätkata:
gedit /etc/profile.d/java.sh
- Sisestage järgnevad read faili
#!/bin/sh JAVA_HOME=/usr/java/jre1.5.0_06 export JAVA_HOME JAVA_BIN=$JAVA_HOME/bin CLASSPATH=$CLASSPATH:$JAVA_HOME:$JAVA_HOME/lib PATH=$JAVA_BIN:$PATH export JAVA_BIN CLASSPATH PATH
- Salvestage fail
source /etc/profile.d/java.sh /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_06/bin/java 2 /usr/sbin/alternatives --config java
- Nüüd peaksite Te nägema järgmist vaadet:
There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2 /opt/jre1.5.0_06/bin/java Enter to keep the current selection[+], or type selection number:
- Vajutage 2
- Testige oma Javat
How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum --enablerepo=flash install flash-plugin
- Restart Mozilla Firefox
How to install PDF Reader (Adobe Reader)
- You can already view .pdf documents, but if you wish to have Adobe Reader
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
wget -c http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/enu/AdobeReader_enu-7.0.5-1.i386.rpm yum -y install compat-libstdc++-33 rpm -i AdobeReader_enu-7.0.5-1.i386.rpm rm -f AdobeReader_enu-7.0.5-1.i386.rpm
- Applications -> Office -> Adobe Reader
Link Adobe Acrobat to the mozilla plugins
- Lugege #Üldised Märkused
Linking to the mozilla plugins folder will allow you to view the pdf in the browser instead of viewing with Acrobat Reader
cd /usr/lib/mozilla/plugins ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
How to install Download Manager (Downloader for X)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install d4x
- Applications -> Internet -> Downloader for X
Kuidas paigaldada FTP klient (gFTP)?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gftp
- Applications -> Internet -> gFTP
- Lugege #Üldised Märkused
wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz tar zxvf linuxdcpp.tar.gz -C /opt rm -f linuxdcpp.tar.gz gedit /usr/share/applications/dcpp.desktop
- Insert the following lines into the new file
[Desktop Entry] Encoding=UTF-8 Name=DC++ Exec=/opt/linuxdcpp/dcpp Terminal=false Type=Application StartupNotify=true Icon=eyes.png Categories=Application;Network;
- Applications -> Internet -> DC++
Kuidas paigaldada P2P BitTorrent klient (Azureus)?
- Lugege #Üldised Märkused
- Lugege #Kuidas paigaldada Java töökeskkond (J2SE Runtime Environment -- JRE) koos Mozilla Firefoxi pluginaga?
wget -c http://heanet.dl.sourceforge.net/sourceforge/azureus/Azureus_2.3.0.6_linux.tar.bz2 tar jxvf Azureus_2.3.0.6_linux.tar.bz2 -C /opt gedit /usr/share/applications/azureus.desktop
- Lisage järgnevad read uude faili:
[Desktop Entry] Name=Azureus Comment=A Bittorrent client Exec=/opt/azureus/azureus Icon=/opt/azureus/Azureus.png Terminal=false Type=Application Categories=Application;Network;
- Applications -> Internet -> Azureus
Kuidas paigaldada P2P eMule klient (aMule)?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install amule
- Applications -> Internet -> aMule
Kuidas paigaldada P2P Gnutella klient (LimeWire)?
- Lugege #Üldised Märkused
- Lugege #Kuidas paigaldada Java töökeskkond (J2SE Runtime Environment -- JRE) koos Mozilla Firefoxi pluginaga?
wget -c http://easylinux.info/uploads/LimeWireOther.zip unzip -u LimeWireOther.zip -d /opt/ rm -f LimeWireOther.zip gedit /usr/bin/runLime.sh
- Sisestage järgnevad read faili
cd /opt/LimeWire/ ./runLime.sh
- Salvestage muudetud fail
chmod +x /usr/bin/runLime.sh gedit /usr/share/applications/LimeWire.desktop
- Sisestage järgnevad read faili
[Desktop Entry] Name=LimeWire Comment=LimeWire Exec=runLime.sh Icon=/opt/LimeWire/LimeWire.ico Terminal=false Type=Application Categories=Application;Network;
- Salvestage muudetud fail
- Applications -> Internet -> LimeWire
Kuidas paigaldada suhtlusprogramm (Skype)?
- Lugege #Üldised Märkused
wget -c http://download.skype.com/linux/skype_staticQT-1.2.0.18.tar.bz2 tar jxvf skype_staticQT-1.2.0.18.tar.bz2 -C /opt/ ln -s /opt/skype-1.2.0.18/skype /usr/bin/skype cp /opt/skype-1.2.0.18/skype.desktop /usr/share/applications/skype.desktop cp /opt/skype-1.2.0.18/icons/skype_32_32.png /usr/share/pixmaps/skype.png rm -f skype_staticQT-1.2.0.18.tar.bz2
- Applications -> Internet -> Skype
Kuidas paigaldada multimeedia koodekid?
- Lugege #Üldised Märkused
yum -y install gstreamer-plugins* yum -y install lame yum -y install ffmpeg yum -y install mjpegtools yum --enablerepo=atrpms install w32codec gst-register-0.8
Kuidas paigaldada DVD taasesitamise võimalus?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
wget -c http://download.videolan.org/pub/libdvdcss/1.2.9/rpm/libdvdcss2-1.2.9-1.i386.rpm rpm -i libdvdcss2-1.2.9-1.i386.rpm
Kuidas paigaldada multimeedia mängija (MPlayer) koos Mozilla Firefoxi pluginaga?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
- Lugege #Kuidas paigaldada DVD taasesitamise võimalus?
yum -y install mplayer-gui yum -y install mplayerplug-in
- Applications -> Sound & Video -> MPlayer
- Restartige Mozilla Firefox
How to install Multimedia Player (VLC)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
- Lugege #Kuidas paigaldada DVD taasesitamise võimalus?
yum -y install videolan-client
- Applications -> Sound & Video -> VLC
How to install Multimedia Player (XMMS)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
yum -y install xmms yum -y install xmms-mp3 yum -y install xmms-skins
- Applications -> Sound & Video -> XMMS
How to install Multimedia Player (amaroK)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
yum -y install amarok
- Applications -> Sound & Video -> amaroK
How to install Multimedia Player (RealPlayer 10)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
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
rpm -ivh Desktop/RealPlayer10GOLD.rpm yum remove HelixPlayer
- Applications -> Sound & Video -> RealPlayer 10
How to install Stream Directory Browser (streamtuner)
- Lugege #Üldised Märkused
wget -c ftp://ftp.freshrpms.net/pub/dag/dries/packages/streamtuner/fc4-i386/streamtuner-0.99.99-1.2.fc4.rf.i386.rpm rpm -ivh streamtuner-0.99.99-1.2.fc4.rf.i386.rpm rm -f streamtuner-0.99.99-1.2.fc4.rf.i386.rpm
- Applications -> Sound & Video -> streamtuner
How to install ID3 Tag Editor (EasyTAG)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum --enablerepo=freshrpms install easytag
- Applications -> Sound & Video -> EasyTAG
How to install Video Editor (Kino)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
yum -y install kino
- Applications -> Sound & Video -> Kino
How to install Audio Editor (Audacity)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
yum -y install audacity
- Applications -> Sound & Video -> Audacity
How to install DVD Ripper (dvd::rip)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada multimeedia koodekid?
- Lugege #Kuidas paigaldada DVD taasesitamise võimalus?
- Lugege #Kuidas paigaldada multimeedia mängija (MPlayer) koos Mozilla Firefoxi pluginaga?
- Read #How to install RAR Archiver (rar)
yum -y install perl-Video-DVDRip yum --enablerepo=freshrpms install vcdimager yum -y install cdrdao yum --enablerepo=freshrpms install subtitleripper ln -fs /usr/bin/rar /usr/bin/rar-2.80 gedit /usr/share/applications/dvdrip.desktop
- Insert the following lines into the new file
[Desktop Entry] Name=dvd::rip Comment=dvd::rip Exec=dvdrip Icon=/usr/share/perl5/Video/DVDRip/icon.xpm Terminal=false Type=Application Categories=Application;AudioVideo;
- Salvestage muudetud fail
- Applications -> Sound & Video -> dvd::rip
How to install Image Viewer (Gwenview)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gwenview yum -y install kipi-plugins yum -y install ImageMagick
- Applications -> Graphics -> Gwenview
How to install Email Client (Mozilla Thunderbird)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install thunderbird
- Applications -> Internet -> Thunderbird Mail Client
How to install Newsreader (Pan)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install pan
- Applications -> Internet -> Pan Newsreader
How to install RSS/RDF/Atom Newsreader (RSSOwl)
- Lugege #Üldised Märkused
- Lugege #Kuidas paigaldada Java töökeskkond (J2SE Runtime Environment -- JRE) koos Mozilla Firefoxi pluginaga?
wget -c http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/ chown -R root:root /opt/rssowl_linux_1_1_3_bin/ gedit /usr/bin/runRSSOwl.sh
- Insert the following lines into the new file
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH} cd /opt/rssowl_linux_1_1_3_bin/ ./run.sh
- Salvestage muudetud fail
chmod +x /usr/bin/runRSSOwl.sh gedit /usr/share/applications/RSSOwl.desktop
- Insert the following lines into the new file
[Desktop Entry] Name=RSSOwl Comment=RSSOwl Exec=runRSSOwl.sh Icon=/opt/rssowl_linux_1_1_3_bin/rssowl.xpm Terminal=false Type=Application Categories=Application;Network;
- Salvestage muudetud fail
- Applications -> Internet -> RSSOwl
How to install CHM viewer (GnoCHM)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y --enablerepo=dries install gnochm
- Applications -> Accessories -> CHM Viewer
How to install Web Authoring System (Nvu)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install xorg-x11-deprecated-libs wget -c http://www.nvu.com/download/linux/1.0/nvu-1.0-RedHat_and_Fedora/nvu-1.0-1.rhel4.fs.i386.rpm rpm -ivh nvu-1.0-1.rhel4.fs.i386.rpm
- Applications -> Programming -> Nvu
How to install Web Authoring System (bluefish)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install bluefish
Applications --> Programming --> Bluefish Editor
How to install KDE Web Development Environment (quanta plus)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install kdewebdev
- Applications -> Programming -> Quanta Plus
How to install Accounting Application (GnuCash)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gnucash rm -fr /usr/share/gnome/apps/Applications/ gedit /usr/share/applications/GnuCash.desktop
- Insert the following lines into the new file
[Desktop Entry] Name=GnuCash Comment=GnuCash Personal Finance Exec=gnucash Icon=/usr/share/pixmaps/gnucash/gnucash-icon.png Terminal=false Type=Application Categories=Application;Office;
- Salvestage muudetud fail
- Applications -> Office -> GnuCash
How to install Desktop Publishing Application (Scribus)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install scribus
- Applications -> Office -> Scribus
How to install CD/DVD Burning Application (GnomeBaker)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gnomebaker
- Applications -> Sound & Video -> GnomeBaker
How to install CD/DVD Burning Application (k3b)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install k3b
- Applications -> Sound & Video -> K3b
How to install Partition Editor (GParted)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gparted
- Applications -> System Tools -> GParted
Kuidas paigaldada tulemüür? (Firestarter)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install firestarter
- Applications -> System Tools -> Firestarter
How to install network traffic analyzer (Ethereal)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install ethereal ethereal-gnome
- Applications -> Internet -> Ethereal
How to install RAR Archiver (rar)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum --enablerepo=freshrpms install rar unrar
- Applications -> Accessories -> Archive Manager
How to install Extra Fonts
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install xfonts-arabic yum -y install xfonts-chinese yum -y install xfonts-gujarati yum -y install xfonts-hebrew yum -y install xfonts-hindi yum -y install xfonts-japanese yum -y install xfonts-xorg-truetype wget -c http://easylinux.info/uploads/msttcorefonts-1.3-4.noarch.rpm rpm -ivh msttcorefonts-1.3-4.noarch.rpm /etc/init.d/xfs restart
How to install Desktop Applets (gDesklets)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gdesklets
- Applications -> Accessories -> gDesklets
- For more info see: http://gdesklets.gnomedesktop.org/
How to install Basic Compilers
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gcc yum -y install gcc-c++
How to set up Development environment
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Add development repo
gedit /etc/yum.repos.d/fedora-devel.repo
- Add the following lines to the new file
[development] name=Fedora Core $releasever - Development Tree #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide enabled=1 gpgcheck=0
- Save the edited file
yum groupinstall "Development Tools"
How to install Integrated Development Environment (Anjuta)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
rpm --import /usr/share/rhn/RPM-GPG-KEY yum -y install anjuta
- Applications -> Programming -> Anjuta IDE
How to install 3D modeling tool (Blender 3d)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install blender
- Applications -> Graphics -> Blender 3D modeller
How to install game Frozen-Bubble
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y 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)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install stellarium
- Applications -> Graphics -> Stellarium nightsky renderer
How to install KDE Edutainment applications
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install kdeedu
- Applications -> Edutainment -> ...
Other Desktop Environments
Kuidas paigaldada KDE
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Võite samuti vaadata mõningaid KDE kuvapilte
- Kasutage Desktop -> System Settings -> Add/Remove Applications
- või
yum -y install htdig yum -y install kdebase yum -y install arts yum -y install desktop-printing yum -y install kdegraphics yum -y install kdenetwork yum -y install kdemultimedia yum -y install kdeaddons yum -y install kdeutils yum -y install kdeartwork yum -y install autorun
- Logige välja
- Sessioonide alt valige KDE
- Logige sisse
Kommertsrakendused
Kuidas paigaldada Windows 9X/ME/2000/XP (Win4Lin)?
Kuidas paigaldada Windows'i rakendused (CrossOver Office)?
Kuidas paigaldada Windows'i mängud (Cedega)?
Kasutajate haldus
Set up Sudo on your PC
- Lugege #Üldised Märkused
gedit /etc/sudoers
- Leidke see rida
# User privilege specification root ALL=(ALL) ALL
- Add your username underneath where it says root and copy the rest of the line as is:
# User privilege specification root ALL=(ALL) ALL your_user_name ALL=(ALL)NOPASSWD: ALL
The NOPASSWD: secition is optional. If you work in a environment that you feel there maybe a security risk DO NOT USE THIS OPTION. Simply remove that section of the line. If you do not use the NOPASSWD: option, when you run a command with sudo, you'll need to enter your password NOT Roots.
How to set/change/enable root user password
- Lugege #Üldised Märkused
passwd root
How to disable root user account
- Lugege #Üldised Märkused
passwd -l root
How to add/edit/delete system users
- Lugege #Üldised Märkused
- Desktop -> System Settings -> Users and Groups
- Users and Groups
Users Tab -> Add User.../Properties/Delete
How to add/edit/delete system groups
- Lugege #Üldised Märkused
- Desktop -> System Settings -> Users and Groups
- Users and Groups
Groups Tab -> Add Group.../Properties/Delete
How to automatic login into GNOME (not secure)
- Lugege #Üldised Märkused
- Desktop -> System Settings -> Login Screen
- Login Screen Setup
General Tab -> Automatic Login -> Login a user automatically on first bootup (Checked) Automatic login username: Select "system_username"
How to change files/folders permissions
- Lugege #Üldised Märkused
Right click on files/folders -> Properties
Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others)
How to change files/folders ownership
- Lugege #Üldised Märkused
chown system_username /location_of_files_or_folders
How to change files/folders group ownership
- Lugege #Üldised Märkused
chgrp system_groupname /location_of_files_or_folders
Hardware
how to get wireless working Intel IPW2200 b,g
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
download [1] Agree to the licence and save the file to your desktop then open the terminal and copy & paste each line.
mkdir tmp mv ~/Desktop/*-2.4.tgz ~/tmp cd tmp tar -zxvf ipw2200-fw-2.4.tgz cp * /lib/firmware rmmod ipw2200 modprobe ipw2200 iwconfig
you should now see a access point You can use NetworkManager to control your wireless actvity
#NetworkManager_for_Gnome
How to install Graphics Driver (NVIDIA)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install nvidia-glx kernel-module-nvidia-$(uname -r)
- Read #How to restart GNOME without rebooting computer
- If you have any problems see nV News "Linux and nVidia Graphics" forum
- or
How to install Graphics Driver (ATI)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install ati-fglrx kernel-module-fglrx-$(uname -r)
- If you have an Intel motherboard, you will have to modify your xorg.conf file after installing the drivers:
gedit /etc/X11/xorg.conf
- Find the following line
Driver "fglrx"
- Add the following line below it
Option "UseInternalAGPGART" "no"
How to identify Modem chipset
- Lugege #Üldised Märkused
- To install Modem chipset identifier
- Read #How to install Basic Compilers (build-essential)
wget -c http://easylinux.info/uploads/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem cp scanModem /usr/bin/
- To identify Modem chipset
scanModem gedit Modem/ModemData.txt
How to list partition tables
- Lugege #Üldised Märkused
fdisk -l
How to list filesystem disk space usage
- Lugege #Üldised Märkused
df -T -h
How to list mounted devices
- Lugege #Üldised Märkused
mount
How to list PCI devices
- Lugege #Üldised Märkused
lspci
How to list USB devices
- Lugege #Üldised Märkused
lsusb
How to speed up CD/DVD-ROM
- Lugege #Üldised Märkused
- e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
/sbin/hdparm -d1 /dev/cdrom gedit /etc/hdparm.conf
- Insert the following lines in the new file
/dev/cdrom { dma = on }
- Salvestage muudetud fail
- Lugege #Üldised Märkused
- e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
- To mount CD/DVD-ROM
mount /media/cdrom0/ -o unhide
- To unmount CD/DVD-ROM
umount /media/cdrom0/
How to forcefully unmount CD/DVD-ROM manually
- Lugege #Üldised Märkused
- e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
umount /media/cdrom0/ -l
How to remount /etc/fstab without rebooting
- Lugege #Üldised Märkused
mount -a
CD/DVD Burning
How to blank CD-RW/DVD-RW
- Lugege #Üldised Märkused
- e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
umount /dev/cdrom cdrecord dev=/dev/cdrom blank=fast
How to burn files/folders into CD/DVD
- Lugege #Üldised Märkused
nautilus burn:///
- File Browser: CD/DVD Creator
- Drag files/folders into window
File Menu -> Write to Disc... -> Write
How to burn Image (ISO) files into CD/DVD
- Lugege #Üldised Märkused
Right click on Image (ISO) file -> Write to Disc... -> Write
How to duplicate CD/DVD
- Lugege #Üldised Märkused
- Read #How to create Image (ISO) files from CD/DVD
- Read #How to burn Image (ISO) files into CD/DVD
How to create Image (ISO) files from CD/DVD
- Lugege #Üldised Märkused
- e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
umount /dev/cdrom dd if=/dev/cdrom of=file.iso bs=1024
How to create Image (ISO) files from folders
- Lugege #Üldised Märkused
mkisofs -o file.iso /location_of_folder/
How to generate MD5 checksum files
- Lugege #Üldised Märkused
md5sum file.iso > file.iso.md5
How to check MD5 checksum of files
- Lugege #Üldised Märkused
- e.g. Assumed that file.iso and file.iso.md5 are in the same folder
md5sum -c file.iso.md5
How to mount/unmount Image (ISO) files without burning
- Lugege #Üldised Märkused
- To mount Image (ISO) file
mkdir /media/iso modprobe loop mount file.iso /media/iso/ -t iso9660 -o loop
- To unmount Image (ISO) file
umount /media/iso/
How to set/change the burn speed for CD/DVD Burner
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)
How to enable overburn for CD/DVD Burner
- Lugege #Üldised Märkused
- Applications -> System Tools -> Configuration Editor
- Configuration Editor
/ -> apps -> nautilus-cd-burner -> overburn (Checked)
Networking
How to configure Google Talk
- See the answer at Google Talk Help Center
How to activate/deactivate network connections
- Lugege #Üldised Märkused
- Desktop -> System Settings -> Network
- Devices Tab
- Activate/Deactivate
How to configure network connections
- Lugege #Üldised Märkused
- Desktop -> System Settings -> Network
- Network Configuration
- Edit
- Read #How to activate/deactivate network connections
How to change computer name
- Lugege #Üldised Märkused
hostname your_desired_computer_name
How to change computer descriptions
cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... server string = Samba Server ...
- Asendage see järgnevaga
server string = new_computer_descriptions
- Salvestage muudetud fail
testparm /etc/init.d/smb restart
How to change computer Domain/Workgroup
cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... workgroup = MSHOME ...
- Asendage see järgnevaga
workgroup = new_domain_or_workgroup
- Salvestage muudetud fail
testparm /etc/init.d/smb restart
How to assign Hostname to local machine with dynamic IP using free DynDNS service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- 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
yum -y install ipcheck gedit /root/dyndns_update.sh
- Insert the following lines into the new file
USERNAME=myusername PASSWORD=mypassword HOSTNAME=myhostname.dyndns.org
cd /root/ 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
- Salvestage muudetud fail
chmod 700 /root/dyndns_update.sh sh /root/dyndns_update.sh export EDITOR=gedit && crontab -e
- Append the following line at the end of file
00 * * * * sh /root/dyndns_update.sh
- Save the edited file
Right click on folder -> Share folder
Shared folder -> Share with: Select "SMB" Share properties -> Name: Specify the share name
How to browse network computers
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
- 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
- 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
mkdir /media/sharename mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword
- To unmount network folder
umount /media/sharename/
How to mount/unmount network folders manually, and allow all users to read/write
- 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
mkdir /media/sharename mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
- To unmount network folder
umount /media/sharename/
How to mount network folders on boot-up, and allow all users to read
- 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
mkdir /media/sharename gedit /root/.smbcredentials
- Insert the following lines into the new file
username=myusername password=mypassword
- Salvestage muudetud fail
chmod 700 /root/.smbcredentials cp /etc/fstab /etc/fstab_backup gedit /etc/fstab
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename cifs credentials=/root/.smbcredentials 0 0
- Salvestage muudetud fail
- Read #How to remount /etc/fstab without rebooting
How to mount network folders on boot-up, and allow all users to read/write
- 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
mkdir /media/sharename gedit /root/.smbcredentials
- Insert the following lines into the new file
username=myusername password=mypassword
- Salvestage muudetud fail
chmod 700 /root/.smbcredentials cp /etc/fstab /etc/fstab_backup gedit /etc/fstab
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename cifs credentials=/root/.smbcredentials,dmask=0777,fmask=0777 0 0
- Salvestage muudetud fail
- Read #How to remount /etc/fstab without rebooting
Remote Desktop
How to configure remote desktop (not secure)
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
- 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.
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
- Lugege #Üldised Märkused
- 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
Windows
How to install support for NTFS
- Read #General Notes
- Read #How to add extra repositories
yum -y install kernel-module-ntfs-$(uname -r)
- For more info see http://www.linux-ntfs.org
How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only
- Lugege #Üldised Märkused
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
- Local mount folder: /media/windows
- To mount Windows partition
mkdir /media/windows mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
- To unmount Windows partition
umount /media/windows/
How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write
- Lugege #Üldised Märkused
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
- Local mount folder: /media/windows
- To mount Windows partition
mkdir /media/windows mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
- To unmount Windows partition
umount /media/windows/
How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only
- Lugege #Üldised Märkused
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
- Local mount folder: /media/windows
mkdir /media/windows cp /etc/fstab /etc/fstab_backup gedit /etc/fstab
- Append the following line at the end of file
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
- Salvestage muudetud fail
- Read #How to remount /etc/fstab without rebooting
How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
- Lugege #Üldised Märkused
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
- Local mount folder: /media/windows
mkdir /media/windows cp /etc/fstab /etc/fstab_backup gedit /etc/fstab
- Append the following line at the end of file
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
- Salvestage muudetud fail
- Read #How to remount /etc/fstab without rebooting
Security
What are the basic things I need to know about securing my Fedora
- Lugege #Üldised Märkused
- Ensure hard drive is first in BIOS boot-up sequence
- To prevent trespassers from using Linux Installation CD which allows them to gain root user access
- To prevent trespassers from using Linux Live CD (e.g. Fedora/KNOPPIX/MEPIS) which allows them to destroy/browse/share the entire hard drive
- To prevent trespassers from installing another Operating System
- Ensure a password is set for BIOS
- To prevent trespassers from changing the BIOS boot-up sequence
- Ensure computer is located at a secured place
- To prevent trespassers from removing computer's hard drive which allows them to destroy/browse/share the entire hard drive from a different computer
- 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
- To prevent trespassers from cracking password file using brute force attacks (e.g. John the Ripper)
- Create password with minimum length of 8 characters
- Create password with mixture of characters/numbers, and upper/lower case
- Ensure interactive editing control for GRUB menu is disabled
- To prevent trespassers from modifying kernel boot-up arguments which allows them to have root user access
- Read #How to disable all interactive editing control for GRUB menu
- Ensure history listing is disabled in Console mode
- To prevent trespassers from seeing previously issued commands
- Read #How to disable history listing in Console mode
- Ensure Ctrl+Alt+Del is disabled in Console mode
- To prevent trespassers from restarting the system without permission in Console mode
- 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
- To prevent accidental removal/overwritten of files/folders
- Read #How to enable prompt before removal/overwritten of files/folders in Console mode
- For day to day usage, login as a normal user
- To prevent accidental deletion/modification of system files/folders
- Read #How to add/edit/delete system users
- Disable root user account, use "sudo" instead
- To reduce the amount of time spent with root privileges, and thus the risk of inadvertently executing a command as root
- "sudo" provides a more useful audit trail (/var/log/auth.log)
- Read #How to disable root user account
- Install a Firewall
- A firewall does not guarantee security but it is in most environments the first line of defense against network based attacks
- Read #How to install Firewall (Firestarter)
- Perform vulnerability test
- Nessus is a great tool designed to automate the testing and discovery of known security problems
- Read #How to install Vulnerability Scanner (Nessus)
- Lugege #Üldised Märkused
grub
grub> md5crypt Password: ****** (Fedora) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup 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 ...
- Asendage see järgnevagas
#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
- Salvestage muudetud fail
How to disable history listing in Console mode
- Lugege #Üldised Märkused
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
- Lugege #Üldised Märkused
cp /etc/inittab /etc/inittab_backup gedit /etc/inittab
- Leidke see rida
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
- Asendage see järgnevaga
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- Salvestage muudetud fail
telinit q
Rescue Mode
How to use Fedora Installation CD, to gain root user access
- Lugege #Üldised Märkused
- Insert Fedora CD #1 into your CD-ROM and boot from it
linux rescue
How to change root user/main user password if forgotten
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
grub
grub> md5crypt Password: ****** (Fedora) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gedit /boot/grub/menu.lst
- Leidke see rida
... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ...
- Asendage see järgnevaga
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- Salvestage muudetud fail
- e.g. Assumed that /dev/hda is the location of /boot partition
# grub-install /dev/hda
- Lugege #Üldised Märkused
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gedit /boot/grub/menu.lst
- Append the following lines at the end of file
title Microsoft Windows root (hd0,0) savedefault makeactive chainloader +1
- Salvestage muudetud fail
How to read Linux partitions (ext2, ext3) in Windows machine
- Lugege #Üldised Märkused
- Download Explore2fs: Here
- OR
Tips & Tricks
How to add extra Wallpapers, Icons and Themes
- Lugege #Üldised Märkused
- To add extra backgrounds
wget -c http://easylinux.info/uploads/backgrounds.tar.gz tar zxvf backgrounds.tar.gz -C /usr/share rm -f backgrounds.tar.gz
- Check weather you have file backgrounds.xml n 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
cp /usr/share/backgrounds/backgrounds.xml $USER_HOME/.gnome2/backgrounds.xml 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 the Open Terminal to the R-Click
- Lugege #Üldised Märkused
yum -y install nautilus-open-terminal
- Right Click the Desktop -> Open Terminal
How to get a shortcut to Root Terminal
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y --enablerepo=dries install gksu
- Applications -> System Tools -> Root Terminal
How to restart GNOME without rebooting computer
- Lugege #Üldised Märkused
- Save and close all opened applications
Press 'Ctrl + Alt + Backspace'
- or
/etc/init.d/gdm restart
How to turn on Num Lock on GNOME startup
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install numlockx cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup gedit /etc/X11/gdm/Init/Default
- Leidke see rida (the last line)
... exit 0
- Add the following lines above it
if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi
- Salvestage muudetud fail
- Read #How to restart GNOME without rebooting computer
How to switch to Console mode in GNOME
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gedit /etc/X11/xorg.conf
- Append the following lines at the end of file
Section "ServerFlags" Option "DontZap" "yes" EndSection
- Salvestage muudetud fail
- Read #How to restart GNOME without rebooting computer
How to enable Ctrl+Alt+Del to open System Monitor in GNOME
- Lugege #Üldised Märkused
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
- Lugege #Üldised Märkused
killall nautilus
How to refresh GNOME panel
- Lugege #Üldised Märkused
killall gnome-panel
How to open each folder in the same window in Nautilus
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
- 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)
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install gksu
- To install File Browser (Root)
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;
- Salvestage muudetud fail
- To browse files/folders as root user in Nautilus
- Applications -> System Tools -> File Browser (Root)
How to show Desktop Icons (Computer, Home, Trash)
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
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
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
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
- Salvestage muudetud fail
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
- Lugege #Üldised Märkused
- Applications -> System Tools -> Terminal
- Terminal
Edit Menu -> Current Profile...
General Tab -> General -> Terminal bell (Un-Checked)
How to load Web site faster in Mozilla Firefox
- Lugege #Üldised Märkused
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Address Bar -> about:config
Filter: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true
- Restart Mozilla Firefox
How to disable beep sound for link find function in Mozilla Firefox
- Lugege #Üldised Märkused
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Address Bar -> about:config
Filter: -> accessibility.typeaheadfind.enablesound -> false
- Restart Mozilla Firefox
How to install/uninstall .rpm files
- Lugege #Üldised Märkused
- To install .rpm file
rpm -i package_file.rpm
- To uninstall .rpm file
rpm -e package_name
How to rename all files in directory at once
- Lugege #Üldised Märkused
- To install "mvb" file name renamer
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
- Lugege #Üldised Märkused
- To install bash batch image processing script
yum -y install ImageMagick wget -c http://easylinux.info/uploads/bbips.0.3.2.sh cp bbips.0.3.2.sh /usr/bin/bbips chmod 755 /usr/bin/bbips
- To manipulate all image files in directory at once
bbips
How to set System-wide Environment Variables
- Lugege #Üldised Märkused
cp /etc/bash.bashrc /etc/bash.bashrc_backup 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
- Lugege #Üldised Märkused
man command | col -b > file.txt
- Lugege #Üldised Märkused
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gedit /boot/grub/menu.lst
- Leidke see rida
... hiddenmenu ...
- Asendage see järgnevaga
#hiddenmenu
- Salvestage muudetud fail
- Lugege #Üldised Märkused
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gedit /boot/grub/menu.lst
- Leidke see rida
... timeout 3 ...
- Asendage see järgnevaga
timeout X_seconds
- Salvestage muudetud fail
- Lugege #Üldised Märkused
cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gedit /boot/grub/menu.lst
- Leidke see rida
... default 0 ...
- Asendage see järgnevaga
default X_sequence
- Salvestage muudetud fail
- Lugege #Üldised Märkused
- e.g. Assumed that hd0,1 is the location of Fedora boot partition
wget -c http://easylinux.info/uploads/fedora.xpm.gz chmod 644 fedora.xpm.gz mkdir /boot/grub/images cp fedora.xpm.gz /boot/grub/images/ cp /boot/grub/menu.lst /boot/grub/menu.lst_backup 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
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
Press 'Ctrl + C'
How to permanently disable/enable boot-up services
How to clean /tmp/ folder contents on shutdown
- Lugege #Üldised Märkused
cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup 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/.??*
- Salvestage muudetud fail
How to scroll up and down to view previous outputs in Console mode
- Lugege #Üldised Märkused
- 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
- Lugege #Üldised Märkused
rm -fr $HOME/.Trash/
- Lugege #Üldised Märkused
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
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"
Samba Server
How to install Samba Server for files/folders sharing service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Use Desktop -> System Settings -> Add/Remove Applications
- or
yum -y install samba yum -y install samba-client yum -y install system-config-samba
- Desktop -> System Settings -> Server Settings -> Samba
How to add/edit/delete network users
- Lugege #Üldised Märkused
- Use *Desktop -> System Settings -> Server Settings -> Samba
- or
- To add network user
smbpasswd -a system_username gedit /etc/samba/smbusers
- Insert the following line into the new file
system_username = "network username"
- Salvestage muudetud fail
- To edit network user
smbpasswd -a system_username
- To delete network user
smbpasswd -x system_username
cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
testparm /etc/init.d/smb restart
cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Leidke see rida
[homes] comment = Home Directories browseable = no writeable = yes
- Asendage see järgnevagas
[homes] comment = Home Directories browseable = yes writeable = no
- Salvestage muudetud fail
testparm /etc/init.d/smb restart
mkdir /home/group chmod 777 /home/group/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[Group] comment = Group Folder path = /home/group public = yes writable = no valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
testparm /etc/init.d/smb restart
mkdir /home/group chmod 777 /home/group/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[Group] comment = Group Folder path = /home/group public = yes writable = yes valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
testparm /etc/init.d/smb restart
mkdir /home/public chmod 777 /home/public/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
testparm /etc/init.d/smb restart
mkdir /home/public chmod 777 /home/public/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevagas
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
testparm /etc/init.d/smb restart
mkdir /home/public chmod 777 /home/public/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevaga
security = share
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Salvestage muudetud fail
testparm /etc/init.d/smb restart
mkdir /home/public chmod 777 /home/public/ cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgnevaga
security = share
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Salvestage muudetud fail
testparm /etc/init.d/smb restart
SSH
How to SSH into remote Fedora machine
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Remote Fedora machine: 192.168.0.1
ssh username@192.168.0.1
How to copy files/folders from remote Fedora machine into local machine (scp)
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Remote Fedora machine: 192.168.0.1
- Remote files/folders location: /home/username/remotefile.txt
- Local machine save location: . (current directory)
scp -r username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from local machine into remote Fedora machine (scp)
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Local files/folders location: localfile.txt
- Remote Fedora machine: 192.168.0.1
- Remote Fedora machine save location: /home/username/
scp -r localfile.txt username@192.168.0.1:/home/username/
How to copy files/folders from remote Fedora machine into local machine (rsync)
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Remote Fedora machine: 192.168.0.1
- Remote files/folders location: /home/username/remotefile.txt
- Local machine save location: . (current directory)
rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from local machine into remote Fedora machine (rsync)
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Local files/folders location: localfile.txt
- Remote Fedora machine: 192.168.0.1
- Remote Fedora machine save location: /home/username/
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
How to SSH into remote Fedora machine via Windows machine
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Download PuTTY: Here
How to copy files/folders from/into remote Fedora machine via Windows machine
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed SSH Server service and firewall allows to connect to it
- Download WinSCP: Here
Andmebaasiserver
Kuidas paigaldada MYSQL Andmebaasiserver?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Kasutage Desktop -> System Settings -> Add/Remove Applications
- või
yum -y install mysql yum -y install mysql-server yum -y install php-mysql yum -y install MySQL-python yum -y install libdbi-dbd-mysql yum -y install mysql-devel
mysqladmin -u root password new_db_user_password /etc/init.d/mysqld start
Kuidas paigaldada MYSQL juhtimiskeskus (Control Center)?
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Lugege #Kuidas paigaldada MYSQL Andmebaasiserver?
yum -y install mysql-administrator
- Applications -> System Tools -> MySQL Administrator
Web Server
How to install Web Server
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install httpd yum -y install mod_ssl yum -y install httpd-manual yum -y install mod_perl yum -y install mod_auth_mysql yum -y install crypto-utils yum -y install mod_python /etc/init.d/httpd start
How to install PHP Web Server
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Read #How to install Web Server
yum -y install php yum -y install php-mysql
/etc/init.d/httpd restart gedit /var/www/html/testphp.php
- Insert the following line into the new file
<?php phpinfo(); ?>
- Salvestage muudetud fail
- http://localhost/testphp.php
How to install MYSQL
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
- Read #How to install Web Server
- Read #How to install PHP for Web Server
- Read #How to install MYSQL Database Server
/etc/init.d/httpd restart
Apache tips
Remove your server's signature
gedit /etc/httpd/conf/httpd.conf
find the line "ServerSignature"
Change "ServerSignature on" to
ServerSignature off
- Underneath add this line:
ServerTokens ProductOnly
Save and close the text editer
restart apache
/etc/rc.d/init.d/httpd restart
How to map URLs to folders outside /var/www/
- Lugege #Üldised Märkused
- Read #How to install Web Server
gedit /etc/httpd/conf.d/alias
- Insert the following lines into the new file
Alias /URL-path /location_of_folder/
<Directory /location_of_folder/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
- Salvestage muudetud fail
/etc/init.d/httpd restart
How to change the default port number for Apache HTTP Server
- Lugege #Üldised Märkused
- Read #How to install Web Server
- e.g. Assumed that new port number is 78
cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backup gedit /etc/httpd/ports.conf
- Leidke see rida
Listen 80
- Asendage see järgnevaga
Listen 78
- Salvestage muudetud fail
/etc/init.d/httpd restart
How to parse RSS into PHP for Apache HTTP Server
- e.g. Assumed that RSS is DistroWatch.com - News
wget -c http://easylinux.info/uploads/magpierss-0.71.1.tar.gz mkdir /var/www/feeds tar zxvf magpierss-0.71.1.tar.gz -C /var/www/feeds/ mv /var/www/feeds/magpierss-0.71.1/* /var/www/feeds/ rm -fr /var/www/feeds/magpierss-0.71.1/ chown -R www-data:root /var/www/feeds/ gedit /var/www/feeds/index.php
- Insert the following lines into the new file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>DistroWatch.com - News</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css"> /*<![CDATA[*/ /* DEFAULT TAG STYLES */ body { background: #ffffff; margin-left: 20px; font-family: bitstream vera sans,sans-serif; font-size: 9pt; } h1 { font-family: luxi sans,sans-serif; font-size: 15pt; } /*]]>*/ </style> </head> <body> <?php require_once 'rss_fetch.inc'; error_reporting(E_ERROR); $url = 'http://distrowatch.com/news/dw.xml'; $rss = fetch_rss($url); if ($rss) { echo "<h1>"; echo "<a href=$url>", $rss->channel[title], "</a><br/>"; echo "</h1>"; foreach ($rss->items as $item ) { $url = $item[link]; $title = $item[title]; $description = $item[description]; echo "<li>"; echo "<b>Topic:</b> <a href=$url><b><u>$title</u></b></a><br/><br/>"; echo "$description<br/><br/>"; echo "</li>"; } } else { echo "<a href=$url>", $url, "</a> - Server Down!<br/>"; } ?> </body> </html>
- Salvestage muudetud fail
- http://localhost/feeds/index.php
FTP Server
How to install FTP Server for File Transfer service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada repositooriume?
yum -y install proftpd /etc/init.d/proftpd start
How to configure FTP Server to allow anonymous FTP user to read only
cp /etc/proftpd.conf /etc/proftpd.conf_backup gedit /etc/proftpd.conf
- Append the following lines at the end of file
<Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>
- Salvestage muudetud fail
/etc/init.d/proftpd restart
How to configure FTP Server to allow anonymous FTP user to read/write
cp /etc/proftpd.conf /etc/proftpd.conf_backup gedit /etc/proftpd.conf
- Append the following lines at the end of file
<Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message </Anonymous>
- Salvestage muudetud fail
/etc/init.d/proftpd restart
How to map anonymous FTP user to folders outside /home/ftp/
cp /etc/proftpd.conf /etc/proftpd.conf_backup gedit /etc/proftpd.conf
- Append the following lines at the end of file
<Anonymous /location_of_folder/> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>
- Salvestage muudetud fail
/etc/init.d/proftpd restart
How to change the default port number for FTP Server
- e.g. Assumed that new port number is 77
cp /etc/proftpd.conf /etc/proftpd.conf_backup gedit /etc/proftpd.conf
- Leidke see rida
Port 21
- Asendage see järgnevaga
Port 77
- Salvestage muudetud fail
/etc/init.d/proftpd restart
How to ftp into remote Fedora machine via Windows machine
- Lugege #Üldised Märkused
- e.g. Assumed that remote Fedora machine have installed FTP Server service
- Read #How to install FTP Server for File Transfer service
- Download FileZilla: Here