cheatsheets/*: move to GitHub gist && add redirections to the new locations

This commit is contained in:
Mikaela Suomalainen 2012-12-19 17:04:26 +02:00
parent 15c5a2f5ef
commit 52c3cff117
4 changed files with 2 additions and 571 deletions

View File

@ -1,64 +1 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" /> <!-- <meta http-equiv="refresh" content="60" /> --> <meta name="description" content="dd cheatsheet" /> <meta name="keywords" content="dd,usb,isohybrid,hybridiso,syslinux" /> <meta name="author" content="Mika Suomalainen" /> <link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/dd.html">
<title>
dd cheatsheet
</title>
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
</head>
<body>
<hr/>
<a href="../../sitemap/sitemap.html">Sitemap</a>
<hr/>
<h1 id="introductiom">Introductiom</h1>
<p>Programs used / Debian packages</p>
<p>isohybrid dd ddrescue / syslinux coreutils gddrescue</p>
<p>Finding out what is the USB drive in /dev/sd*</p>
<p>Start by mounting the stick which should be automatic in GUI.</p>
<pre><code>mount|grep /dev/sd</code></pre>
<p>should tell what is the /dev/USBSTICK</p>
<h2 id="creating-bootable-usb-stick">Creating bootable USB stick</h2>
<pre><code>isohybrid image.iso
dd if=image of=/dev/USBSTICK bs=1024;</code></pre>
<h2 id="creating-.iso-from-cddvd">Creating .iso from CD/DVD</h2>
<p>First unmount the CD/DVD and then</p>
<pre><code>dd if=/dev/DRIVE of=image.iso</code></pre>
<p>DRIVE can be /dev/dvd /dev/cdrom or /dev/scd0 depending on the CD/DVD.</p>
<h2 id="backing-up-scratched-cddvd">Backing up scratched CD/DVD</h2>
<pre><code>ddrescue -v /dev/device /where/to/create/the/file.iso /path/to/logfile.log</code></pre>
<p>The logfile.log is used to keep track of what has been recovered. You can use same logfile for multiple clones.</p>
<p>Usage: You have two broken copies of same device. First you clone the other and then give same command to other, different source, but same destination and log file. If the device isn't broken on same part as the another, ddrescue will build a complete file.</p>
<p>I would also use ddrescue with backing up large devicces instead of dd.</p>
<!-- vim : set ft=html -->
<hr/>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_developer = 0;
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/dd.html';
var disques_title = 'dd cheatsheet';
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
.appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis qus.</a>
</noscript>
<p>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus </span></a>
</p>
<!-- vim : set ft=html -->
</body>
</html>
<meta HTTP-EQUIV="REFRESH" content="0; url=https://gist.github.com/4337296">

View File

@ -1,91 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="refresh" content="60" /> -->
<meta name="description" content="dd cheatsheet" />
<meta name="keywords" content="dd,usb,isohybrid,hybridiso,syslinux" />
<meta name="author" content="Mika Suomalainen" />
<link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/dd.html">
<title>dd cheatsheet</title>
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
</head>
<body>
<hr/>
[Sitemap](../../sitemap/sitemap.html)
<hr/>
# Introductiom
Programs used / Debian packages
isohybrid dd ddrescue / syslinux coreutils gddrescue
Finding out what is the USB drive in /dev/sd*
Start by mounting the stick which should be automatic in GUI.
```
mount|grep /dev/sd
```
should tell what is the /dev/USBSTICK
## Creating bootable USB stick
```
isohybrid image.iso
dd if=image of=/dev/USBSTICK bs=1024;
```
## Creating .iso from CD/DVD
First unmount the CD/DVD and then
```
dd if=/dev/DRIVE of=image.iso
```
DRIVE can be /dev/dvd /dev/cdrom or /dev/scd0 depending on the CD/DVD.
## Backing up scratched CD/DVD
```
ddrescue -v /dev/device /where/to/create/the/file.iso /path/to/logfile.log
```
The logfile.log is used to keep track of what has been recovered. You can use same logfile for multiple clones.
Usage: You have two broken copies of same device. First you clone the other and then give same command to other, different source, but same destination and log file. If the device isn't broken on same part as the another, ddrescue will build a complete file.
I would also use ddrescue with backing up large devicces instead of dd.
<!-- vim : set ft=html -->
<hr/>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_developer = 0;
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/dd.html';
var disques_title = 'dd cheatsheet';
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
.appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis
qus.</a>
</noscript>
<p><a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus
</span></a></p>
<!-- vim : set ft=html -->
</body>
</html>

View File

@ -1,196 +1 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" /> <!-- <meta http-equiv="refresh" content="60" /> --> <meta name="description" content="My cheatsheet for rpm based distributions, mainly CentOS/Fedora." /> <meta name="keywords" content="rpm,Linux,CentOS,Fedora" /> <meta name="author" content="Mika Suomalainen" /> <link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/rpm.html">
<title>
Cheatsheet for distributions using rpm
</title>
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
</head>
<body>
<hr/>
<a href="../../sitemap/sitemap.html">Sitemap</a>
<hr/>
<h1 id="my-cheatsheet">My cheatsheet</h1>
<p>This is my cheatsheet for setting up distribution using rpm (mainly Fedora &amp; CentOS). I am more experienced with distributions using dpkg, so I need this a little in the beginning.</p>
<h2 id="always-get-the-fastest-mirror">Always get the fastest mirror</h2>
<pre><code>yum install yum-plugin-fastestmirror</code></pre>
<p>By default cheks every 10 days, change configuration variable &quot;maxhostfileage&quot; file to 0 to make it search always when yum is ran in /etc/yum/yum.pluginconf.d/fastestmirror.conf and check that &quot;enabled&quot; is set to &quot;1&quot;. If it's 0, the plugin is disabled.</p>
<h2 id="rd-party-repositories">3rd party repositories</h2>
<table>
<tr>
<td>
Repository
</td>
<td>
My priority
</td>
<td>
Description
</td>
</tr>
<tr>
<td>
Base/Fedora-*
</td>
<td>
1
</td>
<td>
Official Fedora/CentOS packages
</td>
</tr>
<tr>
<td>
Extra
</td>
<td>
2
</td>
<td>
CentOS only, extra packages
</td>
</tr>
<tr>
<td>
<a href="https://get.adobe.com/flashplayer/">Flash</a>
</td>
<td>
10
</td>
<td>
Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only.
</td>
</tr>
<tr>
<td>
<a href="https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F">EPEL</a>
</td>
<td>
10
</td>
<td>
Extra Packages for Enterprise Linux (CentOS only)
</td>
</tr>
<tr>
<td>
<a href="http://rpmfusion.org/Configuration">RPM Fusion</a>
</td>
<td>
11
</td>
<td>
&quot;Provides software that the Fedora Project or Red Hat doesn't want to ship&quot;
</td>
</tr>
<tr>
<td>
<a href="http://rpm.livna.org/">Livna</a>
</td>
<td>
11
</td>
<td>
Provides libdvdcss for watching DVDs
</td>
</tr>
<tr>
<td>
<a href="http://repoforge.org/use/">RPM Forge</a>
</td>
<td>
12
</td>
<td>
CentOS only ( ? ), &quot;Provides a set of repositories&quot;
</td>
</tr>
</table>
<h3 id="terminal-enabling">Terminal enabling</h3>
<p>This is faster than the GUI method</p>
<h3 id="fedora">Fedora</h3>
<pre><code>echo &quot;Adobe doesn&#39;t provide direct download link for the package :(&quot;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rpm -ivh http://rpm.livna.org/livna-release.rpm</code></pre>
<h3 id="centos">CentOS</h3>
<pre><code>echo &quot;Adobe doesn&#39;t provide direct download link for the package :(&quot;
rpm -ivh http://download.fedoraproject.org/pub/epel/&lt;RELEASE&gt;/i386/repoview/epel-release.html # replace &lt;release&gt; with CentOS / RedHat version. For example: 5 or 6 NOT 6.X or 5.X!
rpm -ivh http://download1.rpmfusion.org/free/el/updates/&lt;RELEASE&gt;/i386/rpmfusion-free-release-&lt;RELEASE&gt;-1.noarch.rpm # Read the comment on line above
rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates/&lt;RELEASE&gt;/i386/rpmfusion-nonfree-release-&lt;RELEASE&gt;-1.noarch.rpm # The line two lines above tells you what to do...
rpm -ivh http://rpm.livna.org/livna-release.rpm
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el&lt;RELEASE&gt;.rf.&lt;ARCH&gt;.rpm # Replace &lt;RELEASE&gt; with CentOS version (examples some lines above) and &lt;ARCH&gt; with i686 or x86_64</code></pre>
<h2 id="priorities">Priorities</h2>
<p>Prevent repositories from conflicting each other:</p>
<pre><code>yum install yum-plugin-priorities</code></pre>
<p>Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf ! &quot;enabled&quot; should be 1</p>
<p>Edit all .repo files in /etc/yum.repos.d/ and add PRIORITY=X to everything. My priorities are listed on same table as repositories themselves.</p>
<h2 id="installing-virtualbox-guest-additions">Installing Virtualbox guest additions</h2>
<pre><code>yum install dkms # requires EPEL on CentOS.</code></pre>
<pre><code>yum install VirtualBox-guest # Requires RPM Fusion</code></pre>
<p>Or using guest additions shipped with <a href="https://www.virtualbox.org/%20&lt;!--%20vim%20:%20set%20ft=html%20--&gt;%20&lt;hr/&gt;">VirtualBox</a>;</p>
<pre><code>yum install @development-tools kernel-devel</code></pre>
<p>Press HOST + D and cd to the mount point and run the Linux Additions installer and after successful installation, reboot. These didn't work for me on Fedora 17, but worked on CentOS. With Fedora I recommend installing VirtualBox-guest from RPM Fusion.</p>
<h2 id="installing-libreoffice-language-support-for-people-not-installing-from-dvd-in-fedora">Installing LibreOffice &amp; language support (for people not installing from DVD) in Fedora</h2>
<p>Remember to replace &quot;finnish&quot; and &quot;fi&quot; with your language</p>
<pre><code>yum install @office @finnish-support kde-l10n-fi</code></pre>
<h2 id="installing-all-gnome-shell-extensions">Installing all Gnome shell extensions</h2>
<pre><code>yum install gnome-tweak-tool &quot;gnome-shell-extension-*&quot; # This might not be a good idea.</code></pre>
<p>Use gnome-tweak-tool to enable/disable them. They might need reboot/logging in again before they appear in gnome-tweak-tool.</p>
<h2 id="installing-all-codecsgstreamer-plugins">Installing all codecs/gstreamer plugins</h2>
<pre><code>yum install &quot;gstreamer-plugins-*&quot; --skip-broken # Might not be a good idea...</code></pre>
<h2 id="installing-flash">Installing Flash</h2>
<pre><code>yum install flash-plugin # requires Adobe Flash repository to be enabled.</code></pre>
<h2 id="installing-restricted-miscellaneous-things">Installing (restricted?) miscellaneous things</h2>
<p>Codecs, restricted font technologies etc.</p>
<pre><code>yum install audacious-plugins-freeworld k3b-extras-freeworld xine-lib-extras-freeworld libdvdcss vlc mozilla-vlc unrar freetype-freeworld</code></pre>
<h2 id="disabling-boot-screen">Disabling boot screen</h2>
<p>Remove &quot;rhgb&quot; before &quot;quiet&quot; in /etc/default/grub &amp; run:</p>
<pre><code>grub2-mkconfig -o /boot/grub2/grub.cfg</code></pre>
<h2 id="installing-things-which-i-want-to-have">Installing things which I want to have</h2>
<pre><code>yum install @development-tools git zsh tmux oidentd pastebinit syslinux most htop lynx gpg-agent curl pandoc</code></pre>
<hr/>
<p>Some commands mentioned here are copied from [Linux.fi](http://linux.fi/ wiki, but it's in Finnish.</p>
<hr/>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_developer = 0;
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/rpm.html';
var disques_title = 'rpm cheatsheet';
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
.appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis qus.</a>
</noscript>
<p>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus </span></a>
</p>
<!-- vim : set ft=html -->
</body>
</html>
<meta HTTP-EQUIV="REFRESH" content="0; url=https://gist.github.com/4337243#file-fedora-md">

View File

@ -1,220 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="refresh" content="60" /> -->
<meta name="description" content="My cheatsheet for rpm based distributions, mainly CentOS/Fedora." />
<meta name="keywords" content="rpm,Linux,CentOS,Fedora" />
<meta name="author" content="Mika Suomalainen" />
<link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/rpm.html">
<title>Cheatsheet for distributions using rpm</title>
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
</head>
<body>
<hr/>
[Sitemap](../../sitemap/sitemap.html)
<hr/>
# My cheatsheet
This is my cheatsheet for setting up distribution using rpm (mainly Fedora & CentOS). I am more experienced with distributions using dpkg, so I need this a little in the beginning.
## Always get the fastest mirror
```
yum install yum-plugin-fastestmirror
```
By default cheks every 10 days, change configuration variable "maxhostfileage" file to 0 to make it search always when yum is ran in /etc/yum/yum.pluginconf.d/fastestmirror.conf and check that "enabled" is set to "1". If it's 0, the plugin is disabled.
## 3rd party repositories
<table>
<tr>
<td>Repository</td>
<td>My priority</td>
<td>Description</td>
</tr>
<tr>
<td>Base/Fedora-*</td>
<td>1</td>
<td>Official Fedora/CentOS packages</td>
</tr>
<tr>
<td>Extra</td>
<td>2</td>
<td>CentOS only, extra packages</td>
</tr>
<tr>
<td>[Flash]</td>
<td>10</td>
<td>Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only.</td>
</tr>
<tr>
<td>[EPEL]</td>
<td>10</td>
<td>Extra Packages for Enterprise Linux (CentOS only)</td>
</tr>
<tr>
<td>[RPM Fusion]</td>
<td>11</td>
<td>"Provides software that the Fedora Project or Red Hat doesn't want to ship"</td>
</tr>
<tr>
<td>[Livna]</td>
<td>11</td>
<td>Provides libdvdcss for watching DVDs</td>
</tr>
<tr>
<td>[RPM Forge]</td>
<td>12</td>
<td>CentOS only ( ? ), "Provides a set of repositories"</td>
</tr>
</table>
### Terminal enabling
This is faster than the GUI method
### Fedora
```
echo "Adobe doesn't provide direct download link for the package :("
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rpm -ivh http://rpm.livna.org/livna-release.rpm
```
### CentOS
```
echo "Adobe doesn't provide direct download link for the package :("
rpm -ivh http://download.fedoraproject.org/pub/epel/<RELEASE>/i386/repoview/epel-release.html # replace <release> with CentOS / RedHat version. For example: 5 or 6 NOT 6.X or 5.X!
rpm -ivh http://download1.rpmfusion.org/free/el/updates/<RELEASE>/i386/rpmfusion-free-release-<RELEASE>-1.noarch.rpm # Read the comment on line above
rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates/<RELEASE>/i386/rpmfusion-nonfree-release-<RELEASE>-1.noarch.rpm # The line two lines above tells you what to do...
rpm -ivh http://rpm.livna.org/livna-release.rpm
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el<RELEASE>.rf.<ARCH>.rpm # Replace <RELEASE> with CentOS version (examples some lines above) and <ARCH> with i686 or x86_64
```
## Priorities
Prevent repositories from conflicting each other:
```
yum install yum-plugin-priorities
```
Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf ! "enabled" should be 1
Edit all .repo files in /etc/yum.repos.d/ and add PRIORITY=X to everything. My priorities are listed on same table as repositories themselves.
## Installing Virtualbox guest additions
```
yum install dkms # requires EPEL on CentOS.
```
```
yum install VirtualBox-guest # Requires RPM Fusion
```
Or using guest additions shipped with [VirtualBox];
```
yum install @development-tools kernel-devel
```
Press HOST + D and cd to the mount point and run the Linux Additions installer and after successful installation, reboot. These didn't work for me on Fedora 17, but worked on CentOS. With Fedora I recommend installing VirtualBox-guest from RPM Fusion.
## Installing LibreOffice & language support (for people not installing from DVD) in Fedora
Remember to replace "finnish" and "fi" with your language
```
yum install @office @finnish-support kde-l10n-fi
```
## Installing all Gnome shell extensions
```
yum install gnome-tweak-tool "gnome-shell-extension-*" # This might not be a good idea.
```
Use gnome-tweak-tool to enable/disable them. They might need reboot/logging in again before they appear in gnome-tweak-tool.
## Installing all codecs/gstreamer plugins
```
yum install "gstreamer-plugins-*" --skip-broken # Might not be a good idea...
```
## Installing Flash
```
yum install flash-plugin # requires Adobe Flash repository to be enabled.
```
## Installing (restricted?) miscellaneous things
Codecs, restricted font technologies etc.
```
yum install audacious-plugins-freeworld k3b-extras-freeworld xine-lib-extras-freeworld libdvdcss vlc mozilla-vlc unrar freetype-freeworld
```
## Disabling boot screen
Remove "rhgb" before "quiet" in /etc/default/grub & run:
```
grub2-mkconfig -o /boot/grub2/grub.cfg
```
## Installing things which I want to have
```
yum install @development-tools git zsh tmux oidentd pastebinit syslinux most htop lynx gpg-agent curl pandoc
```
<hr/>
Some commands mentioned here are copied from [Linux.fi](http://linux.fi/ wiki, but it's in Finnish.
<hr/>
[Flash]:https://get.adobe.com/flashplayer/
[EPEL]:https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
[RPM Fusion]:http://rpmfusion.org/Configuration
[Livna]:http://rpm.livna.org/
[RPM Forge]:http://repoforge.org/use/
[VirtualBox]:https://www.virtualbox.org/
<!-- vim : set ft=html -->
<hr/>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_developer = 0;
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/rpm.html';
var disques_title = 'rpm cheatsheet';
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
.appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis
qus.</a>
</noscript>
<p><a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus
</span></a></p>
<!-- vim : set ft=html -->
</body>
</html>