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.

Xampp 1.8.3 with phpmyadmin 4.1.12 Storage Configuration NOT Complete

I recently installed the latest Xampp with phpMyAdmin version 4.1.12 and noticed the following error messages after the installation process:

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click [here].

… and clicking the link showed the following errors:

$cfg[‘Servers’][$i][‘users’] … not OK [ Documentation ]

$cfg[‘Servers’][$i][‘usergroups’] … not OK [ Documentation ] Configurable menus: Disabled

$cfg[‘Servers’][$i][‘navigationhiding’] … not OK [ Documentation ] Hide/show navigation items: Disabled

The fix is simple:

STEP1:

Run the following query on the phpmyadmin database:

==================== START ===================

CREATE TABLE IF NOT EXISTS `pma_users` (

  `username` varchar(64) NOT NULL,

  `usergroup` varchar(64) NOT NULL,

  PRIMARY KEY (`username`,`usergroup`)

  COMMENT=’Users and their assignments to user groups’

  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

 

CREATE TABLE IF NOT EXISTS `pma_usergroups` (

  `usergroup` varchar(64) NOT NULL,

  `tab` varchar(64) NOT NULL,

  `allowed` enum(‘Y’,’N’) NOT NULL DEFAULT ‘N’,

  PRIMARY KEY (`usergroup`,`tab`,`allowed`)

  COMMENT=’User groups with configured menu items’

  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

 

CREATE TABLE IF NOT EXISTS `pma_navigationhiding` (

  `username` varchar(64) NOT NULL,

  `item_name` varchar(64) NOT NULL,

  `item_type` varchar(64) NOT NULL,

  `db_name` varchar(64) NOT NULL,

  `table_name` varchar(64) NOT NULL,

  PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`)

  COMMENT=’Hidden items of navigation tree’

  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

==================== STOP ===================

STEP2:

Add the following lines to your phpMyAdmin config.inc.php file:

$cfg[‘Servers’][$i][‘users’] = ‘pma_users’;

$cfg[‘Servers’][$i][‘usergroups’] = ‘pma_usergroups’;

$cfg[‘Servers’][$i][‘navigationhiding’] = ‘pma_navigationhiding’;

STEP3:

Logout and log back into phpMyAdmin

That’s it!

Enjoy 😉

 

Update:

Upgrading to phpMyAdmin 4.2.5 caused a similar problem but with ONLY one error.

$cfg[‘Servers’][$i][‘savedsearches’] … not OK [ Documentation ] Saved searches: Disabled

The solution is simply the same as above…

Execute the following query:

==================== START ===================

CREATE TABLE IF NOT EXISTS `pma_savedsearches` (

  `id` int(5) unsigned NOT NULL auto_increment,

  `username` varchar(64) NOT NULL default ”,

  `db_name` varchar(64) NOT NULL default ”,

  `search_name` varchar(64) NOT NULL default ”,

  `search_data` text NOT NULL,

  PRIMARY KEY  (`id`),

  UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`)

)

  COMMENT=’Saved searches’

  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

==================== STOP ===================

STEP2:

Add the following lines to your phpMyAdmin config.inc.php file:

$cfg[‘Servers’][$i][‘savedsearches’] = ‘pma_savedsearches’;

STEP3:

Logout and log back into phpMyAdmin


Posted in Vista, Web Design, Windows, Windows 7, Windows Vista, Windows XP and tagged , , , , , by with comments disabled.

How to Install and Configure VsFTPD on Rasberry Pi

I have chosen to use VsFTPD instead of ProFTP for it’s simple configuration but robust high load capability.

This steps can be implemented on any debian based linux systems like ubuntu, Rasbian and very many others. I have RaspBMC (an XBMC Media Centre) running on my Rasberry Pi.

STEP 1: Installation

As in any other debian based Linux systems, the installation of the FTP server can be done simply by executing the following command:

$ sudo apt-get install vsftpd

This command installs and start the ftp server automatically.

This is an example of the VsFTPD configuration file (/etc/vsftpd.conf):

——– start ———–

listen=NO
pamservicename=ftp
anonymousenable=NO
local
enable=YES
writeenable=YES
dirmessage
enable=YES
uselocaltime=YES
xferlog
enable=NO
connectfromport20=YES
ftpd
banner=Raspbmc FTP Server
securechrootdir=/var/run/vsftpd/empty
pamservicename=vsftpd
rsacertfile=/etc/ssl/private/vsftpd.pem
localroot=/home/$USER/publichtml
localumask=022
chroot
localuser=YES
user
subtoken=$USER
allow
writeable_chroot=YES

——– stop —————

STEP 2: Configuration

Stand-alone mode:

The ftp server can either be configured in stand-alone or normal mode. By default the VsFTPD automatically configured as stand-alone. This means that the server have its own startup scripts called daemon. In that case, the VsFTPD daemon can be started by executing “/etc/init.d/vsftpd start”. The server in stand-alone mode can further be managed with stop, restart, status and reload.

Normal mode:

The other approach to configure the VsFTPD server is to use “xinetd” to start the FTP service in normal mode. This helps to keep the FTP service alive. In order to achieve this objective, we first need to install the “xinetd” super server by executing the following command:

$ sudo apt-get install xinetd

The above command will install and start the xinetd super server on your system automatically. However, there is the chance that “xinetd” is already installed on your system. In that case, please skip the step above.

Next, create a file called vsftpd in /etc/xinetd.d/ with the following content:

service ftp
{
disable = no
sockettype = stream
wait = no
user = /usr/sbin/vsftpd
per
source = 5
instances = 200
noaccess = 192.168.1.0/24 #use this to block any connections from this network
onlyfrom = 192.168.1.0/24 #use this to allow connections only from this network
bannerfail = /etc/vsftpd.busy
log
onsuccess += PID HOST DURATION
log
on_failure += HOST

}

Pleas alter any of these options to match your system configurations.

  • server – to get the correct path to enter here, type “which vsftpd” on the terminal
  • noaccess – this will block any host or hosts defined here
  • bannerfail – this should the path to the file with the text to show to any blocked IP address

STEP 3: /etc/vsftpd.conf Configuration

Open the file /etc/vsftpd.conf and change

listen=YES

to

listen=NO

This instructs the FTP server not to open any ports but let “xinetd” control and manage the entire ports and services. In order for the normal mode to run smoothly, we need to first stop the vsftpd service by executing the following command:

$ sudo service vsftpd stop

followed by

$ sudo service xinetd reload

We have to test and confirm that the FTP server have been started in normal mode and that the port 21 is open by the following command:

$ sudo netstat -ant | grep 21

You should see this:

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN


Posted in FTP, Linux, Linux Installation, VsFTP and tagged , , by with comments disabled.

VMware STOP: 0x0000005d Error

Warning:

I am NOT the original author of this article. You can find the original article here!

I recently ran into this error while trying to install Windows 2008 R2 Server 64 Bit on my corporate virtual network. Windows 2003 server standard was initially installed on this same configuration. The aim of the project was to remove the Windows 2003 server and install windows 2008 R2 server on it the system. Well, I completely forgot before starting that I had to change the guest operating system type. this eventually lead to this error.

After searching a while on google, I came accross the above mentioned article. It saved my day! The question is why repeat the same thing here? Well, I decided to repeat this here for my personal reference only. It might be useful for someone else too.


Posted in Linux, Linux Installation, VMware and tagged , , by with comments disabled.

Huge list of Windows 7 Shell Commands

Below is a huge list of Windows 7 Shell commands that are incredibly useful when creating shortcuts or quickly accessing hard to get to locations. I got this list some time ago from somewhere in the internet and decided to repost it here for my easy reach. They can be used to pin shortcuts to the Taskbar or just to make your life easier.  For those that are preceded by “Shell:” when using them in shortcuts you need to add “explorer.exe” in front of them.  It should then look like this: explorer.exe shell:Personal

Windows 7 Only
shell:Libraries
shell:MusicLibrary
shell:VideosLibrary
shell:OtherUsersFolder
shell:Device Metadata Store
shell:PublicSuggestedLocations
shell:DocumentsLibrary
shell:User Pinned
shell:UsersLibrariesFolder
shell:PicturesLibrary
shell:ImplicitAppShortcuts
shell:Ringtones
shell:CommonRingtones

Windows Vista & 7
shell:Common Programs
shell:GameTasks
shell:UserProfiles
shell:MyComputerFolder
shell:SyncSetupFolder
shell:DpapiKeys
shell:SamplePlaylists
shell:Favorites
shell:My Video
shell:SearchHomeFolder
shell:System
shell:CommonVideo
shell:SyncResultsFolder
shell:LocalizedResourcesDir
shell:Cookies
shell:Original Images
shell:CommonMusic
shell:My Pictures
shell:Cache
shell:Downloads
shell:CommonDownloads
shell:AppData
shell:SyncCenterFolder
shell:My Music
shell:ConflictFolder
shell:SavedGames
shell:InternetFolder
shell:Quick Launch
shell:SystemCertificates
shell:Contacts
shell:TreePropertiesFolder
shell:Profile
shell:Start Menu
shell:Common AppData
shell:PhotoAlbums
shell:ConnectionsFolder
shell:Administrative Tools
shell:PrintersFolder
shell:Default Gadgets
shell:ProgramFilesX86
shell:Searches
shell:Common Startup
shell:ControlPanelFolder
shell:SampleVideos
shell:SendTo
shell:ResourceDir
shell:ProgramFiles
shell:CredentialManager
shell:PrintHood
shell:MAPIFolder
shell:CD Burning
shell:AppUpdatesFolder
shell:Common Start Menu
shell:LocalAppDataLow
shell:Templates
shell:Gadgets
shell:Programs
shell:Recent
shell:SampleMusic
shell:Desktop
shell:CommonPictures
shell:RecycleBinFolder
shell:CryptoKeys
shell:Common Templates
shell:Startup
shell:Links
shell:OEM Links
shell:SamplePictures
shell:Common Desktop
shell:NetHood
shell:Games
shell:Common Administrative Tools
shell:NetworkPlacesFolder
shell:SystemX86
shell:History
shell:AddNewProgramsFolder
shell:Playlists
shell:ProgramFilesCommonX86
shell:PublicGameTasks
shell:ChangeRemoveProgramsFolder
shell:Public
shell:Common Documents
shell:CSCFolder
shell:Local AppData
shell:Windows
shell:UsersFilesFolder
shell:ProgramFilesCommon
shell:Fonts
shell:Personal

Windows 7 Shortcuts
I compiled the following list with an early Alpha build of Windows 7.  It is possible that some of these have changed with newer versions.  If you find one that is wrong please let me know so I can correct it.

Wireless Networks pop-up
rundll32.exe van.dll,RunVAN

Advanced Restore
sdclt.exe /restorewizardadmin

Restore Files
sdclt.exe /restorewizard

Backup Location & Settings
sdclt.exe /configure

Add Network Location (wizard)
rundll32.exe shwebsvc.dll,AddNetPlaceRunDll

Indexing Options
control.exe srchadmin.dll

Notification Cache
rundll32.exe shell32.dll,Options_RunDLL 5

Aero (Transparency) Off
Rundll32.exe DwmApi #104

Aero (Transparency) On
Rundll32.exe DwmApi #102

Welcome Center
rundll32.exe oobefldr.dll,ShowWelcomeCenter

Add/Remove Programs
RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0

Content Advisor
RunDll32.exe msrating.dll,RatingSetupUI

Control Panel
RunDll32.exe shell32.dll,Control_RunDLL

Date and Time Properties
RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl

Display Settings
RunDll32.exe shell32.dll,Control_RunDLL access.cpl,,3

Device Manager
RunDll32.exe devmgr.dll DeviceManager_Execute

Folder Options – File Types
RunDll32.exe shell32.dll,Control_Options 2

Folder Options – General
RunDll32.exe shell32.dll,Options_RunDLL 0

Folder Options – Search
RunDll32.exe shell32.dll,Options_RunDLL 2

Folder Options – View
RunDll32.exe shell32.dll,Options_RunDLL 7

Forgotten Password Wizard
RunDll32.exe keymgr.dll,PRShowSaveWizardExW

Hibernate
RunDll32.exe powrprof.dll,SetSuspendState

Keyboard Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1

Lock Screen
RunDll32.exe user32.dll,LockWorkStation

Mouse Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @0

Map Network Drive
RunDll32.exe shell32.dll,SHHelpShortcuts_RunDLL Connect

Network Connections
RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl

Power Options
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl

Regional Settings
RunDll32.exe shell32.dll,Control_RunDLL intl.cpl,,3

Stored Usernames and Passwords
RunDll32.exe keymgr.dll,KRShowKeyMgr

System Properties: Advanced
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

System Properties: Automatic Updates
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

Taskbar Properties
RunDll32.exe shell32.dll,Options_RunDLL 1

User Accounts
RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl

Windows Security Center
RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl

Windows – About
RunDll32.exe SHELL32.DLL,ShellAboutW

Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

Windows Firewall
RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl

Wireless Network Setup
RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW

Open Control Panel (All Items)
explorer.exe shell:::{21ec2020-3aea-1069-a2dd-08002b30309d}

Manage Wireless Networks
explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}

