How to install Webmin on pidora

I tried to install webmin by following the instructions on http://www.webmin.com/rpm.html but I got the following error messages:

 

    # wget http://prdownloads.sourceforge.net/webadmin/webmin-1.730-1.noarch.rpm

    # wget http://www.webmin.com/jcameron-key.asc

    # rpm -Uvh webmin-1.730-1.noarch.rpm

    Preparing…                          ################################# [100%]

    Unable to identify operating system

    error: %pre(webmin-1.730-1.noarch) scriptlet failed, exit status 2

    error: webmin-1.730-1.noarch: install failed

 

To fix the problem, I did the following (thanks to kayvan):

   # mv /etc/redhat-release /etc/redhat-release.bak

   # echo “Fedora release 20 (Heisenbug)” > /etc/redhat-release

   # rpm -Uvh webmin-1.730-1.noarch.rpm Preparing…

   #    ################################ [100%]

    Operating system is Fedora Linux

    Updating / installing…

       1:webmin-1.730-1

   #   ################################# [100%]

    Webmin install complete. You can now login to http://pidora.local:10000/

    as root with your root password.

    # mv -f /etc/redhat-release.bak /etc/redhat-release

Webmin should work fine. It will only report the version to be “Fedora Linux 20”

You should be able to live with that!

 

Update:

You may want to use the current version of webmin:

wget http://www.webmin.com/download/rpm/webmin-current.rpm

 

Using the Webmin YUM repository is another alternative to keep things clean and automatically updated.

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :

 

[Webmin]

name=Webmin Distribution Neutral

#baseurl=http://download.webmin.com/download/yum

mirrorlist=http://download.webmin.com/download/yum/mirrorlist

enabled=1

 

You should also fetch and install my GPG key with which the packages are signed, with the commands :

 

wget http://www.webmin.com/jcameron-key.asc

rpm –import jcameron-key.asc

 

You will now be able to install with the command :

 

yum install webmin

 

All dependencies should be resolved automatically.

 


Posted in Linux, pidora, Raspberry Pi, Recent Posts and tagged , , by with comments disabled.

Using ls to create a table of contents for burning a CDR disk

#!/bin/bash

# ex40.sh (burn-cd.sh)

# Script to automate burning a CDR.

 

SPEED=10         # May use higher speed if your hardware supports it.

IMAGEFILE=cdimage.iso

CONTENTSFILE=contents

# DEVICE=/dev/cdrom     For older versions of cdrecord

DEVICE=”1,0,0″

DEFAULTDIR=/opt  # This is the directory containing the data to be burned.

                 # Make sure it exists.

                 # Exercise: Add a test for this.

 

# Uses Joerg Schilling’s “cdrecord” package:

# http://www.fokus.fhg.de/usr/schilling/cdrecord.html

 

#  If this script invoked as an ordinary user, may need to suid cdrecord

#+ chmod u+s /usr/bin/cdrecord, as root.

#  Of course, this creates a security hole, though a relatively minor one.

 

if [ -z “$1” ]

then

  IMAGE_DIRECTORY=$DEFAULTDIR

  # Default directory, if not specified on command-line.

else

    IMAGE_DIRECTORY=$1

fi

 

# Create a “table of contents” file.

ls -lRF $IMAGE_DIRECTORY > $IMAGE_DIRECTORY/$CONTENTSFILE

# The “l” option gives a “long” file listing.

# The “R” option makes the listing recursive.

# The “F” option marks the file types (directories get a trailing /).

echo “Creating table of contents.”

 

# Create an image file preparatory to burning it onto the CDR.

mkisofs -r -o $IMAGEFILE $IMAGE_DIRECTORY

echo “Creating ISO9660 file system image ($IMAGEFILE).”

 

# Burn the CDR.

echo “Burning the disk.”

echo “Please be patient, this will take a while.”

wodim -v -isosize dev=$DEVICE $IMAGEFILE

#  In newer Linux distros, the “wodim” utility assumes the

#+ functionality of “cdrecord.”

exitcode=$?

echo “Exit code = $exitcode”

 

exit $exitcode


Posted in Linux, Recent Posts and tagged by with comments disabled.

Quickly Enable or Disable Windows Features On The Command Prompt

Microsoft no longer includes certain features to windows systems starting from windows vista by default.  It is still available but must be installed or enabled by the user.  The normal way to enabled these features is through the “Turn Windows features on or off” window found in Control Panel.  This accomplishes the task but can be annoying when you are working in Command Prompt and need to use the telnet command immediately.

Instead of going to Control Panel, the following way is considered better by many administrators (including me).  Simply run this command with elevated administrative rights at the command prompt:

dism /online /Enable-Feature /FeatureName:TelnetServer

Enabling Windows Feature - Telnet Server

The Telnet Server should be immediately available after the dism command has successfully been completed.

Windows Feature - Telnet Server


Posted in Recent Posts, Windows, Windows 7, Windows Features, Windows Vista by with comments disabled.

AllVideos – How to configure embede youtube video playlist

Create a custom module, with the following settings to prepare the video

Note: Do NOT forget to enable “Prepare Content” under Options

{youtube}ShareURL&rel=0&fs=1&wmode=transparent|Width|Height|Autoplay{/youtube}

Parameters Example:

——————————

ShareURL=www.youtube.com/embed/GZ9yP3EJ-H0?list=PLP4v1ZQVpIWKsoS5JI2aO1XQU5YjneZX7

Width=230

Height=150

Autoplay (enabled)=1

Autoplay (disabled)=0

After configuration, the correct settings should look like:

{youtube}www.youtube.com/embed/GZ9yP3EJ-H0?list=PLP4v1ZQVpIWKsoS5JI2aO1XQU5YjneZX7&rel=0&fs=1&wmode=transparent|230|150|1{/youtube}

Note: There should be no spaces between the parameters

      Also take note of:

      “&rel=0&fs=1&wmode=transparent”

      This part ist separate from the share url and must be added for the video to work.

      If this is missing, NO video on the playlist will play!!!


Posted in Recent Posts, Youtube, Youtube Videos and tagged , , by with comments disabled.