From 52c3cff117d0d92a6cde7a7671db410260902a00 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 19 Dec 2012 17:04:26 +0200 Subject: [PATCH] cheatsheets/*: move to GitHub gist && add redirections to the new locations --- articles/cheatsheets/dd.html | 65 +-------- articles/cheatsheets/dd.html.md | 91 ------------- articles/cheatsheets/rpm.html | 197 +-------------------------- articles/cheatsheets/rpm.html.md | 220 ------------------------------- 4 files changed, 2 insertions(+), 571 deletions(-) delete mode 100644 articles/cheatsheets/dd.html.md delete mode 100644 articles/cheatsheets/rpm.html.md diff --git a/articles/cheatsheets/dd.html b/articles/cheatsheets/dd.html index e18b1bc..1136869 100644 --- a/articles/cheatsheets/dd.html +++ b/articles/cheatsheets/dd.html @@ -1,64 +1 @@ - - - - - -dd cheatsheet - - - - -
-Sitemap -
- -

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.

- -
- -
- - - -

-comments powered by Disqus -

- - - - - + diff --git a/articles/cheatsheets/dd.html.md b/articles/cheatsheets/dd.html.md deleted file mode 100644 index 7af6c1a..0000000 --- a/articles/cheatsheets/dd.html.md +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - -dd cheatsheet - - - -
-[Sitemap](../../sitemap/sitemap.html) -
- -# 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. - - -
- -
- - - -

comments powered by Disqus -

- - - diff --git a/articles/cheatsheets/rpm.html b/articles/cheatsheets/rpm.html index 0b5730d..ffa47cf 100644 --- a/articles/cheatsheets/rpm.html +++ b/articles/cheatsheets/rpm.html @@ -1,196 +1 @@ - - - - - -Cheatsheet for distributions using rpm - - - - -
-Sitemap -
- -

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Repository - -My priority - -Description -
-Base/Fedora-* - -1 - -Official Fedora/CentOS packages -
-Extra - -2 - -CentOS only, extra packages -
-Flash - -10 - -Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only. -
-EPEL - -10 - -Extra Packages for Enterprise Linux (CentOS only) -
-RPM Fusion - -11 - -"Provides software that the Fedora Project or Red Hat doesn't want to ship" -
-Livna - -11 - -Provides libdvdcss for watching DVDs -
-RPM Forge - -12 - -CentOS only ( ? ), "Provides a set of repositories" -
-

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
-
- -

Some commands mentioned here are copied from [Linux.fi](http://linux.fi/ wiki, but it's in Finnish.

-
- - - - - - - - - - -
- - - -

-comments powered by Disqus -

- - - - - + diff --git a/articles/cheatsheets/rpm.html.md b/articles/cheatsheets/rpm.html.md deleted file mode 100644 index 7092a93..0000000 --- a/articles/cheatsheets/rpm.html.md +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - - - -Cheatsheet for distributions using rpm - - - -
-[Sitemap](../../sitemap/sitemap.html) -
- -# 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RepositoryMy priorityDescription
Base/Fedora-*1Official Fedora/CentOS packages
Extra2CentOS only, extra packages
[Flash]10Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only.
[EPEL]10Extra Packages for Enterprise Linux (CentOS only)
[RPM Fusion]11"Provides software that the Fedora Project or Red Hat doesn't want to ship"
[Livna]11Provides libdvdcss for watching DVDs
[RPM Forge]12CentOS only ( ? ), "Provides a set of repositories"
-### 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//i386/repoview/epel-release.html # replace with CentOS / RedHat version. For example: 5 or 6 NOT 6.X or 5.X! -rpm -ivh http://download1.rpmfusion.org/free/el/updates//i386/rpmfusion-free-release--1.noarch.rpm # Read the comment on line above -rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates//i386/rpmfusion-nonfree-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.rf..rpm # Replace with CentOS version (examples some lines above) and 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 -``` - -
- -Some commands mentioned here are copied from [Linux.fi](http://linux.fi/ wiki, but it's in Finnish. - -
- -[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/ - -
- -
- - - -

comments powered by Disqus -

- - -