Sound Control Playback Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl

Sound Control Sounds Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,2

Sound Control Recording Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,1

Add/Remove Programs
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl

Add/Remove Windows Components
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2

Set Program Access and Computer Defaults
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3

People Near Me
rundll32.exe shell32.dll,Control_RunDLL collab.cpl

People Near Me Sign In Tab
rundll32.exe shell32.dll,Control_RunDLL collab.cpl,,1

Screen Resolution
rundll32.exe shell32.dll,Control_RunDLL desk.cpl

Personalization
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2

Screen Saver
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1

Windows Firewall
rundll32.exe shell32.dll,Control_RunDLL firewall.cpl

Device Manager
rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl

Power Options
rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl

Power Options Change Plan Settings
rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl,,1

System Properties
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl

System Properties Hardware Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2

System Properties Advanced Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3

System Properties System Protection Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

System Properties Remote Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

Pen and Touch Tablet PC Settings
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl

Pen and Touch Tablet PC Settings Flicks Tab
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,1

Pen and Touch Tablet PC Settings Handwriting Tab
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,2

Phone and Modem Options
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl

Phone and Modem Options Modems Tab
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,1

Phone and Modems Options Advanced Tab
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,2

Date and Time
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl

Date and Time Additional Clocks
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1

Action Center
rundll32.exe shell32.dll,Control_RunDLL wscui.cpl

Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

