Ubuntu 6.06 Alustamisjuhend
|
Aidake koostamisega/tõlkimisega! |
Mitteametlik Ubuntu 6.06 (Dapper Drake) Alustamisjuhend
See juhend kirjutati algselt Chua Wen Kiati (Kuala Lumpur, Malaysia) poolt ja on avaldatud http://ubuntuguide.org/ lehel. Seda juhendit uuendas Linux Center of University of Latvia ja nüüd on selle tõlkinud Pingviini Viki kasutajaskond. Käesolevas õpetuses on arvestatud, et tegu on inglise keelse Gnomega.
Üldised Märkused
- This is an Unofficial Ubuntu 6.06 (Dapper Drake) Starter Guide. It is not associated with Ubuntu and Canonical Ltd.
- Guide is tested on a full installation of the Ubuntu 6.06 x86 Install CD (Dapper Drake)
- If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -> System Tools -> Terminal) or use the content of that box as mentioned in some other instructions.
- To reduce typo mistakes, copy and paste the commands into Terminal mode (right click on the commands -> "Copy" or "Paste". You can also use Ctrl+C to copy and Shift+Insert to paste it)
- "sudo" means superuser do. "sudo" will prompt for "Password:". Please specify user password
- If you want more information about any command, simply look at the manual page for it using the "man" command. For example, "man sudo" will display the manual page for the "sudo" command.
- If you are tired of typing "apt-get" all the time, Read #How to apt-get the easy way (Synaptic)
- "apt-get" and "wget" requires Internet connection to install/update/download programs
- To download file, right click on the link -> Select "Save Link As..." -> Make sure file name and extension are correct
- If you wish to help translating Ubuntu to your native language or to help Ubuntu otherwise visit https://launchpad.net/
- May the "humanity to others" spirit be with you always...
- If you are using Kubuntu you need to install Gedit
sudo apt-get install gedit
- Or replace 'gedit' with 'kwrite', for example, instead of writing
sudo gedit /etc/apt/sources.list
- Write
sudo kwrite /etc/apt/sources.list
- If you are using 64-bit version replace "i386" with "amd64"
Getting Started
What is Ubuntu
What is new in Ubuntu 6.06 Dapper Drake
Where to view Ubuntu screenshots
Stubby: Currently outdated
Where to find a list of all the programs/libraries that comes with Ubuntu
- Result of dpkg -l: Here
- http://packages.ubuntu.com/dapper
- http://distrowatch.com/table.php?distribution=ubuntu
Where to download Ubuntu
Where to order Ubuntu CDs for absolutely FREE
Where to find help for Ubuntu
- See: System -> Help -> System Documentation
- Official Documentation website
- Official User Documentation (wiki)
- Ubuntu Document Storage Facility
- Mailing Lists
- Web Forums
- IRC Channel
Where to look for new programs
Where to look for style elements for your desktop
Repositooriumid
Kuidas lisada täiendavaid repositooriume?
- Lugege #Üldised Märkused
- You can also add extra repositories using the Synaptic Package Manager. New users may find it more user-friendly to add extra repositories through the Package Manager. If you follow the link above, you do not have follow the rest of this tip.
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo gedit /etc/apt/sources.list
- Replace everything with the following lines
## Add comments (##) in front of any line to remove it from being checked. ## Use the following sources.list at your own risk. deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse ## MAJOR BUG FIX UPDATES produced after the final release deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse ## UBUNTU SECURITY UPDATES deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse ## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.) deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse ## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.) deb http://packages.freecontrib.org/ubuntu/plf breezy free non-free deb-src http://packages.freecontrib.org/ubuntu/plf breezy free non-free
- Salvestage muudetud fail
sudo apt-get update
- You may also generate your own sources.list: http://www.ubuntulinux.nl/source-o-matic
- Use your own sources.list file only if you understand what you're doing
Ubuntu Updates
How to manually update Ubuntu
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get update sudo apt-get upgrade
Add-On Applications
How to install Clipboard Daemon for GNOME
- Lugege #Üldised Märkused
wget -c http://easylinux.info/uploads/gnome-clipboard-daemon-1.0.bin.tar.bz2 sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/ sudo chown root:root /usr/bin/gnome-clipboard-daemon sudo chmod 755 /usr/bin/gnome-clipboard-daemon sudo gnome-clipboard-daemon & export EDITOR=gedit && crontab -e
- Add the following line at the end of file
@reboot gnome-clipboard-daemon
- Salvestage muudetud fail
How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install sun-j2re1.5 echo 3 | sudo update-alternatives --config java
- Restart Mozilla Firefox
How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install flashplugin-nonfree sudo /usr/sbin/update-flashplugin
- Restart Mozilla Firefox
How to install PDF Reader (Adobe Reader) with Plug-in for Mozilla Firefox
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install acroread sudo apt-get install mozilla-acroread sudo apt-get install acroread-plugins
- Read #How to refresh GNOME panel
- Applications -> Office -> Adobe Reader
- Restart Mozilla Firefox
How to install Download Manager (Downloader for X)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install d4x
- Read #How to refresh GNOME panel
- Applications -> Internet -> Downloader for X
How to install FTP Client (gFTP)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gftp
- Read #How to refresh GNOME panel
- Applications -> Internet -> gFTP
- Lugege #Üldised Märkused
wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz sudo tar zxvf linuxdcpp.tar.gz -C /opt sudo gedit /usr/share/applications/dcpp.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Encoding=UTF-8 Name=DC++ Exec=/opt/linuxdcpp/dcpp Terminal=false Type=Application StartupNotify=true Icon=eyes.png Categories=Application;Network;
- Salvestage muudetud fail
- Applications -> Internet -> DC++
How to install P2P BitTorrent Client (Azureus)
- Lugege #Üldised Märkused
- Read #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox
wget -c http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus_2.4.0.2_linux.tar.bz2 sudo tar jxvf Azureus_2.4.0.2_linux.tar.bz2 -C /opt sudo gedit /usr/share/applications/azureus.desktop
- Sisestage järgnevad read uute 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;
- Salvestage muudetud fail
- Applications -> Internet -> Azureus
How to install P2P eMule Client (aMule)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install amule
- Read #How to refresh GNOME panel
- Applications -> Internet -> aMule
How to install P2P Gnutella Client (FrostWire)
- Lugege #Üldised Märkused
- Read #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox
wget -c http://www.users.on.net/~stubby/FrostWire-4.10.9-1.i586.deb sudo dpkg -i FrostWire-4.10.9-1.i586.deb
- The package cannot run due to an error in the encoding of the run script. The solution is simple though
sudo nano /usr/lib/frostwire/runFrost.sh
- Hit the following keys
CTRL+O ALT+D Enter CTRL+X
- Applications -> Internet -> FrostWire
How to install Messenger (Skype)
- Lugege #Üldised Märkused
wget -c http://download.skype.com/linux/skype_staticQT-1.2.0.18.tar.bz2 sudo tar jxvf skype_staticQT-1.2.0.18.tar.bz2 -C /opt/ sudo ln -s /opt/skype-1.2.0.18/skype /usr/bin/skype sudo cp /opt/skype-1.2.0.18/skype.desktop /usr/share/applications/skype.desktop sudo cp /opt/skype-1.2.0.18/icons/skype_32_32.png /usr/share/icons/hicolor/32x32/apps/skype.png rm skype_staticQT-1.2.0.18.tar.bz2
- Read #How to refresh GNOME panel
- Applications -> Internet -> Skype
How to install WinPopup (LinPopUp)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Samba Server for files/folders sharing service
sudo apt-get install linpopup sudo gedit /usr/share/applications/linpopup.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=LinPopUp Comment=LinPopUp Exec=linpopup Icon=/usr/share/pixmaps/linpopup.xpm Terminal=false Type=Application Categories=Application;Utility;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> Accessories -> LinPopUp
How to install Multimedia Codecs
Stubby All known codecs work except for wmv
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gstreamer0.10-ffmpeg sudo apt-get install gstreamer0.10-gl sudo apt-get install gstreamer0.10-plugins-base sudo apt-get install gstreamer0.10-plugins-good sudo apt-get install gstreamer0.10-plugins-bad sudo apt-get install gstreamer0.10-plugins-bad-multiverse sudo apt-get install gstreamer0.10-plugins-ugly sudo apt-get install gstreamer0.10-plugins-ugly-multiverse
How to install DVD playback capability
Stubby: gstreamer dvd plugin not ported to dapper yet. following instructions will not work properly
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install libdvdcss2
How to install Multimedia Player (xine-ui)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
- Read #How to install DVD playback capability
sudo apt-get install xine-ui
- Associate xine-ui to play multimedia files
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "xine dvd://" sudo rm -f /usr/share/applnk/Multimedia/xine.desktop sudo ln -fs /usr/share/xine/desktop/xine.desktop /usr/share/applications/ sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/xine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list
- Read #How to refresh GNOME panel
- Read #How to refresh GNOME desktop
- Applications -> Sound & Video -> xine
How to install Multimedia Player (Totem) with Plug-in for Mozilla Firefox
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
- Read #How to install DVD playback capability
sudo apt-get install totem-gstreamer-firefox-plugin
- Restart Mozilla Firefox
How to install Multimedia Player (XMMS)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
sudo apt-get install xmms sudo apt-get install xmms-skins wget -c http://easylinux.info/uploads/xmms-wma_1.0.4-2_i386.deb sudo dpkg -i xmms-wma_1.0.4-2_i386.deb
- Associate XMMS to play MP3/M3U/WAV files
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo cp /usr/share/applications/defaults.list /tmp/defaults.list_tmp sudo sed -e 's/audio\/mpeg=.*/audio\/mpeg=XMMS.desktop/g' /tmp/defaults.list_tmp > /tmp/defaults.mp3 sudo sed -e 's/audio\/x-mpegurl=.*/audio\/x-mpegurl=XMMS.desktop/g' /tmp/defaults.mp3 > /tmp/defaults.m3u sudo sed -e 's/audio\/x-wav=.*/audio\/x-wav=XMMS.desktop/g' /tmp/defaults.m3u > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list sudo rm -f /tmp/defaults.*
- Read #How to refresh GNOME panel
- Read #How to refresh GNOME desktop
- Applications -> Sound & Video -> XMMS
How to install Multimedia Player (amaroK)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
sudo apt-get install amarok
- Applications -> Sound & Video -> amaroK
How to install Multimedia Player (RealPlayer 10)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install realplay
- Note: 'realplay' installs RealPlayer 10 from PLF repo. 'realplayer' installs RealPlayer 8 from multiverse.
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> RealPlayer 10
How to install Stream Directory Browser (streamtuner)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install streamtuner sudo apt-get install streamripper
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> streamtuner
How to install Music Organizer (Cowbell)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install cowbell
- Applications -> Sound & Video -> Cowbell Music Organizer
How to install ID3 Tag Editor (EasyTAG)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install easytag
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> EasyTAG
How to install Video Editor (Kino)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
sudo apt-get install kino sudo apt-get install kinoplus sudo apt-get install kino-timfx sudo apt-get install kino-dvtitler
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> Kino Video Editor
How to install Audio Editor (Audacity)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
sudo apt-get install audacity
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> Audacity
How to install DVD Ripper (dvd::rip)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
- Read #How to install DVD playback capability
- Read #How to install Multimedia Player (MPlayer) with Plug-in for Mozilla Firefox
- Read #How to install RAR Archiver (rar)
sudo apt-get install dvdrip sudo apt-get install vcdimager sudo apt-get install cdrdao sudo apt-get install subtitleripper sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80 sudo gedit /usr/share/applications/dvdrip.desktop
- Sisestage järgnevad read uute faili
[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
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> dvd::rip
How to install CD Ripper (Goobox)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Multimedia Codecs
sudo apt-get install goobox sudo rm -f /usr/share/applications/goobox.desktop sudo gedit /usr/share/applications/goobox.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=CD Player & Ripper Comment=Play and extract CDs Exec=goobox Icon=goobox.png Terminal=false Type=Application Categories=Application;AudioVideo;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> Sound & Video -> CD Player & Ripper
How to install Image Viewer (digiKam)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install digikam
- Applications -> Graphics -> digikam
How to install Email Client (Mozilla Thunderbird)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install mozilla-thunderbird
- Read #How to refresh GNOME panel
- Applications -> Internet -> Thunderbird Mail Client
How to install Newsreader (Pan)
- Lugege #Üldised Märkused
wget -c http://www.users.on.net/~stubby/pan_0.93_i386.deb sudo apt-get install libgmime2.1 sudo dpkg -i pan_0.93_i386.deb
- Read #How to refresh GNOME panel
- Applications -> Internet -> Pan Newsreader
How to install RSS/RDF/Atom Newsreader (RSSOwl)
- Lugege #Üldised Märkused
- Read #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox
wget -c http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz sudo tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/ sudo chown -R root:root /opt/rssowl_linux_1_1_3_bin/ sudo gedit /usr/bin/runRSSOwl.sh
- Sisestage järgnevad read uute faili
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
sudo chmod +x /usr/bin/runRSSOwl.sh sudo gedit /usr/share/applications/RSSOwl.desktop
- Sisestage järgnevad read uute faili
[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 Web Authoring System (Nvu)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install nvu sudo rm -f /usr/share/applications/nvu.desktop sudo gedit /usr/share/applications/nvu.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=Nvu Comment=Web Development Editor Exec=nvu Icon=nvu.xpm Terminal=false Type=Application Categories=Application;Network;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> Internet -> Nvu
How to install Web Development Environment (quanta plus)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install quanta
- Applications -> Programming -> Quanta Plus
How to install Project Management Application (Planner)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install planner
- Read #How to refresh GNOME panel
- Applications -> Office -> Project Management
How to install Accounting Application (GnuCash)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gnucash sudo rm -fr /usr/share/gnome/apps/Applications/ sudo gedit /usr/share/applications/GnuCash.desktop
- Sisestage järgnevad read uute faili
[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
- Read #How to refresh GNOME panel
- Applications -> Office -> GnuCash
How to install Desktop Publishing Application (Scribus)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install scribus
- Read #How to refresh GNOME panel
- Applications -> Office -> Scribus
How to install Diagram Editor (Dia)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install dia-gnome
- Read #How to refresh GNOME panel
- Applications -> Graphics -> Dia
How to install Compiled HTML Help (CHM) Viewer (xCHM)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install xchm
- Read #How to refresh GNOME panel
- Applications -> Graphics -> xCHM
How to install CD/DVD Burning Application (GnomeBaker)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gnomebaker
- Read #How to refresh GNOME panel
- Applications -> Accessories -> GnomeBaker CD/DVD Creator
How to install CD/DVD Burning Application (K3b)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install k3b
- Applications -> Sound & Video -> K3b
How to install Dialup PPP Client (GNOME PPP)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gnome-ppp
- Read #How to refresh GNOME panel
- Applications -> Internet -> GNOME PPP
How to install Broadband ADSL/PPPoE Client (RP-PPPoE)
wget -c http://easylinux.info/uploads/rp-pppoe-3.6.tar.gz sudo tar zxvf rp-pppoe-3.6.tar.gz -C /opt/ sudo chown -R root:root /opt/rp-pppoe-3.6/ sudo gedit /usr/share/applications/RP-PPPoE.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=RP-PPPoE Comment=RP-PPPoE Exec=gksudo /opt/rp-pppoe-3.6/go-gui Icon= Terminal=false Type=Application Categories=Application;Network;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> Internet -> RP-PPPoE
How to install Boot-Up Manager (BUM)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install bum
- Read #How to refresh GNOME panel
- System -> Administration -> Boot-Up Manager
How to install Partition Editor (GParted)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gparted
- Read #How to refresh GNOME panel
- Applications -> System Tools -> GParted
How to install Firewall (Firestarter)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install firestarter
- Read #How to refresh GNOME panel
- Applications -> System Tools -> Firestarter
How to install network traffic analyzer (Ethereal)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install ethereal
- Applications -> Internet -> Ethereal
How to install Vulnerability Scanner (Nessus)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install nessus sudo apt-get install nessusd sudo nessus-adduser sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd sudo /etc/init.d/nessusd start sudo gedit /usr/share/applications/Nessus.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=Nessus Comment=Nessus Exec=nessus Icon=/usr/share/pixmaps/nessus.xpm Terminal=false Type=Application Categories=Application;System;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> System Tools -> Nessus
How to install RAR Archiver (rar)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install rar sudo ln -fs /usr/bin/rar /usr/bin/unrar
- Applications -> Accessories -> Archive Manager
How to install Extra Fonts
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install xfonts-intl-arabic sudo apt-get install xfonts-intl-asian sudo apt-get install xfonts-intl-chinese sudo apt-get install xfonts-intl-chinese-big sudo apt-get install xfonts-intl-european sudo apt-get install xfonts-intl-japanese sudo apt-get install xfonts-intl-japanese-big sudo apt-get install xfonts-intl-phonetic sudo apt-get install gsfonts-x11 sudo apt-get install msttcorefonts sudo fc-cache -f -v
- Salvestage muudetud fail
- Read #How to restart GNOME without rebooting computer
How to install Chinese Input Method (SCIM)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Read #How to install Extra Fonts
sudo apt-get install scim sudo apt-get install scim-chinese sudo apt-get install scim-config-socket sudo apt-get install scim-gtk2-immodule sudo apt-get install scim-tables-zh wget -c http://easylinux.info/uploads/fireflysung-1.3.0.tar.gz sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/ sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/ sudo fc-cache -f -v
- System -> Preferences -> SCIM Input Method Setup
- To activate SCIM
Press 'Ctrl + Space'
How to install Desktop Applets (gDesklets)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install gdesklets sudo apt-get install gdesklets-data
- Read #How to refresh GNOME panel
- Applications -> Accessories -> gDesklets
- For more info see: http://gdesklets.gnomedesktop.org/
How to install Basic Compilers (build-essential)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install build-essential
How to install Integrated Development Environment (Anjuta)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install anjuta
- Applications -> Programming -> Anjuta IDE
How to install 3D modeling tool (Blender 3d)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install blender
- Applications -> Graphics -> Blender 3D modeller
How to install game Tuxracer
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install planetpenguin-racer planetpenguin-racer-data planetpenguin-racer-extras
- Applications -> Games -> planetpenguin-racer
How to install game Frozen-Bubble
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install frozen-bubble
- Applications -> Games -> Frozen-Bubble
How to install game Scorched3D
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install scorched3d sudo gedit /usr/share/applications/scorched3d.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=Scorched 3D Comment=A 3D Remake Of Scorched Earth Exec=scorched3d Icon= Terminal=false Type=Application Categories=Application;Game;ArcadeGame;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- Applications -> Games -> Scorched 3D
How to install virtual planetarium (Stellarium)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install stellarium sudo gedit /usr/share/applications/stellarium.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=Stellarium Comment=Virtual planetarium Exec=stellarium Terminal=false Type=Application Categories=Application;Education;
- Applications -> Education -> Stellarium
How to install KDE Edutainment applications
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install kdeedu
- Applications -> Education -> ...
Other Desktop Environments
How to install KDE
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- You may also look at some KDE Screenshots
sudo apt-get install kubuntu-desktop
- Note: This installation will require ~400MB of disk space
- System -> Log Out -> Log Out
- To log in to KDE click on Sessions and choose KDE
How to install XFCE
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- You may also look at some XFCE Screenshots
sudo apt-get install xubuntu-desktop
- System -> Log Out -> Log Out
- To log in to XFCE click on Sessions and choose XFCE
Eye Candy
How to install Xgl/Compiz (Nvidia)
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf
- Leidke see sektsioon
Section "Module" Load "i2c" Load "bitmap" ... Load "type1" Load "vbe" EndSection
- Comment out dri and GLcore (if present)
# Load "dri" # Load "GLcore"
- Make sure the glx module is loaded
Load "glx"
- Leidke see sektsioon (your values may vary)
Section "Device" Identifier "NVIDIA Corporation NV34M [GeForce FX Go5200]" Driver "nv" BusID "PCI:1:0:0" EndSection
- Asendage see järgneva reagas, leaving the Identifier and BusID as it is
Section "Device" ... Driver "nvidia" ... Option "RenderAccel" "true" Option "AllowGLXWithComposite" "true" EndSection
- Leidke see sektsioon
Section "Screen" Identifier "Default Screen" Device "NVIDIA Corporation NV34M [GeForce FX Go5200]" Monitor "Generic Monitor" DefaultDepth 16
- Make sure DefaultDepth is set to 24, if it isn't already
DefaultDepth 24
- Salvestage muudetud fail
- Install Xgl/Compiz
sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-backup sudo gedit /etc/gdm/gdm.conf-custom
- Replace everything with the following lines
# GDM Configuration Customization file. # # This file is the appropriate place for specifying your customizations to the # GDM configuration. If you run gdmsetup, it will automatically edit this # file for you and will cause the daemon and any running GDM GUI programs to # automatically update with the new configuration. Not all configuration # options are supported by gdmsetup, so to modify some values it may be # necessary to modify this file directly by hand. # # To hand-edit this file, simply add or modify the key=value combination in # the appropriate section in the template below. Refer to the comments in the # gdm.conf file for information about each option. Also refer to the reference # documentation. # # If you hand edit a GDM configuration file, you should run the following # command to get the GDM daemon to notice the change. Any running GDM GUI # programs will also be notified to update with the new configuration. # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" # # For example, the "Enable" key in the "[debug]" section would be specified by # "debug/Enable". # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and # re-read the new configuration settings. You can also restart GDM by sending # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes # any user session started by GDM to exit immediately while USR1 behaves like # gdm-safe-restart and will wait until all users log out before restarting GDM. # # For full reference documentation see the gnome help browser under # GNOME|System category. You can also find the docs in HTML form on # http://www.gnome.org/projects/gdm/ # # NOTE: Lines that begin with "#" are considered comments. # # Have fun! [daemon] [security] [xdmcp] [gui] [greeter] [chooser] [debug] [servers]# Override display 1 to use Xgl 0=Xgl [server-Xgl] name=Xgl server command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo flexible=true
- Create a script that runs Xgl/Compiz on startup
sudo gedit /usr/bin/thefuture
- Sisestage järgnevad read uute faili. Replace .us with appropriate keyboard binding for region. Eg .uk for United Kingdom. If unsure, leave as .us
#!/bin/bash gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher & xmodmap /usr/share/xmodmap/xmodmap.us
- Save the file
sudo chmod 755 /usr/bin/thefuture
- To run compiz for this session
thefuture
- To have compiz load on startup
- System -> Preferences -> Sessions
- Startup Programs -> Add
/usr/bin/thefuture
- Click Ok, then Close
- Read #How to restart GNOME without rebooting computer
- Tips
- Switch windows = Alt + Tab
- Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
- Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
- Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow
- Rotate cube manually = Ctrl + Alt + left-click
- Make window translucent/opaque = currently only possible with the "transset" utility
- Zoom-in once = Super-key right-click
- Zoom-in manually = Super-key + wheel mouse up
- Zoom-out manually = Super-key + wheel mouse down
- Move window = Alt + left-click
- Snap Move window (will stick to borders) = Ctrl + Alt + left-click
- Resize window = Alt + right-click
Commercial Applications
How to install Windows 9X/ME/2000/XP (Win4Lin)
How to install Windows Applications (CrossOver Office)
How to install Windows Games (Cedega)
User Administration
How to set/change/enable root user password
- Lugege #Üldised Märkused
sudo passwd root
How to disable root user account
- Lugege #Üldised Märkused
sudo passwd -l root
How to allow root user to login into GNOME
- Lugege #Üldised Märkused
- Read #How to set/change/enable root user password
- System -> Administration -> Login Screen Setup
- Login Screen Setup
Security Tab -> Security -> Allow root to login with GDM (Checked)
How to switch to root user in Console mode
- Lugege #Üldised Märkused
sudo -s -H Password: <specify user password>
How to add/edit/delete system users
- Lugege #Üldised Märkused
- System -> Administration -> Users and Groups
- Users and Groups
Users Tab -> Add User.../Properties/Delete
- or
sudo useradd jim sudo userdel jim
- For more info read
man usermod
How to add/edit/delete system groups
- Lugege #Üldised Märkused
- System -> Administration -> Users and Groups
- Users and Groups
Groups Tab -> Add Group.../Properties/Delete
How to automatic login into GNOME (not secure)
- Lugege #Üldised Märkused
- System -> Administration -> Login Screen Setup
- Login Screen Setup
General Tab -> Automatic Login -> Login a user automatically on first bootup (Checked) Automatic login username: Select "system_username"
NOT General Tab anymore should be security,not sure because I am not using a English Version-----firingstone
How to allow more sudoers
- Lugege #Üldised Märkused
export EDITOR=gedit && sudo visudo
- Append the following line at the end of file
system_username ALL=(ALL) ALL
- Salvestage muudetud fail
How to use "sudo" without prompt for password (not secure)
- Lugege #Üldised Märkused
export EDITOR=gedit && sudo visudo
- Leidke see rida
... system_username ALL=(ALL) ALL ...
- Asendage see järgneva reaga
system_username ALL=(ALL) NOPASSWD: ALL
- Salvestage muudetud fail
How to explicitly destroy the "sudo" session
- Lugege #Üldised Märkused
sudo -K
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
sudo chown system_username /location_of_files_or_folders
How to change files/folders group ownership
- Lugege #Üldised Märkused
sudo chgrp system_groupname /location_of_files_or_folders
Hardware
How to install Graphics Driver (NVIDIA)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install nvidia-glx nvidia-kernel-common
How to disable NVIDIA graphics logo on GNOME startup
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf
- Leidke see sektsioon
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...
- Sisestage järgnev rida tema alla
Option "NoLogo"
- Salvestage muudetud fail
- Read #How to restart GNOME without rebooting computer
How to install Graphics Driver (ATI)
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 sudo cp scanModem /usr/bin/
- To identify Modem chipset
sudo scanModem gedit Modem/ModemData.txt
How to install Modem Driver (SmartLink)
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
uname -r (must be 2.6.10-5-386) wget -c http://easylinux.info/uploads/sl-modem-modules-2.6.10-5-386_2.9.9a-1ubuntu2+2.6.10-34_i386.deb sudo dpkg -i sl-modem-modules-*.deb sudo apt-get install sl-modem-daemon
How to configure PalmOS Devices
- Lugege #Üldised Märkused
sudo gedit /etc/udev/rules.d/10-custom.rules
- Insert the following line into the new file
BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", NAME{ignore_remove}="pilot", MODE="666"
- Salvestage muudetud fail
- System -> Preferences -> PalmOS Devices
- Follow the instructions on screen
How to list partition tables
- Lugege #Üldised Märkused
sudo fdisk -l
- You can also use System -> Administration -> Disks
How to list filesystem disk space usage
- Lugege #Üldised Märkused
df -T -h
- You can also use System -> Administration -> Disks
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
sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup sudo gedit /etc/hdparm.conf
- Lisage järgnevad read faili lõppu
/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
sudo mount /media/cdrom0/ -o unhide
- To unmount CD/DVD-ROM
sudo 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
sudo umount /media/cdrom0/ -l
How to remount /etc/fstab without rebooting
- Lugege #Üldised Märkused
sudo 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
sudo 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
sudo 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
sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop
- To unmount Image (ISO) file
sudo 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
- System -> Administration -> Networking
- Network settings
Connections Tab -> Select "Ethernet connection" -> Activate/Deactivate
How to configure network connections
- Lugege #Üldised Märkused
- System -> Administration -> Networking
- Network settings
Connections Tab -> Select "Ethernet connection" -> Properties Connection -> Enable this connection (Checked) Connection Settings -> Configuration: Select "DHCP/Static IP address"
DNS Tab -> DNS Servers -> Add/Delete
How to configure dialup connections
- Lugege #Üldised Märkused
- To configure dialup
sudo pppconfig
- To connect dialup
sudo pon provider_name
- To disconnect dialup
sudo poff
How to configure broadband connections
- Lugege #Üldised Märkused
sudo pppoeconf
How to change computer name
- Lugege #Üldised Märkused
- System -> Administration -> Networking
- Network settings
General Tab -> Host Settings -> Hostname: Specify the computer name
- Save and close all opened applications, Reboot computer
How to change computer descriptions
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... server string = %h server (Samba, Ubuntu) ...
- Asendage see järgneva reaga
server string = new_computer_descriptions
- Salvestage muudetud fail
sudo testparm sudo /etc/init.d/samba restart
How to change computer Domain/Workgroup
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... workgroup = MSHOME ...
- Asendage see järgneva reaga
workgroup = new_domain_or_workgroup
- Salvestage muudetud fail
sudo testparm sudo /etc/init.d/samba restart
How to assign Hostname to local machine with dynamic IP using free DynDNS service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
- Register free Dynamic DNS at http://www.dyndns.com/services/dns/dyndns
sudo apt-get install ipcheck sudo gedit /etc/ppp/ip-up.d/dyndns_update.sh
- Sisestage järgnevad read uute faili
#!/bin/sh 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
sudo chmod 700 /etc/ppp/ip-up.d/dyndns_update.sh sudo sh /etc/ppp/ip-up.d/dyndns_update.sh
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... Edit by firingstone:It seems this cannot be done in dapper,no such menu
- 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
sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword
- To unmount network folder
sudo 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
sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
- To unmount network folder
sudo 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
sudo mkdir /media/sharename sudo gedit /root/.smbcredentials
- Sisestage järgnevad read uute faili
username=myusername password=mypassword
- Salvestage muudetud fail
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename smbfs 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
sudo mkdir /media/sharename sudo gedit /root/.smbcredentials
- Sisestage järgnevad read uute faili
username=myusername password=mypassword
- Salvestage muudetud fail
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
- Append the following line at the end of file
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
- Salvestage muudetud fail
- Read #How to remount /etc/fstab without rebooting
How to get ipw2200 and wpa to work
How to Configure and start PPTP tunnels (VPN)
- Lugege #Üldised Märkused
- Use these instructions to automatically install PPTP Client
- OR
- Install manually
wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz tar zxvf pptp.tar.gz sudo sh ./pptp/install
- To configure PPTP Client
sudo gedit /usr/share/applications/pptpconfig.desktop
- Replace content of this file with the following lines
[Desktop Entry] Name=PPTP Client Comment=Configure and start PPTP tunnels (VPN) Categories=Application;Network Encoding=UTF-8 Exec=gksudo pptpconfig Icon=gnome-remote-desktop.png StartupNotify=true Terminal=false Type=Application
- The above lines change the default file in three ways: the application is placed in the Application/Internet category, gksudo will make the application run as superuser and we put a nice icon that appears in the menu.
- Start the client with Applications -> Internet -> PPTP Client
How to configure Network-manager with WPA 1 and 2 support
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 switch off the monitor when computer is left unattended
- System -> 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 Ubuntu desktop
- Lugege #Üldised Märkused
- e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
- Read #How to configure remote desktop (not secure)
- Remote Ubuntu machine: 192.168.0.1
vncviewer -fullscreen 192.168.0.1:0
- To quit vncviewer
Press 'F8' -> Quit viewer
How to connect into remote Ubuntu desktop via Windows machine
- Lugege #Üldised Märkused
- e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
- Read #How to configure remote desktop (not secure)
- Remote Ubuntu machine: 192.168.0.1
- Download VNC Viewer: Here
Windows
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
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
- To unmount Windows partition
sudo 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
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
- To unmount Windows partition
sudo 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
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup sudo 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
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup sudo 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 Ubuntu
- 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. UBUNTU/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: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see sektsioon
... ## 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 ...
- Sisestage järgnev rida tema alla
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- Leidke see sektsioon
... title Ubuntu, 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ärgneva reagas
#title Ubuntu, 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
sudo cp /etc/inittab /etc/inittab_backup sudo gedit /etc/inittab
- Leidke see rida
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
- Asendage see järgneva reaga
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- Salvestage muudetud fail
sudo telinit q
How to enable prompt before removal/overwritten of files/folders in Console mode
- Lugege #Üldised Märkused
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup sudo gedit /etc/bash.bashrc
- Lisage järgnevad read faili lõppu
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
- Salvestage muudetud fail
Rescue Mode
How to gain root user access without login
- Lugege #Üldised Märkused
- Easiest method (will not work if GRUB menu password is set)
- Boot-up computer
- If GRUB menu is hidden, press 'Esc' to enter the GRUB menu
- Select
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
- Press 'Enter' to boot
- Other methods
How to modify kernel boot-up arguments, to gain root user access
- Lugege #Üldised Märkused
- Boot-up computer
- If GRUB menu is hidden, press 'Esc' to enter the GRUB menu
- If GRUB password is set, press 'p' to unlock the GRUB menu
- Select
Ubuntu, kernel 2.6.10-5-386
- Press 'e' to edit the commands before booting
- Select
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
- Press 'e' to edit the selected command in the boot sequence
- Add "rw init=/bin/bash" to the end of the arguments
grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
- Press 'b' to boot
How to use Ubuntu Installation CD, to gain root user access
- Lugege #Üldised Märkused
- Boot-up computer into Ubuntu Installation CD
- At "boot:" prompt, add "rescue" to the argument
boot: rescue
- Follow the instructions on screen
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: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see rida
... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ...
- Asendage see järgneva reaga
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
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Lisage järgnevad read faili lõppu
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 restart GNOME without rebooting computer
- Lugege #Üldised Märkused
- Save and close all opened applications
Press 'Ctrl + Alt + Backspace'
- or
sudo /etc/init.d/gdm restart
How to turn on Num Lock on GNOME startup
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install numlockx sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup sudo gedit /etc/X11/gdm/Init/Default
- Leidke see rida
... 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 run programs on startup when login into GNOME
- Lugege #Üldised Märkused
- System -> Preferences -> Sessions
- Sessions
Startup Programs Tab -> Add/Edit/Delete
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
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf
- Lisage järgnevad read faili lõppu
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 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
- To install File Browser (Root)
sudo gedit /usr/share/applications/Nautilus-root.desktop
- Sisestage järgnevad read uute faili
[Desktop Entry] Name=File Browser (Root) Comment=Browse the filesystem with the file manager Exec=gksudo "nautilus --browser %U" Icon=file-manager Terminal=false Type=Application Categories=Application;System;
- Salvestage muudetud fail
- Read #How to refresh GNOME panel
- To browse files/folders as root user in Nautilus
- Applications -> System Tools -> File Browser (Root)
How to show Desktop Icons (Computer, Home, Trash)
Not for dapper---firingstone
- 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)
- System -> 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
- Sisestage järgnevad read uute faili
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gnome-sudo "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
Not for Dapper---- firingstone
- 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 apt-get the easy way (Synaptic)
- Lugege #Üldised Märkused
- System -> Administration -> Synaptic Package Manager
- To enable the extra Universe and Multiverse repositories
- Settings -> Repositories
- In the Installation Media tab, click Add. There are three separate repositories; Dapper Drake, Security Updates and Updates. Select each repository and check Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse). Ensure you click OK between each repository to save your changes
- You should now see those three repositories under Channels. Make sure Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse) appears under each repository
- To add backports and PLF (new versions of many applications. Unsupported. May contain illegal packages. Use at own risk.)
- Settings -> Repositories
- Click on Add and then Custom
- Paste the following four lines into the box and click Add Repository, one line at a time:
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://packages.freecontrib.org/ubuntu/plf breezy free non-free deb-src http://packages.freecontrib.org/ubuntu/plf breezy free non-free
- To refresh the list of known packages (equivalent to apt-get update)
Edit Menu -> Reload Package Information
- To install all possible upgrades (equivalent to apt-get upgrade)
Edit Menu -> Mark All Upgrades... -> Default Upgrade Edit Menu -> Apply Marked Changes
- To search for a package (equivalent to apt-cache search package_name)
Edit Menu -> Search... Specify the package name
- To install the selected package (equivalent to apt-get install package_name)
Select "package_name" Package Menu -> Mark for Installation Edit Menu -> Apply Marked Changes
- To remove installed package (equivalent to apt-get remove package_name)
Select "package_name" Package Menu -> Mark for Removal Edit Menu -> Apply Marked Changes
What packages do the extra repositories provide
- The PLF repository provides
- DVD playback support (libdvdcss2)
- Skype
- Sun Java SDK (Software Development Kit) and JRE (Java Runtime Environment)
- Opera Web browser
- RealPlayer 10
- Win32 binary multimedia codecs
How to install/uninstall .deb files
- Lugege #Üldised Märkused
- To install .deb file
sudo dpkg -i package_file.deb
- To uninstall .deb file
sudo dpkg -r package_name
How to convert .rpm files to .deb files
- Lugege #Üldised Märkused
sudo alien package_file.rpm
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 sudo tar zxvf mvb_1.6.tgz -C /usr/share/ sudo chown -R root:root /usr/share/mvb_1.6/ sudo 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
sudo apt-get install imagemagick wget -c http://easylinux.info/uploads/bbips.0.3.2.sh sudo cp bbips.0.3.2.sh /usr/bin/bbips sudo 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
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup sudo gedit /etc/bash.bashrc
- Append the System-wide Environment Variables at the end of file
- Salvestage muudetud fail
How to save "man" outputs into files
- Lugege #Üldised Märkused
man command | col -b > file.txt
- Lugege #Üldised Märkused
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see rida
... #hiddenmenu ...
- Asendage see järgneva reaga
hiddenmenu
- Salvestage muudetud fail
- Lugege #Üldised Märkused
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see rida
... timeout 3 ...
- Asendage see järgneva reaga
timeout X_seconds
- Salvestage muudetud fail
- Lugege #Üldised Märkused
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see rida
... default 0 ...
- Asendage see järgneva reaga
default X_sequence
- Salvestage muudetud fail
- Lugege #Üldised Märkused
- e.g. Assumed that hd0,1 is the location of Ubuntu boot partition
wget -c http://easylinux.info/uploads/ubuntu.xpm.gz chmod 644 ubuntu.xpm.gz sudo mkdir /boot/grub/images sudo cp ubuntu.xpm.gz /boot/grub/images/ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
- Leidke see sektsioon
# 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/. ...
- Sisestage järgnev rida tema alla
splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz
- Salvestage muudetud fail
- 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 ubuntu.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
sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup sudo gedit /etc/init.d/sysklogd
- Leidke see sektsioon
... stop) log_begin_msg "Stopping system log daemon..." start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile log_end_msg $? ...
- Sisestage järgnev rida tema alla
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 find out which version of Ubuntu I am using
cat /etc/issue
How to set up automatic background change (GNOME)
- Lugege #Üldised Märkused
mkdir ~/.backgrounds cd ~/.backgrounds wget -c http://easylinux.info/uploads/change_background.py chmod +x change_background.py
- To change desktop background every time you reboot your computer
export EDITOR=gedit && crontab -e
- Add the following line at the end of file
@reboot ~/.backgrounds/change_background.py
- For more information about periodic processes see
man 5 crontab
- ~/.backgrounds is hidden directory, see #How to show all hidden files/folders in Nautilus
- Copy images you wish to see on your background to ~/.backgrounds directory
How to set up automatic background change (KDE)
- Lugege #Üldised Märkused
- Go to K-menu -> System Settings -> Desktop -> Background
- Choose Slide Show
- Press Setup...
- Press Add... to add pictures you wish to see as desktop background
- Set 'Change picture after' to desired picture rotation interval.
- Press 'OK'
How to add keyboard layouts for other languages
- Lugege #Üldised Märkused
- Go to System -> Preferences -> Keyboard
- Choose Layouts
- Press Add... to add the secondary keyboard layout. It is simpler to have two layouts; the maximum is currently four for Xorg.
- Choose Layout Options
- Expand option Group Shift/Lock behaviour
- Choose the key combination that enables you to switch between keyboard layouts. The default is by pressing both Alt keys at the same time. A common alternative is to use Alt+Shift.
- Press Close.
See #How to add the Keyboard (Layout) Indicator applet to add the Keyboard Indicator applet.
How to add the Keyboard (Layout) Indicator applet
- Right-click on empty space on the top panel so that you see the pop-up menu.
- Click Add to Panel...
- Choose Keyboard Indicator (it is under the Utilities section, at the end)
The Keyboard Indicator applet appears on the panel. The default language should be USA for U.S. English. You can either right-click on this applet for more options or see above on how to configure.
How to type extended characters
- Lugege #Üldised Märkused
- Read #How to add keyboard layouts for other languages
- Read #How to add the Keyboard (Layout) Indicator applet
- Add the keyboard layout US English International (with dead keys)
- Make US English International (with dead keys) the default keyboard layout.
The key marked ['"] is now a dead key. When you press it, nothing happens. However if you press a consonant immediately afterwards, the consonant appears with an accent.
- ' + a = á
- ' + e = é
- and so on for i-í, o-ó, y-ý, c-ć, z-ź, n-ń, l-ĺ, u-ú, r-ŕ
- " + a = ä
- " + e = ë
- and so on for y-ÿ, u-ü, i-ï, o-ö
Similarly, ` and a consonant generates à, è, ù, ì, ò. Similarly, ~ and a consonant generates ã, ũ, ĩ, õ, ñ.
To type ' and ", press RightAlt+' and RightAlt+" respectively. To type ' and ", you may also press '+<space> and "+<space> respectively.
There are more characters available by keeping RightAlt pressed and typing a character. Therefore,
- RightAlt+q = ä
- RightAlt+w = å
- RightAlt+e = é
- RightAlt+r = ®
- RightAlt+t = þ
- RightAlt+y = ü
- RightAlt+u = ú
- RightAlt+i = í
- RightAlt+o = ó
- RightAlt+p = ö
- RightAlt+[ and ] for « and » respectively.
- RightAlt+a = á
- RightAlt+s = ß
- RightAlt+d = ð
- RightAlt+l = ø
- RightAlt+; = ¶
- RightAlt+: = °
- RightAlt+z = æ
- RightAlt+c = ©
- RightAlt+n = ñ
- RightAlt+m = µ
- RightAlt+, = ç
- RightAlt+/ = ¿
- RightAlt+1 = ¡
- RightAlt+2 = ²
- RightAlt+3 = ³
- RightAlt+4 = ¤
- RightAlt+5 = €
- RightAlt+6 = ¼
- RightAlt+7 = ½
- RightAlt+8 = ¾
- RightAlt+9 = ‘
- RightAlt+0 = ’
- RightAlt+- = ¥
- RightAlt+= = ×
- RightAlt+! = ¹
- RightAlt+@, then o = ő (and Ő).
- RightAlt+#, then a = ā (and Ā). Similarly for ēĒ, ūŪ, īĪ, ōŌ.
- RightAlt+$ = £
- RightAlt+% =
- RightAlt+^ =
- RightAlt+& =
- RightAlt+*, then a = ą (and Ą). Similarly for ęĘ, įĮ.
- RightAlt+(, then a = ă (and Ă)
- RightAlt+(, then g = ğ (and Ğ)
- RightAlt+), then a = å (and Å)
- RightAlt+_ =
- RightAlt++ = ÷
Servers
AntiVirus Server
How to install ClamAV AntiVirus Server
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install clamav
How to manually update virus databases
sudo freshclam
How to manually scan files/folders for viruses
sudo clamscan -r /location_of_files_or_folders
How to automatically scan files/folders for viruses
- e.g. Automatically scan files/folders for viruses at midnight everyday
- * * * * * means minute hour date month year
export EDITOR=gedit && sudo crontab -e
- Append the following line at the end of file
00 00 * * * sudo clamscan -r /location_of_files_or_folders
- Salvestage muudetud fail
Samba Server
How to install Samba Server for files/folders sharing service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install samba sudo apt-get install smbfs
How to add/edit/delete network users
- Lugege #Üldised Märkused
- Read #How to install Samba Server for files/folders sharing service
- To add network user
sudo smbpasswd -a system_username sudo gedit /etc/samba/smbusers
- Insert the following line into the new file
system_username = "network username"
- Salvestage muudetud fail
- To edit network user
sudo smbpasswd -a system_username
- To delete network user
sudo smbpasswd -x system_username
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Leidke see sektsioon
... # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = no ...
- Asendage see järgneva reagas
# By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes
- Salvestage muudetud fail
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reagas
security = user username map = /etc/samba/smbusers
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reaga
security = share
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- Leidke see rida
... ; security = user ...
- Asendage see järgneva reaga
security = share
- Lisage järgnevad read faili lõppu
[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
sudo testparm sudo /etc/init.d/samba restart
SSH Server
How to install SSH Server for remote administration service
- Lugege #Üldised Märkused
- Lugege #Kuidas lisada täiendavaid repositooriume?
sudo apt-get install ssh
