Ubuntu:Feisty cz
From
Neoficiální průvodce začátky Ubuntu 7.04 (Feisty Fawn - Rozpustilý srnec)
Ubuntu 7.04 (Feisty Fawn) byl vydán 19.4.2007. Tento průvodce se neustále vyvíjí. Je třeba Vaší pomoci při testování a vylepšování tohoto průvodce.
Tohoto průvodce začal vytvářet Chua Wen Kiat (Kuala Lumpur, Malajsie). Nyní je udržován Linuxovým Centrem Litevské university a každým kdo je ochoten přispívat.
O tomto původci můžete diskutovat na oficiálním fóru UbuntuGuide.org na ubuntuforums.org. Zastavte se a přidejte se do diskuse.
Pro editaci stránek se musíte zaregistrovat
Pokud máte nějaké nápady, můžete o nich diskutovat na diskusní stránce
Pokud máte nějaké otázky o, pošlete nám e-mail na ubuntuguide -at- ubuntuguide.org
| Mikrobart • Orvils • Quash • Jiyuu0 • Cargo • Gabemorr • Byte • cope • krampo • Simos • Stubby • eljaco • shai • ThunderM • Hasile • adammichaelroach • Belisarivs • Cheator • Hank • Tamal • Kaotiks • soniah • Kutan • Mehdi • richux • Shadyman • Havarill • fr0zen_penguin • Louis • Shadyman • shanlot751 • Etienne • Rabid9797 • Mantas Smelevičius • perspectoff • phlo • seadog • smalu • go2debug • Pakos •RedBass • CyberAngel •Cogeeldineroycorre •AlgimantasBucinskas• Ufic • Antidrugue • Vahid • Louis King • Rsingh • Borut-T • Cinglalls • Townray • ANtuMaLaM • pete allebone • Greenstar • The Turk • RonB • Compotatoj • oMbra • sigma80 • Enlightenedswine •Karthikeyan•emorrp1• Th0rv4ld • jspangler • Sevoir • Forain • and other friends of our community | edit |
| Languages | 한국어 عربي -قيد التحرير- • Português do Brasil • Português • Bangla • Bengali • Bulgarian • Català • 中文 (翻译中) • Česky • German • Español • 繁體中文 (翻譯中) • English • Français • Ελληνικά • Filipino • German • Hindi • Italiano • ລາວ; Nederlands • Norsk • Polski• Lietuviškai• Română • Suomi • Türkçe • Indonesian • සිංහල • فارسی • עברית • پښتو • ไทย • Русский • Українська • Persian • 日本語 (翻訳中); اُردو • नेपाली • Srpski • Vietnamese | edit |
Starší verze
| Jazyky: | Português • Bulgarian • Català • 中文 (翻译中) • 繁體中文 (翻譯中) • English • Français • German • Italiano • Nederlands • Polski • Lithuanian (In Progress) • Español (In Progress) • Suomi (In Progress) • Ελληνικά • Română • Indonesian • සිංහල (In Progress) • فارسی(In Progress) • پښتو(In Progress) • ไทย • Русский (In Progress) • Українська (In Progress) • Persian (In Progress) • 日本語 (翻訳中) | edit |
| Jazyky: | Português • Português do Brasil • Bulgarian • Bangla • 䏿 • Äesky • English • Filipino • Français • German • Italiano • Nederlands • Norsk • Suomi • Polski• LietuviÅ¡kai• Español • RomânÄ • Indonesian • Türkçe • Ð ÑÑÑкий • Persian • æ¥æ¬èª (翻訳ä¸) | edit |
Pokud používáte zastaralou verzi Ubuntu, měli byste zvážit její povýšení na Feisty Fawn. Tato verze obsahuje spoustu vylepšení a aktualizační program Vám pomůže s přechodem na novější verze. Pokud jste v produkčním prostředí, nebo pokud vám vše funguje k Vaší plné spokojenosti, můžete zůstat u verze s prodlouženou dobou podpory (LTS - Long-Term Support).
Pro povýšení zastaralé nebo aktualizaci současné verze si přečtěte kapitolku #Povýšení a aktualizace.
Předmluva překladatele
Pro začátečníky tu mám několik informací, které jistě oceníte.
V tomto průvodci se hojně používá terminálu. Není to proto abychom uživatele vylekali, ale abychom celý postup řešení konkrétního problému co nejvíce zjednodušili.
Potřebné úkony jsou vesměs zredukovány na pouhé zkopírování příkazu, vložení do terminálu a potvrzení stiskem klávesy Enter. Občas je uživatel dotázán aby si vybral jednu z nekolika nabízených možností astavení. Případně je ještě potřeba provést změny v konfiguračních souborech. Vše je patřičně popsáno, takže opět stačí kopírovat a vkládat.
Kopírování se provádí tak, že vyznačený příkaz označíte levým tlačítkem myši a kliknutím kolečkem do terminálu jej tam vložíte. Pak stačí stisknout Enter. Jednoduché, že?
Terminálu se spousta neznalých bojí nebo jím rovnou opovrhuje. Ano, každý se bojí neznámého a mnoho lidí má vesměs negativní zkušenosti s příkazovou řádkou z jiných operačních systémů.
Mohu Vás ale uklidnit. Nemusíte se ničeho bát. Následujte zde popisované postupy a brzy zjistíte, že terminál je tuze mocný nástroj který Vám náramně zjednoduší život.
Zajímá-li Vás co provádíte, zkoušejte si pročíst manuálové stránky příslušných programů (např. "man sudo", "man apt-get" apod.) a pokud ne, pouhým zkopírováním příkazu řádek po řádku a jejich vložením do terminálu prostě vyřešíte problém a můžete jít dál. Ať tak či onak, jsem přesvědčen, že příkazovou řádku oceníte.
Při vymýšlení vlastních příkazů se Vám jistě bude hodit klávesa TAB pro automatické doplnění příkazu. Používá se tak, že napíšete několik počátečních znaků a po stisku této klávesy dojde k doplnění příkazu. Pokud jste nezadali dostatek znaků potřebných k jednoznačnému určení příkazu, můžete opakovaným stiskem klávesy TAB vyvolat dostupné možnosti.
Zkuste třeba nainstalovat program amarok (snad nejoblíbenější přehrávač muziky v Linuxu, je určen pro KDE, ale v GNOMEho taky můžete používat a určitě se Vám bude líbit a díky němu oceníte id3 tagy protože do Vaší hudební kolekce vnesou pořádek) pomocí aptitude.
Nejdříve napište "sudo ", potom napište "apti" a stiskněte TAB. Doplní se Vám celý název aptitude. Pak stiskněte 2x TAB. Zobrazí se Vám možnosti. Stiskněte "i" a zase TAB (možnost na "i" je jenom jedna - install, proto nemusíte psát více písmen). Nyní postupně pište znaky "amarok" a po každém písmenu stiskněte 2x TAB. Vidíte jak se výběr možností postupně zužuje až je shell schopen bezpečně rozpoznat požadovaný balík.
Výsledek by měl vypadat nějak takto:
sudo aptitude install amarok
Nyní už byste měli chápat jak doplňování znaků funguje. Podrobnější význam příkazu bude vysvětlen později. Hoříte-li touhou po poznání, zkuste příkazy "man sudo" a "man aptitude". Popíší Vám právě použité říkazy.
Pokud přecházíte na Linux z Windows, jeden z nejzásadnějších rozdílů, který Vás může (nezřídka nepříjemně) překvapit, pro Vás bude znamenat styl instalace programového vybavení. Zde totiž neexistují (tedy, něco podobného tu je, ale neni to standardní styl instalace) instalační exe soubory kterými se programy instalují.
Instalují se tzv. balíky (anglicky packages). Balík je v podstatě zkomprimovaný archiv, který obsahuje soubory potřebné pro běh instalovaného programu stejně jako instalační exe soubory ve Windows.
Rozdíl ovšem je ten, že v Linuxu se o instalaci programu stará správce balíků. Čili, Vy si vyberete program, který chcete nainstalovat a správce balíků se postará o to, aby byly potřebné balíky nainstalovány. Balíky totiž, stejně jako exe soubory ve Windows, často neobsahují úplně všechny soubory, které program vyžaduje. Toto má i ve Windows své opodstatnění. Jeden druh knihovny často využívá více programů. A byla by hloupost stahovat a instalovat potřebné knihovny znovu a znovu jako součást jiných programů.
Čili výhoda správce balíků je v tomto ohledu zřejmá, vy si vyberete co chcete, správce se postará o zbytek. Nemusíte honit po webu pochybné programy pochybného obsahu a řešit, jestli máte nebo nemáte nainstalovány potřebné knihovny.
Další výhoda správce balíků je, že hlídá, jestli si programy vzájemně nepřepisují data. Nemůže se Vám tedy stát, že máte dva instalátory, a oba Vám přepisují nějaké knihovny a tím způsobí nefunkčnost jiných programů. Toto byl poměrně velký neduh Windows, nicméně v poslední době se to Microsoftu tak nějak daří řešit.
Velkou výhodou správce balíků je rovněž podepisování balíků. To se provádí pomocí GPG klíče a jeho autor se tímto zavazuje, že jím podepsané balíky neobsahují škodlivý software ale jenom to, co mají obsahovat. Ve Windows něco takového není a musíte spoléhat na dobrý úmysl tvůrce programu. Nezřídka si takto uživatel zavlekl do systému nějaký spyware apod. (toto je moje osobní zkušenost).
Někde Vám budou doporučovat, abyste si program sami zkompilovali (tzv. svatá trojice "./configure", "make, "make install"). Poklepejte si na čelo, usmějte se a jděte dál. Ano, někdy, až budou Vaše znalosti světa Linuxu a Open Source obecně na výši, se může stát, že budete chtít/potřebovat zkompilovat speciální program, který se nikde v binární podobě nevyskytuje. Ale v současné době disponuje Ubuntu tak rozsáhlými archivy balíků (ať už oficiálními nebo neoficiálními), že v podstatě nehrozí, že budete kompilování potřebovat. Já osobně Vám kompilaci ani nedoporučuji. Popřepisujete různé knihovny či si jinak zanesete zmatek do systému a pak můžete reinstalovat a neoprávněně nadávat na nestabilní Linux.
V tomto průvodci Ubuntu Vám bude kompilace zběžně popsána, ale pořád mějte na paměti, že je to až poslední možnost instalace programu a měli byste ji podstupovat jenom pokud jste obeznámeni s problémem a nejlépe ještě pokud máte nablízku kamaráda, který poradí.
Nejspíš se Vám ze začátku nebude zamlouvat ani systém přístupových práv. Ano, ve Windows něco takového není. Tento systém ani nebyl navržen pro připojení na web a tak ani nebylo třeba omezovat práva běžného uživatele (někteří neznalí lidé tvrdí že Bill Gates je otec internetu, toto není pravda, internet se rozšířil navzdory němu, ne díky němu, byl tak přinejlepším jeho tchýní). Každý mohl instalovat a odinstalovávat programy a taky to tak potom vypadalo (o zábavě s viry obzvláště ve Win řady 9x nemluvě). Sám si pamatuju jak v době kdy jsem začínal s Windows, bratr co chvíli něco napravoval či rovnou kompletně reinstaloval. Nestalo se Vám někdy něco podobného? Nesmazal Vám někdy bratr důležitá data nebo rovnou zrušil systém (špatná správa pro feministky, sestry umí zamávat s nezabezpečeným systémem zrovna tak dobře)?
V Linuxu je něco takového v podstatě nemožné (ano, dělali ho chybující lidé a chybující lidé ho taky používají, systém Vám např. nezabrání v prozrazení hesla a podobně). Už se nemusíte bát o svá data. Já sám svým PC neznalým rodičům s klidem říkám: "Ničeho se neboj, nic zrušit nemůžeš. Dokud něco vyloženě nerozmlátíš, nebude pro mě problém vše napravit."
A to je přesně ono. Přísným oddělením práv běžného uživatele a superuživatele (čili správce počítače) je důvod proč Vám Váš Linux nemůže složit kdokoliv kdo Vám anglicky napíše, že Vás miluje, či libovolný rodinný příslušník (Windows řady NT už toto taky tak nějak řeší, ale výchozí udělení práv správce každému, potřeba použít NTFS a neexistence multiuser multitaskingu, kdy může na jednom počítači být přihlášeno více uživatelů tuto snahu ještě pořád hodně srážejí).
Čili, ano, musíte použít heslo pro získání práv superuživatele, ale ta bezpečnost za to stojí. Navíc Ubuntu toto ještě zjednodušuje při zachování bezpečnosti.
Další rada se týká restartování. Zde na Ubuntuguide.org (mám na mysli anglické verze manuálu, já se toto v překladu pokouším minimalizovat) je často doporučováno restartovat systém pro provedení změn. Toto je zde napsáno pro zjednodušení. Pokud neinstalujete-neaktualizujete obzvláště důležitou knihovnu, jako třeba jádro systému, úplný restart není třeba. Obvykle se jenom musí restartovat změněná aplikace. Čili pokud aktualizujete GNOME, stačí se odhlásit a znovu přihlásit. Nejčastěji se doporučuje restartovat Xserver což je aplikace která se stará o vykreslování oken a různá desktopová prostředí (jako GNOME, KDE, XFCE a další) jsou její nadstavby.
Toto se provede stiskem kláves Ctrl + Alt + Backspace (odhlášení by taky mělo stačit, obvykle tím taky dojde k restartování Xserveru). Čistější způsob restartování Xserveru (a taky méně user-friendly) je přepnout se do konzole (stiskem např. Ctrl+Alt+F1), přihlásít se a pak spustit "sudo /etc/init.d/gdm restart" (pro Kubuntu namísto gdm zadejte kdm).
Tím dojde k restartování prostředí, obrazovka zčerná a následně vám zpětně naskočí přihlašovací menu gdm (pokud nemáte zapnuté automatické přihlášení). Proto doporučuji nejdřív uložit všechny dokumenty protože dojde také k ukončení běhu veškerých aplikací které jste měli na ploše spuštěné. Restartování Xserveru se provádí také pokud např. náhodou začne nějaká nezbedná aplikace způsobovat tak velké vytížení, že nepůjde korektně či méně korektně ukončit. Nestává se to denně, ale pokud se to náhodou někdy stane, budete vědět co a jak.
Dále se může stát, že v důsledku chyby programu, nebo, a to daleko častěji, chybou nevhodného zásahu do systému (pozor, sudo je tu taky od toho aby Vám docvaklo, že provádíte změny s právy všemocného uživatele root a máte tedy moc si třeba kompletně smazat disk či špatně nastavit systémovou aplikaci) nemusí ani restart Xserveru pomoci. Pro tento případ je v jádře (položka v Kernel hacking) obsažena podpora pro použití klávesy SysRQ, kterou jste patrně doteď použili maximálně jako Print Screen (je to obvykle zdvojená klávesa).
Zatuhne-li Vám tedy počítač, zkuste následující posloupnost kláves:
Alt + SysRq + S (sync - provede se uložení dat z paměti na pevný disk) Alt + SysRq + U (unmount - připojení disků jen pro čtení) Alt + SysRq + B (boot - provede se restart)
Slova sync, unmount a boot jsou zde použita jako mnemotechnická pomůcka. Nejsem si jistý, jestli názvy odpovídají skutečnému úmyslu autora této užitečné pomůcky.
Je jasné, že tvrdý restart je až poslední možnost protože popsaný způsob je šetrnější k Vašim datům. Bude jej zapotřebí jen v krajních případech kdy předchozí postupy nepomohly. Nepředpokládám, že budete tyto způsobu restartování potřebovat často, ale přece jenom, nic není dokonalé.
Pokud máte nějaké návrhy, nápady či připomínky k překladu, můžete se mi ozvat na můj JID (musíte mít založen účet na nějakém jabber serveru, protože toto není e-mailová adresa ačkoliv tak vypadá): belisarivs zavináč njs.netlab.cz
Mně nezbývá než Vám popřát hodně štěstí při objevování nového světa Open Source a Ubuntu a doufat, že vám výsledek mojí práce na překladu bude k něčemu dobrý.
Základní poznámky
- Toto je neoficiální průvodce začátky používání 7.04 (Feisty Fawn). Není spojen s Ubuntu a Canonical Ltd.
- Tento průvodce může být diskutován na oficiálním Fóru UbuntuGuide.org na ubuntuforums.org. Zastavte se a přidejte se do diskuse.
- Pokud uvidíte namodralé pole, znamená to, že musíte provádět příkazy v příkazové řádce (Programy --> Systémové nástroje --> Terminál) nebo použít obsah tohoto pole jak je zmíněno v dalších instrukcích.
- Abyste redukovali chyby při opisu, je doporučeno kopírovat a vkládat příkazy do terminálu (pravý klik na příkazy --> "Kopírovat" nebo "Vložit". Také můžete použít Ctrl+C pro kopírování a Shift+Insert pro vkládání, případně můžete zkusit označit text levým myšidlem a kliknutím kolečkem myši jej vložit do terminálu, (pozn. překl.))
- "sudo" znamená - provádí superuživatel. "sudo" Vás požádá o Heslo (Password). Prosím napište jej.
- Pokud potřebujete o příkazu více informací, podívejte se na manuálové stránky použitím příkazu "man". Například "man sudo" zobrazí manuálovou stránku příkazu "sudo".
- Pokud Vás nebaví pořád psát "aptitude" nebo apt-get, přečtěte si #Správce balíků Synaptic
- "aptitude", "wget" a další nástroje pro instalaci/update/download programů vyžadují internetové připojení.
- Pro stažení souboru klikněte pravým tlačítkem na odkaz --> vyberte "Uložit odkaz jako..." --> ujistěte se, že název a přípona souboru jsou správně.
- Nech je duch "lidskost ostatním" pořád s Vámi...
- Pokud používáte 64-bit verzi, vyměňte všechna "i386" za "amd64"
Použití gksudo vs. sudo
Příkazy (v terminálu), které vyžadují práva roota musí následovat za příkazem sudo, nebo jeho grafickou verzí gksudo. Pro většinu uživatelů jsou oba příkazy zaměnitelné a mohou si tedy vybrat který použijí.
Ale jsou zde jisté rozdíly. Gksudo spouští s konfiguračními soubory roota, zatímco sudo s konfiguračními soubory běžného uživatele.
Zde je na toto téma pěkná diskuse. Doporučuje se zde gksudo pro všechny uživatele kromě případů, kdy je použito čistě prostředí příkazové řádky. V těch případech se doporučuje sudo.
V tomto průvodci jsou obě možnosti použity. Sudo je univerzálnější (hodí se třeba pro servery), gksudo je zase vázáno na GNOME. V KDE jej nahrazuje kdesu.
Jak přidat extra repositáře
- Přečtěte si #Základní poznámky
Používání menu
- Vyberte si repositáře pro Vaši distribuci. Tyto jsou součástí distribučního systému Ubuntu. Toto je doporučená metoda.
Systém --> Správa --> Zdroje softwaru
Zaškrtněte repozitáře, které budete potřebovat (main, universe, restricted, multiverse). Repositář 'sources' pravděpodobně nebudete potřebovat.
- Přidejte libovolné repositáře třetích stran. Takové repositáře nejsou monitorovány, ale některé jsou docela populární. Používáte je na vlastní riziko.
Systém --> Správa --> Zdroje softwaru --> Software třetí strany --> Add...
Přidejte svůj repositář. V tomto příkladě přidáme Medibuntu, populární repositář třetích stran.
Řádka APT: deb http://packages.medibuntu.org/ feisty free non-free
- Stáhněte potřebné gpg klíče a přidejte je do seznamu klíčů. tento klíč Vašemu systému ověřuje tento repositář. U Medibuntu se to provádí takto:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
Manuální editace sources.list
- Manuální aktualizace provádíte na vlastní riziko. Míchání nekompatibilních repositářů může poškodit Váš systém.
- Vytvořte kopii současného seznamu zdrojů.
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
- Pužijte textový editor (gedit nebo nano) pro editaci seznamu zdrojů:
gksudo gedit /etc/apt/sources.list
- Editujte repositáře v sources.list podobně jako v tomto vzoru:
- Pro poupožití lokálního zrcadla můžete přidat "cc." před archive.ubuntu.com, cc = kód země
- např. deb http://cz.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to ## newer versions of the distribution. ## Přidejte komentář (##) před každý řádek aby nebyl procházen. ## Použijte následující sources.list jen na vlastní riziko. ## Odkomentujte deb-src pokud chcete stahovat zdrojové balíky ## Pokud máte instalační CD, můžete jej přidat do repositáře použitím 'apt-cdrom add' ## čímž dojde k přidání řádku podobného tomu následujícímu: #deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.1)]/ feisty main restricted deb http://cz.archive.ubuntu.com/ubuntu/ feisty main restricted #deb-src http://cz.archive.ubuntu.com/ubuntu/ feisty main restricted ## Hlavní opravné aktualizace vytvořené po finálním vydání distribuce. deb http://cz.archive.ubuntu.com/ubuntu/ feisty-updates main restricted #deb-src http://cz.archive.ubuntu.com/ubuntu/ feisty-updates main restricted ## Software z tohoto repositáře je NAPROSTO NEPODPOROVÁN týmem Ubuntu, ## a ani nemusí být pod svobodnou licencí. Rozhodnutí použít ## tento repositář je na Vás. Taky prosím berte v potaz, že pro software ## v universe NEBUDOU vytvářeny revize nebo aktualizace Ubuntu security ## týmem. deb http://cz.archive.ubuntu.com/ubuntu/ feisty universe #deb-src http://cz.archive.ubuntu.com/ubuntu/ feisty universe ## Software z tohoto repositáře je NAPROSTO NEPODPOROVÁN týmem Ubuntu, ## a ani nemusí být pod svobodnou licencí. Rozhodnutí použít ## tento repositář je na Vás. Taky prosím berte v potaz, že pro software ## v universe NEBUDOU vytvářeny revize nebo aktualizace Ubuntu security ## týmem. deb http://cz.archive.ubuntu.com/ubuntu/ feisty multiverse #deb-src http://cz.archive.ubuntu.com/ubuntu/ feisty multiverse ## Software z tohoto repositáře nebyl testován tolik jako ten v hlavním repositáři, ## ačkoliv obsahuje novější verze některých aplikací které obsahují zajímavé vlastnosti. ## Taky prosím berte v potaz, že pro software v backports NEBUDOU ## vytvářeny revize nebo aktualizace Ubuntu security týmem. deb http://cz.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse #deb-src http://cz.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu feisty-security main restricted #deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted deb http://security.ubuntu.com/ubuntu feisty-security universe #deb-src http://security.ubuntu.com/ubuntu feisty-security universe deb http://security.ubuntu.com/ubuntu feisty-security multiverse #deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse ## PLF REPOSITÁŘ (Nepodporován. Může obsahovat ilegální balíky. Použití na vlastní riziko.) ## Medibuntu - Ubuntu 7.04 "feisty fawn" ## Please report any bug on https://launchpad.net/products/medibuntu/+bugs deb http://packages.medibuntu.org/ feisty free non-free #deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free ## KOMERČNÍ REPOSITÁŘ SPOLEČNOSTI CANONICAL (Hostovaný na serverech Canonical, ne Ubuntu ## serverech. VMWare, RealPlayer10, Opera, DesktopSecure a další.) deb http://archive.canonical.com/ubuntu feisty-commercial main ## enlightenment e17 beta, použití na vlastní riziko ## E17 je Beta a může být nestabilní či poškodit Váš systém #deb http://edevelop.org/pkg-e/ubuntu feisty e17 #deb http://e17.dunnewind.net/ubuntu feisty e17 #deb-src http://edevelop.org/pkg-e/ubuntu feisty e17
Pro přidání klíče po použití repositáře Enlightenment:
wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
- Obnovit seznam balíků:
sudo apt-get update
- Další repositáře třetích stran jsou vypsány na: http://www.ubuntulinux.nl/source-o-matic nebo http://3v1n0.tuxfamily.org/blog/lista-repository-sourceslist-ottimizzata-per-ubuntu-kubuntu-linux/
Přidání programů z GUI menu
Přidat/Odstranit programy
Použití nástroje Přidat/Odstranit... je velmi jednoduché.
Aplikace --> Přidat/Odstranit...
- Hledejte druh programů který chcete přidat. Např.: napište MP3 pro vypsání seznamu software týkajícího se mp3.
- Zaškrtněte aplikaci, kterou chcete nainstalovat (či odškrtněte pro odinstalování).
- Klikněte na tlačítko "Použít".
- Zobrazí se Vám seznamnově nainstalovaných balíků. Potvrďte.
Správce balíků Synaptic
Synaptic poskytuje přístup k instalaci k o mnoho více programů než nástroj Přidat/Odstranit. Dává Vám více možností instalace závislostí ve velmi dobře použitelném GUI. Je to standardní metoda instalace balíků v Ubuntu.
Systém --> Správa --> Správce balíků Synaptic
- Hledejte typ programu jaký chcete, ať už v sekcích nebo pomocí vyhledávače balíků podle zadaných požadavků.
- Klikněte na čtvereček vedle názvu balíku a vyberte co chcete provést.
- Pokud má program více závislostí, vyskočí na Vás okno,kde budou uvedeny. Potvrďte.
- Pak klikněte na "Použít" a potvrďte.
- Instalace pomocí Synaptica dělá to samé jako pomocí apt-get či aptitude.
Buď napíšete:
sudo apt-get instal balík
nebo
sudo aptitude install balík
anebo spustíte Synaptic a balík nainstalujete z něj. Je to úplně jedno.
Automatix2
Varování: Automatix2 je proprietární skript, který se pokouší nainstalovat nějaký software a často při tom způsobí poškození systému. Komunita Ubuntu pro něj NEBUDE poskytovat podporu a navíc velmi nedoporučuje jeho použití. Problémy které způsobuje se velmi těžko řeší a mohou vést až ke kompletní reinstalaci systému. Vývojáři Debianu a Ubuntu zkoušeli co dělá a jak funguje a zjistili, že je poměrně nebezpečný. Viz tento přehled. Používejte Automatix jen na vlastní nebezpečí.
Někteří uřivatelé hlásí jeho úspěšné použití po čerstvé instalaci systému bez jakékoliv aktualizace nebo instalace nových balíků.
Nejnovější balík lze získat zde.
- Pro systémy i386 lze získat balík zde:
wget http://www.getautomatix.com/apt/dists/feisty/main/binary-i386/automatix2_1.1-4.7-7.04feisty_i386.deb
- Instalujte tímto příkazem:
sudo dpkg -i automatix2_1.1-4.7-7.04feisty_i386.deb
- Pro systémy amd64 lze získat balík zde:
http://www.getautomatix.com/apt/dists/feisty/main/binary-amd64/automatix2_1.1-4.6-7.04feisty_amd64.deb
- Instalujte tímto příkazem:
sudo dpkg -i automatix2_1.1-4.6-7.04feisty_amd64.deb
- Automatix2 je dostupný z menu Aplikace --> Systémové nástroje --> Automatix
Instalace Automatixu s použitím apt (alternativní metoda)
echo "deb http://www.getautomatix.com/apt feisty main" | sudo tee -a /etc/apt/sources.list wget http://www.getautomatix.com/keys/automatix2.key gpg --import automatix2.key gpg --export --armor E23C5FC3 | sudo apt-key add - sudo apt-get update sudo apt-get install automatix2
Správa programů z příkazové řádky
K práci s balíky v příkazové řádce se používají nástroje APT (Advanced Packaging Tools). Nejčastěji je to program apt-get. Jeho syntaxi si probereme níže. Zároveň si uvědomte, že práce s tímto programem musí probíhat s právy superuživatele (root) takže musíte nejdříve napsat sudo/gkduso
Instalace balíku:
sudo apt-get install jméno_balíku
Odinstalace balíku:
sudo apt-get remove jméno_balíku
Neúplně nainstalované balíky mohou být opraveny:
sudo apt-get install jméno_balíku --reinstall
For more info see the official APT guide here.
Instalace programů pomocí programu pro příkazovou řádku s mmenu
Někteří uživatelé nepoužívají desktopové prostředí ale chtějí menu pro instalaci programů. Pro ty je vhodný program aptitude:
Jeho pouhým spuštěním (pamatujte, názvu programu musí předcházt sudo) se Vám zobrazí GUI programu, kde můžete pohodlně hledat balíky jako v Synapticu.
Lze jej ale rovněž použít namísto apt-get s podobnou syntaxí.
Instalace balíku:
sudo aptitude install jméno_balíku
Odinstalace balíku:
sudo aptitude remove jméno_balíku
Aktualizace a povýšení
Povýšení z Ubuntu Edgy Eft na Ubuntu Feisty Fawn
- Metoda č. 1:
sudo apt-get dist-upgrade
- Metoda č. 2:
Povýšení verze Dapper Drake na Edgy Eft a na Feisty Fawn
- Metoda č. 1: Systém --> Správa --> Správce aktualizací. Tak můžete povýšit z Dapper Drake na Edgy Eft. Tento postup můžete zopakovat pro povýšení z Edgy Eft na Feisty Fawn. Nepovšujte přímo z Dapper Drake na Feisty Fawn. Může Vám to zpsobit dost vážné problémy.
- Metoda č. 2: Přečtěte si Povýšení z Ubuntu Dapper nebo Edgy na Feisty Fawn
Povolení automatických aktualizací
- Povolte automatické aktualizace z menu:
Systém --> Správa --> Zdroje softwaru --> Aktualizace
Vyberte si "Důležité aktualizace", "Doporučené aktualizace" a případně i jiné aktualizace dle libosti. Vyberte si frekvenci s jakou bude prováděna kontrola dostupných aktualizací.
Jak manuálně aktualizovat Ubuntu
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Z příkazové řádky:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
- Z menu:
Systém --> Správa --> Správce aktualizací
Kde jsou další průvodci *buntu?
- KubuntuGuidePokud chcete např napsat příkaz "sud aptitude install vlc
- XubuntuGuide
- Průvodce krok za krokem pro uživatele Ubuntu
- Ubuntu Wiki
- Svobodné e-knihy o Ubuntu Linuxu
- Official Ubuntu Documentation Help Guide
Desktopová prostředí
Kde si prohlédnout obrázky z Ubuntu
Toto prostředí je postaveno na GNOME, což je výchozí prostředí pro Ubuntu.
- Prohlídka obrázků Ubuntu 7.04 (Feisty Fawn)
- Ubuntuclips.org - video návody pro lidská stvoření
- Ubuntu Video - videa o Linuxu pro lidská stvoření
Kde si prohlédnout obrázky z Kubuntu
Toto prostředí je postaveno na KDE. Koukněte na Kubuntuguide.org.
Jak spouštět příkazy v terminálu
- Toto je pro GNOME. Spusťte emulátor terminálu:
Aplikace --> Příslušenství --> Terminál
- Pokud zde tuto položku nevidíte, přidejte si ji do menu:
Klikněte pravým tlačítkem na Aplikace --> Upravit nabídky --> Příslušenství --> Terminál (zaškrtnout)
Na operace se soubory apod. je vhodnější používat terminál, ale pokud spouštíte aplikace jako Beryl, Compiz a Emerald, jejichž relace končí až ukončením práce na počítači a nechcete kvůli nim mít pořád otevřené okno terminálu (jeho zavřením obvykle dojde k ukončení aplikace která v něm byla spuštěna) můžete použít applet "Spustit aplikaci..." pro GNOME.
Jak nainstalovat KDE (Kubuntu)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Také se můžete podívat na obrázky z KDE
- Přečtěte si Kubuntuguide.org
sudo apt-get install kubuntu-desktop
Systém se zeptá jestli chcete používat kdm nebo gdm. Doporučujeme gdm.
Systém --> Ukončit... --> Odhlásit Sezení: KDE
Jak odinstalovat KDE (Kubuntu)
- Odeberte balík:
sudo apt-get remove kubuntu-desktop
Pokud jste nepoužili tento příkaz, tak se mrkněte na tento tutorial.
Kde si prohlédnout obrázky z Xubuntu
Toto je minimalistické prostředí založené na XFCE. Je nejlepší pro PC s menším množstvím paměti. Koukněte na Xubuntuguide.org.
Jak nainstalovat XFCE (Xubuntu)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Také se můžete podívat na některé obrázky XFCE
- Přečtěte si Xubuntuguide.org.
sudo apt-get install xubuntu-desktop
Xubuntu vzhled gdm bude nastaven jako výchozí.
Systém --> Ukončit... --> Odhlásit Sezení: XFCE
Jak odinstalovat XFCE (Xubuntu)
- Odeberte balík:
sudo apt-get remove xubuntu-desktop
Pokud jste nepoužili tento příkaz, tak se mrkněte na tento tutorial.
Kde si prohlédnout obrázky z Ubuntu Studia
Ubuntu Studio je desktopové prostředí zaměřené na použití multimédií.
Kde si prohlédnout obrázky z desktopového prostředí Enlightenment
Toto prostředí je zaměřeno na speciální efekty. Je hezké a nenáročné ale taky ještě dost nedokončené.
Jak nainstalovat FluxBox
Fluxbox je populární minimalistický správce oken. Více hledejte třeba na stránkách Fluxboxu.
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo apt-get install fluxbox menu
- Spusťte Fluxbox z GDM:
echo "exec startfluxbox" --> ~/.xinitrc
- Změňte přihlašovací zvuk:
sudo apt-get install sox gksudo gedit ~/.fluxbox/startup
Nalezněte tento řádek:
exec /usr/local/bin/fluxbox
Někde nad něj dejte toto:
play /usr/share/sounds/login.wav --> /dev/null 2>&1 &
Jak nainstalovat Blackbox
- Blackbox je minimalistický správce oken. Není moc často aktualizován. Více informací hledejte na Blackbox Wiki.
sudo apt-get install blackbox menu
Jak změnit obrazovku USplash když spouštíte nebo vypínáte počítač
Když přidáte další desktopové prostředí, obrazovka USplash se může změnit (např. Kubuntu namísto Ubuntu). Pokud ji chcete změnit proveďte toto:
sudo update-alternatives --config usplash-artwork.so
Dojde k vypsání seznamu nainstalovaných obrazovek usplash. Napište číslo které odpovídá té kterou chcete použít a stiskněte Enter. Poté proveďte:
sudo dpkg-reconfigure usplash
Kde hledat různé grafické elementy pro Váš desktop
Jak nastavit GLSlideshow
- GLSlideshow je šetřič obrazovky který postupně ukazuje obrázky s plynulým panoramatickým pohledem a slábnutím. Pro jeho zapnutí:
Systém --> Volby --> Šetřič obrazovky --> GLSlideshow
- Feisty Fawn nenabízí způsob aby někdo jiný než root nastavoval obrázky (v /usr/share/backgrounds). Nejjednodušší bude vytvoření vlastního adresáře kam uživatel vloží zvolené obrázky a pak vložit symbolický odkaz do /usr/share/backgrounds. V ukázce vytvoříme adresář s názvem screensaverpics, ale může se jmenovat i jinak.
mkdir ~/screensaverpics gksudo ln -s /usr/share/backgrounds ~/screensaverpics
- Create a .xscreensaver file in your home directory:
gksudo gedit .xscreensaver
- Add this line:
imageDirectory: /path/to/images/
- Save it and test the screensaver by locking your screen. You'll see your images, but it will repeat the same one over and over. To fix this, change your glslideshow.desktop configuration file:
gksudo gedit /usr/share/applications/screensavers/glslideshow.desktop
- Look for the following entry:
Exec=glslideshow -root
- Modify this line to instead read:
Exec=glslideshow -root -duration 10 -pan 10 -fade 3
- Save and try the screensaver again. You should see all of your images in a random-ordered slideshow.
3-D Desktopy
Compiz / Desktop Efekty
- Do Feisty Fawn byl přidán Compiz. Ale je stále v experimentální fázi a mnoho efektů Vám nemusí fungovat.
- Pro přístup k některým efektům z menu:
Systém --> Volby --> Efekty prostředí
- Pro změnu nastavení Compizu (v současné době se toto nedoporučuje):
- Povolte položku Editor nastavení:
Klikněte pravým tlačítkem na Aplikace --> Upravit nabídky --> Systémové Nástroje --> Editor nastavení (zaškrtnout)
- Spusťte Editor nastavení:
Aplikace --> Systémové nástroje --> Editor nastavení
- Jděte na:
apps --> compiz --> ??
OpenCompositing: Beryl a Compiz
Vývoj Berylu byl ukončen v březnu 2007, ale tento je stále podporován. Beryl a Compiz se znovu spojují do Compiz-fusion pod vlajkou OpenCompositing. Navštivte OpenCompositing.org pro více informací. Compiz je ve Feisty Fawn nainstalován jako výchozí. Úplný průvodce instalací se specifickými instrukcemi pro karty nVidia, ATI, a je k nalezení na stránce Compiz documentation. Instrukce pro získání nejnovější verze jsou dostupné na Compiz Ubuntu Installation Guide.
- Pokud Compiz není nainstalován, nainstalujte jej pomocí správce balíků Synaptic nebo pomocí příkazové řádky:
gksudo apt-get install compiz
Jak nainstalovat Beryl (ATI)
- Pro úvod do Berylu si přečtěte Beryl (Wikipedia)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Tyto instrukce nemusí vést k řešení. Vždy nejdříve zkuste balík Ubuntu compiz.
Prosím pozor: Jsou dva způsoby instalace Berylu pro karty ATI. Jeden využívá open source moduly a jeden proprietární moduly. Nejdříve zkuste open source. V případě, že postup nebude fungovat (nebo budete chtít využít proprietární moduly, ať už kvůli výkonu nebo vlastnostem), je v další sekci uveden návod jak vrátit vše zpět.
Instalace Berylu s použitím Open Source ovladačů
- Tato metoda funguje taky na 64 bit systémech
- Funguje na starších kartách ATI
- Používá se open source ovladačů radeon.
- Využívá se AIGLX. Pokud Vám direct rendering nefunguje, zobrazování bude velmi pomalé.
- Přečtěte si #Jak přidat extra repositáře.
Přidejte tento repositář do Vašeho seznamu: deb http://ubuntu.beryl-project.org/ feisty main
- Přidejte GPG klíč pro repositář a aktualizujte seznam balíků:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add - gksudo apt-get update
- Vytvořte kopii souboru xorg.conf a editujte jej:
cp -p /etc/X11/xorg.conf /etc/X11/xorgold.conf gksudo gedit /etc/X11/xorg.conf
V sekci "Module" se ujistěte, že jsou zde obsaženy následující řádky (pokud nejsou, přidejte je):
Load "dri" Load "vbe" Load "glx"
Ujistěte se, že na konci souboru jsou tyto řádky (v UNIXech je navíc dobrým zvykem navíc nechávat na konci textového souboru prázdný řádek):
Section "DRI" Mode 0666 EndSection
- Restartujteujte Xka. (Restartování X.org možná někdy nemusí stačit. Pokud se systém chová divně, raději jej restartujte úplně, ale pamatujte, tohle nejsou Windows, neresetuje se kvůli každé drobné změně.)
- Nainstalujte Beryl:
gksudo apt-get install beryl beryl-manager beryl-manager --no-force-window-manager
Tímto se Beryl pouze spustí ale neaktivuje.
- Změňte nastavení aby bylo použito AIGLX:
Klikněte pravým tlačítkem myši na červený krystal blízko hodin --> Advanced Beryl Options Window Manager: Metacity(GNOME) Rendering Path: copy Advanced --> Change Rendering Platform: AIGLX.
- Klikněte pravým tlačítkem myši na krystal --> Select Window Manager: Beryl
Pokud vše funguje a můžete rotovat kostkou apod., tak změňte rendering path zpět na automatic.
Pokud se vyskytne problém, restartujte počítač kompletně a opět spusťte Beryl:
beryl-manager --no-force-window-manager
- Spuštění Berylu po startu:
Systém --> Volby --> Sezení Nový: beryl-manager
Odinstalování Berylu (open source instalace)
- Pokud instalační metoda s použitím open source modulů nevedla k cíli proveďte návrat k výchozímu nastavení následováním těchto kroků:
Zajděte do:
Systém --> Volby --> Sezení
a zase Beryl zrušte.
- Použití:
rm ~/.config/autostart/beryl-manager.desktop
přinese stejný efekt
Tím dojde k odebrání Berylu z položek po spuštění . Nyní zkopírujte původní xorg.conf soubor zpět.
gksudo cp -p /etc/X11/xorgold.conf /etc/X11/xorg.conf
- Spusťte souborový manažer Nautilus, dejte zobrazit skryté soubory a ve svém domovském adresáři smažte adresáře .beryl a .emerald a soubor .beryl-managerrc.
Nebo spusťte:
rm -r ~/.beryl rm -r ~/.emerald rm ~/.beryl-managerrc
- Restartujte Xserver.
Pokud Beryl nechcete vůbec používat, odeberte repositář a pak spusťte:
gksudo apt-get remove beryl beryl-manager emerald-themes gksudo apt-get autoremove
Instalace Berylu použitím proprietárních FGLRX driverů od ATI
- Pro více informací jděte na diskusi na ubuntuforums
- Toto bylo testováno pouze na 32-bit verzi.
- ATI fglrx driver nebude podporovat vlastnosti, které Compiz v Ubuntu má. Nainstalujte Xgl aby Vám nová verze Berylu spolupracovala s Vaší kartou ATI:
gksudo apt-get install xserver-xgl
- Pro vytvoření skriptu spouštějícího Xgl spusťte:
gksudo gedit /usr/local/bin/startxgl.sh
Vložte tam tento text:
#!/bin/sh Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer & DISPLAY=:1 exec dbus-launch --exit-with-session gnome-session
Pokud Vám chybí tlačítko pro vypnutí a restart, vložte tam namísto předchozího textu tento:
#!/bin/sh Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer & DISPLAY=:1 cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)" xauth -i add :1 . "$cookie" exec dbus-launch --exit-with-session gnome-session
- Takto se stane sript spustitelným:
gksudo chmod a+x /usr/local/bin/startxgl.sh
- Takto se přidá položka Xgl do výběru sezení v GDM:
gksudo gedit /usr/share/xsessions/xgl.desktop
Vložte do soboru tento text:
[Desktop Entry] Encoding=UTF-8 Name=GNOME with XGL Comment= Exec=/usr/local/bin/startxgl.sh Icon= Type=Application
- Opět uděláme skript spustitelný:
gksudo chmod a+x /usr/share/xsessions/xgl.desktop
- Dočasně vypněte repositář universe:
Systém --> Správa --> Zdroje softwaru Odškrtněte položku "Otevřený software udržovaný komunitou (universe)".
- Přidejte správný klíč repositáře:
gksudo wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
- Přečtěte si #Jak přidat extra repositáře.
Přidejte toto do Vašeho seznamu repozitářů (nebo to udělejte ručně pomocí geditu): deb http://ubuntu.beryl-project.org/ feisty main
- Aktualizujte seznam balíků:
gksudo apt-get update
- Nainstalujte Beryl:
gksudo apt-get install beryl
- Nainstalujte ovladače ATI drivers (pokud je potřeba):
Systém --> Správa --> Správce nesvobodných ovladačů Povolte: ATI graphics card
Odhlašte se z GNOME
- V GDM si vyberte sezení Xgl, pak spusťte Beryl:
Klikněte pravým tlačítkem myši na červený krystal poblíž hodin --> Select Window Manager: Beryl Select Window Decorator: Standard Beryl Decorator (Emerald) Reload Window Decorator Reload Window Manager
- Pokud dostanete hlášku, že beryl-xgl chybí, stáhněte balík beryl-core (případně jej najdete ve /var/cache/apt/archives):
wget http://ubuntu.beryl-project.org/pool/feisty/main/0.2.0/beryl-core_0.2.0~0beryl1_i386.deb
Rozbalte beryl-xgl (? na to musím ještě mrknout) do ~/Desktop (jde to třeba v Midnight Commanderovi - mc) a zkopírujte do správného adresáře:
gksudo cp ~/Desktop/beryl-xgl /usr/bin/beryl-xgl
- Pokud máte problém s více uživateli v Xgl, koukněte na tohle vlákno.
- Přidejte Beryl a Emerald do programů po spuštění:
Systém --> Volby --> Sezení Nový --> Jméno: Beryl Příkaz: beryl-manager Nový --> Jméno: Emerald Theme Příkaz: emerald --replace
- Znovu zapněte repositář universe, ale ujistěte se, že se nic co má vztah k Berylu neaktualizuje.
Jak nainstalovat Beryl (Nvidia)
- Úvod do Berylu můžete hledat třeba na Beryl (Wikipedia)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si Postup pro instalaci Berylu a ovladačů Nvidia
- Přečtěte si Jak spravit problém s pracovními plochami v Berylu ve Feisty Fawn
- Zazálohujte xorg.conf:
gksudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
- Nainstalujte ovladač Nvidia pro grafickou kartu:
Systém --> Správa --> Restricted Driver Manager Enable: Nvidia Drivers
Restartujte Xserver a ujistěte se, že ovladače Nvidia pracují správně.
- Nainstalujte Beryl:
gksudo apt-get install beryl emerald-themes beryl-manager
- Spusťte Beryl:
beryl-manager
- Spusťte Emerald (pokud sám nenaběhne):
emerald --replace
- Spuštění Beryly a Emeraldu po startu:
Systém --> Volby --> Sezení Nový: beryl-manager Nový: emerald --replace
- Zkuste se odhlásit a znovu přihlásit jestli je vše jak má.
- Pokud se menu programu nezobrazují ve správné vrstvě (pod otevřenými okny):
Klikněte pravým tlačítkem myši na ikonu Beryl manageru (červený krystal u hodin) --> Reload Window Manager
Problém by měl být napraven.
- Pokud Vaše okna nemají okraje a horní proužek s tlačítky (minimalizovat, maximalizovat a zavřít), editujte /etc/X11/xorg.conf:
gksudo gedit /etc/X11/xorg.conf
Najděte Section "Device" a vložte do ní následující řádek:
Option "AddARGBGLXVisuals" "True"
V Section "Screen" najděte řádek DefaultDepth a nastavte tam hodnotu na 24:
DefaultDepth 24
(Více detailů najdete na této stránce .)
- Pokud používáte karty NVIDIA GeForceGo možné budete potřebovat přidat do Setion "Device" v /etc/X11/xorg.conf řádek:
Option "DisableGLXRootClipping" "True"
- Pokud to stále nepomáhá Klikněte pravým tlačítkem myši na ikonu Beryl manageru (červený krystal u hodin) -->
Advanced Beryl options --> Rendering platform --> Force AIGLX
Co dělat když přehrávače videa padají během používání Berylu
- Přečtěte si bug 96226
- Bude potřeba změnit video výstup z xv na x11 v ~/.mplayer/config a gstreamer-properties.
Jak opravit černá okna během přehrávání videa
- Existuje dočasné řešení spočívající ve změně video výstupu.
- Pro přehrávače běžící na platformě gstreamer (Totem, atd.):
gstreamer-properties Video --> Výchozí výstup --> Zásuvný modul: X Window Systém (bez Xv)
Klikněte na "Test" abyste ověřili, že přehrávání videa funguje (měli byste vidět standardní testovací TV barevné proužky).
- Pro VLC player (pokud je nainstalován):
VLC --> Nastavení --> Nastavení Video --> Output modules --> Pokročilá nastavení (zaškrtnout) --> Video output module --> X11 video výstup
- Pro MPlayer (pokud je nainstalován):
Mplayer --> Klikněte pravým tlačítkem myši na obrazovku --> Preferences Video --> Available Drivers: X11 (XImage/Shm)
Na některých grafických kartách nejde video přehrát na celé obrazovce (mně to dělá intel GMA950, pozn překl.).
- Pro Xine player (pokud je nainstalován):
Xine --> File --> Configure --> Preferences experience_level: Master Of The Known Universe Video --> Driver: xshm
- Pro RealPlayer (pokud je nainstalován):
RealPlayer --> Tools --> Preferences Hardware --> Deselect: Use XVideo
- Více informací hledejte na: Problémy při přehrávání videa (černá) po instalaci Berylu nebo Compizu/23.2.2007 a Re: Filmy bez modrého pozadí/3.5.2007
Jak vylepšit sub-pixel font rendering ve Feisty Fawn
- Tímto dojde ke zlepšení vzhledu fontu.
- Opatchované knihovny jsou zkompilovány proti knihovnám Freetype 2.3.x (v současné době nejsou ve Feisty Fawn) a obsahují patche pro subpixel rendering od Davida Turnera.
- Pro i386, přečtěte #Jak přidat extra repositáře a přidejte následující do seznamu repozitářů:
deb http://www.telemail.fi/mlind/ubuntu feisty fonts deb-src http://www.telemail.fi/mlind/ubuntu feisty fonts
Přidejte klíče repositáře:
gpg --keyserver subkeys.pgp.net --recv-keys 937215FF gpg --export --armor 937215FF | sudo apt-key add -
- Pro AMD64/EMT, přečtěte #Jak přidat extra repositáře a přidejte následující do seznamu repozitářů:
deb http://ubuntu.moshen.de feisty experimental deb-src http://ubuntu.moshen.de feisty experimental
Přidejte klíče repositáře:
wget http://ubuntu.moshen.de/2F306651.gpg -O- | sudo apt-key add -
Poznámka ze dne 25.6.2007 - Repozitář nefunguje.
- Nainstalujte balíky
gksudo apt-get update gksudo apt-get install libfreetype6 libcairo2 libxft2
- Proveďte rekonfiguraci nastavení fontů. Následující nastavení fungují dobře: Nativní, Automaticky, Nepovolovat bitmapové fonty.
sudo dpkg-reconfigure fontconfig-config sudo dpkg-reconfigure fontconfig
- Po aplikování změn restartujte Xserver.
Poznámka: Pokud se později rozhodnete vrátit původní balíky zpět, musíte snížit verzi všech tří nainstalovaných balíků. Více informací hledejte zde.
Jak nainstalovat Compiz-Fusion (Znovusjednocení projektů Compiz a Beryl)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře a přidejte tento repositář:
deb http://download.tuxfamily.org/3v1deb feisty eyecandy deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
- Přidejte GPG klíč:
wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
- Aktualizujte seznamy balíků:
gksudo apt-get update gksudo apt-get -y upgrade
- Zazálohujte soubor /etc/X11/xorg.conf a editujte jej:
cp -p /etc/X11/xorg.conf /etc/X11/xorgold.conf gksudo gedit /etc/X11/xorg.conf
Do sekce "Module" přidejte tyto tři řádky (pokud tam už nejsou):
Load "dri" Load "vbe" Load "glx"
Taky zajistěte, aby na konci souboru bylo toto:
Section "DRI" Mode 0666 EndSection
Preventivně restartujte celý systém (restart Xserveru by měl stačit, ale jistota je jistota).
- Nainstalujte Compiz pro GNOME:
gksudo apt-get -y install compiz compiz-gnome compizconfig-settings-manager compiz-fusion-plugins-extra libcompizconfig-backend-gconf
nebo
- Nainstalujte Compiz pro KDE:
gksudo apt-get -y install compiz compiz-kde compizconfig-settings-manager compiz-fusion-plugins-extra libcompizconfig-backend-kconfig
- Spusťte Compiz:
compiz --replace
- Více informací: Jak nainstalovat Compiz Fusion do Ubuntu)
Jak nainstalovat Compiz (Nvidia)
Projekt Looking Glass
Toto je 3D window manager postavený na technologii Java.
- Přečtěte si Začátky s Projektem Looking Glass
- .deb balík je dostupný ke stažení (pro Debian je k disposici repositář, zkontroluju, jestli jde použít i pro Ubuntu).
Práce s archivy a balíčky
Některé programy nejsou dostupné v Ubuntu repozitářích. Mohou být dostupné jako Debian (.deb) balíčky (Ubuntu je založeno na Debianu), mohou být zabaleny v tar, gzip a gzip archivech, nebo mohou být dostupné pouze jejich zdrojové kódy.
Zacházení s archivy ".tar.gz" (Tar/GZip) a ".tar.bz" (Tar/BZip)
Pro extrakci:
sudo apt-get install unp unp -u archiv.tar.gz unp -u archiv.tar.bz2
Soubor bude rozbalen do adresáře, který ponese jméno původního spuboru bez poslední přípony.
Spuštěním programu unp bez argumentů vypíšete seznam podporovaných kompresních algoritmů. Unptedy můžete použít i na ně.
Vytvoření tar.gz archivu:
tar cvfz archiv.tar.gz adresář
Vytvoření tar.bz2 archivu (bz2 je velmi účinný komprimátor,ale zvládne zkomprimovat pouze jeden soubor, proto se soubory nejdříve zabalí do tar a pak je zkomprimuje bz2):
tar cvjf archiv.tar.bz2 adresář
Jak kompilovat program ze zdrojového souboru 1
Nejdříve nainstalujte kompilátory a potřebné hlavičkové soubory:
gksudo apt-get install build-essential gksudo apt-get install linux-headers-`uname -r`
"uname -r" vypíše verzi používaného jádra, čili v příkladu výše dojde k nainstalování hlavičkových souborů pro jádro, které používáte.
Nainstalujte nástroj na tvorbu balíků:
gksudo apt-get install checkinstall
Rozbalte archiv:
unp -u archiv.tar.gz
Zahajte tvorbu balíku:
cd /cesta/do/rozbaleného/archivu ./configure make checkinstall
Poznámka: ./ znamená, že se soubor spustí jako program.
Poznámka: Jste li majiteli dvou nebo vícejádrových chipů, můžete parametru make přidat parametr -j2 (či více podle počtu jader). Kompilace proběhne zhruba 2x rychleji, protože budou kompilovat všechna jádra.
Takhle se např. kompiluje na Amálce (nejvýkonnější Český superpočítač, běží na něm tuším Slackware Linux) s deseti tisíci procesory (nebo kolik jich má):
make -j10000
Poznámka: Pokud chcete do programu zakompilovat podporu některých věcí navíc, můžete ke ./configure přidat další parametry. Tyto zjistíte, když spustíte:
./configure --help
Nechejte si výsledný ".deb" souborpro případné další použití. Nainstalujte jej:
gksudo dpkg -i balík.deb
Poznámka: Toto jsou základní instrukce které ne vždy fungují. Některé balíky vyžadují instalaci jiných balíků knihoven i hlavičkových souborů. Čtěte pozorně výpis skriptu ./configure. Poskytuje Vám informace o chybějících balíčcích potřebných pro úspěšnou kompilaci. Jak jsem již říkal, je to až poslední možnost instalace programu a nedoporučuji Vám ji. Má svá úskalí a chci abyste byli varováni předem.
Ze začátku jsem zmiňoval "svatou trojici" "./configure, make, make install". Určitě se divíte, proč jsem přidal jeden krok navíc a místo přímé instalace zvolil tvorbu balíčku, který pak navíc musíte ještě instalovat. Určitě Vás ale napadnou některé výhody. Jako třeba ponechání si instalačního balíčku "na horší časy". Další, pro začátečníka ne moc jasnou výhodou je, že tento balíček respektuje sdresářovou strukturu Vaší distribuce a instaluje soubory tam kam má, a vy je pak můžete dohledat (zkoušeli jste otevřít nějaký .deb archiv v "mc"?) či prostě pomocí správce balíku program snadno odinstalovat. O faktu, že něco takového je u programů instalovaných pomocí "make install" podstatně obtížnější se snad zmiňovat nemusím.
Jak kompilovat program ze zdrojového souboru 2
Pokud je v adresáři, kde jste rozbalili stažený soubor se zdrojovými soubory i podadresář "debian", máte to nesrovnatelně jednodušší. Místo příkazů "./configure, make, make install" stačí použít příkaz "fakeroot debian/rules binary" a potvrdit. Pochopitelně musíte mít nainstalován balík "fakeroot". Pokud půjde vše jak má, dojde rovnou k vytvoření perfektního balíku se všemi náležitostmi (on ten checkinstall taky není úplně košer).
Utility
Jak zacházet se soubory rar
sudo apt-get install unrar sudo apt-get install rar
(Je to shareware, který si musíte do 40ti dní zaregistrovat.)
Jak nainstalovat kalkulátor IP adres
Gip kalkulátor IP adres který se integruje s GNOME.
- Info hledejte v: Jednoduchý průvodce instalací GIP
Jak nainstalovat Firefox Widgets
Firefox Widgets zlepšuje vzhled komponent Firefoxu (jako tlačítka, zaškrtávátka a mnoho dalších).
- Info hledejte na: Firefox Widgets
Synchronizace času s časovými servery
- Z menu:
Systém --> Správa --> Datum a čas
- Pro jedinou synchronizaci klikněte na 'Synchronize Now'.
- Pro permanentní synchronizaci s časovým serverem:
Nastavení: Udržuj synchronizované s internetovými servery Pokud jste vyzváni, nainstalujte podporu NTP
- Manuální instalace balíku ntp:
sudo apt-get install ntp
Pokud instalujete ntp takto, nemusíte nic nastavovat jelikož synchronizace proběhne automaticky.
Jak nastavit obrázky ze serveru Flickr jako obrázky na pozadí
- Varování: Webilder je soukromá stránka a není ve spojení s Ubuntu, Flickr nebo nějakým oficiálním repositářem. Tyto instrukce Vás navedou ke stažení a instalaci soukromého programu. Použití je na vlastní riziko.
- Více informací najdete na: Stránkách Webilderu
- Edituje /etc/apt/sources.list file:
gksudo gedit /etc/apt/sources.list
- Přidejte na jeho konec tyto řádky:
deb http://debian.websterwood.com/ feisty main deb-src http://debian.websterwood.com/ feisty main
sudo apt-get update
- Pokud používáte GNOME, tak spusťte tento příkaz:
sudo apt-get install webilder webilder-gnome
- Pokud používáte KDE, tak spusťte tento příkaz:
sudo apt-get install webilder webilder-kde
- Klikněte pravým tlačítkem na panel GNOME a vyberte "Přidat na panel"
- Pod "Utility" dole vyberte "Webilder Webshots Applet" a klikněte na "Přidat"
- Nyní byste na panelu měli vidět malý fotoaparát
- Klikněte na něj pravým tlačítkem a vyberte Nastavení.
Officiální stránky: http://www.flickr.com/
Obrázkový průvodce vlastnostmi instalačního procesu
Zásuvné moduly pro webový prohlížeč
Jak nainstalovat Java J2SE Runtime Environment (JRE) s modulem pro Mozilla Firefox
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Nainstalujte using command line:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
- Poznámka: moduly sun-java6 a sunjava6-plugin jsou také automaticky nainstalovány jako součást meta-balíku ubuntu-restricted-extras. Tím dojde taky k nainstalování Adobe Flashplayeru, msttcorefonts (fonty od Microsoftu), a taky některých multimediálních kodeků.
- Není k disposici žádný plugin pro amd64. Je potřeba 32-bit firefox. Ubuntuforums poskytuje speciální skripty pro konfiguraci některých 32-bit aplikací pro amd64.
- Jako alternativu pro amd64 lze použít blackdown Java. Ale je chybová a ne všechny aplikace v ní fungují. Je to taky uzavřenáaplikace.
sudo apt-get install j2re1.4-mozilla-plugin
Tímto se nainstaluje blackdown Java.
Jak nainstalovat Flash Player (Macromedia Flash) plugin pro Mozilla Firefox
- Existuje svobodná open source náhrada Flashe s názvem GNASH (viz níže). Ta může být použita namísto Flashe.
Instalace pomocí Synaptica nebo apt-get
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Poznámka: flashplugin-nonfree je také automaticky nainstalován jako součást meta-balíku ubuntu-restricted-extras. Tím dojde nejen k nainstalování Adobe Flashplayeru, msttcorefonts (fonty od Microsoftu), a taky některých multimediálních kodeků.
Systém --> Správa --> Správce balíků Synaptic --> Hledat --> flashplugin-nonfree --> Označit pro instalaci
nebo z terminálu:
sudo apt-get install flashplugin-nonfree
Instalace z Firefoxu (metoda 2)
- Navštivte: Adobe.com: Test verze Adobe Flash Playeru. Následujte kroky pro instalaci.
Instalace z tar.gz (metoda 3)
- Navštivte: [1]
Uložte .tar.gz.
tar -xvzf install_flash_player_9_linux.tar.gz sudo mv install_flash_player_9_linux/libflashplayer.so /usr/lib/firefox/plugins/ sudo mv install_flash_player_9_linux/flashplayer.xpt /usr/lib/firefox/plugins/ rm install_flash_player_9_linux.tar.gz rm -rf install_flash_player_9_linux
- Jsou případy, kdy plugin sídlí v /usr/lib/flashplugin-nonfree/. V tom případě ověřte, že tu je symbolický odkaz ukazující do /usr/lib/flashplugin-nonfree/ namísto /usr/lib/firefox/plugins :
cd /usr/lib/firefox/plugins/ ls -las flashplayer.xpt --> ../../flashplugin-nonfree/flashplayer.xpt libflashplayer.so --> ../../flashplugin-nonfree/libflashplayer.so
Zkopírujte libflashplayer.so a flashplayer.xpt do /usr/lib/flashplugin-nonfree/ :
sudo cp install_flash_player_9_linux/libflashplayer.so /usr/lib/flashplugin-nonfree/ sudo cp install_flash_player_9_linux/flashplayer.xpt /usr/lib/flashplugin-nonfree/
- Pokud Vám nejde ve Flashi zvuk, (např na YouTube), editujte konfigurační soubor:
sudo apt-get install alsa-oss gksudo gedit /etc/firefox/firefoxrc
Změňte:
FIREFOX_DSP=""
na:
FIREFOX_DSP="aoss"
Restartujte Firefox.
Poznámka: Tato metoda nefunguje pro amd64, protože zde není 64-bit plugin do Firefoxu. Je potřeba 32-bit Firefox. Ubuntuforums poskytuje speciální skripty pro konfiguraci některých 32-bit aplikací na amd64.
Pokud ani to nepomůže, zkuste PulseAudio:
Jak nastavit zvukový server PulseAudio
Zdá se, že PulseAudio je lepší řešení a s jeho použitím může Firefox sdílet zvuk s jinými aplikacemi najednou.
GNASH open source alternativa
- Gnash is an open source alternative for the Flash player. It does not yet play all videos. More information here.
- Nainstalujte Gnash:
sudo apt-get install mozilla-plugin-gnash
- Uživatelé 64-bit PC pozor - toto je leší řešení než instalace 32-bit pluginů do Firefoxu. Na většinu jednoduchých Flash funkcí (jiných než např. YouTube a Google Videos), můžete ve svém prohlížeč použít tuto GPL verzi Flashplayeru.
Bohužel, Gnash nepřehraje např. YouTube a Google Videos. Pro tyto můžete zkusit povolit (v nastavení Firefoxu) externí přehrávač jako třba VLC (viz níže).
Jak nainstalovat Flash Player (Macromedia Flash) plugin for (64-bit) Mozilla Firefox (pouze)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Odinstalujte všechny pluginy (jako Gnash) pro Firefox které jste nainstalovali.
- Nainstalujte moduly kompatibility:
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2
Stáhněte poslední verzi .rpm souborů po plugin a prohlížeč:
wget http://gwenole.beauchesne.info/projects/nspluginwrapper/files/nspluginwrapper-0.9.91.2-1.x86_64.rpm wget http://gwenole.beauchesne.info/projects/nspluginwrapper/files/nspluginwrapper-i386-0.9.91.2-1.x86_64.rpm
Ninstalujte alien a unrar:
sudo apt-get install alien unrar
Proveďte konverzi pomocí alien:
sudo alien nspluginwrapper-0.9.91.2-1.x86_64.rpm sudo alien nspluginwrapper-i386-0.9.91.2-1.x86_64.rpm
Nainstalujte balíky:
sudo dpkg -i nspluginwrapper-0.9.91.2-1.x86_64.deb sudo dpkg -i nspluginwrapper-i386-0.9.91.2-1.x86_64.deb
(Názvy souborůse mohou mírně lišit)
Stáhněte FlashPlayer ze stránek Adobe a rozbalte:
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz tar xf install_flash_player_9_linux.tar.gz
Jděte do adresáře vytvořeném rozbalením a zkopírujte dva soubory “libflashplayer.so” a “flashplayer.xpt” do /usr/lib/mozilla-firefox/plugins:
sudo cp libflashplayer.so /usr/lib/mozilla-firefox/plugins sudo cp flashplayer.xpt /usr/lib/mozilla-firefox/plugins
Spusťte nspluginwrapper:
nspluginwrapper -i /usr/lib/mozilla-firefox/plugins/libflashplayer.so sudo cp ~/.mozilla/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla-firefox/plugins/
Načtěte moduly jako automatickou spužbu:
Systém --> Volby --> Sezení --> Nový Jméno: Nspluginwrapper Příkaz: nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
Jak nainstalovat Adobe PDF Reader s modulem pro Mozilla Firefox
Jak blokovat reklamu a Java/Javascripty ve Firefoxu
- Firefox má mnoho rožšíření a různých modulů. Přístup k nim:
Mozilla Firefox --> Nástroje --> Správce doplňků --> Získat rozšíření
Tak se dostanete na stránku Mozilly s různými moduly a rozšířenéími. Two of the most popular extensions provide significant added security and browsing pleasure.
- NoScript blokuje všechny Java a Javascripty dokud je pro konkrétní stránku nepovolíte. Můžete je povolit dočasně nebo permanentně. Můžete povolit některé nebo všechny skripty na stránce apod. Ačkoliv je toto lepší metoda nez úplné zakázání Javy a skriptů, nejsem si jist, jestli se Vám chce pro každou stránku zjišťovat který skript povolit apod.
- AdBlock Plus má zabudovaný seznam pro blokování reklamy. Taky můžete reklamu do blokovaných přidat. AdBlock Plus najdete v sekci Populární rozšíření. Klikněte na něj, a pak nainstalujte.
Streamování ve Firefoxu
- Přečtěte si Media Player Connectivity plugin pro FireFox.
- Nainstalujte from extensions/plugins website for Firefox:
Mozilla Firefox --> Nástroje --> Správce doplňků --> Získat rozšíření
Kodeky multimédií a rozšíření prohlížečů
Jak nainstalovat kodeky multimédií
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- "ubuntu-restricted-extras" je meta-balík, který nainstaluje: flashplugin-nonfree, gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-ugly-multiverse, msttcorefonts, sun-java6-jre a sun-java6-plugin. Tyto balíky jsou proprietární, čili jejich užívání je omezeno jejich tvůrci (Adobe, Sun, Microsoft, etc.). Pokud je instalujete, přijímáte licenční ujednání pro každý z nich:
sudo apt-get install ubuntu-restricted-extras
- W32codecs je balík různých proprietárních kodeků (např. WMV). Jeho instalací souhlasíte s licenčními podmínkami Microsoftu.
- Repozitáře třetích stran, jako např. Medibuntu, musí být povoleny jako zdroj software. Přečtěte si přidáání zdrojů softwaru pomocí menu pro povolení Medibuntu. (Poznámka: Medibuntu není spojen s Ubuntu. Použití je na vlastní riziko.)
sudo apt-get install w32codecs
- Taky můžete potřebovat další moduly:
sudo apt-get install libxine-extracodecs gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-pitfdll
- Přečtěte si #Jak restartovat GNOME bez restartu počítače
Poznámka: Zdáse, že kodeky WMV9 na amd64 v současné době pracují pouze ve VLC, poslední verzi Mplayera (>= Verze 1.0rc1), a Xine.
Jak nainstalovat podporu přehrávání DVD
Poznámka: Gstreamer dvd plugin je dostupný jako součást gstreamer0.8-plugins ale může mít několik chyb. Totem ale může spolupracovat také s xine jako backendem (namísto gstreameru) při přehrávání DVD. Tato metoda využívá xine s Totemem.
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Nainstalujte dvd moduly:
sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/install-css.sh
- Nainstalujte xine backend pro Totem (pokud Totem používáte):
sudo apt-get install totem-xine
- Dokončete instalaci modulů:
sudo apt-get install libdvdcss2
Jak nainstalovat MIDI sound server (Timidity++)
Timidity umožňuje přehrávání MIDI těmi, kdo mají MIDI hardware nebo zpracování MIDI zabudované do zvukové karty (většina uživatelů) zkrze softwarový syntetizér.
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Timidity můžete nainstalovat v Synpaticovi bez dalších kroků.
- Volitelně můžete instalovat z příkazové řádky:
sudo apt-get install timidity
- Nastavte Timidity aby používal ALSA jako výchozí (tedy za předpokladu že ALSA používáte):
gksudo gedit /etc/default/timidity
Odkomentujte následující řádek (odstraňte znak "#"):
#TIM_ALSASEQ=true
- Nastavte požadované moduly pro načtení při startu:
gksudo gedit /etc/modules
Přidejte tyto moduly na konec řádku:
snd-seq-device snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seq
- Restartujteujte (nebo zkuste postupně "sudo modprobe modul" kde za "modul" postupně dosadíte moduly vypsané výše").
Jak nainstalovat multimedia pluginy for Firefox
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Vyberte plugin který odpovídá Vašemu oblíbenému přehrávači. Pokud máte nainstalováo více pluginů, můžete si ten žádaný vybrat v menu:
Firefox --> Úpravy --> Předvolby --> Obsah --> Typy souborů: Spravovat...
Totem plugin (GNOME)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
- Přečtěte si #Jak nainstalovat podporu přehrávání DVD
sudo apt-get install totem-gstreamer-firefox-plugin
- Restartujteovat Mozilla Firefox
Kaffeine plugin (KDE)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
- Přečtěte si #Jak nainstalovat podporu přehrávání DVD
sudo apt-get install kaffeine-mozilla
- Restartujteovat Mozilla Firefox
MPlayer plugin (nainstaluje taktéž přehrávač multimédií MPlayer)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si also:#Jak nainstalovat přehrávač multimédií (MPlayer)
sudo apt-get install mozilla-mplayer
- Restartujte Mozilla Firefox
VLC plugin (nainstaluje taktéž přehrávač multimédií VLC)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Také si přečtěte #Jak nainstalovat přehrávač multimédií (VLC)
sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc
- Abyste mohli streamovat video pomocí vlc, musíte také nainstalovat následující balíky.
sudo apt-get install avahi-daemon sudo apt-get install avahi-utils
Helix plugin (přehrává soubory Realplayer)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Také si přečtěte #Jak nainstalovat Helix Multimedia Player
sudo apt-get install mozilla-helix-player helix-player
Přehrávače multimédií
Jak nainstalovat Elisa Multimedia Player
Fluendova Elisa je svobodné mediální centrum které může přehrát DVD, video soubory, hudbu a obrázky. Jelikož je navržena pro rozširitelnost, má potenciál zvládat mnovem víc. Zatím nemá funkce pro přehrávání a nahrávání televizních signálů.
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Průvodce instalací Elisa krok za krokem
Jak nainstalovat server na přehrávání multimédií MPD
MPD je server pro přehrávání audia. Funguje jako digitální jukebox umožňující správu playlistů přez síť. Počítač s běžícím MPD potřebuje být připojen k zesilovači protože audio nestreamuje ale pouze přehrává. Nicméně může být nastaven na streamování s použitím Icecast a JACK. Více informací na: Music Player Daemon (MPD)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Nainstalujte MPD:
sudo apt-get install mpd
- Vytvořte link na Vaši audio kolekci (MP3 apod):
sudo ln -s /path/to/your/music /var/lib/mpd/music/collection
- Restartujte MPD
sudo /etc/init.d/mpd restart
- Editujte nastavení:
sudo gedit /etc/mpd.conf
- Nainstalujte GNOME client (other desktop clients are available -- see wiki).
sudo apt-get install gmpc
- Update/Install gmpc:
sudo apt-get install gmpc
- Nastavte GMPC:
Aplikace --> Zvuk a video --> GNOME Music Player Client Options --> set Host, Port and connection options -->
Výchozí nastavení připojí MPD běžící na "localhost". Pokud to bude třeba, nastavte volbu "Autoconnect". Výchozí MPD port 6600, ujistěte se, že tento port neblokujete firewallem.
- Použití GMPC:
Playlist --> Expand the "Browse Filesystem" tree, right-click on your audio collection and click "Update". This will cause the MPD server to reindex your audio files. No files are changed during this process. When completed, navigate through your audio via the "Browse Filesystem" tree. Right-click on folders and tracks to add them to playlist, or manage existing playlist.
Jak nainstalovat přehrávač multimédií Xine-ui
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
- Přečtěte si #Jak nainstalovat podporu přehrávání DVD
- Přečtěte si Jak nainstalovat xine Multimedia Player
sudo apt-get install xine-ui sudo apt-get install libxine-extracodecs
- Spusťte z menu:
Aplikace --> Zvuk a video --> xine
Jak nainstalovat přehrávač multimédií MPlayer
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
- Přečtěte si #Jak nainstalovat podporu přehrávání DVD
- Přečtěte si Instalace Mplayera s kodeky multimédií (libdvdcss2, w32codecs) v Ubuntu Feisty Fawn
sudo apt-get install mplayer libxine-extracodecs w32codecs
- Instalace MPlayer pluginu pro Firefox:
sudo apt-get install mozilla-mplayer
- Spusťte z menu:
Aplikace --> Zvuk a video --> MPlayer
Frontend MPlayeru (SMPlayer)
- SMPlayer je frontend (čili program, kreý se stará o grafické pristředí a přehrávání nechá na backendu, v tomto případě mplayertu). Viz SMPlayer.
Jak nainstalovat přehrávač multimédií VLC
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo apt-get install vlc vlc-plugin-*
- Abyste mohli streamovat video pomocí vlc, musíte také nainstalovat následující balíky.
sudo apt-get install avahi-daemon sudo apt-get install avahi-utils
- VLC plugin pro Firefox můžete taky nainstalovat takhle:
sudo apt-get install mozilla-plugin-vlc
- Aplikace --> Zvuk a video --> VLC media player
Jak nainstalovat přehrávač multimédií XMMS
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
sudo apt-get install xmms xmms-skins xmms-wma
- Aplikace --> Zvuk a video --> XMMS
Jak nainstalovat přehrávač multimédií Songbird
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat kodeky multimédií
- Z Psychocats.net si stáhněte tento skript:
http://www.psychocats.net/ubuntu/installsongbird.sh
wget http://www.psychocats.net/ubuntu/installsongbird.sh
sh installsongbird.sh
Spustit:
Aplikace --> Zvuk a video --> Songbird
Jak odinstalovat přehrávač multimédií Songbird
- Z Psychocats.net si stáhněte tento skript:
http://www.psychocats.net/ubuntu/removesongbird.sh
- Odstraňte program pomocí skriptu:
wget http://www.psychocats.net/ubuntu/removesongbird.sh sh removesongbird.sh
Jak nainstalovat přehrávač multimédií amaroK
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
sudo apt-get install amarok
- Spusťte z menu:
Aplikace --> Zvuk a video --> amaroK
Poznámka: Pokud si amaroK stěžuje na "dcopserver" program not running, následujte tento tip z http://www.ubuntuforums.org/showthread.php?t=107269&highlight=dcopserver
sudo chown -R `whoami`:`whoami` ~/.*
Jak odinstalovat amaroK
sudo apt-get remove amarok
Jak nainstalovat správce a přehrávač multimédií Banshee
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
sudo apt-get install banshee
Jak odinstalovat Banshee
sudo apt-get remove banshee
Jak nainstalovat správce hudby a přehrávač Listen
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
sudo apt-get install listen
Jak odinstalovat Listen
sudo apt-get remove listen
Jak nainstalovat správce hudby a přehrávač Exaile!
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat kodeky multimédií
sudo apt-get install exaile
Jak odinstalovat Exaile!
sudo apt-get remove exaile
Jak nainstalovat přehrávač multimédií RealPlayer 10 (RealPlayer)
Linux Realplayer je založen na open source programu Helix player. Helix samotný může být nainstalován jako balík stejně jako ostatní balíky a použit namísto Realplayeru. Ale neumí zacházet se streamy a další věci. Tyto instrukce jsou pouze pro proprietární verzi Realplayeru.
Instalujte ze stránek real
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Spusťte instalátor:
sudo sh RealPlayer10GOLD.bin
Instalace z připraveného balíku .deb
Teto instalace používá deb soubor vytvořený jako součást projektu debian-multimedia (děkujeme Christianu Marillatovi).
Spusťte terminál a zadejte:
sudo apt-get install libstdc++5 wget -c http://www.debian-multimedia.org/pool/main/r/realplay/realplayer_10.0.8-0.1_i386.deb sudo dpkg -i realplayer_10.0.8-0.1_i386.deb
Jak nainstalovat přehrávač multimédií Helix
Helix je open source balík, který přehrává soubory Realplayeru. Realplayer je na něm ve skutečnosti postaven.
- Poznámka: Zatím nejsou podporovány 64-bit procesory.
sudo apt-get install helix-player mozilla-helix-player
Jak nainstalovat Stream Directory Browser (streamtuner)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo apt-get install streamtuner streamripper
- Aplikace --> Zvuk a video --> streamtuner
Jak odinstalovat Stream Directory Browser (streamtuner)
sudo apt-get remove streamtuner streamripper
Jak nainstalovat Internet TV (Democracy TV / Miro)
Democracy TV byla přejmenována na Miro. Tento source přehrávač Vám umoží přehrát přes 2000 kanálů včetně podcastů, RSS, YouTube, a video blogů.
- Přečtěte si #Firewall. Potřebujete mít povoleny porty pro Bittorent. Toto můžete udělat v GUI pro firewall Firestarter. Po instalaci Miro používá porty 8400-8500. V sekci nastavení si můžete vybrat jiné. Pokud máte router, ujistěte se, že jsou tyto porty povolené i na něm.
- Starší verze je v repositářích Ubuntu:
- Nainstalujte Democracy Player
sudo apt-get install democracyplayer
- Nainstalujte extra kodeky (pokud je třeba):
sudo apt-get install libxine-extracodecs
- Spusťte:
Aplikace --> Zvuk a video --> Democracy TV
- Nejnovější verzi Miro získáte podle těchto instrukcí:
- Přečtěte si #Jak přidat extra repositáře. Přidejte toto do Vašeho seznamu repozitářů (nebopřímo do /etc/apt/sources.list pomocí geditu). (It is an Ubuntu-affiliated repository.):
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu feisty/
- Znovu načtěte zdroje pokud používáte Synaptic nebo z příkazové řádky:
gksudo apt-get update
- Najděte a nainstalujte balík miro buď v Synapticu nebo z příkazové řádky:
gksudo apt-get install miro
Internetové nástroje
Jak nainstalovat P2P BitTorrent klienta (Azureus)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si Průvodce nastavením klienta azureus s obrázky
- Nainstalujte:
sudo apt-get install azureus
- Spusťte:
Aplikace --> Internet --> Azureus
Jak nainstalovat P2P BitTorrent klienta (Deluge)
- Přečtěte si #Základní poznámky
- Stáhněte a nainstalujte (i386)
wget http://download.deluge-torrent.org/ubuntu/feisty/0.5.3/deluge-torrent_0.5.3-1_i386.deb && \ sudo apt-get install libboost-date-time1.33.1 libboost-filesystem1.33.1 libboost-thread1.33.1 && \ sudo dpkg -i deluge-torrent_0.5.3-1_i386.deb && \ rm deluge-torrent_0.5.3-1_i386.deb
- Stáhněte a nainstalujte (amd64)
wget http://download.deluge-torrent.org/ubuntu/feisty/0.5.3/deluge-torrent_0.5.3-1_amd64.deb && \ sudo dpkg -i deluge-torrent_0.5.3-1_amd64.deb && \ rm deluge-torrent_0.5.3-1_amd64.deb
- Stáhněte Deluge Pluginy (Volitelné)
- Spusťte program: Aplikace --> Internet --> Deluge BitTorrent Client
Jak používat µTorrent pod WINE
sudo apt-get install wine wget http://download.utorrent.com/1.6.1/uTorrent-1.6.1-install.exe wine uTorrent-1.6.1-install.exe
Jak nainstalovat P2P BitTorrent klient (KTorrent)
sudo apt-get install ktorrent
Toto je KDE aplikace, ale může běžet i v GNOME a Xfce. Je v hlavním repositáři a tak je plně udržován týmem Ubuntu.
Jak nainstalovat Pidgin 2.1.1 Instant Messenger
Toto je nástupceprogramu GAIM. Můžete si vybrat i jiné programy z menu Aplikace --> Přidat/Odstranit... (doporučeno).
- Nainstalujte tcl a tk:
sudo aptitude install tk8.4 tcl8.4
- Nainstalujte balík Pidginu:
wget http://download.ubuntu.pl/_Feisty_Fawn/pidgin/2.1.1/pidgin_2.1.1-1_i386.deb sudo dpkg -i pidgin_2.1.1-1_i386.deb
Jak nastavit Google Talk pro Pidgin
Jak nainstalovat Ninan (NZB usenet klient)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Ujistěte se, že je Java nainstalována #Jak nainstalovat Java J2SE Runtime Environment (JRE) s modulem pro Mozilla Firefox
- Nastavte exportní cestu pro Java:
whereis java
Dostanete něco takového:
java: /usr/bin/java /etc/java /usr/X11R6/bin/java /usr/bin/X11/java /usr/share/java /usr/share/man/man1/java.1.gz
Vložte tuto cestu do terminálu:
export JAVA_HOME=/usr/bin/java
- Stáhněte a rozbalte Ninan:
wget http://easynews.dl.sourceforge.net/sourceforge/ninan/ninan-1.1.0.tar.gz gunzip ninan-1.1.0.tar.gz tar -xvf ninan-1.1.0.tar
- Přesuňte jej tam, kde jej chcete mít nainstalován např. /usr/local/bin/ninan/
sudo mv ninan-1.1.0 /usr/local/bin/ninan
- Zajistěte aby byl ninan.sh spustitelný
cd /usr/local/bin/ninan chmod 755 ninancore.sh
- Spusťte Ninan na pozadí:
nohup ./ninancore.sh &
- Nyní k němu můžete přistupovat přez odkaz: http://127.0.0.1:9090/ninan/ s jménem: admin a heslem:password
- Pokud chcete aby ninan startoval automaticky:
gksudo gedit /usr/local/bin/ninan/ninancore.sh
Přidejte (a nahraďte vlastní cestou):
cd /usr/local/bin/ninan
Vpravo mezi "fi" a "touch restart":
fi cd /usr/local/bin/ninan touch restart
Potom přidejte ninan do programů po spuštění:
Jděte na Systém --> Volby --> Sezení Klikněte na tlačítko "Nový" Napište "Ninan" (bez uvozovek) do jména Napište (zase upravte cestu podle sebe) "nohup /usr/local/bin/ninan/ninancore.sh --> /usr/local/bin/ninan/nohup.out &" (bez uvozovek) do položky Příkaz Klikněte na OK
Nyní by měl Ninan startovat po bootu.
Grafika
Blender 3-D modelovací program
Blender je špičkový open source 3-D modelovací program.
Pro normální (Linux32) uživatele
sudo apt-get install blender yafray
Pro uživatele 64-bit systému
- Download and extract:
wget http://download.blender.org/release/Blender2.44/blender-2.44-linux-glibc236-py25-x86_64.tar.bz2 tar -xvjf blender-2.44-linux-glibc236-py25-x86_64.tar.bz2
- Zkopírujte do odpovídajících adresářů a přidejte do menu:
sudo cp blender /usr/bin/blender gksudo gedit /usr/share/applications/blender.desktop
Do nového souboru vložte následující:
[Desktop Entry] Name=Blender Comment=Blender Exec=blender Terminal=false Type=Application Categories=Graphics;3DGraphics;RasterGraphics;GTK;
- Spusťte:
Aplikace --> Grafika --> Blender
Jak nainstalovat vektorový ilustrátor Inkscape
Inkscape je graficky open source program podobný Adobe Illustratoru.
- Nainstalujte:
sudo apt-get install inkscape
- Spusťte:
Aplikace --> Grafika --> Vektorový editor Inkscape
Systémy pro vytváření a správu webového obsahu
Systém pro vytváření a správu webového obsahu Drupal
Drupal je vedoucí open source systém pro vytváření a správu webového obsahu. Dovoluje tvorbu profesionálních webů a nabízí moduly se širokým spektrem funkcí jako např. blogy, online nakupování a téměř jakoukoliv myslitelnou funkci pro tworbu webu. Více informací najdete na webu Drupalu.
- Nainstalujte balík drupal-5.1 pomocí Synaptica nebo z příkazové řádky:
sudo apt-get install drupal-5.1
- Nastavte pro Drupal MySQL databázi Drupal
- Pokud je to poprvé kdy používáte MySQL, výchozí globální heslo superuživatel nebude mít heslo. Měli byste jej teď nastavit. Instrukce pro nastavení práv MySQL najdete zde.
- Ve zkratce:
mysql -u root
mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
- Dodatečně můžete nastavit dalšího globálního uživatele MySQL (např. mysql_user) následováním těchto instrukcí. Takto si rezervujete roota pouze pro nouzová řešení.
- Ve zkratce:
mysql -u root mysql> CREATE USER 'mysql_user'@'localhost' IDENTIFIED BY 'mysql_user_passwd'; mysql> quit
Nyní musíte pro použití Drupalem vytvořit databázi MySQL. Toto je administrativní příkaz MySQL, takže musíte použít jednoho z Vašich globálních uživatelů (buď root nebo mysql_user, jak byl vytvořen v příkladě výše). Vaší databázi pro Drupal můžete dát i jiné jméno než drupdatabase.
mysqladmin -u root -p CREATE drupdatabase
nebo
mysqladmin -u mysql_user -p CREATE drupdatabase
Vytvořte pro databázi Drupal uživatele. Jako vždy, použijte uživatele root pro nouzové případy. I use the same password for root as I do elsewhere on my system. Then I also create a user named drup_user (but you could also create a user named mysql_user, to keep everything consistent). [I use a unique user here because this is a publicly displayed system, after all, and I don't want it breached.] These users are specific to this database; they can be the same users as used elsewhere in the system or can be unique users.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupdatabase.* TO 'drup_user'@'localhost' IDENTIFIED BY 'password'; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupdatabase.* TO 'root'@'localhost' IDENTIFIED BY 'password'; (I used my usual root password here). mysql> quit mysqladmin reload
Poznámka: příkazy mysql (čili ty zadané jako mysql> prikaz) musí končit středníkem. Pokud na něj zapomenete, nic se neprovede.
- Spusťte Drupal:
http://localhost/drupal
- Instrukce pro začátečníky jsou na: Kuchařka pro Drupal.
- Nastavte pro Drupal úlohy v cronu:
- Nainstalujte GNOME plánovač úkolů pro Cron. Nainstalujte buď v Synapticu nebo z příkazové řádky:
apt-get install gnome-schedule
- Spusťte plánovač GNOME a přidejte úlohu pro Drupal:
Aplikace --> Systémové nástroje --> Naplánovat
Přidejte http://localhost/drupal/cron.php jako novou opakující se úlohu s popisem 'Drupal Cron'. Nechte položku Žádný výstup zaškrtnutou.
Hry
KDE hry
Metabalík obsahuje kolekci her založených na KDE frameworku. Je to to samé jako gnome-games pro GNOME. Instalace z terminálu:
sudo apt-get install kdegames
Tanto balík je dobře integrován v Kubuntu a je udržován bezpečnostním teamem Ubuntu. Instalace:
sudo apt-get remove kdegames sudo apt-get autoremove
Frozen Bubble 2
Frozen-Bubble je puzzle hra podobná Bust-a-Move kde střílíte bubliny na útvary bublin různých barev.
sudo apt-get install frozen-bubble
Super Nintendo emulátor (ZSNES) 1.510 pro i386/AMD64
- Přečtěte si #Základní poznámky
Podporu nebo odpovědi na dotazy hledejte prosím zde http://ubuntuforums.org/showthread.php?t=432642
echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add - sudo apt-get update
Pro amd64:
sudo apt-get install zsnes32
Pro ostatní:
sudo apt-get install zsnes
- Aplikace --> Hry --> zsnes nebo zsnes32
Playstation 1 Emulator (pSX) 1.11 for i386/AMD64
- Přečtěte si #Základní poznámky
Podporu nebo odpovědi na dotazy hledejte prosím zde http://ubuntuforums.org/showthread.php?t=394097
echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add - sudo apt-get update
Pro amd64:
sudo apt-get install psx32
Pro ostatní:
sudo apt-get install psx
- Aplikace --> Hry --> pSX or pSX32
Playstation 1 Emulator (ePSXe) 1.6.0 for i386/AMD64
Přečtěte si tento tutorial: http://www.ubuntuforums.org/showthread.php?t=95835
Office
Jak nainstalovat Clip-Art
- Jak nainstalovat Open Source clip-art pro OpenOffice.org a ostatní programy.
sudo apt-get install openclipart
Jak nainstalovat windows písma třetích stran
- Poznámka: Tyto instrukce jsou pouze pro specifické fonty. Základní fonty od Microsoftu mohou být nainstalovány jako součást balíku ubuntu-restricted-extras package. Přečtěte si návod #Jak nainstalovat kodeky multimédií pro informaci jak instalovat tento balík.
- Jak nainstalovat windows písma třetích stran (jako např. Arial,...)
sudo apt-get install gsfonts-other msttcorefonts t1-xfree86-nonfree ttf-f500 ttf-isabella sudo apt-get install ttf-larabie-deco ttf-larabie-straight ttf-larabie-uncommon ttf-staypuft ttf-summersby sudo apt-get install ttf-ubuntu-title ttf-xfree86-nonfree xfonts-artwiz xfonts-intl-european
Různé
Jak nainstalovat program rozpoznávající optické znaky (tesseract)
Tento komerční program byl otevřen (byly uvolněny jeho zdrojové soubory) v roce 2005.
- Tesseract umí přečíst pouze obrázky .tif. Neodřezává obrázky, nerozeznává více sloupců, ale může dosáhnout úspěšnosti až 97%.
- Nainstalujte tesseract-ocr buď v Synapticu nebo z příkazové řádky:
sudo apt-get install tesseract-ocr
- Spusťte tesseract z příkazové řádky:
tesseract příklad.tif výstupní_soubor
Install Zoneminder surveillance system
Zoneminder manages surveillance cameras and stores images on the hard disk. Images can be viewed using a (LAMP) server remotely. X10 devices can be triggered using built-in perl scripts. For more info see the Zoneminder website.
- Přečtěte si #Základní poznámky
- Přečtěte si #Ubuntu Feisty LAMP Server
- Detailed instructions at http://www.zoneminder.com/wiki/index.php/Ubuntu_7.04
- You must have the LAMP server installed. In addition, you will need additional modules:
sudo apt-get install ffmpeg libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl sudo apt-get install libjpeg62 libmime-perl libstdc++6 libunwind7 libwww-perl zlib1g
- Stáhněte the .deb package from the package manager's website:
ftp://www.northern-ridge.com.au/zoneminder/ubuntu/edgy/zoneminder_1.22.3-8_i386.deb
- Nainstalujte using the Debian package manager. (No other method seems to work.)
dpkg -i zoneminder_1.22.3-8_i386.deb
- (Poznámka: If some dependencies are still unsatisfied, make sure you have these packages installed):
sudo apt-get install libc6 libc6.1 libgcc1 libgcc4 libstdc++6
- (These should already be installed as part of the LAMP installation):
sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 libmysqlclient15off mysql-client mysql-server php5 php5-mysql
- Copy the configuration file and restart the Apache2 server.
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf sudo /etc/init.d/apache2 reload
- View Zoneminder from your web browser:
http://localhost/zm
- Set up a MySQL database for Zoneminder
- If this is the first time you have used MySQL, the default global MySQL superuser root will not have a password. You should set one now. Instructions for setting mySQL initial privileges are here.
- Ve zkratce:
mysql -u root
mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
- In addition, you can set up an additional global MySQL user (such as mysql_user, for example) by following the instructions here. That way you can reserve root login for emergencies.
- Ve zkratce:
mysql -u root mysql> CREATE USER 'mysql_user'@'localhost' IDENTIFIED BY 'mysql_user_passwd'; mysql> quit
Now you must create a MySQL database for use by Zoneminder. This is an administrative MySQL command, so you must use one of your global MySQL users (either root or mysql_user, as created in the example above). You can name your Zoneminder database anything you want, instead of zmdatabase.
mysqladmin -u root -p CREATE zmdatabase
or
mysqladmin -u mysql_user -p CREATE zmdatabase
Create users for the Zoneminder database. As always, I create a root user for emergency use. I use the same password for root as I do elsewhere on my system. Then I also create a user named zm_user (but you could also creat a user named mysql_user, to keep everything consistent). [I use a unique user here because this is a home security system, after all, and I don't want it breached.] These users are specific to this database; they can be the same users as used elsewhere in the system or can be unique users.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.* TO 'zm_user'@'localhost' IDENTIFIED BY 'password'; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.* TO 'root'@'localhost' IDENTIFIED BY 'password'; (I used my usual root password here). mysql> quit mysqladmin reload
Poznámka: mysql commands (i.e. any entered at the mysql> prompt) must end with a semicolon. If you forget the semicolon, nothing will happen.
Home automation programs
X10 and Insteon refers to the two protocols of communication between home automation devices. Devices are available from Smarthome (both Insteon and X10), X10.com (X10 only), and Leviton (X10).
- Přečtěte si the Home Automation website and the Linux Home Automation website.
Each company makes a handheld controller (and usually also sells MS Windows-based control software), and an interface for a PC. This is a list of the most widely used PC interfaces:
- PowerLinc 1132CUP Controller (Smarthome) -- allows multiple macros storage and has long battery life. Uses X10 and Insteon protocols.
- PowerLinc 1132CU Controller (Smarthome) -- similar to above but has fewer programmable features.
- CM15A Interface (X10.com) -- connects by RF to C15A wireless modules. Has some bugs. Uses X10 protocol.
- CM11A Interface (X10.com) -- connects through power lines. Reliable. Short battery life. Uses X10 protocol. Has been the standard interface for most Linux software.
- C17A Firecracker computer interface for X10 (X10.com) -- Short battery life. Uses X10 protocol. Also a standard interface for Linux use.
- CP290 is an older, now hard-to-find interface for X10.
- Leviton devices can be controlled by any X10 controller.
Linux software largely has relied on one of two interfaces: the CM11A and the CM17A Firecracker. These both use the X10 protocol. There are now Linux modules for the PowerLinc interfaces that use either the Insteon or X10 protocol. Note that you can usually use any hand-held controller that uses the compatible protocol (X10 or Insteon), in parallel with the PC interfaces.
- Přečtěte si Linux software. Here are some examples:
- Heyu works with the CM11A interface. BlueLava allows you to access Heyu over the Internet for remote control. xtend is a frontend for Heyu.
- HomeDaemon uses the CM11A interface.
- Bottlerocket works with the C17A Firecracker device. There are several GUI frontends and web interfaces for it (see site.) bottlerocket is available as a module from Synaptic Package Manager, as is wmx10, an applet GUI for bottlerocket.
- GtkX10 is a GUI for the C17A Firecracker.
- The Tk (Wish)-based GUI for X10 is available as a Synaptic Package Manager package named x10-automate (which will also install the x10 interface package). It works with the the (older) CP290 interface.
- Project WiSH provides drivers to control PowerLinc interfaces (version 1 USB and Serial, but not version 2), and CM11A. It is provided as a .tar.gz package. It can be used with x10web Java GUI.
- Insteon PowerLinc support page -- you must like to get into the nuts and bolts! Not for the beginner.
- MisterHouse is a collection of powerful perl scripts that is quite configurable, if you don't mind customizing perl scripts.
- Zoneminder surveillance software can trigger X10 events using built-in perl scripts over a CM11A interface.
- Commercial-grade Linux home automation software:
- LinuxMCE -- open source whole home automation and multimedia manager, based on KDE (Kubuntu). An outgrowth of the Pluto project, for use on an existing Linux platform.
- Pluto Software -- Linux based open source and commercial home automation software and multimedia manager for your entire home. Designed as a stand-alone server, it is distributed with its own integrated Debian distro.
- ECS (Omnipotence Software) -- controls X10, Insteon, and many other types of devices (commercial).
Jak nainstalovat aplikace pro studium náboženských textů
- Pro studium Bible GNOMESword
- Pro studium Koránu Zekr
Jak nainstalovat GNOMEsword (program pro studium Bible)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Takto je nainstalována anglická verze programu.
sudo apt-get install gnomesword sword-language-pack-en sword-text-web
- Pokud vyžadujete jiné jazyky:
sudo apt-cache search bible
- Hledejte sword-language-pack a sword-text pro dodatečné jazyky.
GNOMEsword najdete v Aplikace --> Příslušenství.
- Pod KDE použijte kio-sword namísto GNOMEsword:
sudo apt-get install kio-sword
Jak nainstalovat nástroj pro studování Koránu (Zekr)
Zekr je otevřená platforma pro studium Koránu
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #Jak nainstalovat Java J2SE Runtime Environment (JRE) s modulem pro Mozilla Firefox
sudo wget http://siahe.com/zekr/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/zekr.lis wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add -
sudo apt-get update sudo apt-get install ttf-farsiweb sudo apt-get install ttf-me-quran ttf-sil-scheherazade zekr
- Pro instalaci extra překladů Koránu dostupných pro zekr
sudo apt-get install zekr-quran-translation-extras
- Více informací hledejte na Zekr wiki.
Editory Textu/Kódu
SciTE
- Toto je alternativní editor textu. Ovládá zvýrazňování syntaxe pro mnoho programovacích jazyků.
Instalace:
sudo apt-get install scite
Geany
- Toto je další alternativní textový editor se zvýrazňováním syntaxe.
- Nainstalujte:
sudo apt-get install geany
Cross-platform enabling Applications
Virtualizční technologie
Virtualbox
Innotek VirtualBox je univerzální plný virtualizátor pro x86 hardware. Zamětřený na server, desktop a embedded je nyní jediné profesiální řešení virtualizace, které je zároveň Open Source Software.
VMWare Server / Workstation
VMware Server is a free virtualization product for Windows and Linux servers with enterprise-class support and VirtualCenter management. The free server doesn't allow for a "passthrough" share between the Ubuntu host and the Windows guest (you'll need to use samba etc. for that) but otherwise is a fully functioning virtual application. It also has the advantage that when running it is desktop independent - you can restart GNOME/KDE while it runs and reconnect with the guest session. The same installation instructions apply to both VMWare Server and Workstation.
VMWare Workstation is a paid commercial application and works without modification on Feisty, but needs patches for earlier versions. For more info see http://www.vmware.com.
Manual install (optional) for VMWare Server
Vyberte verzi the tar.gz, ne RPM (nemusíte ji pak převádět), stáhněte ji do nějakého adresáře a rozbalte.
- Ujistěte se, že máte potřebné balíky:
sudo apt-get install build-essential linux-headers-`uname -r`
- Jděte do adresáře s rozbaleným vmware a spusťte:
sudo ./vmware-install.pl
Tím se nainstalují všechny potřebné součásti, vyberte výchozí pokud nemáte důvod požadovat něco jiného. Po instalaci Vám bude nabídnuto spuštění nastavení. Vyberte "yes". Ponechte výchozí nastavení.
- Pokud se při kompilaci vyskytnou problémy, potřebujete 2 patche.
Stáhněte:
wget -c http://icanthack.com/wp-content/uploads/2007/01/vmmon.tar wget -c http://icanthack.com/wp-content/uploads/2007/01/vmnet.tar
Jako root je umístěte (pořád jako archivy tar) do /usr/lib/vmware/modules/source a přepište původní (ty staré uložte pod jiným jménem.)
Spusťte konfigurační skript jako root:
sudo vmware-config.pl
- Více informací je na: http://icanthack.com/?p=53
Jak nainstalovat CrossOver Linux pro spouštění aplikací Windows
Jak nainstalovat a spustit WINE
WINE je systém, který umožňuje běh mnoha programů z Windows pod linuxem. Označit WINE za emulátor není správné. WINE (WINE Is Not an Emulator - akronym) prostředí Windows neemuluje ale skutečně toto aplikační prostředí vytváří. Díky tomu je daleko výkonnější než emulátory, které mají nesrovnatelně vyšší režii, a může v některých ohledech výkonově Windows i překonávat.
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Více informací na WINE HQ
Přidejte repositář WINE:
- Přidejte klíč podepisující repositář WINEHQ:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
- Přidejte repositář WINEHQ do Zdroje softwaru (čtěte #Jak přidat extra repositáře):
deb http://wine.budgetdedicated.com/apt feisty main deb-src http://wine.budgetdedicated.com/apt feisty main
nebo z příkazové řádky:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list
- Nainstalujte WINE pomocí programu Synaptic:
Systém --> Správa --> Správce balíků Synaptic --> Hledat --> wine Systém --> Správa --> Správce aktualizací
nebo z příkazové řádky:
apt-get update apt-get install wine
- Nastavte volby podle přání:
Systém --> Volby --> WINE Configuration
- Nastavte umístění Vašeho virtuálního disku "C:"
Systém --> Volby --> WINE Configuration --> Drives
- Poznámka: Jako disk C: se použije adresář dle Vašeho příní. Jako výchozí se používá /home/uzivatel/.wine/drive_c ale můžete si vybrat i jiný včetně již existujícího adresáře Windows. Nicméně, tato měna není doporučována a může způsobovat problémy.
- Taky můžete vytvořit odkaz do Vašeho domovského adresáře pro disk C: abyste jej pak snáze nalezli:
ln -s ~/.wine/drive_c ~/drive_c
- Přidejte aplikace:
Systém --> Volby --> WINE Configuration --> Aplikace --> Přidat aplikace
- Vaše přidané programy budou mít ikonu na ploše pro snadné spouštění.
- Přečtěte si http://wiki.winehq.org/UbuntuAMD64 na WINE wiki o detailech instalace WINE na 64-bit PC a zkušenosti uživatelů starších verzí Ubuntu.
Jak manuálně instalovat spouštět programy ve WINE (z příkazové řádky)
- Přečtěte si #Jak nainstalovat WINE
wine /PATH/EXENAME.exe
Jak nastavit WINE aplikace aby vypadaly jak Windows XP
Díky http://www.winehq.org/pipermail/wine-bugs/2004-August/010161.html
gedit ~/.wine/user.reg
Najděte řádek, který začíná [Control Panel\\Colors] nejaka_cisla, a vložte toto:
[Control Panel\\Colors] 1085191500 "ActiveBorder"="212 208 200" "ActiveTitle"="10 36 106" "AppWorkSpace"="128 128 128" "Background"="58 110 165" "ButtonAlternateFace"="181 181 181" "ButtonDkShadow"="64 64 64" "ButtonFace"="212 208 200" "ButtonHilight"="255 255 255" "ButtonLight"="212 208 200" "ButtonShadow"="128 128 128" "ButtonText"="0 0 0" "GradientActiveTitle"="166 202 240" "GradientInactiveTitle"="192 192 192" "GrayText"="128 128 128" "Hilight"="10 36 106" "HilightText"="255 255 255" "HotTrackingColor"="0 0 128" "InactiveBorder"="212 208 200" "InactiveTitle"="128 128 128" "InactiveTitleText"="212 208 200" "InfoText"="0 0 0" "InfoWindow"="255 255 225" "Menu"="212 208 200" "MenuBar"="212 208 200" "MenuHilight"="0 0 0" "MenuText"="0 0 0" "Scrollbar"="212 208 200" "TitleText"="255 255 255" "Window"="255 255 255" "WindowFrame"="0 0 0" "WindowText"="0 0 0"
Instalace Internet Explorer 6 pod WINE
IE 6 není doporučen pro běžné použití (proč byste to taky dělali, když máte lepší, že?) ale některé programy pro Windows jej potřebují. Navíc můžete testovat jak tento (zatím, bohužel) majoritní prohlížeč neumí pořádně zobrazit Vaše stránky a jak musíte W3C validní html zkriplit aby se zobrazoval korektně.
- Nainstalujte potřebný balík cabextract pomocí Synaptica (nebo pomocí apt-get).
- Stáhněte a spusťte instalační skript IEs4Linux ze stránek IEs4Linux:
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz tar zxvf ies4linux-latest.tar.gz cd ies4linux-* ./ies4linux
Ponechejte výchozí nastavení instalace.
Jak nainstalovat Windows Games (Cedega)
Jak nainstalovat Maple 11
- Vložte instalační CD Maple 11 pro Linux a spusťte instalátor.
cd /cdrom sudo sh ./installMapleLinux32
- Nainstalujte do /usr/local/maple11 namísto do výchozího, pokud chcete.
Vytvořte symbolické odkazy:
cd /usr/local/bin sudo ln -s /usr/local/maple11/bin/xmaple sudo ln -s /usr/local/maple11/bin/maple sudo ln -s /usr/local/maple11/bin/mint
Jak nainstalovat Win4Lin (Windows combinované s Linuxem)
Jak nainstalovat Citrix ICAClient 10
- Nainstalujte Open Motif (>=2.2):
sudo apt-get install motif-clients
- Získejte a nainstalujte Citrix ICA klient (Anglický balík) ze stránek Citrixu na http://www.citrix.com/site/SS/downloads/details.asp?dID=2755&downloadID=3323#top:
wget -c http://download2.citrix.com/en.linuxx86.tar.gz
nebo
wget -c http://download2.citrix.com/files/en/products/client/ica/current/linuxx86.tar.gz
Pokud wget nefunguje, jděte přímo na stránky a stáhněte jej následováním odkazů.
- Rozbalte a nainstalujte (použijte správně staženou verzi):
gunzip en.linuxx86.tar.gz tar xvfz en.linuxx86.tar ./setupwfc
- Povolte ověřování certifikátů ve Firefoxu:
Applications --> Firefox Web Browser --> Advanced --> Encryption --> View Certificates --> Authorities
- Najděte svoji crtifikační autoritu a klikněte na ni.
Upravit --> "Tento certifikát může identifikovat webové stránky."
Příklad povolení certifikační autority Thawte Consulting cc (použít ovšem můžete i Verisign, Geotrust, Equifax nebo některou z mnohých jiných).
Stáhněte certifikát z http://www.thawte.com/roots/. Rozbalte soubor, najděte potřebný certifikát (možná budete muset změnit příponu) a zkopírujte jej do certifikačního adresáře ICAClienta:
cp ThawteServerCA.cer ~/ICAClient/keystores/cacert/ThawteServerCA.crt
- Ujistěte se, že Váš Firewall (IPTables, nebo GUI Firestarter) jsou povolují porty pro Citrix (1494, někdy 443 a 1603).
- Alternativní instalační instrukce jsou zde (německý server) a zde (Malajský server).
Jak odinstalovat Citrix ICAClient 10
/usr/lib/ICAClient/setupwfc
Správa uživatelů
Jak se přepnout na uživatele root v konzoli
- Přečtěte si #Základní poznámky
Pro přihlášení jako root:
sudo -i Password: <napište heslo>
nebo
sudo su - Password: <napište heslo>
Pro start shellu jako root při ponechání současného adresáře a různých uživatelských nastavení normálního uživatele:
sudo -s -H Password: <napište heslo>
nebo
sudo su Password: <napište heslo>
Jak nastavit/změnit/povolit heslo uživatele root
- Přečtěte si #Základní poznámky
sudo passwd root
Tohle ale nedoporučuju. Bezpečnost systému beztak nezvýšíte a gksudo i gksu budou chtít pořád heslo uživatele ve skupině admin, ne roota.
Jak vypnout účet uživatele root
- Přečtěte si #Základní poznámky
sudo passwd -l root
Jak přidat/editovat/mazat uživatele systému
- Přečtěte si #Základní poznámky
Systém --> Správa --> Uživatelé a skupiny
nebo
sudo useradd jim sudo userdel jim
- Více informaví najdete v
man usermod
Jak přidat/editovat/mazat systémové skupiny
- Přečtěte si #Základní poznámky
Systém --> Správa --> Uživatelé a skupiny Skupiny --> Přidats skupinu...
Jak se automaticky přihlásit do GNOME
- Přečtěte si #Základní poznámky
- Automatic login není bezpečný.
Systém --> Správa --> Přihlašovací okno Zabezpečení --> Povolit automatické přihlášení
Vyberte uživatele z rozbalovacího menu.
How to allow more sudoers
- Přečtěte si #Základní poznámky
EDITOR=gedit sudo visudo
- Append the following line at the end of file
system_username ALL=(ALL) ALL
or, since everyone in the admin group can use sudo:
sudo adduser a_username admin
This appends the admin group to the user's supplementary group list. They will now have sudo access.
Jak použít "sudo" bez vyzvání k zadání hesla (nebezpečné)
- Přečtěte si #Základní poznámky
EDITOR=gedit sudo visudo
- Najděte tento řádek:
jmeno_spravce ALL=(ALL) ALL
- Nahraďte jej tímto:
system_username ALL=(ALL) NOPASSWD: ALL
Jak zabít sezení "sudo"
- Přečtěte si #Základní poznámky
sudo -K
How to change files/folders permissions
- Přečtěte si #Základní poznámky
Right click on files/folders --> Properties
Permissions Tab --> Read/Write/Execute (Checked the permissions for Owner/Group/Others)
How to change files/folders ownership
- Přečtěte si #Základní poznámky
sudo chown system_username /location_of_files_or_folders
If you want to change ownership of all containing files and folders recursively, use the -R option like this:
sudo chown -R system_username /location_of_files_or_folders
How to change files/folders group ownership
- Přečtěte si #Základní poznámky
sudo chgrp system_groupname /location_of_files_or_folders
If you want to change group ownership of all containing files and folders recursively, use the -R option like this:
sudo chgrp -R system_username /location_of_files_or_folders
Hardware
Myši
Activate side-mouse-buttons in FireFox
Just add two lines to xorg.conf will activate side-mouse-buttons in FireFox. This should work with most 5-button mouse. Here is a list of mice that worked with this instruction.
- Logitech MX310
- Logitech MX510
- Logitech MX518
- Logitech MX700
- Logitech MX Revolution
- Intellimouse Explorer (first edition)
- Razer Copperhead
Backup X.org configuration file
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Modify the X.org configuration file
gksudo gedit /etc/X11/xorg.conf
Find the Input Device section for your mouse and add two lines as shown below. You may also increase the number of buttons if your mouse has more than 7, just fix the rest of the section based upon the number of buttons (remember back/forward, wheel click & tilt left/right all count as buttons)
Change:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" EndSection
to:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" EndSection
Buttons still won't work in Nautilus unless you install the imwheel dameon.
Install & Configure IMWheel
- Nainstalujte IMWheel
sudo apt-get install imwheel
- Modify IMWheel configuration file
gksudo gedit /etc/X11/imwheel/imwheelrc
- Insert the following at the bottom of this existing file
".*" None, Up, Alt_L|Left None, Down, Alt_L|Right "(null)" None, Up, Alt_L|Left None, Down, Alt_L|Right
- Create IMWheel start-up script
sudo mkdir /home/login gksudo gedit /home/login/mouse
- Insert the following into this new file
#!/bin/sh exec xmodmap -e "pointer = 1 2 3 4 5 6 7" & exec imwheel -k -b "6 7" & exec $REALSTARTUP
- Grant execution for everyone to this new script
sudo chmod +x /home/login/mouse
- Configure this script to be executed at start-up
- Select 'System' --> 'Preferences' --> 'Sessions'
- Click the StartUp tab
- Click Add, then input: /home/login/mouse
- Click OK, then Close
- Reboot your computer or your GNOME environment and then test your back/forward mouse buttons in Nautilus
(Dont know why but the above worked flawlessly for me with Dapper but not with Feisty, to get it to work in Feisty had to enter a space between 6 and 7 on the line exec imwheel -k -b "67" & hope this helps)
Jak nastavit Apple Mighty Mouse
Apple Mighty Mouse works out of the box, this how to should cover setting up of horizontal scrolling using ball and sidebuttons.
This is placeholder only. Please, provide working howto.
Touchpad
Disable the touchpad while typing
The utility syndaemon can be used to temporarily disable a Synaptic touchpad while typing.
First you must edit /etc/X11/xorg.conf to allow the syndaemon utility to access the touchpad's settings. Make a backup of the file, then:
sudo gedit /etc/X11/xorg.conf
Find the touchpad section:
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" Option "SHMConfig" "on" EndSection
Add the SHMConfig option if it does not already exist.
After you restart X (log out and log in again), you will be able to run syndaemon.
syndaemon -t -dYou may have to restart your computer.
Use syndaemon -h to view additional options.
To have syndaemon start up automatically when you log on, add the command as a new startup program (Systém --> Volby --> Sessions --> Startup Programs).
Adjust touchpad sensitivity
Although gsynaptics allows you to adjust sensitivity, it still isn't sensitive enough for all users. This allows for greater fine tuning of touchpad sensitivity. First you must edit /etc/X11/xorg.conf. Make a backup of the file, then:
sudo gedit /etc/X11/xorg.conf
Find the touchpad section:
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" Option "SHMConfig" "on" EndSection
Add the following after SHMConfig:
Option "MinSpeed" "1.0" Option "MaxSpeed" "1.3" Option "AccelFactor" "0.3"
Modify the values to personal taste. After you restart X (log out and log in again), you will using the new sensitivity settings.
Enable vertical, horizontal and circular scrolling
This howto will explain the procedure to setup a Synaptics touchpad for vertical, horizontal and circular scrolling (The same procedure may work for other touchpads, but has not been confirmed)
- First: Install gsynaptics
sudo apt-get install gsynaptics
Second you have to edit your /etc/X11/xorg.conf to allow gsynaptics to access the the touchpad's settings
- Second: Backup /etc/X11/xorg.conf
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
- Third: Allow gsynaptics access to the touch pads settings
sudo gedit /etc/X11/xorg.conf
Find the touchpad section:
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" Option "SHMConfig" "on" EndSection
Add the SHMConfig option if it does not already exist.
After you restart X (log out and log in again), from the GNOME menu goto Systém --> Volby --> Touchpad
From the Touchpad window you can modify you touchpads settings
Graphics Card
How to setup nVidia drivers in 7.04
Systém --> Správa --> Restricted Devices Manager Enable Driver Apply Changes
Insert Ubuntu 7.04 Feisty Fawn CD-ROM
or
Cancel --> Close
Aplikace --> Add/Remove Applications
(Add / Remove apps will load up checking dependencies)
Click Preferences next to help in the bottom left of the add / remove applications windows.
Uncheck the "CD ROM With Ubuntu 7.04..." option from the list of installable CD-ROM volumes.
There, now every time you use the add / remove applications program to install things, it goes onto the internet to get the packages instead of the discs. The idea behind this is to get the LATEST updates.
Close the options, close the next box, then click OK to exit out of add / remove applications and save the changes we just made.
Make sure the nVidia glx is downloaded and installed from either the internet or the install CD, or the next step wont work, as the command will have nothing to execute. thats right, you really need NVIDIA GLX. :)
With the nVidia Driver enabled in the restricted devices manager, we can safely go into the console and mess with the newly loaded drivers' settings to get a nice looking desktop with an acceptable resolution, color depth and refresh rate. These drivers also let us adjust the positioning of multiple monitors much like the forceware drivers in windows, but totally not like windows at the same time. You'll see what I mean when you see the layout and complexity of the panel! Now we must reboot.
Systém --> Quit --> Restart
Load up Aplikace --> Accessories --> Terminal
If you haven't already done so you may right click on Terminal under Aplikace --> Accessories --> Terminal and then add the application to the panel, to make the terminal easier to access in the future.
Load up the terminal, and type in...
sudo nvidia-settings
Then type in your root password (whatever that is)
Be careful about cranking the resolution or refresh too high.
If you want to enable dual monitors then try twinview.
How to setup Dual Monitors with NVidia in Feisty Fawn
From Dual Monitors with NVidia in Ubuntu - Ubuntu Geek
- Install nvidia-glx driver
sudo apt-get install nvidia-glx
- Make a backup of xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
- Edit xorg.conf
sudo gedit /etc/X11/xorg.conf
- Under the "Module" section, replace "nv" with "glx"
- Under the "Device" section, make sure that "Driver" says “nvidia”
- Under the "Screen" section, add the following line:
Option "RenderAccel" "true"
- Save xorg.conf
- Restartujte X with Ctrl+Alt+Backspace
- If X will not start, type the following to restore xorg.conf to working status:
sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf
and reboot.
- Assuming everything went well, we’re quite close to having dual screens working. Edit xorg.conf again
sudo gedit /etc/X11/xorg.conf
- Under the "Screen" section, add these lines:
##This turns on NVidia’s TwinView Option "TwinView" ##Here I’m setting the resolution to the individual monitors. Option "MetaModes" "1280×1024 1280×1024"
- Restartujte X with Ctrl+Alt+Backspace
You should now have dual monitors
How to align monitors left-to-right
Method 1:
- Edit xorg.conf
- Under the "Screen" heading, add:
##Orientation Options are: LeftOf, RightOf, Below, Above, or Clone Option “TwinViewOrientation” “LeftOf”
- Save xorg.conf
- Restartujte X with Ctrl+Alt+Backspace
Method 2:
- Run nVidia Settings
gksudo nvidia-settings
- In X Server Display Configuration, drag the visible displays around
- Apply and Save to X Configuration File when you're happy with the settings
How to change primary display from CRT to LCD
From: First display on TwinView - nV News Forums and nVidia Readme and Dual Monitors HOWTO - Zulu's Tips
- Get the nVidia driver working, as per the howto above
- Run nVidia Settings
gksudo nvidia-settings
- Click the Save to X Configuration File button to tidy up the config
- Restartujte X with Ctrl+Alt+Backspace
- Backup xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
- Open xorg.conf in an editor
sudo gedit /etc/X11/xorg.conf
- Add the following line at the bottom of the "Screen" section:
Option "TwinViewXineramaInfoOrder" "DFP, CRT" Option "UseDisplayDevice" "DFP, CRT"
- Save xorg.conf
- Restartujte X with Ctrl+Alt+Backspace
Jak nainstalovat Beta Graphics Driver (NVIDIA)
- WARNING this is very error prone.. a better method is to use Alberto Milones Envy program; http://albertomilone.com/nvidia_scripts1.html
- Thanks to Alberto Milone
- The nVidia driver has been split into different branches; latest and new legacy. See http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-a.html to find out which driver you should be using. Latest=97xx / New Legacy=96xx
- Přečtěte si #Jak přidat extra repositáře
gksudo gedit /etc/apt/sources.list
- Add ONE of the following lines based on your architecture
deb http://www.albertomilone.com/drivers/edgy/latest/32bit binary/ deb http://www.albertomilone.com/drivers/edgy/latest/64bit binary/
deb http://www.albertomilone.com/drivers/edgy/newlegacy/32bit binary/ deb http://www.albertomilone.com/drivers/edgy/newlegacy/64bit binary/
- Uložte editovaný soubor
- Add the GPG key
wget http://albertomilone.com/drivers/tseliot.asc gpg --import tseliot.asc gpg --export --armor albertomilone@alice.it | sudo apt-key add -
- Update and install
sudo apt-get update sudo apt-get install nvidia-glx sudo apt-get upgrade
- The upgrade should update your linux-restricted-modules & linux-restricted-modules-common packages.
sudo nvidia-xconfig
- Add a menu option for nVidia Settings
gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop
- Insert these lines in the new file and save
[Desktop Entry] Name=NVIDIA Settings Comment=NVIDIA Settings Exec=nvidia-settings Icon= Terminal=false Type=Application Categories=Application;System;
- Restartujte the computer and your new drivers should be installed.
- Test the install with these 2 programs
glxinfo glxgears
How to setup pivot (screen rotation) with default X.org NVIDIA drivers
- Přečtěte si #Základní poznámky
- Some LCD monitors are equipped with the pivot feature, to take advantage of it the display has to be rotated 90 degrees. The default nVidia drivers shipped with X.org ("nv") support software screen rotation. Note that it's unaccelerated and can be slow, read #Jak nainstalovat Graphics Driver (NVIDIA) if you decide to install the proprietary driver.
- If you have the proprietary drivers from nVidia installed, please read #How to setup pivot (screen rotation) with proprietary NVIDIA drivers instead.
- To rotate the screen find the "Device" section for the "nv" driver in the /etc/X11/xorg.conf file:
Section "Device" Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]" Driver "nv"
- Add the following options to this section:
Option "Rotate" "CW"
Where the "Rotate" option has two possible values (depending on the orientation of the monitor):
- CW - rotate the display clockwise (right).
- CCW - rotate the display counterclockwise (right).
- Přečtěte si #Jak restartovat GNOME bez restartu počítače.
How to setup pivot (screen rotation) with proprietary NVIDIA drivers
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Graphics Driver (NVIDIA)
- Some LCD monitors are equipped with the pivot feature, to take advantage of it the display has to be rotated 90 degrees. The proprietary nVidia drivers support hardware rotation with the Xrandr extension.
- To enable rotation support find the "Device" section for the "nvidia" driver in the /etc/X11/xorg.conf file:
Section "Device" Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]" Driver "nvidia"
- Add the following option to this section:
Option "RandRRotation" "on"
- Přečtěte si #Jak restartovat GNOME bez restartu počítače.
- Then the display can be rotated (direction depends on the orientation of the monitor) by:
- Setting the "Rotation" property to either "Left" or "Right" in the "Systém --> Volby --> Screen Resolution" dialog.
- Issuing either "xrandr -o left" or "xrandr -o right" command.
How to disable NVIDIA graphics logo on GNOME startup
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Graphics Driver (NVIDIA)
- The easy way
sudo nvidia-xconfig --no-logo
- Alternative method
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
- Nalezněte tuto sekci
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...
- Add the following line below it
Option "NoLogo"
- Uložte editovaný soubor
- Přečtěte si #Jak restartovat GNOME bez restartu počítače
Jak nastavit dual head na NVIDIA based kartách
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Graphics Driver (NVIDIA)
- Nainstalujte binary ovladač
- Udělejte zálohu xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
- Editujte xorg.conf
sudo nano /etc/X11/xorg.conf
- Přidejte tyto řádky do "Device" sekce
Option "TwinView" "True" Option "TwinViewOrientation" "RightOf" Option "UseEdidFreqs" "True" Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768" Option "UseDisplayDevice" "string" #replace 'string' with either 'DFP' (Digital flat panel connected via DVI port), 'CRT' (any monitor that is connected via VGA ports), or 'TV'
- Uložte a zavřete xorg.conf
- Restartujte X-Windows nebo rebootujte
- Toto bylo testováno na NVIDIA FX 5200 and known to work using "CRT" as an option pro druhý monitor
- Pokud se dostanete do potíží s nahozením X a můžete se dostat zpátky do příkazové řádky, nahraďte xorg.conf záložní kopií
sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
- Informace a inspirace zíkána z http://ubuntuforums.org/showthread.php?p=1773584
Jak nainstalovat Grafický Ovladač (ATI)
- Přečtěte si Unofficial ATI Linux driver wiki
- Nebo Ubuntuforums.org
- Nebo PenLUG.org
How to Correct the Graphics Resolution (Intel)
- Přečtěte si #How to enable Large Widescreen Support if you have a larger (>20") monitor
- Intel 915g, 945g, etc. graphics chipsets only have a limited set of resolutions initially installed, despite the correct driver being detected.
- Nainstalujte the resolution altering tool:
sudo apt-get install 915resolution
- Run the following to see the availible modes:
915resolution -l
- Choose a resolution you don't need and replace, for example the following changes 1920x1440 to 1920x1200
915resolution 5c 1920 1200
- Restart X-Windows.
- To confirm resolution change look at the "System>Preferences>Screen Resolution" tool.
- If it works correctly then you can make the change permanent:
sudo gedit /etc/default/915resolution
- Nalezněte tento řádeks:
MODE=Auto XRESO= YRESO= BIT=
- And replace with the following lines:
mode=5c XRESO=1920 YRESO=1200 BIT=24
- Save and restart your computer to confirm it works.
- Another way to get the resolution you want is to do this(doesn't always work):
sudo apt-get install xserver-xorg-video-intel
- With this you don't need the 915resolution anywhere in your Feisty as your resolution will now be handled by X, the windowing system in Linux.
Jak zobrazit teplotu nvidia GPU (nvidia-settings)
- Přečtěte si #Jak nainstalovat Graphics Driver (NVIDIA)
V terminálu napište
nvidia-settings
How to detect CPU temperature, fan speeds and voltages (lm-sensors)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo apt-get install lm-sensors
Create file called mkdev.sh, and paste in the following
#!/bin/bash # Here you can set several defaults. # The number of devices to create (max: 256) NUMBER=32 # The owner and group of the devices OUSER=root OGROUP=root # The mode of the devices MODE=600 # This script doesn't need to be run if devfs is used if [ -r /proc/mounts ] ; then if grep -q "/dev devfs" /proc/mounts ; then echo "You do not need to run this script as your system uses devfs." exit; fi fi i=0; while [ $i -lt $NUMBER ] ; do echo /dev/i2c-$i mknod -m $MODE /dev/i2c-$i c 89 $i || exit chown "$OUSER:$OGROUP" /dev/i2c-$i || exit i=$[$i + 1] done #end of file
Make this file executable, then run it
sudo chmod +x mkdev.sh sudo ./mkdev.sh
Now detect sensors, and answer "y" to all questions.
sudo sensors-detect
To load the manual modules, type
sudo /etc/init.d/module-init-tools
Load the modules into kernel with
sudo sensors -s
And check the output
sudo sensors
How to control fan speed (lm-sensors)
Install and config lm-sensors first, see section above. Then run pwmconfig to test your fans
pwmconfig
If you can control fan speeds, great. Now creat a file called /etc/init.d/fancontrol, and paste in the following
#!/bin/sh
#
# Fancontrol start script.
#
set -e
# Defaults
DAEMON=/usr/sbin/fancontrol
PIDFILE=/var/run/fancontrol-pid
PATH=/sbin:/bin:/usr/sbin:/usr/bin
test -f $DAEMON || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_begin_msg "Starting fancontrol daemon..."
start-stop-daemon --start -o -q -m -b -p $PIDFILE -x $DAEMON
log_end_msg $?
;;
stop)
log_begin_msg "Stopping fancontrol daemon..."
start-stop-daemon --stop -o -q -p $PIDFILE
log_end_msg $?
;;
force-reload|restart)
sh $0 stop
sh $0 start
;;
*)
log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload}"
log_success_msg " start - starts system-wide fancontrol service"
log_success_msg " stop - stops system-wide fancontrol service"
log_success_msg " restart, force-reload - starts a new system-wide fancontrol service"
exit 1
;;
esac
exit 0
Make it excutable
sudo chmod +x /etc/init.d/fancontrol
Test it
/etc/init.d/fancontrol start
and
/etc/init.d/fancontrol stop
If it works fine, autoload it when you reboot. Insert the following line into /etc/rc.local, before "exit 0"
/etc/init.d/fancontrol start
How to monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Nainstalujte lm-sensors first to monitor CPU temps, fan speed, and voltages in GKrellM. #How to detect CPU temperature, fan speeds and voltages (lm-sensors)
- Nainstalujte nvidia video driver to monitor the nvidia GPU temperature. #Jak nainstalovat Graphics Driver (NVIDIA)
- Nainstalujte hddtemp first to monitor hard drive temperatures
sudo apt-get install hddtemp
GKrellM is a hardware monitor that can display CPU and GPU temperatures, fan speeds, voltages, CPU load, network load, disk activity, disk temperature, memory usage, and swap usage. The installation is very easy, and configuration is just a few mouse-clicks. You can set alerts to warn you if the CPU is too hot or there is a fan failure. The hddtemp utility works with GKrellM to allow it to sense the disk temperature, as keeping your disks cool (e.g. less than around 40C) will allow them to last longer than if they run continually at higher temperatures (e.g. above 50C).
sudo apt-get install gkrellm
To run the program
Click Aplikace --> Systémové nástroje --> GKrellM
To configure the settings,
Right click on GKrellM --> Configuration
I was struggling with lm_sensors before, but it doesn't detect all of the sensors on my computer. Later I found "GKrellM". It displays the GPU temperature on my nVidia 6600 GT out of the box. GKrellM also has plugins that show weather info, set reminders, etc.
Add an audio alert (optional Step): Here is how to play an audio message when the CPU is too hot or a fan fails. First you need to find or record your own audio alert files. (I use Audacity to record my own.) Then go to:
Configuration --> Builtins folder (Left side)-> Sensors --> Temperatures folder (Right side)-> CPU --> Alerts Button
Paste ONE of the following lines into a Terminal window first to test the sound. If you have two sound cards, you can use "-ao oss:/dev/dsp1" option to route the sound to the second sound card. Modify the file path and name so it points to the correct file. If you can hear the sound, then copy that line to a command line text field on the GKrellM's Alerts window.
mplayer /home/myfolder/alert_messages/heat_alert.mp3 mplayer -ao oss:/dev/dsp1 /home/myfolder/alert_messages/heat_alert.mp3
How to detect CPU temperature, fan speeds for Dell Laptops and install Gkrellm plugin (i8kutils, gkrellm-i8k)
- Přečtěte si #Základní poznámky
- Přečtěte si and Complete #How to monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM)
Install i8k utilities
apt-get install i8kutils gkrellm-i8k
To load the module automatically run the following in a terminal window
sudo gedit /etc/modules
Add the following to the end of the file
i8k force=1
Load the module by restarting or
modprobe i8k
- To monitor with Gkrellm,
Load Gkrellm, goto Gkrellms configuration page, enable the Dell i8k Plugin in the Plugins section. You should now see a new section on the Gkrellm panel with fan controls, CPU temperature, service tag etc
CPU
How to enable your CPU's Power Saving/Frequency Scaling features
- Přečtěte si #Základní poznámky
- Přečtěte si Howto Change CPU Frequency Scaling in Ubuntu For an easier way to enable CPU scaling.
- Check whether or not you already have working power-save (it should install automatically!)
Open a Terminal window (in Aplikace --> Accessories) and type,
cat /proc/cpuinfo
Look for the reference to "cpu MHz" and compare it to the official MHz of your processor. If it is considerably lower, e.g. a 2.0 GHz processor reporting as 1.0 GHz, then the power-save frequency scaling is probably already working. You can further test this by running a cpu intensive process, e.g. glxgears, and then retesting the cpu speed -- if it has increased to the official MHz then the automatic scaling is already working. (Poznámka: the instructions below can also allow you to manually set the cpu speed.)
- Step 1: Enable BIOS Support
Enter your BIOS at boot and make sure both ACPI and Cool'n'Quiet (AMD) or SpeedStep (Intel) are enabled. Some BIOSes may not have option at all. If that is the case it is probably enabled by default. Other BIOSes may have the option but it is listed as another name altogether. If that is the case check your BIOS manual for more info.
- Step 2: Remove Userspace Scaling Software
powernowd
sudo apt-get remove powernowd
cpudyn
sudo apt-get remove cpudyn
- Step 3: Install CPU Module
Identify your cpu type by running the command
cat /proc/cpuinfo
You can also Check the following links AMD CPU Chart - [[2]] Intel CPU Chart - [[3]]
AMD Sempron/Athlon/MP ( K7 )
Socket Types: A, Slot A
sudo modprobe powernow-k7
AMD Duron/Sempron/Athlon/Opteron 64 ( K8 )
Socket Types: 754, 939, 940, S1 ( 638 ), AM2 ( 940 ), F ( 1207 )
sudo modprobe powernow-k8
Intel Core Duo
sudo modprobe speedstep-centrino
Intel Pentium M
sudo modprobe speedstep-centrino
Intel Pentium 4
sudo modprobe p4_clockmod
Others (Unknown)
I'm not entirely sure which cpus are supported using this module. If your cpu doesn't work with one of the above methods try this one.
sudo modprobe acpi-cpufreq
- Step 4: Scaling Modules
sudo modprobe cpufreq_conservative sudo modprobe cpufreq_ondemand sudo modprobe cpufreq_powersave sudo modprobe cpufreq_stats sudo modprobe cpufreq_userspace
- Step 5: Testing/Configuration
Show Available Governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
You should see output similar to
powersave conservative ondemand performance
- Step 6: Load Modules at Boot
Add the following lines to the end of /etc/modules
cpufreq_conservative cpufreq_ondemand cpufreq_powersave cpufreq_stats cpufreq_userspace Also add the module you selected in Step 3
- Step 7: Install cpufrequtils
This is a simple, effective tool for using the modules z příkazové řádky.
sudo apt-get install cpufrequtils
Test that it's working.
cpufreq-info
- Step 8: Select a governor
The different governors control how the CPU speed is scaled. Your choices are:
ondemand
CPU frequency is scaled based on load.
conservative
The CPUfreq governor "conservative", much like the "ondemand" governor, sets the CPU depending on the current usage. It differs in behaviour in that it gracefully increases and decreases the CPU speed rather than jumping to max speed the moment there is any load on the CPU. This behaviour more suitable in a battery powered environment.
performance
CPU only runs at max frequency regardless of load.
powersave
CPU only runs at min frequency regardless of load.
See [[4]] for more details.
I typically use ondemand. You get a very slight performance hit and save a lot of power (and produce a lot less heat when idle).
Try it out:
cpufreq-set -g ondemand
On systems with more than one CPU you need to repeat the last command for every other CPU you have with specifying the parameter -c (CPU). To set the governor for the second CPU write:
cpufreq-set -c 1 -g ondemand
To see how many CPUs you have type:
ls /sys/devices/system/cpu/
- Step 9: Configure cpufrequtils to automatically set this governor on boot
Edit the file /etc/default/cpufrequtils. Change the line:
ENABLE="false"
to
ENABLE="true"
Set the GOVERNOR value to the governor name you chose in Step 8.
Modems / Network
How to identify Modem chipset
- Přečtěte si #Základní poznámky
- To install Modem chipset identifier
- Přečtěte si #Jak nainstalovat Basic Compilers (build-essential)
- Přečtěte si Setting up Dial-up connection in Ubuntu
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
Jak nainstalovat Atheros Wireless Drivers
- You may have received a message about the restricted drivers manager, in which the atheros HAL has been enabled. You can configure the wireless using the Network Settings Manager
Systém --> Správa --> Síť
- If, after configuration the wireless still does not work, it is because the wrong driver (ath_pci) has been loaded. To correct this, remove the unwanted module:
sudo rmmod ath_pci
- Reboot
Jak nainstalovat Windows Wireless Drivers (Ndiswrapper)
- Přečtěte si #Základní poznámky
- In order to install ndiswrapper you need a copy the windows drivers for your Wireless ethernet device.
- This is only meant to be installed if your card isn't supported by Ubuntu, check Ubuntu's list of natively supported wireless cards.
- Check ndiswrapper's list of supported wireless cards if your card isn't supported natively, please visit Ndiswrapper's official supported cards list
- If your card is supported by ndiswrapper, you can install and configure it via a gui tool (ndisgtk) very easily. Use the Add/Remove Applications tool and search for "Ndiswrapper driver installation tool". Once installed, you can configure the wireless connection by going to Systém --> Správa --> Windows Wireless Drivers. Some more information on this here.
To Install manually follow the steps below:
- Find out if you have acx module loaded. Because acx module interferes with windows driver, we need to remove it if it is found.
lsmod | grep acx
- Remove the acx module if found. It could also be acx_pci or similar. Please Poznámka: New kernel updates will auto load the acx module again. So repeat the following two commands every time the kernel is updated.
sudo rmmod acx sudo nano /etc/modprobe.d/blacklist
- Add a new list at the end of the file like this:
# drivers wireless ACX blacklist acx
- Nainstalujte ndiswrapper and drivers (due to a bug in Edgy, you need to specify ndiswrapper-utils-1.8)
sudo apt-get install ndiswrapper-utils-1.8 sudo ndiswrapper -i /location_of_your_wireless_driver/your_driver.inf sudo ndiswrapper -l sudo modprobe ndiswrapper
- Set ndiswrapper to load on startup
sudo ndiswrapper -m gksudo gedit /etc/modules
- Add the following module to the list
ndiswrapper
- Now you can configure your wireless card with ifconfig and iwconfig.
- e.g. Supposing wlan0 is your wireless device.
sudo iwconfig wlan0 essid "AP" key ababababababababab mode Managed iwconfig
- You sould now be able to see the MAC address of the access point and signal rate.
- Please note that certain card drivers have re-association errors when used with ndiswrapper. This means that whenever you restart Ubuntu, your internet connection does not work, even if it is set to load on startup. To combat this, use this line in the terminal (also assuming wlan0 is your wireless device).
sudo iwconfig wlan0 essid x mode Managed
- Using an RTL8180 card and ndiswrapper, swapping the order of the key and essid in the configuration command is required to get a connection.
- e.g. Supposing wlan0 is your wireless device.
sudo iwconfig wlan0 key ababababababababab essid "AP" mode Managed
Ndiswrapper pro Broadcom 43xx wireless chipset
- Broadcom 43xx (bcm43xx) wireless chipset je jeden z nejběžnějších chipsetů, proto byl pro něj napsán speciální script.
- Pokračujte pouze pokud máte zařízení bcm43xx. Zkontrolujte to napsáním to Terminálu:
lspci | grep Broadcom\ Corporation
Pokud to zobrazí řádku podobnou této,
0000:02:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
máte Broadcom wireless chipset. Prosím pokračujte následujícími instrukcemi.
- Vložte Ubuntu CD s kterým jste instalovali Ubuntu do CD mechaniky.
- Stáhněte toto na plochu (defaultní složka Firefoxu pro stahování, tedy pokud jste ji neměnili, that's where it went/will go).
Note - Budete se muset registrovat ke stažení tohoto souboru. Registrace je zdarma, prosím nenahlašujte poškozený link.
- V Terminálu napište
cd ~/Desktop (Nebo kam jste stáhli soubor) tar -xf bcm4318*.tar.gz sudo ./ndiswrapper_setup
Váš wireless chipset by měl nyní pracovat. Zkuste restartovat, máte-li nějaký problém. Prosím, koukněte na toto vlákno, pokud máte nějaký problém: http://ubuntuforums.org/showthread.php?t=197102&highlight=install+ndiswrapper
Edit : Tento výše uvedený manuál nepracoval pro mě(Pete) na 64 bit ubuntu. Můj výstup z lspci:
03:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
Nicméně jsem našel o moc jednodušší způsob instalace, toto velmi pravděpodobně funguje i pro 32 bit (potvrďte někdo prosím).
Edit: Já (Dun) to potvrzuji. V mém Feisty to fungovalo ale když jsem zkoušel totéž v Edgy tak to nepracovalo jako ve Feisty.
Code in terminal :
sudo apt-get install bcm43xx-fwcutter
fwcutter asks if you would like it to extract the firmware as part of the setup. Say yes. After this type:
sudo modprobe bcm43xx
Unplug you Wired connection, wait 30-60 seconds and then enjoy wireless using network manager by the clock.
Poznámka: I (mobius) found the fwcutter method to work well, except at a very limited speed (100kb/s max, as opposed to the 6.75mb/s max in a G network). Ndiswrapper is a bit less reliable, but gives much greater speeds at the moment.
Anouther edit by pete: Sorry Someone just let me know that this method no longer works as the link http://boredklink.googlepages.com/wl_apsta.o no longer exists. Sorry I didnt realise this sooner for those of you without wireless for the past month. Do this instead for now:
Add the repositories listed here : http://ubuntu.cafuego.net/dists/feisty-cafuego/bcm43xx/ to the top of your sources.list file.
Type:
sudo apt-get install bcm43xx-firmware
Thats it! Reboot and enjoy. You dont need to install bcm43xx-fwcutter.
Pete
How to enable WPA with Ndiswrapper driver
Make sure on your own that the Ndiswrapper driver works by itself without encryption.
- Create a file called /etc/wpa_supplicant.conf, and paste in the following. Modify the ssid and psk values.
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="YourWiFiSSID"
psk="YourWiFiPassword"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
}
- Run the following code to test it and make sure your router is broadcasting its SSID.
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
(If your wireless interface is not named "wlan0", replace "-iwlan0" with "-i[name-of-your-wireless-interface]". E.g. "-ieth1")
- If your WPA works, change your configuration file so Ubuntu automatically connects you to your network. Run:
gksudo gedit /etc/network/interfaces
In the editor, change your wlan0 (or whatever your wireless interface is) section to the following:
If you are using static IP:
auto wlan0 iface wlan0 inet static address 192.168.1.20 netmask 255.255.255.0 gateway 192.168.1.1 pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant
or this, if you are using dhcp.
auto wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant
- Reload your network configuration:
sudo /etc/init.d/networking restart
Alternately, you can follow the instructions in /usr/share/doc/wpasupplicant/README.modes.gz to configure roaming WPA authentication.
Jak nainstalovat Modem Driver (SmartLink)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
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
Using mobile phone/GPRS/EDGE as Internet modem
"GPRS Easy Connect" (GPRSEC) is a free program for Linux which configures and manages Internet connection via mobile phones. GPRSEC supports COM, USB, IrDA and Bluetooth connections on GPRS, EDGE and UMTS technologies.
- Přečtěte si GPRSEC Homepage
- Přečtěte si Install GPRSEC into Ubuntu Linux
Palm
Jak nastavit PalmOS Devices
First, if you are syncing via USB, try changing "/dev/pilot" to "usb:" in your sync software. This works with JPilot with a variety of PalmOS Devices. If that doesn't work, follow the instructions below.
- Přečtěte si #Základní poznámky
gksudo 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"
- Uložte editovaný soubor
- Add the pilot-applet to the Taskbar by Right-Clicking on an empty spot
- Follow the instructions on screen
Hard Drive
The Disk utility was removed from GNOME. To manipulate the hard drive partitions, you can use one or both utilities: Gparted (GNOME Partition Manager) and/or Pysdm. Gparted is also available as a Live CD. Any manipulation of the partitions of your hard drive risks data loss. Be careful.
- To install Gparted:
sudo apt-get install gparted
- To run Gparted
Systém --> Správa --> GNOME Partition Editor
- To install Pysdm
sudo apt-get install pysdm
- To run pysdm:
sudo pysdm
How to list partition tables
- Přečtěte si #Základní poznámky
sudo fdisk -l
How to list filesystem disk space usage
- Přečtěte si #Základní poznámky
df -Th
How to list mounted devices
- Přečtěte si #Základní poznámky
mount
How to remount /etc/fstab without rebooting
- Přečtěte si #Základní poznámky
mount -a
How to spin down a hard drive
- Přečtěte si #Základní poznámky
- For an ide drive (assuming the hard drive is at hda)
hdparm -y /dev/hda
- For an sata or scsi drive (assuming the hard drive is at sda)
sudo apt-get install sdparm sdparm --command=stop /dev/sda
How to use Logical Volume Manager (LVM2)
The Logical Volume Manager allows a logical drive distributed over different physical media, such as hard drives, USB drives, etc. It allows expandability of storage without the need to rename the drive. It is installed as part of the kernel. However, to use it, free space on a hard drive must be partitioned for use as a LVM device. Either one of the 4 primary partitions on your hard drive must be free to use for LVM, or a logical partition contiguous to other logical partitions must be available for LVM use.
- Přečtěte si LVM HOWTO.
- Přečtěte si #Install EVMS GUI for LVM2 and RAID.
- Using Partman as the partition manager that is included as part of the Ubuntu installation package (i.e. the Live CD), create an LVM-formatted partition in unused free space on your hard drive. To do this, you must pretend to be installing to the hard drive, and complete all the steps until partitioning. After writing the partition changes, abort the installation to prevent installing a new system over your old one (unless this is a new install for you.)
- Create a Volume Group on the LVM partition, still using Partman on the Ubuntu Installation Live CD.
- Create one or more logical drives in the Volume Group, still using Partman.
- Write the partition changes to disk. (If you already have a system installed, abort the installation at this point.)
- Restartujte your computer.
LVM2 (the Logical Volume Manager) is installed by default in Ubuntu Feisty. You can confirm this by searching Synaptic Package Manager for the packages lvm2 and lvm-common. If they are not installed, install them.
- As root user, look in the /dev folder. Find the Volume Group you created with GParted. Make sure the permissions for the Volume Group folder are owner:root:read and write, group:root:access files, others:access files. You should see the logical volumes created previously by Gparted within that volume group folder.
- Confirm and activate the Volume Group (substitute your volume group name for VolGroup00):
sudo modprobe dm-mod sudo vgscan sudo vgchange -ay VolGroup00
- Confirm your logical volumes:
sudo lvs
- Place the ext3 filesystem (or whichever filesystem you are using) on each logical volume (substitute each logical volume name for LogVol00):
sudo mkfs -t ext3 /dev/VolGroup00/LogVol00
- Create a mount folder for each logical volume, with desired permissions (substitute your desired mount name for each logical volume for logdrv0).
sudo mkdir /media/logdrv0
Permissions should be owner:root:create and delete files, group:users:create and delete files, others:access. Make sure you have the users group created and with appropriate members.
- Add entries to /etc/fstab so that the logical volumes are mounted each time at bootup.
sudo gedit /etc/fstab
Add a line for each logical volume:
/dev/VolGroup00/LogVol00 /media/logdrv0 ext3 defaults,rw,user 0 0
- Remount all partitions (with configuration saved in fstab):
mount -a
Jak nainstalovat software RAID
- Přečtěte si #Základní poznámky
- Přečtěte si RAID HOWTO.
- Přečtěte si #Install EVMS GUI for LVM2 and RAID
RAID controls hard drive access when logical volume partitions are spread over two or more hard drives. A logical volume can span multiple drives, and therefore can be expanded by adding hard drives to your system. Although you can use RAID on a single hard drive, there is no advantage to doing so unless you anticipate expanding in the future. RAID is similar to LVM2 (discussed above).
There are RAID "levels" or schemes of storing data that allow for distribution of data across drives, and mirroring of data as a backup across drives, to protect against loss of data in the event of a single hard drive failure. See this discussion for more details. Again, a single hard drive user would not benefit from these levels.
Any hardware RAID controller on a hard drive can be used with the Linux RAID software manager, except for Windows-based "pseudo-RAID" drivers (such as WinModem).
RAID partitions under Ubuntu can be created with the Ubuntu Installation Live CD.
- The Ubuntu installation Live CD is used. The Partman partition manager included on the Ubuntu Installation Live CD will be used to create the RAID partitions. Start installation with the "Install to the Hard Disk option." Go through the initial steps until you come to the partioning options.
- When asked about disk partitioning, select "Manual"
- Delete any undesired partitions. (Be careful if this is a multi-boot system!)
- Select Free Space and create a 'partition' of Type = "physical disk for RAID".
- It is recommended that your base system (root or /) remain on an ext3 partition. However, you may put a second boot system on a RAID partition, and you may put other mount points (e.g. /tmp and /home) on the RAID partitions.
- If you are not installing a new system at this time, you may write the partition changes to disk and then abort the installation. Your previous system should remain intact (except for the partition changes, of course).
- If you are installing a new system, you may continue as normal.
Install EVMS GUI for LVM2 and RAID
- EVMS (Enterprise Volume Management System). This is an official Ubuntu package which manages your LVM and RAID logical drives from a menu. Install evms-gui from Synaptic Package Manager, or z příkazové řádky:
apt-get install evms-gui
Other GUIs for LVM2 and RAID
- LVM GUI Project. Java based. Not updated since 2001.
How to Increase ext3 and ReiserFS filesystems Performance
- Přečtěte si #Základní poznámky
- Přečtěte si Step By Step Tutorial How to Increase ext3 and ReiserFS filesystems Performance
How to backup/mirror/synchronize directories using rsync
- Přečtěte si also #How to copy files/folders from local machine into remote Ubuntu machine (rsync)
- Přečtěte si also #How to copy files/folders from remote Ubuntu machine into local machine (rsync)
- Přečtěte si also #Rsync Daemon
- Přečtěte si this tutorial.
- Poznámka: To merely update the files from one directory to another directory, use:
cp -u <source> <destination>
The -u or --update flag means to copy only when the SOURCE file is newer than the destination file or when the destination file is missing.
USB
How to list USB devices
- Přečtěte si #Základní poznámky
lsusb
Workaround for random device disconnections
Random disconnection is a kernel bug that is not fixed yet. Some users report randomly disconnecting USB devices, especially external hard drives. One solution is to start the system with the option "irqpoll" in grub, but this doesn't work for everybody, and is believed to make the whole system slower. The other solution is to disable USB 2.0. This will result in way slower read/write, but the connection remains stable.
To disable USB 2.0, type this in the terminal:
sudo modprobe -r ehci_hcd
Test if the copy/write process is stable, and if you want to disable USB 2.0 upon boot, type:
sudo sh -c 'echo blacklist ehci_hcd --> /etc/modprobe.d/blacklist-ehci' sudo update-initramfs -u -k `uname -r`
How to recover lost disk space
This error appears to be related to deleting files outside of Ubuntu, and has several Bug listings. If the free disk space on your USB drive is being reported as less than actual, try this:
Unmount the volume (if the device is a Sony PSP or other device where the USB port must be enabled, leave the port enabled)
sudo umount /media/disk
Run Dosfsck
sudo dosfsck -a /dev/sda1
Turn the device off then on again
How to Add Logitech USB audio device
The USB audio device can be easily added and set as default audio device using the following steps.
cat /proc/asound/modules
This displays the available audio devices. Please check if your USB audio device is listed in here. Assuming your in-built audio card is the default device (audio) . First check if the USB audio is working.
cat /bin/bash --> /dev/audio1
Then type the following command
sudo gedit /etc/asound.conf
Key in the following text into the opened blank file
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Save the file and restart the Alsa using the following command
sudo /etc/init.d/alsa-utils restart
Optical Drives
How to speed up CD/DVD-ROM
- Přečtěte si #Základní poznámky
- 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 gksudo gedit /etc/hdparm.conf
- Na konec souboru přidejte tyto řádky
/dev/cdrom {
dma = on
}
- Uložte editovaný soubor
How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated files/folders
- Přečtěte si #Základní poznámky
- e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
- Pro připojení CD/DVD-ROM
sudo mount /media/cdrom0/ -o unhide
- Pro odpojení CD/DVD-ROM
sudo umount /media/cdrom0/
How to forcefully unmount CD/DVD-ROM manually
- Přečtěte si #Základní poznámky
- e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
sudo umount /media/cdrom0/ -l
Monitors / Displays
How to enable Large Widescreen Support
- 24/23" widescreen monitors sometimes have issues running 1920x1200.
- Examples include: Dell 2405, HP 2335 or an Apple Cinema Display.
gksudo gedit /etc/X11/xorg.conf
- CAUTION: Feisty has something called Desktop Effects which can reconfigure your xorg.conf file automatically. If you manually edit the file, Desktop Effects may not work properly. (Always make a copy of the xorg.conf file before editing: cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak )
- Add the following line to the appropriate "Monitor" section:
Modeline "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235
- For example the HP2335 should now look like:
Section "Monitor" Identifier "hp L2335" Option "DPMS" Modeline "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235 EndSection
How to enable CRT output (external monitor/projector) for notebooks (Intel)
Poznámka: Valid for Intel® graphics controller-based products only
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo apt-get install i810switch
Turn on CRT output
i810switch crt on
Turn off CRT output
i810switch crt off
Sound
How to make sound work with Intel Integrated Sound Cards
- Přečtěte si #Základní poznámky
- Edit the file /etc/modprobe.d/alsa-base:
gksudo gedit /etc/modprobe.d/alsa-base
- Add the following line to the end of the file, replacing '3stack' with your flavor (see below)
options snd-hda-intel model=3stack
- If this doesn`t work for you, see the other flavours and options in the source of this information: https://help.ubuntu.com/community/HdaIntelSoundHowto
How to setup surround-sound speakers (5.1 and others) with ALSA
- Přečtěte si #Základní poznámky
- Edit the ~/.asoundrc file (create it if it doesn't exist):
gksudo gedit ~/.asoundrc
- Enter the following section:
pcm.!default {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
- This will play the surround output by duplicating the stereo output to all 6 channels (not only the front ones).
How to change the default soundcard
- Přečtěte si #Základní poznámky
- View available soundcards:
gksudo asoundconf list
- You should get something like this:
Names of available sound cards: Live V8237
- Set the default soundcard (use your desired soundcard in place of example_soundcard):
gksudo asoundconf set-default-card example_sndcard
How to setup PulseAudio Sound Server
PulseAudio, previously known as Polypaudio, is a proxy for your sound applications. It allows you to do advanced operations on your sound data, like transferring the audio to a different machine, changing the sample format or channel count and mixing several sounds into one. For more info: http://pulseaudio.org/
- Nainstalujte:
sudo apt-get install "pulseaudio-*" paman padevchooser paprefs pavucontrol
Optionally, also install the GStreamer 0.10 plugin for PulseAudio:
sudo apt-get install gst-pulse
- If you have Flash Player, install support for PulseAudio:
wget http://pulseaudio.vdbonline.net/libflashsupport/libflashsupport_1.0~2219-1_i386.deb sudo dpkg -i libflashsupport_1.0~2219-1_i386.deb
Here is an alternative mirror for the package in case the link above dies:
libflashsupport_1.0-2219-1_i386.deb
- Edit the ALSA configuration file:
sudo mv /etc/asound.conf /etc/asound.conf.backup gksudo gedit /etc/asound.conf
Add this to asound.conf:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
- Go to System->Preferences->Sounds and check “Enable Software Mixing”
- Go to Applications->Zvuk a video->PulseAudio Preferences (or in a terminal type):
paprefs
Set the following settings:
Make sure that Multicast/RTP is off or else you’ll have problems with skipping and latency. Reboot or in a terminal type:
pulseaudio
- Go to Applications->Zvuk a video->PulseAudio Device Chooser if you have more than one PC with this setup. You’ll be able to choose which computer to send the audio to.
- Add everyone to the pulse-access group:
System->Administration->Users and Groups->Manage Groups pulse-access->Properties
Check everyone in the list. Otherwise, you’ll get weird “no-sound” errors and lockups.
- To control the volume:
Applications->Zvuk a video->PulseAudio Volume Control
- Final Notes
PulseAudio still has some bugs. Skype doesn't work well with PulseAudio (it's better to killall pulseaudio before trying to make a Skype call, although I did get it working through OSS and padsp).
- More info:
The Perfect Setup Revolution Linux wiki http://blog.paulbetts.org
Printers
- Přečtěte si #Print Server (cupsd)
Which default printer drivers are provided in Ubuntu Linux?
- Search through the OpenPrinting database.
How to add a printer
- Introductory basic instructions are available at https://help.ubuntu.com/7.04/printing/C/printing.html#local.
- Then read #Print Server (cupsd)
Hewlett Packard (HP) Printers / Scanners / Copiers
- To install the drivers for any HP printer or "All in one" machines, follow the instructions at http://hplip.sourceforge.net/install/install/index.html.
Brother Printers / Scanners / Copiers
- Brother provides Linux drivers for both lpr and CUPS their printer and MFC models. Debian/Ubuntu installation packages are provided. They provide fax, scanning, and printing functions for local use as well as network use. See their Linux driver website at http://solutions.brother.com/linux/en_us/index.html.
Misc
How to list PCI devices
- Přečtěte si #Základní poznámky
lspci
Jak nainstalovat a Wacom tablet
For a detailed guide with screenshots about Jak nastavit the "Extended input devices" in your graphic applications, please follow the official Dapper guide at https://wiki.ubuntu.com//Wacom
With the version of the Linux Wacom driver (0.7.2) in Ubuntu 6.06 Dapper Drake, if you unplug you tablet, it won't function when you plug it back in and you will have to restart X. For this reason, it is best to leave the tablet plugged in. This limitation will be removed when the 0.7.4 version of the driver is included in Ubuntu.
- Přečtěte si #Základní poznámky
- 1. Using Synaptic package manager, check if the packages xserver-xorg-input-wacom and wacom-tools are already installed - if not, install them. If you prefer using the command line, you can also execute :
sudo apt-get install xserver-xorg-input-wacom wacom-tools
- 2. Save a copy of your /etc/X11/xorg.conf :
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
- then edit it with the command line :
gksudo gedit /etc/X11/xorg.conf
- and change all /dev/wacom occurences into /dev/input/wacom (created by wacom-tools udev scripts), then save the file.
- You should be ready to go after you have restarted X. Remember to configure the "Extended input devices" in your graphic applications (Gimp, Inkscape), however you can already check if it's working by moving your stylus on the tablet : the mouse cursor should go through the whole screen.
How to fix strange mouse behavior when using a KVM switch
- Přečtěte si #Základní poznámky
Some 2-way KVM switches with PS/2 connectors (Keyboard-Video-Mouse switches which allow sharing of these peripherals between different machines) do not function properly. The mouse may jump around on the screen and randomly activate functions.
When the KVM switch is activated, power is briefly lost to the mouse. This resets the kernel's mouse driver (psmouse) to 'basic (base)' mode even if it had been set to 'advanced' mode previously (imps or exps protocols).
- Check whether your psmouse kernel driver supports the options needed:
modinfo psmouse
- Look for the line:
parm: resetafter:Reset(...)
The resetafter parameter tells the mouse driver how many bad packets are accepted before the mouse is told again which protocol to use. In this case you want to change from the default (= never) behavior.
- Edit the /etc/modprobe.d/options file:
gksudo gedit /etc/modprobe.d/options
- Add:
options psmouse resetafter=1
- Restartujte the mousedriver:
sudo modprobe -r psmouse sudo modprobe psmouse
- For more info: see here.
CD/DVD Burning
How to blank CD-RW/DVD-RW
- Přečtěte si #Základní poznámky
- 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
- Přečtěte si #Základní poznámky
Places --> CD/DVD Creator
- Drag files/folders into window
File Menu --> Write to Disc... --> Write
How to burn Image (ISO) files into CD/DVD
- Přečtěte si #Základní poznámky
Right click on Image (ISO) file --> Write to Disc... --> Write
How to duplicate CD/DVD
- Přečtěte si #Základní poznámky
- Přečtěte si #How to create Image (ISO) files from CD/DVD
- Přečtěte si #How to burn Image (ISO) files into CD/DVD
How to create Image (ISO) files from CD/DVD
- Přečtěte si #Základní poznámky
- e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo umount /dev/cdrom readcd dev=/dev/cdrom f=file.iso
- You can also use embedded Linux command
dd if=/dev/cdrom of=file.iso
How to create Image (ISO) files from folders
- Přečtěte si #Základní poznámky
mkisofs -r -o file.iso /location_of_folder/
How to generate MD5 checksum files
- Přečtěte si #Základní poznámky
md5sum file.iso --> file.iso.md5
How to check MD5 checksum of files
- Přečtěte si #Základní poznámky
- 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
- Přečtěte si #Základní poznámky
- Pro připojení Image (ISO) file
sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop
- Pro odpojení Image (ISO) file
sudo umount /media/iso/
- If you want to mount/unmount your ISO image directly right-clicking on it, you can do this from your home dir:
cd .gnome2/nautilus-scripts/ gksudo gedit Mount
Copy this script into Mount file
#!/bin/bash # for I in "$*" do foo=`gksudo -u root -k -m "Enter your password for root terminal access" /bin/echo "got r00t?"` sudo mkdir /media/"$I" sudo mount -o loop -t iso9660 "$I" /media/"$I" && nautilus /media/"$I" --no-desktop done done exit0
Save and close, than do the same with unmount file:
gedit Unmount
Copy these script into Unmount file
#!/bin/bash # for I in "$*" do foo=`gksudo -u root -k -m "Enter your password for root terminal access" /bin/echo "got r00t?"` sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/" done done exit0
Make them executable with:
chmod +x Mount chmod +x Unmount
- Or a graphical tool type in terminal:
sudo apt-get install gisomount
to run type in terminal:
sudo gisomount
How to set/change the burn speed for CD/DVD Burner
- Přečtěte si #Základní poznámky
- Aplikace --> Systémové nástroje --> Configuration Editor
- Configuration Editor
/ --> apps --> nautilus-cd-burner --> default_speed (set/change the burn speed)
How to enable burnproof for CD/DVD Burner
- Přečtěte si #Základní poznámky
- Aplikace --> Systémové nástroje --> Configuration Editor
- Configuration Editor
/ --> apps --> nautilus-cd-burner --> burnproof (Checked)
How to enable overburn for CD/DVD Burner
- Přečtěte si #Základní poznámky
- Aplikace --> Systémové nástroje --> Configuration Editor
- Configuration Editor
/ --> apps --> nautilus-cd-burner --> overburn (Checked)
Jak nainstalovat K3b (CD/DVD burning software)
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
sudo aptitude install k3b
Jak nainstalovat MP3 support for K3b
sudo aptitude install libk3b2-mp3
How to Burn .img DVD Images
First, Install the udftools package:
sudo apt-get install udftools
Here is the command-line method to burning .img images to a dvd:
growisofs -Z /dev/dvd=full_path_to_mydvd.img
Networking
- Complete Ubuntu Networking Tutorial This is Step By Step Ubuntu Networking Guide for Beginners and Advanced Users
How to activate/deactivate síťová připojení
- Přečtěte si #Základní poznámky
- Systém --> Správa --> Síť
- Network settings
Connections Tab --> Select "Ethernet connection" --> Activate/Deactivate
Poznámka: in Feisty, the network names have changed. Instead of "Ethernet connection", you may have "Wireless connection", "Wired connection" and "Modem connection". Also, they don't have an Activate/Deactivate option. Instead, go to "Properties", and activate or deactivate from there.
Jak nastavit síťová připojení
- Přečtěte si #Základní poznámky
- Systém --> Správa --> Síť
- 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
- Přečtěte si #How to activate/deactivate síťová připojení
Jak nastavit dialup connections
- Přečtěte si #Základní poznámky
- To configure dialup
sudo pppconfig
- To connect dialup
pon provider_name
- To disconnect dialup
poff
Jak nastavit broadband connections
- Přečtěte si #Základní poznámky
sudo pppoeconf
How to change computer name
- Přečtěte si #Základní poznámky
- Systém --> Správa --> Síť
- Network settings
General Tab --> Host Settings --> Hostname: Specify the computer name
- Save and close all opened applications, Reboot computer
Alternatively
gksudo gedit /etc/hostname
Change your hostname Also take a look at /etc/hosts. And change your old name to your new one too.
How to change computer descriptions
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Nalezněte tento řádek
... server string = %h server (Samba, Ubuntu) ...
- Replace with the following line
server string = new_computer_descriptions
- Uložte editovaný soubor
sudo testparm sudo /etc/init.d/samba restart
How to change computer Domain/Workgroup
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Nalezněte tento řádek
... workgroup = MSHOME ...
- Replace with the following line
workgroup = new_domain_or_workgroup
- Uložte editovaný soubor
sudo testparm sudo /etc/init.d/samba restart
How to use dynamic IP addressing for your host using the free DynDNS service
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Register a free account at Dynamic DNS (http://www.dyndns.com/services/dns/dyndns). You can register up to 5 free URLs, or more for a monthly fee.
Maintain Dynamic IP address with IPcheck utility
sudo apt-get install ipcheck gksudo gedit /etc/ppp/ip-up.d/dyndns_update
- Insert the following lines into the new file, replacing "myusername" and "mypassword" with your unique username and password.
#!/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
- Uložte editovaný soubor
sudo chmod 700 /etc/ppp/ip-up.d/dyndns_update sudo sh /etc/ppp/ip-up.d/dyndns_update
Maintain Dynamic IP address with ddclient utility
- Nainstalujte ddclient from Synaptic Package manager or z příkazové řádky:
sudo apt-get install ddclient
- Edit the ddclient configuration file:
sudo gedit /etc/ddclient.conf
- Place the following in the file:
protocol=dyndns2 use=web, web=checkip.dyndns.org server=members.dyndns.org # login=my_dyndns_id # (Use the Account Login username you set up at DynDNS) password='my_dyndns_password' # (Use the Account Login user password you set up at DynDNS) # (include the quotation marks) foobar1.dyndns.org # (Use the URL you selected at DynDNS) # foobar2.dyndns.org # (Use the second URL you selected, if any) # foobat3.dyndns.org # (Use the third URL you selected, if any) # fooball4.dyndns.biz # (Use the fourth URL you selected, if any) # toaster5.homelinux.org # (Use the fifth URL you selected, if any)
- Restartujte ddclient:
sudo /etc/init.d/ddclient restart
How to share folders the easy way
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
Klikněte pravým tlačítkem myši on folder --> Share folder
Shared folder --> Share with: Select "SMB" Share properties --> Name: Specify the share name
How to browse network computers
- Přečtěte si #Základní poznámky
- Přečtěte si #How to access network folders without mounting
Places --> Síť Servers
How to access network folders without mounting
- Přečtěte si #Základní poznámky
- In this example:
- Network computer's IP: 192.168.0.2
- Shared folder's name: linux
- Press 'Alt+F2' (Run Application...) and enter:
smb://192.168.0.2/linux
How to mount/unmount network folders manually, and allow all users to read
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
- In this example:
- Network computer's IP: 192.168.0.2
- Network computer's Username: myusername
- Network computer's Password: mypassword
- Shared folder's name: linux
- Local mount folder: /media/sharename
- Pro připojení network folder:
sudo mkdir /media/sharename sudo mount //192.168.0.2/linux /media/sharename/ -o username=myusername,password=mypassword
- Pro odpojení network folder:
sudo umount /media/sharename/
How to mount/unmount network folders manually, and allow all users to read/write
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
- In this example:
- Network computer's IP: 192.168.0.2
- Network computer's Username: myusername
- Network computer's Password: mypassword
- Shared folder's name: linux
- Local mount folder: /media/sharename
- Pro připojení network folder:
sudo mkdir /media/sharename sudo mount //192.168.0.2/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
- Pro odpojení network folder:
sudo umount /media/sharename/
How to mount network folders on boot-up, and allow all users to read
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
- If you do not have smbfs installed yet, install that first:
apt-get install smbfs
- In this example:
- Network computer's IP: 192.168.0.2
- Network computer's Username: myusername
- Network computer's Password: mypassword
- Shared folder's name: linux
- Local mount folder: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
- Insert the following lines into the new file:
username=myusername password=mypassword
- Change the privileges of the saved file:
sudo chmod 700 /root/.smbcredentials
- Copy a backup of the fstab file then edit the fstab file with the mounting options:
sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Append the following line at the end of file:
//192.168.0.2/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
- Přečtěte si #How to remount /etc/fstab without rebooting
How to mount network folders on boot-up, and allow all users to read/write
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat Samba Server for files/folders sharing service
- In this example:
- Network computer's IP: 192.168.0.2
- Network computer's Username: myusername
- Network computer's Password: mypassword
- Shared folder's name: linux
- Local mount folder: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
- Insert the following lines into the new file:
username=myusername password=mypassword
- Change the rpivileges of the .smbcredentials file:
sudo chmod 700 /root/.smbcredentials
- Make a backup copy and then edit the fstab file (which has the mounting options):
sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Append the following line at the end of file:
//192.168.0.2/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
- Přečtěte si #How to remount /etc/fstab without rebooting
How to get ipw2200 and WPA to work
Under Feisty, WPA works right out of the box with network manager.
How to get ipw3945 and wep/wpa to work
Under Feisty, the driver for Intels ipw3945 is loaded by default, no configuration is needed.
How to get Broadcom BCM4318 wireless card to work
Install the driver::
sudo apt-get install BCM43xx-fwcutter
Jak nastavit and start PPTP tunnels (VPN)
- Přečtěte si #Základní poznámky
You can use NetworkManager which comes with Feisty.
- Configure VPN with Network Manager
In a terminal
sudo apt-get install network-manager-pptp
Restart after install.
To setup a VPN:
NetworkManager Icon in the tray --> VPN Connections->Configure VPN
Use the defaults and be sure to check the box:
Authentication: Refuse EAP
To get my connection to work I also had to check:
Compression & encryption: Require MPPE Encryption
- More info: Edgy VPN tutorial
Alternative programs:
- OR
- Nainstalujte manually
wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz tar zxvf pptp.tar.gz cd ./pptp/ sudo sh install cd ..
- Configure a PPTP Client:
gksudo 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 an icon appears in the menu.
- Start the client:
Aplikace --> Internet --> PPTP Client
How to setup a PGP key with Seahorse and Evolution
- Přečtěte si #Základní poznámky
- Install:
apt-get install seahorse
Aplikace --> Accessories --> Passwords and Encryption Keys Key --> Create New Key
- Select "PGP Key", then fill out information. Ensure that you use your real email address.
- Klikněte pravým tlačítkem myši on the key entry to export, sync or publish your key.
- Evolution should now hopefully see the key transparently.
How to Setup BIND DNS Server
- The BIND DNS Server is installed as a meta-package in Feisty.
Systém --> Správa --> Správce balíků Synaptic --> Mark packages by task --> DNS server
This will install all dependencies and configuration files.
- Alternatively, you can install z příkazové řádky (see this reference):
sudo apt-get install bind9
- Configure the main Bind files. Usually, if you install Bind from the source code, you will have to edit the file named.conf. However, Ubuntu provides you with a pre-configured Bind, so we will edit another file:
gksudo gedit /etc/bind/named.conf.local
A zone is a domain name that is referenced in the DNS server. Insert the zones in the named.conf.local file:
# This is the zone definition. replace example.com with your domain name
zone "example.com" {
type master;
file "/etc/bind/zones/example.com.db";
};
# This is the zone definition for reverse DNS. replace 0.168.192 with your
# network address in reverse notation - e.g my network address is 192.168.0
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
- Ok, now, let's edit the options file:
sudo -e /etc/bind/named.conf.options
- We need to modify the forwarder. This is the DNS server to which your own DNS will forward the requests he cannot process.
forwarders {
# Replace the address below with the address of your provider's DNS server
123.123.123.123;
};
- Now, let's add the zone definition files (replace example.com with your domain name):
sudo mkdir /etc/bind/zones sudo -e /etc/bind/zones/example.com.db
- The zone definition file is where we will put all the addresses / machine names that our DNS server will know. You can take the following example:
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
example.com. IN SOA ns1.example.com. admin.example.com. (
// Do not modify the following lines!
2006081401
28800
3600
604800
38400
)
// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
example.com. IN NS ns1.example.com.
example.com. IN MX 10 mta.example.com.
// Replace the IP address with the right IP addresses.
www IN A 192.168.0.2
mta IN A 192.168.0.3
ns1 IN A 192.168.0.4
- Create the reverse DNS zone file:
sudo -e /etc/bind/zones/rev.0.168.192.in-addr.arpa
- Copy and paste the following text, modify as needed:
//replace example.com with yoour domain name, ns1 with your DNS server name. // The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 4, as my IP address is 192.168.0.4. @ IN SOA ns1.example.com. admin.example.com. ( 2006081401; 28800; 604800; 604800; 86400 ) IN NS ns1.example.com. 4 IN PTR example.com
- Restartujte bind:
sudo /etc/init.d/bind9 restart
- Test the new DNS server...
- Modify the file resolv.conf with the following settings:
sudo -e /etc/resolv.conf
- Enter the following:
// replace example.com with your domain name, and 192.168.0.4 with the address of your new DNS server. search example.com nameserver 192.168.0.4
- Test your DNS:
dig example.com
Connect to Internet using mobile phone/GPRS/EDGE
How to set up internet connection sharing
How to resolve Netbios hostnames
- Přečtěte si #Základní poznámky
- Systém --> Správa --> Síť
- Network settings
sudo gedit /etc/nsswitch.conf
- Nalezněte tento řádek
hosts: files dns
- Replace with the following line
hosts: files dns wins
- Uložte editovaný soubor
sudo apt-get install winbind
Remote Access
Poznámka: By themselves, neither XDMCP nor Remote Desktop sharing (VNC) are secure methods of sharing. Both send unencrypted data. They are recommended only for use within your firewall-protected LAN, or coupled with secure tunnels such as SSH or VPN.
Remote Login via XDMCP
What is XDMCP?
- GNOME (like other display managers) supports multiple simultaneous users. XDMCP is a thin client that allows multiple remote GNOME (and other display manager) users to log into a host machine, even if a local user is signed in there. There is no screen sharing with the local user; each login has their own session. (This is in contrast to VNCviewer (Remote Desktop), which merely duplicates the host screen for display on the remote client and provides screen sharing capabilities with the remote computer.)
The thin client features of XDMCP allows users on the LAN to login to a host to use CPU-intensive applications on a host server.
- XDMCP uses UDP port 177 and TCP port 6000. You should make sure that your router does not allow these ports to be accessed from the Internet, or your system will be potentially accessible from the Internet. If you have Firestarter installed as a local firewall, make sure that you open the ports for your LAN only by specifying incoming/outgoing traffic on these ports for your LAN:
192.168.0.1/24 (if your LAN is on 192.168.0.1-192.168.0.254, for example).
You are strongly urged to learn how to use IPTables (or the Firestarter GUI which manages IPTables) before using XDMCP.
How to turn on the XDMCP feature
- To turn on the XDMCP feature on the host computer:
Systém --> Správa --> Přihlašovací okno --> Remote --> Style:Same as Local
Reboot.
How to login from another PC running Ubuntu
- Poznámka: XDMCP is not encrypted and is not secure outside of a firewall-protected LAN. If you are attempting to use XDMCP over the Internet, it should be used with VPN secure tunneling. Unfortunately, UDP port forwarding is not available with SSH, so XDMCP cannot be used with SSH.
At the login screen:
Options --> Remote Login via XDMCP
Type in the host name or IP address (example: 192.168.0.2) of the remote computer.
Run an Ubuntu host from a Windows Client machine
- You can run a screen-sharing-only solution (through an SSH tunnel) using VNC (remote desktop). Read #How to connect into a remote Ubuntu desktop host from a Windows machine
- Xming is a full X-client for the Windows platform, that allows a windows user to access applications on a Linux host. For full information, see the Xming website.
- Cygwin/X is a miniature Linux installation on your Windows machine that runs Linux applications, including an X-server. See the Cygwin/X website for more information. Also Read Installing OpenSSH with Cygwin.
Remote Desktop Sharing/Duplication using VNC
Unlike the GNOME thin-client XDMCP, VNC (Remote Desktop) is merely a screen sharing solution. It allows a remote user to view and manipulate the desktop of a single user logged into the host computer. Combined with an SSH tunnel, however, it can allow secure remote access to the host computer's GNOME (or other GUI) desktop.
Jak nastavit a Remote Desktop host
- Poznámka: By itself, Remote Desktop (VNC) hosting is not a secure method of sharing your desktop because communications are not encrypted. Simple password authentication is also used (which can be broken by simple hacking programs). It should therefore not be used outside of a firewall-protected LAN unless it is coupled with a secure SSH or VPN data tunnel.
- Remote Desktop will only work if a user is currently logged in to GNOME
- Leaving a computer with an unattended GNOME session is not secure. It is recommended to use Systém --> Lock Screen and switch off the monitor when the computer is left unattended.
- Enable Remote Desktop (VNC):
Systém --> Volby --> 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 desktop or VNC host from a Ubuntu/Linux machine
- Přečtěte si #Základní poznámky
- If the remote host is an Ubuntu machine, it must have Remote Desktop configured (read #Jak nastavit a Remote Desktop host)
- If the remote host is a Windows machine, it must be running a VNC server such as TightVNC server.
- In this example, the remote host computer has an IP address on the LAN of 192.168.0.2.
vncviewer -fullscreen 192.168.0.2
The -fullscreen option creates a fullscreen replica of the remote computer's screen on your screen. To run the viewer in a window, do not add this option.
- To quit vncviewer
Press 'F8' --> Quit viewer
How to connect into a remote Ubuntu desktop host from a Windows machine
- Přečtěte si #Základní poznámky
- The remote Ubuntu host must have Remote Desktop configured (read #Jak nastavit a Remote Desktop host)
- Poznámka: This method is not encrypted and should not be used outside of a LAN unless secured through an SSH (or VPN) tunnel. Opening a VNC server on port 5900 to the Internet is very risky.
- Port 5900 should be opened for use within your LAN only. If more than one VNC/Remote Desktop session is to be used, you must open more ports (5901, 5902, etc.) In Firestarter, this can be done by selecting the appropriate ports (5900-5904, for example) and restricting this port range for incoming and outgoing usage to your LAN, 192.168.0.1/24 for example). See Wikipedia port forwarding and the Firestarter instructions.
- Several VNC clients are available for Windows. Download and install one.
- Tight VNC: http://www.tightvnc.com/ (Recommended. Best for low bandwidth solutions such as DSL or wireless.)
- RealVNC: http://www.realvnc.com/products/personal/ (The original VNC. Also available in an enterprise edition.)
- DotNetVNC: http://dotnetvnc.sourceforge.net/ (Requires the Microsoft DotNet framework.)
- Run the VNC application. You can enter the IP address of your remote computer (192.168.0.2 in the example) in any of these formats:
- 192.168.0.2
- 192.168.0.2:0 (assuming this is the first connection. Use 192.168.0.2:1 for the second connection, and so on.)
- 192.168.0.2:5900 (assuming this is the first connection. Use 192.168.0.2:5901 for the second connection, and so on.)
If you wish to connect with VNC over the Internet, you must tunnel VNC through SSH (or VPN). Ubuntu has the OpenSSH server installed by default, but the service must be started. PuTTY is an SSH client for Windows that will connect to OpenSSH. Once an SSH tunnel is established, VNC can be run through the SSH tunnel port (and not port 5900) in an encrypted, secure fashion.
How to connect into a remote Ubuntu desktop host from OS X
- Přečtěte si #Základní poznámky
- Remote Ubuntu host machine must have Remote Desktop configured (read #Jak nastavit a Remote Desktop host)
- Poznámka: This method is not encrypted and should not be used outside of a LAN unless secured through an SSH (or VPN) tunnel. Opening a VNC server on port 5900 to the Internet is very risky.
- Port 5900 should be opened for use within your LAN only. If more than one VNC/Remote Desktop session is to be used, you must open more ports (5901, 5902, etc.) In Firestarter, this can be done by selecting the appropriate ports (5900-5904, for example) and restricting this port range for incoming and outgoing usage to your LAN, 192.168.0.1/24 for example). See Wikipedia port forwarding and the Firestarter instructions.
- Stáhněte and install:
ChickenOfTheVNC: http://sourceforge.net/projects/cotvnc/
- Run the VNC application. You can enter the IP address of your remote computer (192.168.0.2 in the example) in any of these formats:
- 192.168.0.2
- 192.168.0.2:0 (assuming this is the first connection. Use 192.168.0.2:1 for the second connection, and so on.)
- 192.168.0.2:5900 (assuming this is the first connection. Use 192.168.0.2:5901 for the second connection, and so on.)
If you wish to connect with VNC over the Internet, you must tunnel VNC through SSH (or VPN). Ubuntu has the OpenSSH server installed by default, but the service must be started. MacSSH is an SSH client for OS X that will connect to OpenSSH. Once an SSH tunnel is established, ChickenOfTheVNC can be run through the SSH tunnel port (and not port 5900) in an encrypted, secure fashion.
How to Run a Windows machine from Ubuntu securely using VNC
- By itself, VNC is not a secure solution over the internet. SSH (or VPN) tunneling is recommended in combination with VNC. OpenSSH is the SSH hosting/tunneling package used for both Ubuntu and Windows. OpenSSH is installed by default in Ubuntu, but must be installed (with Cygwin) on a Windows machine.
- To set up a secure SSH tunnel on a Windows machine, you should set up Cygwin (a mini-Linux installation for Windows) first, selecting OpenSSH under Cygwin as part of the installation process. Read Installing OpenSSH and Cygwin on Windows. Follow the instructions exactly.
- Make sure you open the appropriate ports in IPTables (using Firestarter, for example) for SSH tunneling on your Ubuntu client. Also open the port in the Windows Firewall for your Windows host. Port 22 is the standard SSH port, but if you want extra security, you can change the SSH port (see the OpenSSH configuration instructions) to an alternate port number. Make sure the router on your host LAN forwards the chosen SSH port (e.g. 22) to the Windows host computer. For example, if your Windows SSH host on your LAN is at 192.168.0.71, your router must forward port 22 to 192.168.0.71. (If you have multiple SSH hosts on your LAN, each individual host can have its own dedicated SSH port to be forwarded by the router. Change the OpenSSH configuration file on each host to reflect the chosen dedicated alternate SSH port number.)
- Přečtěte si #How to SSH into remote Ubuntu host. When you request an SSH tunnel from your remote Ubuntu client, you must SSH to the IP address of the router, not the host. If the router's IP address changes dynamically, you must set up Dynamic DNS addressing for the host LAN through a service such as DynDNS. You would then create the SSH tunnel to the DynDNS URL assigned to your LAN instead of to the actual IP address (which constantly changes with dynamic IP addressing).
- When the SSH tunnel has been confirmed as working all the way to your Windows host on your LAN, install a VNC server on the Windows host machine. TightVNC Server is recommended. Read the TightVNC instructions for tunneling over SSH.
- Přečtěte si #Using SSH to Port Forward. Create a tunnel over SSH for port 5900 (the port that VNC uses by default) to either your host LAN's static IP or to the DynDNS URL you have set up. This will direct any calls to port 5900 from the remote Ubuntu client through the SSH tunnel, instead of sending them over the Internet directly over port 5900 (a risky proposition).
ssh -L <local port>:<remote computer>:<remote port> <user>@<remote ip>
- In this example, port 5900 is used locally for VNC on both the host and client computers, but data is passed through the SSH tunnel (on port 22 by default). The user named foowho has an account on the host computer. The host is on a LAN that has dynamic IP addressing through the DynDNS service and has a URL foobar.dyndns.org. The router forwards port 22 to the host, where the TightVNC server is listening on remote port 5900.
ssh -L 5900:foobar.dyndns.org:5900 foowho
- In this example, port 5900 is again used by VNC on both sides of the tunnel. This time the host LAN has a static IP address of 94.97.2.18. The host OpenSSH is set to listen on port 11022 in the ssdh_config file. The TightVNC server is listening on remote port 5900.
ssh -L 5900:94.97.2.18:5900 foowho -p 11022
- On your Ubuntu remote machine, VNC to 127.0.0.1, the loopback address.
vncviewer 127.0.0.1
VNCViewer will then (by default) look for local port 5900 in the loopback, on which the SSH tunnel is running from the previous step. The Ubuntu SSH client will now send the VNC connection data over port 22 (instead of over port 5900) to the Windows OpenSSH host server, which is listening on port 22 (unless you have changed it). The Windows OpenSSH server (in Cygwin) will then internally redirect port 5900 communications to the TightVNC server on your Windows host. By using this tunnel for all VNC/port 5900 communications, port 5900 on your router needs never be open to the Internet, since all port 5900 communications are handled only locally on each end, and sent over the internet through the tunnel. In fact, port 5900 ought to be remain closed on your router, to prevent non-secure VNC connection attempts from the Internet (by hackers/crackers).
- Routine usage requires staring the SSH tunnel to your Windows host first, then starting the vnc client (vncviewer 127.0.0.1). You can write a simple two line script file to automate the process.
Windows
How to Mount Windows Partitions
How to Mount NTFS Partitions
Step By Step Guide How to Mount Windows Partitions in Feisty
How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only
- Přečtěte si #Základní poznámky
- Přečtěte si #How to list partition tables
- In this example:
- /dev/hda1 is the location of Windows partition (NTFS)
- Local mount folder: /media/windows
- Pro připojení a Windows partition:
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
- Pro odpojení a Windows partition
sudo umount /media/windows/
How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write
- Přečtěte si #Základní poznámky
- Přečtěte si #How to list partition tables
- In this example:
- /dev/hda1 is the location of the Windows partition (FAT)
- Local mount folder: /media/windows
- Pro připojení a Windows partition
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
- Pro odpojení a Windows partition
sudo umount /media/windows/
How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only
- Přečtěte si #Základní poznámky
- Přečtěte si #How to list partition tables
- In this example:
- /dev/hda1 is the location of the Windows partition (NTFS)
- Local mount folder: /media/windows
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Append the following line at the end of file:
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
- Přečtěte si #How to remount /etc/fstab without rebooting
How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
- Přečtěte si #Základní poznámky
- Přečtěte si #How to list partition tables
- In this example:
- /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 gksudo gedit /etc/fstab
- Append the following line at the end of file
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
- Přečtěte si #How to remount /etc/fstab without rebooting
How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access
Warning: The software you will use is still in Beta. You should not enable it on production machines
- Přečtěte si #Základní poznámky
- Enable universe. Read #How to apt-get the easy way (Synaptic)
- Aplikace --> Add/Remove --> search for 'NTFS', you should find NTFS Configuration Tool, install it.
- Aplikace --> Systémové nástroje --> NTFS Configuration Tool --> Enable Write Support (depending on your device internal/external)
- Further troubleshooting is listed at this comprehensive howto thread.
Security
What are the basic things I need to know about securing my Ubuntu
- Přečtěte si #Základní poznámky
- 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
- Not create a password with just a single or just a typical union of main languages (english, german, french, spanish...) dictionary words
- 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
- Přečtěte si #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
- Přečtěte si #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
- Přečtěte si #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
- Přečtěte si #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
- Přečtěte si #How to přidat/editovat/mazat 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)
- Přečtěte si #How to disable root user account
- Nainstalujte a Firewall
- A firewall does not guarantee security but it is in most environments the first line of defense against network based attacks
- Přečtěte si #Jak nainstalovat Firewall (Firestarter)
- Perform vulnerability test
- Nessus is a great tool designed to automate the testing and discovery of known security problems
- Přečtěte si #Jak nainstalovat Vulnerability Scanner (Nessus)
How to disable all interactive editing control for GRUB menu
- Přečtěte si #Základní poznámky
- Run This:
grub-md5-crypt
Password: Retype password: $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/
- Backup your current configuration file
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Nalezněte tuto sekci
... ## 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$tumnZ1$xB/shuXs7MlawZXkLiBDV/ # password topsecret ...
- Add the following line below it
password --md5 $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/ (encrypted password above)
- Nalezněte tuto sekci
... ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ...
- Make the following change:
... ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=true ...
- Uložte editovaný soubor then run update-grub:
sudo update-grub
This will make it so your grub console will require a password to edit the lines, and the recovery modes won't work unless the password is typed. To access the other grub options at the menu, follow the instructions at the bottom of the screen. It will be something like pressing p and typing your password.
How to disable history listing in Console mode
- Přečtěte si #Základní poznámky
- From Gentoo Wiki:
rm -f .bash_history gedit ~/.bash_profile
- Add the following:
export HISTFILESIZE=4 unset HISTFILE # Change this to a reasonable number of lines to save, I like to save only 100. export HISTSIZE=1 # Ignores duplicate lines next to each other export HISTCONTROL=ignoredups
This will disable Bash history for the user, retaining keystroke history and recall to use while limiting recall history to 100 lines. This will also not record duplicate lines next to each other.
How to disable recently used documents
- Přečtěte si #Základní poznámky
- From Disabling recently-used documents.
- To disable run this in your user directory. Example: /home/username/
sudo rm ~/.recently-used ~/.recently-used.xbel && mkdir ~/.recently-used.xbel
How to clear history listing in Console mode
- Přečtěte si #Základní poznámky
history -c
This will just clear your current history.
How to disable Ctrl+Alt+Del from restarting computer in Console mode
- Přečtěte si #Základní poznámky
sudo cp /etc/inittab /etc/inittab_backup gksudo gedit /etc/inittab
- Nalezněte tento řádek
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
- Replace with the following line
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- Uložte editovaný soubor
sudo telinit q
How to enable prompt before removal/overwritten of files/folders in Console mode
- Přečtěte si #Základní poznámky
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup gksudo gedit /etc/bash.bashrc
- Na konec souboru přidejte tyto řádky
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
- Uložte editovaný soubor
How to setup a LoJack system for your laptop
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Přečtěte si #How to use dynamic IP addressing for your host using the free DynDNS service
- Přečtěte si #Maintain Dynamic IP address with ddclient utility
- If your laptop is stolen and then subsequently connected to the Internet, you will be able to find out from which IP address it connects to the Internet, by this method.
- Get a free dynamic IP account from one of the many providers, such as DynDNS. Read #How to use dynamic IP addressing for your host using the free DynDNS service. Remember the hostname you set up, such as yourhostname.dyndns.org.
- Nainstalujte ddclient. Read #Maintain Dynamic IP address with ddclient utility. Ddclient updates the IP address at DynDNS every 5 minutes by default (unless you change it).
- The hostname (yourhostname.dyndns.org in the example) that you registered with your dynamic IP service (i.e. DynDNS) should be updated whenever someone runs your computer, stolen or not. You can find out from which IP address the computer was last run by using the ping command:
ping yourhostname.dyndns.org
- You can then look up the IP address with a reverse IP service and at least get an idea in what city your laptop is in. Of course, if the IP address resolves to one of a large bank of addresses used by an ISP provider, such as AT&T, you may not be helped much by this method.
How to get advanced protection against buffer overflows with grsecurity
- You can get advanced protection against buffer overflows by using a PaX/grsecurity enabled kernel. You can get a precompiled version for Ubuntu at kernelsec
How to add Access Control Lists (ACLs)
- You can obtain finer control of permissions over files and folders similar to NTFS in Windows by installing acl. Additionally, Eiciel will add an Access Control List tab to file and folder properties in Nautilus. Original instructions were found here. See the serfacl command manual for information on setting ACLs from the console.
sudo apt-get install acl
- After installing, modify your /etc/fstab to add the "acl" option to each device/partition you want to have ACL functionality. It should look like something similar to this:
# /dev/hda3 UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext3 defaults,acl,errors=remount-ro 0 1 # /dev/hda4 UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home ext3 defaults,acl 0 2 ...
- Remount the file system(s) ACL will be enabled on:
sudo mount / -o remount sudo mount /home -o remount ...
- Install Eiciel:
sudo apt-get install eiciel
- Restart Nautilus (may need to be manually restarted). See Eiciel installation page for more details.
nautilus -q
Firewall
Ubuntu has a built-in firewall system called IPtables (netfilter) that is enabled by default. At installation all ports are open and there is effectively no filtering/protection. To close the ports and leave only the ones you want open, you must either manually edit the iptables or use a GUI (such as Firestarter). Once you edit the iptables configuration, your computer will be better protected from attacks from the Internet.
Manually configuring IPtables
- Přečtěte si UbuntuHelp Iptables
- Přečtěte si Netfilter's documentation for iptables
- Přečtěte si the manual:
man iptables
Jak nainstalovat IPtables Firewall Configuration GUI (Firestarter)
- Přečtěte si #Základní poznámky
- Firetarter is a GNOME GUI. For KDE (Kubuntu) users, try fwbuilder, guarddog, guidedog, kmyfirewall, or knetfilter.
- You are strongly recommended to learn and use Firestarter for managing iptables/netfilter. For more information: http://www.fs-security.com/
Firestarter is the easiest GUI to change the IPtables and alter the firewall functions. Firestarter itself does not perform these firewall functions. It is only a method for changing your IPtables firewall settings. When Firestarter is installed from the package, it integrates with iptables, which runs in the background as a system service. After running Firestarter's initial setup wizard, your iptables will be changed and most ports closed. Firestarter then needs to be run only when you wish to change settings.
- To install the package, the universe repository must be enabled. Read #Jak přidat extra repositáře. Then install the package:
Systém --> Správa --> Správce balíků Synaptic --> Search --> firestarter --> Mark for Installation
or (from command-line terminal):
sudo apt-get install firestarter
- Run Firestarter:
Systém --> Správa --> Firestarter
How to minimize Firestarter to a panel icon when closed
Systém --> Správa --> Firestarter --> Preferences --> Enable tray icon
How to make the Firestarter GUI start automatically at startup
- Poznámka: Once you have setup the iptables firewall the first time using Firestarter, you do not need to have Firestarter running to be protected by the IPtables firewall (which is then always enabled in Ubuntu). Firestarter is only the GUI for changing the settings of the firewall; it only needs to be started when doing so. The following step is therefore unnecessary for most users.
Systém --> Volby --> Sessions --> Startup Programs --> New Name: Firestarter --start-hidden
How to have Firestarter start without the root password
- Přečtěte si #Security
- Warning: This is NOT secure. It is unnecessary for most users.
- The original instructions can be found at the Firestarter FAQ website.
- Edit the configuration file:
sudo gedit /etc/sudoers
Poznámka: You can also edit the sudoers file using:
export EDITOR=gedit sudo visudo
- In the Defaults section of the file, comment out this line with a with a hashmark (#) at the beginning of the line (optional):
#Defaults !lecture,tty_tickets,!fqdn
Add this line right after it (optional):
Defaults !lecture,tty_tickets,!fqdn,env_reset,env_keep+="DISPLAY HOME XAUTHORIZATION"
- At the bottom of the file add the line:
your_user_name ALL= NOPASSWD: /usr/sbin/firestarter
Replace 'your_user_name' with your actual username.
- Reboot.
Using Shorewall to manage iptables
Shorewall is an alternative to Firestarter. It allows more options to be set, but is more difficult to use. It can be administered from a GUI using Webmin.
- Přečtěte si Getting Started with Shorewall
Anti-virus
ClamAV AntiVirus Server
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak přidat extra repositáře
- Although viruses and spyware are less common in Linux systems, they do exist. Furthermore, many users share files with Windows users, either on their own computer or on LANs. ClamAV is useful for checking these files.
- Nainstalujte ClamAV AntiVirus Server:
sudo apt-get install clamav
If you get errors, try running the command again
How to update virus definitions
- Virus definition updates are provided by the clamav-freshclam module, which is installed as part of clamav.
- Run freshclam manually:
sudo freshclam
Jak nainstalovat ClamAV automatic updater daemon
- The clamav daemon will run freshclam automatically to keep definitions up-to-date. It will also run e-mail server checking modules for e-mail attachments.
sudo apt-get install clamav-daemon
How to scan files or folders
sudo clamscan -r /location_of_files_or_folders
Jak nainstalovat ClamTk GUI frontend for ClamAV
sudo apt-get install clamtk
ClamTk can be accessed from the Menu: Aplikace --> Accessories --> Virus Scanner
- Poznámka: As of August 1, 2007, the Ubuntu repository version of ClamTk is 0.31, which has a bug that does not allow it to run. Obtain and install the current version of ClamTk 0.99, which functions fine in Ubuntu Feisty:
wget -c http://downloads.sourceforge.net/clamtk/clamtk_2.99-1_all.deb sudo dpkg -i clamtk_2.99-1_all.deb
How to automatically scan files/folders for viruses
- Přečtěte si #Základní poznámky
- Přečtěte si #Jak nainstalovat ClamAV AntiVirus Server
- 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
- Uložte editovaný soubor
Boot Menu
How to gain root user access without login
- Přečtěte si #Základní poznámky
- 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
- Přečtěte si #Základní poznámky
- 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
- Přečtěte si #Základní poznámky
- 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
- Přečtěte si #Základní poznámky
- Přečtěte si #How to gain root user access without login
- To change root user password
# passwd root
- To change main user password
# passwd system_main_username
How to change GRUB menu password if forgotten
- Přečtěte si #Základní poznámky
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 gksudo gedit /boot/grub/menu.lst
- Nalezněte tento řádek