Internet Explorer Specific Commands

Delete Temporary Internet Files:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Delete Cookies:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete History:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Delete Form Data:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Delete Passwords:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete All + files and settings stored by Add-ons:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Miscellaneous Variables

Windows Directory
%WINDIR%
%SYSTEMROOT%

Hard Drive That Contains OS
%HOMEDRIVE%

Users Home Directory
%HOMEPATH%
%USERPROFILE%

Default Temporary Directory
%TEMP%
%TMP%

Program Files
%PROGRAMFILES%

Current Users Application Data Directory
%APPDATA%

If anyone has additional ones that I have missed you can submit them and I will add them to this list


Posted in Vista, Windows, Windows 7, Windows Vista and tagged , , by with comments disabled.

Progress Monitor On a Linux Console

I sometimes want to monitor the progress of a copy or backup job on the console. The trick to do that is as follows:

while true; do something…; sleep 10; clear; done;

example:

[tom@ns2 ~]# while true; do df- h /media/usr; sleep 10; clear; done;

 

What this is, it display the size of /usr partition, the used space, available space and the progress of the job in percentage. The “clear” command will make sure all these informations are shown on a single line by clearing the screen. The clear command is very cool 😉

It hope someone find this useful 


Posted in Linux, Rsync and tagged , by with comments disabled.

Mounting NFS Shares on ESX 4.0

The easiert way to do this is to use ssh (Putty).

Run all commands in these steps from the ESX/ESXi command line with root access.

Ensure that you can ping and vmkping the NFS server address.

Ensure that any firewalls between the ESX host and NFS Server do not block the connection.

Ensure the access on the NFS server is set to Anonymous user, Root Access (norootsquash), and Read/Write.

Try to restore the mount with this command:

# esxcfg-nas -r

Check to see if the datastore has mounted after trying to restore it with:

# esxcfg-nas -l

If it is not mounted, try remounting it using this command:

# esxcfg-nas -a <datastore name> -o <nfs server hostname/ip> -s <mount point>

Alternatively try to add the datastore again using the vSphere client:

For security reasons RPC protocol filtering is enabled and the connection is refused. Open firewall ports on the network for RPC protocol and check the physical switch for any RPC protocol filtering.

On ESX hosts only (Does not apply to ESXi hosts):

Check ESX firewall open ports with this command:

# esxcfg-firewall -q 

Note: Check the output for NFSClient. If it is not listed, proceed to step 9.

Open the NFS client firewall ports 111 and 2049 on UDP and TCP protocol either on vCenter Server or on ESX with the command:

# esxcfg-firewall –enableService nfsClient

Alternatively, modify the security policy in vSphere Client. Click Configuration > Security Profile > Properties, select NFS Client and click OK.

Note : Ensure that the ports 111 and 2049 are also open on the NFS server.

Known Issues:

Unable to connect to NAS volume NFS4exports: Unable to mount, no VMkernel TCP stack found

Solution:

 Note: Do not set up NFS datastores through the vSphere Client on the ESX Server system. Unlike VMFS datastores, NFS datastores created through the vSphere Client are not recognized by Lab Manager. Such datastores conflict with the creation of NFS datastores through the Lab Manager Web console.

NFS Server

  • Ensure the NFS server supports NFSv3 over TCP
  • The NFS server must be accessible in read-write mode by all Managed Server (ESX) systems
  • The NFS server must allow read-write access for the root system account
  • The NFS export must be set for either no_root_squash, or chmod 1777
  • Ensure NFS daemons are running on the server (“rpcinfo -p localhost” or “service nfs status” )

VMKernel must be able to mount share

  • Check the VMkernel IP address:
    • Using the vSphere Client, select the ESX server
    • Select the Configuration tab
    • Click Networking
    • View the Networking diagram for the VMkernel (or click Properties, and click VMkernel in the Ports tab. If VMkernel is not listed, you must add it)
  • Ensure this IP is allowed to mount the NFS share by inspecting the export list

This issue may also occur if EtherChannel is configured and an incorrect NIC teaming policy is used.


Posted in Linux, NFS and tagged , by with comments disabled.