Miralinux Blog

  • Home
  • Linux
    • Scripts
    • CentOS
  • Apple
  • Microsoft
    • Features
    • Office
    • Windows
  • Learning
  • Games
  • Multimedia
    • XBMC
  • Other
    • About WordPress
  • Links
    • General
    • Software
      • Autocad
    • Hardware
      • BIOS
    • Linux
    • WiKieS

Author Archives: arno

Scripting and Unix tools for windows

Posted on 2012/05/09 by arno Posted in Linux, Scripts

GNU utilities for Win32

unxutils at sourceforge | download

Python

Google’s Python Class

BASH

IF – http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html

https://wiki.archlinux.org/index.php/Bash#Shell_and_environment_variables

http://www.linuxtutorialblog.com/post/tutorial-conditions-in-bash-scripting-if-statements

http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/

http://www.64-bit.de/dokumentationen/howto/en/html/Bash-Prompt-HOWTO.html#toc5

http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/string-manipulation.html

AKW

http://www.grymoire.com/Unix/Awk.html

GREP

http://www.commandlinefu.com/commands/view/3877/grep-v-with-multiple-patterns.

GRUB

http://www.911cd.net/forums//index.php?showtopic=18838&st=20

Links

http://faculty.plattsburgh.edu/jan.plaza/computing/help/


Basic UNIX/Linux commands

Custom commands available on departmental Linux computers but not on 
Linux systems elsewhere have descriptions marked by an *asterisk. 
Notice that for some standard Unix/Linux commands, friendlier versions 
have been implemented; on departmental Linux computers the names of such 
custom commands end with a period.
------------------------------------------------------------------------------
INTERACTIVE FEATURES
TAB                         Command completion !!! USEFUL !!!
UPARROW                     Command history !!! USEFUL !!!

CTRL-C                      Interrupt/kill current process.

CTRL-D                      (at the beginning of the input line) end input.
CTRL-D CTRL-D               (in the middle of the input line) end input.
------------------------------------------------------------------------------
WILDCARDS AND DIRECTORIES USED IN COMMANDS
*                           Replaces any string of characters in a file name
                            except the initial dot.
?                           Replaces any single character in a file name
                            except the initial dot.
~                           The home directory of the current user.
~abcde001                   The home directory of the user abcde001.
..                          The parent directory.
.                           The present directory.
/                           The root directory

Example:
ls ~/files/csc221/*.txt
------------------------------------------------------------------------------
REDIRECTIONS AND PIPES

COMMAND < FILE              Take input from FILE instead of from the keybaord.
COMMAND > FILE              Put output of COMMAND to FILE
COMMAND >> FILE             Append the output of COMMAND to FILE COMMAND 2> FILE             Put error messages of COMMAND to FILE.
COMMAND 2>> FILE            Append error messages of COMMAND to FILE.
COMMAND > FILE1 2> FILE2    Put output and error messages in separate files.
COMMAND >& FILE             Put output and error messages in the same FILE.
COMMAND >>& FILE            Append output and error messages of COMMAND to FILE.

COMMAND1 | COMMAND2         Output of COMMAND1 becomes input for COMMAND2.
COMMAND | more              See the output of COMMAND page by page.
COMMAND | sort | more       See the output lines of COMMAND sorted and page by page.
------------------------------------------------------------------------------
ONLINE HELP

h                           *Custom help.
COMMAND --help | more       Basic help on a Unix COMMAND (for most commands).
COMMAND -h | more           Basic help on a Unix COMMAND (for some commands).
whatis COMMAND              One-line information on COMMAND.
man COMMAND                 Display the UNIX manual page on COMMAND.
info COMMAND                Info help on COMMAND.
xman                        Browser for Unix manual pages (under X-windows).
apropos KEYWORD | more      Find man pages relevant to COMMAND.
help COMMAND		    Help on a bash built-in COMMAND.
perldoc                     Perl documentation.
------------------------------------------------------------------------------
FILES AND DIRECTORIES

ls                          List contents of current directory.
ls -l                       List contents of current directory in a long form.
ls -a                       Same as ls but .* files are displayed as well.
ls -al                      Combination of ls -a and ls -l 
ls DIRECTORY                List contents of DIRECTORY (specified by a path).
ls SUBDIRECTORY             List contents of SUBDIRECTORY.
ls FILE(S)                  Check whether FILE exists (or what FILES exist).

pwd                         Display absolute path to present working directory.

mkdir DIRECTORY             Create DIRECTORY (i.e. a folder)

cd                          Change to your home directory.
cd ..                       Change to the parent directory.
cd SUBDIRECTORY             Change to SUBDIRECTORY.
cd DIRECTORY                Change to DIRECTORY (specified by a path).
cd -                        Change to the directory you were in previously.
cd. ARGUMENTS               *Same as cd followed by ls

cp FILE NEWFILE             Copy FILE to NEWFILE.
cp -r DIR NEWDIR            Copy DIR and all its contents to NEWDIR.
cp. ARGUMENTS *Same as cp -r but preserving file attributes.

mv FILE NAME                Rename FILE to new NAME.
mv DIR NAME                 Rename directory DIR to new NAME.
mv FILE DIR                 Move FILE into existing directory DIR.
swap FILE1 FILE2 *Swap contents of FILE1 and FILE2.
ln -s FILE LINK Create symbolic LINK (i.e. shortcut) to existing FILE.

quota                       Displays your disk quota.
quota.                      *Displays your disk quota and current disk usage.

rm FILE(S)                  Remove FILE(S).
rmdir DIRECTORY             Remove empty DIRECTORY.
rm -r DIRECTORY             Remove DIRECTORY and its entire contents.
rm -rf DIRECTORY            Same as rm -r but without asking for confirmations.
clean                       *Remove non-essential files, interactively 
clean -f                    *Remove non-essential files, without interaction.
junk FILE                   *Move FILE to ~/junk instead of removing it. 
find. FILE(S)               *Search current dir and its subdirs for FILE(S).
touch FILE                  Update modification date/time of FILE.
file FILE                   Find out the type of FILE.
gzip                        Compress or expand files.
zip                         Compress or expand files.
compress                    Compress or expand files.
tar                         Archive a directory into a file, or expand such a file.
targz DIRECTORY             *Pack DIRECTORY into archive file *.tgz 
untargz ARCHIVE.tgz         *Unpack *.tgz archive into a directory.

------------------------------------------------------------------------------
TEXT FILES

more FILE                   Display contents of FILE, page by page.
less FILE                   Display contents of FILE, page by page.
cat FILE                    Display a file. (For very short files.)
head FILE                   Display first lines of FILE.
tail FILE                   Display last lines of FILE.

pico FILE                   Edit FILE using a user-friendly editor. 
nano FILE                   Edit FILE using a user-friendly editor. 
kwrite FILE                 Edit FILE using a user-friendly editor under X windows.
gedit FILE                  Edit FILE using a user-friendly editor under X windows.
kate FILE                   Edit FILE using a user-friendly editor under X windows.
emacs FILE                  Edit FILE using a powerful editor.
vim FILE                    Edit FILE using a powerful editor with cryptic syntax.
aspell -c FILE              Check spelling in text-file FILE.
ispell FILE                 *Check spelling in text-file FILE.

cat FILE1 FILE2 > NEW       Append FILE1 and FILE2 creating new file NEW.
cat FILE1 >> FILE2          Append FILE1 at the end of FILE2.

sort FILE > NEWFILE         Sort lines of FILE alphabetically and put them in NEWFILE.

grep STRING FILE(S)         Display lines of FILE(S) which contain STRING.
grep. STRING FILE(S)        *Similar to that above, but better. 
wc FILE(S)                  Count characters, words and lines in FILE(S).
diff FILE1 FILE2 | more     Show differences between two versions of a file.

filter FILE NEWFILE         *Filter out strange characters from FILE.

COMMAND | cut -b 1-9,15     Remove sections from each line.
COMMAND | uniq              Omit repeated lines.
------------------------------------------------------------------------------
PRINTING

lpr FILE                    In Hawk153B or Redcay 141A, print FILE from a workstation. 
lprint1 FILE                *Print text-file on local printer; see help printing
lprint2 FILE                *Print text-file on local printer; see help printing

------------------------------------------------------------------------------
PROGRAMMING LANGUAGES
python                      Listener of Python 2.x programming language.
python3                     *Listener of Python 3.x programming language.
idle                        IDE for Ptyhon 2.x.
idle3                       *IDE for Ptyhon 3.x.
cc -g -Wall -o FILE FILE.c  Compile C source FILE.c into executable FILE.
gcc -g -Wall -o FILE FILE.c Compile C source FILE.c into executable FILE.
c++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.
g++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.
gdb EXECUTABLE              Start debugging a C/C++ program.
make FILE                   Compile and link C/C++ files specified in makefile
m                           *Same as make but directs messages to a log file.
c-work                      *Repeatedly edit-compile-run a C program.
javac CLASSNAME.java        Compile a Java program.
java CLASSNAME              Run a Java program.
javadoc CLASSNAME.java      Create an html documentation file for CLASSNAME.
appletviewer CLASSNAME      Run an applet.

scheme                      *Listener of Scheme programming language.
lisp                        *Listener of LISP programming language.
prolog                      *Listener of Prolog programming language.
------------------------------------------------------------------------------
INTERNET
lynx                        Web browser (for text-based terminals).
firefox                     Web browser.
konqueror                   Web browser.
BROWSER                     Browse the Internet (with one of the browsers above.
BROWSER FILE.html           Display a local html file.
BROWSER FILE.pdf            Display a local pdf file.

mutt                        Text-based e-mail manager.
pine                        Text-based e-mail manager (on some systems).

ssh HOST                    Open interactive session on HOST using secure shell.
sftp HOST                   Open sftp (secure file transfer) connection to HOST.
rsync ARGUMENTS             Synchronize directories on local and remote host.
------------------------------------------------------------------------------
UNDER X-WINDOWS
libreoffice                 LibreOffice productiveity suite
soffice                     OpenOffice productivity suite

acroread FILE.pdf           Display pdf FILE.pdf
epdfviewer FILE.pdf         Display pdf FILE.pdf
okular FILE                 Display FILE (pdf, postscript, ...)

xterm                       A shell window
konsole                     A better shell window
xcalc                       A calculator
xclock                      A clock
xeyes                       They watch you work and report to the Boss :-)
------------------------------------------------------------------------------
RESET

xfwm4                       Reset the windows manager on Lab and MiniLab computers.
Ctrl-Alt-Backspace          Restart the X-server. (You may need to do that twice.)
clear                       Clear shell window.
xrefresh                    Refresh X-windows.
reset                       *Reset session.
setup-account               *Set up or reset your account (Dr. Plaza's customizations)
------------------------------------------------------------------------------
MISCELLANEOUS

exit                        Exit from any shell.
logout                      Exit from the login shell and terminate session.

svn                         Version control system. 

date                        Display date and time.
------------------------------------------------------------------------------
COURSEWORK IN DR. PLAZA'S COURSES
Commands and directory names related to csc219 have 219 as a suffix. 
By changing the suffix you will obtain commands for other courses.
ls $csc319                  *List files related to csc319. 
cd $csc319                  *change into instructor's public directory for csc319. 
cp $csc319/FILE .           *Copy FILE related to csc319 to the current directory
cp -r $csc319/SUBDIR .      *Copy SUBDIR of csc319 to the current directory.
submit                      *Submit a directory with files for an assignment. 
grades                      *See your grades. Used in some courses only.
------------------------------------------------------------------------------
PROCESS CONTROL
Notes: A process is a run of a program; 
       One program can be used to create many concurrent processes.
       A job may consist of several processes with pipes and redirections.
       Processes are managed by the kernel. 
       Jobs are managed by the shell.

CTRL-Z                      Suspend current foreground process.
fg                          Bring job suspended by CTRL-Z to the foreground.
bg JOB Restart suspended JOb in the background.
ps                          List processes.
ps.                         *List processes.
jobs                        List current jobs (A job may involve many processes).
kill PROCESS                Kill PROCESS (however some processes may resist).
ctrl-C                      Kill the foreground process (but it may resist).
kill -9 PROCESS             Kill PROCESS (no process can resist.)
kill. PROCESS               *Kill PROCESS; same as kill -9.
COMMAND &                   Run COMMAND in the background. 
------------------------------------------------------------------------------
ENVIRONMENT VARIABLES IN BASH
env | sort | more           List all the environment variables with values.
echo $VARIABLE List the value of VARIABLE.
unset VARIABLE              Remove VARIABLE. export VARIABLE=VALUE Create environment variable VARIABLE and set to VALUE.
------------------------------------------------------------------------------

Apple Mac OSx

Posted on 2012/05/07 by arno Posted in Apple, Mac OSX

News

http://www.macrumors.com/

http://www.macfreak.nl/

Project Websites

http://www.macports.org/install.php

 

Outlook 200x – Mileage calculation from task and calendar

Posted on 2012/04/26 by arno Posted in Uncategorized

http://www.msoutlook.info/question/443

http://www.howto-outlook.com/howto/timespent.htm#addin

Server 2008/R2 Advanced XML filtering

Posted on 2012/04/26 by arno Posted in Microsoft

http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx

<QueryList>
<Query Id=”0″>
<Select Path=”Security“>
*[EventData[Data[@Name=’SubjectUserName’] and (Data=’test9′)]]
</Select>
</Query>
</QueryList>

Example:

<QueryList>
<Query Id=”0″ Path=”Security”>
<Select Path=”Security”>
*[EventData[Data[@Name=’Workstation’] and (Data=’ClientMachineNAME’ or Data=’WorkstationName1′ or Data=’WorkstationName2′ or Data=’WorkstationName1′ or Data=’Client-PC’ or Data=’Test-PC’)]]
and
*[System[(EventID=’4776′)]]
</Select>
</Query>
</QueryList>

Microsoft Server 2008

Silverlight Features

Posted on 2012/04/26 by arno Posted in Features

Silverlight cannot be updated or removed from software

In the Control Panel, open the Add/Remove Programs applet (Programs on Vista) and
uninstall Microsoft Silverlight if it is shown as installed by clicking on it and then clicking Uninstall or Remove.
If you get an error on this step (for example a dialog saying that the .msi file cannot be found), just continue on to the next step
Note :Be careful that you only delete what I say to delete below.

If you delete too much by accident it is quite likely that you will break something and there is no way to undo accidental changes

ClickStart, and then click on Run.
Type regedit in the Run box and click on OK.
In Registry Editor navigate to
\HKEY_CLASSES_ROOT\Installer\Products\
(export and) Delete {D7314F9862C648A4DB8BE2A5B47BE100}

Using regedit, navigate to HKLM\Software\Microsoft\Silverlight and delete the key

Using Windows Explorer, delete the “Microsoft Silverlight” directory from under Program Files.
From an administrator command shell on anx86 you can do this by running:
rmdir /s /q “%ProgramFiles%\Microsoft Silverlight
If you are on a 64-bit version of Windows, substitute ProgramFiles(x86):
rmdir /s /q “%ProgramFiles(x86)%\Microsoft Silverlight

Try updating or installing Silverlighthttp://www.microsoft.com/getsilverlight

If the issue is related to playing Media Streaming using third party players from any website then try resetting the Internet Explorer to defaults

OS X (10.6.x / 10.7.x) HP 4100c scanner

Posted on 2012/04/25 by arno Posted in Apple, Mac OSX

HP ScanJet on Mac OS X (or any scanner, for that matter)

http://www.ellert.se/twain-sane/

Exporting priv1.ebd Exchange 2003 mailboxes manualy

Posted on 2012/04/16 by arno Posted in Microsoft

Asuming you have a backup copy of the Exchange 2003 ‘MDBDATA’ folder, you can extract the mailboxes to PST files using 3rd party software as described below
http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/49aaa2ae-fe6d-4d15-87a5-43714b31547f/

The manual way is to setup a exact installation of the Server 2003 Small Business Server for example in a virtual enviroment.
All the parameters like computer/domain-name/updates-servicepacks and ip-address must be the same.
Then stop all exchange services and move the old database folder (MDBDATA) to a temporary location.
Move your backup-copy of the MDBDATA to that folder and restart the services.

It could be that the database has a status:  “Dirty shutdown” (%exchange%\bin\eseutil.exe /mh priv1.edb)
the repair can also be done with eseutil (%exchange%\bin\eseutil.exe /p priv1.edb)

Exchange Microsoft

Windows User/System Tweaks

Posted on 2012/04/05 by arno Posted in Features, Microsoft, Tweaks

Windows Installer folder \Windows\Installer

  • move the folder C:\Windows\Installer to another [new-installer-path]
  • get the junction.exe program (Systems Internals – http://www.sysinternals.com)
  • Create a new junction (command promt as administrator)
  • junction -s [new-installer-path] C:\Windows\Installer
  • junction -s D:\Users\Temp\Windows-Installer

Profiles folders \Users\*

source: Profile relocator ( http://software.bootblock.co.uk/?id=profilerelocator )

Moved the users folders to D:\Users\

Temp folders *\Temp

%USERPROFILE%\Local\Temp\ – moved it to – D:\Users\Temp\[Usersname]\

C:\Windows\Temp\ – moved it to – D:\Users\Temp\Windows\

 

Service DNS

Posted on 2012/04/03 by arno Posted in Uncategorized

DNSSec

http://tweakers.net/reviews/2544/3/dnssec-voor-het-laatste-onveilige-protocol-beren-op-de-weg.html

DynDNS do it yourself

http://nexus.zteo.com/blog/your-own-dynamic-dns-in-3-steps/

Linux on a fritz.box

Posted on 2012/03/28 by arno Posted in Uncategorized

Links

Fritz.box Trace window

AVM Fritz box – firmware custom

http://freetz.org/

Home automatisation

http://fhem.de/ | wiki

Posts

FRITZ!Box tuning part 1: Enable remote access over ssh

Tuning und Hacks für die Fritz!Box

HOW TO use a Fritz!Box with NAT32 –  monitor Fritz!Box DSL traffic in real time

Tuning und Hacks für die Fritz!Box

Software Mozilla Firefox

Posted on 2012/03/21 by arno Posted in Software

Private Sync

http://avih.github.io/blog/2013/05/31/private-firefox-sync-server-in-5-mins/

Custom style sheet per domain

In the firefox profile directory (%APPDATA%\Mozilla\Firefox\Profiles\[USERNAME-PROFILE]\chrome\userContent.css)
Copy-and-paste and change the [DOMAIN.tld] one of this stylesheets to your userContent.css file
Restart of firefox is required.

Domain prefix

@-moz-document domain(www.belastingdienst.nl) {
body {background-color:#000066 !important;}
}

URL prefix

@-moz-document url-prefix(http://www.belastingdienst.nl/) {
  body {background-color:#000066 !important;}
}

Custom background picture

@-moz-document domain(www.belastingdienst.nl) {
body {background:#fff url(http://[DOMAIN.tld]/bd-bg-body-2.png) 0px 0px repeat-y !important;}
}

The domain ‘www.belastingdienst.nl’ will change the background color to blue 🙂

Microsoft command line options

Posted on 2012/03/20 by arno Posted in Uncategorized

BCDEDIT.exe

http://diddy.boot-land.net/bcdedit/files/commands.htm

http://technet.microsoft.com/en-us/library/cc709667%28v=ws.10%29.aspx

http://www.howtogeek.com/wiki/Bcdedit

CHKDSK at BOOT !!

To disable automatic disk check at boot Windows, go to the following registry key:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager
In the right pane, click 2 times on BootExecute. The default value for this parameter is set to autocheck autochk *

Linux | servers

Posted on 2012/03/19 by arno Posted in Linux, Services

AirVideo Server

http://www.inmethod.com/forum/posts/list/1856.page

http://wiki.birth-online.de/know-how/hardware/apple-iphone/airvideo-server-linux

http://www.inmethod.com/forum/posts/list/120/34.page#5252

Icecast

http://www.icecast.org/download.php

http://boomshadow.net/tech/installs/icecast-installation/

http://www.yolinux.com/TUTORIALS/LinuxTutorialAudioStreaming.html

Growl

Growl | wiki

Mac OS X | google code

Windows | google code

Linux | Github

iPhone | Prowl | howl | Boxcar

Android | NotifyMyAndroid | Squealer

WP7 | Toasty

Samba

Anonymous shares

https://micheljansen.org/blog/entry/182

Symlinks

http://forums.whirlpool.net.au/archive/1403035

Links

http://en.wikipedia.org/wiki/List_of_UPnP_AV_media_servers_and_clients

Linux | servers games

Posted on 2012/03/19 by arno Posted in Linux

Unreal tournament

http://en.wikipedia.org/wiki/Unreal_Tournament

http://www.r3uk.com/index.php/home/38-software/17-setting-up-a-dedicated-linux-unreal-tournament-server

http://www.dragonbe.be/index.php?module=unreal_tournament

http://ut.congiman.com/settingup.html

Script – Repositories

Posted on 2012/03/17 by arno Posted in Scripts

Repositories

epel – Extra Packages for Enterprise Linux

source: http://blog.miralinux.net/files/linux/local/install/yumrepo.epel.sh

[include]../../../files/linux/local/install/yumrepo.epel.sh[/include]

firewall builder

[include]../../../files/linux/local/install/yumrepo.fwbuilder.sh[/include]

rpmforge

http://blog.miralinux.net/files/linux/local/install/yumrepo.rpmforge.sh

[include]../../../files/linux/local/install/yumrepo.rpmforge.sh[/include]

webmin

http://blog.miralinux.net/files/linux/local/install/yumrepo.webmin.sh

[include]../../../files/linux/local/install/yumrepo.webmin.sh[/include]

virtualbox

http://blog.miralinux.net/files/linux/local/install/yumrepo.virtualbox.sh

[include]../../../files/linux/local/install/yumrepo.virtualbox.sh[/include]

pkgbox

http://blog.miralinux.net/files/linux/local/install/yumrepo.pkgbox.sh

[include]../../../files/linux/local/install/yumrepo.pkgbox.sh[/include]

Arduino Project

Posted on 2012/03/06 by arno Posted in Uncategorized

DTMF Generator

Forums

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1244333139

You Tube

Datasheets

http://wiki.sj.ifsc.edu.br/wiki/images/1/19/HM91710.pdf

http://www.sivann.gr/software/gps2dtmf/MT8880Trnscvr.pdf

http://www.holtek.com.tw/english/docum/comm/9200.htm

 

Microsoft Licensing

Posted on 2012/03/06 by arno Posted in Microsoft

Find End User License Terms for Microsoft Software Licensed by Microsoft or the Computer Manufacturer

Remote Desktop Services, formerly known as Terminal Services

Troubleshooting Remote Desktop Licensing Issues

 

Microsoft Software Windows 7

Windows 7 Shortcut-keys

Posted on 2012/03/06 by arno Posted in Microsoft

Ease of Access keyboard shortcuts

  • Right Shift for eight seconds: Turn Filter Keys on and off
  • Left Alt + Left Shift + PrtScn (or PrtScn): Turn High Contrast on or off
  • Left Alt + Left Shift + Num Lock: Turn Mouse Keys on or off
  • Shift five times: Turn Sticky Keys on or off
  • Num Lock for five seconds: Turn Toggle Keys on or off
  • Windows logo key + U: Open the Ease of Access Center

General keyboard shortcuts

  • F1: Display Help
  • Ctrl + C (or Ctrl + Insert): Copy the selected item
  • Ctrl + X: Cut the selected item
  • Ctrl + V (or Shift + Insert): Paste the selected item
  • Ctrl + Z: Undo an action
  • Ctrl + Y: Redo an action
  • Delete (or Ctrl + D): Delete the selected item and move it to the Recycle Bin
  • Shift + Delete: Delete the selected item without moving it to the Recycle Bin first
  • F2: Rename the selected item
  • Ctrl + Right Arrow: Move the cursor to the beginning of the next word
  • Ctrl + Left Arrow: Move the cursor to the beginning of the previous word
  • Ctrl + Down Arrow: Move the cursor to the beginning of the next paragraph
  • Ctrl + Up Arrow: Move the cursor to the beginning of the previous paragraph
  • Ctrl + Shift with an arrow key: Select a block of text
  • Shift + any arrow key: Select more than one item in a window or on the desktop, or select text within a document
  • Ctrl + any arrow key + Spacebar: Select multiple individual items in a window or on the desktop
  • Ctrl + A: Select all items in a document or window
  • F3: Search for a file or folder
  • Alt + Enter: Display properties for the selected item
  • Alt + F4: Close the active item, or exit the active program
  • Alt + Spacebar: Open the shortcut menu for the active window
  • Ctrl + F4: Close the active document (in programs that allow you to have multiple documents open simultaneously)
  • Alt + Tab: Switch between open items
  • Ctrl + Alt + Tab: Use the arrow keys to switch between open items
  • Ctrl + Mouse scroll wheel: Change the size of icons on the desktop
  • Windows logo key + Tab: Cycle through programs on the taskbar by using Aero Flip 3-D
  • Ctrl+ Windows logo key + Tab: Use the arrow keys to cycle through programs on the taskbar by using Aero Flip 3-D
  • Alt + Esc: Cycle through items in the order in which they were opened
  • F6: Cycle through screen elements in a window or on the desktop
  • F4: Display the address bar list in Windows Explorer
  • Shift + F10: Display the shortcut menu for the selected item
  • Ctrl + Esc: Open the Start menu
  • Alt + underlined letter: Display the corresponding menu
  • Alt + underlined letter: Perform the menu command (or other underlined command)
  • F10: Activate the menu bar in the active program
  • Right Arrow: Open the next menu to the right, or open a submenu
  • Left Arrow: Open the next menu to the left, or close a submenu
  • F5 (or Ctrl + R): Refresh the active window
  • Alt + Up Arrow: View the folder one level up in Windows Explorer
  • Esc: Cancel the current task
  • Ctrl + Shift + Esc: Open Task Manager
  • Shift when you insert a CD: Prevent the CD from automatically playing
  • Left Alt + Shift: Switch the input language when multiple input languages are enabled
  • Ctrl + ShiftL: Switch the keyboard layout when multiple keyboard layouts are enabled
  • Right or Left Ctrl + Shift: Change the reading direction of text in right-to-left reading languages

Dialog box keyboard shortcuts

  • Ctrl + Tab: Move forward through tabs
  • Ctrl + Shift + Tab: Move back through tabs
  • Tab: Move forward through options
  • Shift + Tab: Move back through options
  • Alt + underlined letter: Perform the command (or select the option) that goes with that letter
  • Enter: Replaces clicking the mouse for many selected commands
  • Spacebar: Select or clear the check box if the active option is a check box
  • Arrow keys: Select a button if the active option is a group of option buttons
  • F1: Display Help
  • F4: Display the items in the active list
  • Backspace: Open a folder one level up if a folder is selected in the Save As or Open dialog box

Windows logo key keyboard shortcuts

  • Windows logo key: Open or close the Start menu.
  • Windows logo key + Pause: Display the System Properties dialog box.
  • Windows logo key + D: Display the desktop.
  • Windows logo key + M: Minimize all windows.
  • Windows logo key + Shift + M: Restore minimized windows to the desktop.
  • Windows logo key + E: Open Computer.
  • Windows logo key + F: Search for a file or folder.
  • Ctrl + Windows logo key + F: Search for computers (if you’re on a network).
  • Windows logo key + L: Lock your computer or switch users.
  • Windows logo key + R: Open the Run dialog box.
  • Windows logo key + T: Cycle through programs on the taskbar.
  • Windows logo key + number: Start the program pinned to the taskbar in the position indicated by the number. If the program is already running, switch to that program.
  • Shift + Windows logo key + number: Start a new instance of the program pinned to the taskbar in the position indicated by the number.
  • Ctrl + Windows logo key + number: Switch to the last active window of the program pinned to the taskbar in the position indicated by the number.
  • Alt + Windows logo key + number: Open the Jump List for the program pinned to the taskbar in the position indicated by the number.
  • Windows logo key + Tab: Cycle through programs on the taskbar by using Aero Flip 3-D.
  • Ctrl+Windows logo key + Tab: Use the arrow keys to cycle through programs on the taskbar by using Aero Flip 3-D.
  • Ctrl+Windows logo key + B: Switch to the program that displayed a message in the notification area.
  • Windows logo key + Spacebar: Preview the desktop.
  • Windows logo key + Up Arrow: Maximize the window.
  • Windows logo key + Left Arrow: Maximize the window to the left side of the screen.
  • Windows logo key + Right Arrow: Maximize the window to the right side of the screen.
  • Windows logo key + Down Arrow: Minimize the window.
  • Windows logo key + Home: Minimize all but the active window.
  • Windows logo key + Shift + Up Arrow: Stretch the window to the top and bottom of the screen.
  • Windows logo key + Shift+ Left Arrow or Right Arrow: Move a window from one monitor to another.
  • Windows logo key + P: Choose a presentation display mode.
  • Windows logo key + G: Cycle through gadgets.
  • Windows logo key + U: Open Ease of Access Center.
  • Windows logo key + X: Open Windows Mobility Center.

Windows Explorer keyboard shortcuts

  • Ctrl + N: Open a new window
  • Ctrl + W: Close the current window
  • Ctrl + Shift + N: Create a new folder
  • End: Display the bottom of the active window
  • Home: Display the top of the active window
  • F11: Maximize or minimize the active window
  • Ctrl + Period (.): Rotate a picture clockwise
  • Ctrl + Comma (,): Rotate a picture counter-clockwise
  • Num Lock + Asterisk (*) on numeric keypad: Display all subfolders under the selected folder
  • Num Lock + Plus Sign (+) on numeric keypad: Display the contents of the selected folder
  • Num Lock + Minus Sign (-) on numeric keypad: Collapse the selected folder
  • Left Arrow: Collapse the current selection (if it’s expanded), or select the parent folder
  • Alt + Enter: Open the Properties dialog box for the selected item
  • Alt + P: Display the preview pane
  • Alt + Left Arrow: View the previous folder
  • Backspace: View the previous folder
  • Right Arrow: Display the current selection (if it’s collapsed), or select the first subfolder
  • Alt + Right Arrow: View the next folder
  • Alt + Up Arrow: View the parent folder
  • Ctrl + Shift + E: Display all folders above the selected folder
  • Ctrl + Mouse scroll wheel: Change the size and appearance of file and folder icons
  • Alt + D: Select the address bar
  • Ctrl + E: Select the search box
  • Ctrl + F: Select the search box

Taskbar keyboard shortcuts

  • Shift + Click on a taskbar button: Open a program or quickly open another instance of a program
  • Ctrl + Shift + Click on a taskbar button: Open a program as an administrator
  • Shift + Right-click on a taskbar button: Show the window menu for the program
  • Shift + Right-click on a grouped taskbar button: Show the window menu for the group
  • Ctrl + Click on a grouped taskbar button: Cycle through the windows of the group

Magnifier keyboard shortcuts

  • Windows logo key + Plus Sign or Minus Sign: Zoom in or out
  • Ctrl + Alt + Spacebar: Preview the desktop in full-screen mode
  • Ctrl + Alt + F: Switch to full-screen mode
  • Ctrl + Alt + L: Switch to lens mode
  • Ctrl + Alt + D: Switch to docked mode
  • Ctrl + Alt + I: Invert colors
  • Ctrl + Alt + arrow keys: Pan in the direction of the arrow keys
  • Ctrl + Alt + R: Resize the lens
  • Windows logo key + Esc: Exit Magnifier

Remote Desktop Connection keyboard shortcuts

  • Alt + Page Up: Move between programs from left to right.
  • Alt + Page Down: Move between programs from right to left.
  • Alt + Insert: Cycle through programs in the order that they were started in.
  • Alt + Home: Display the Start menu.
  • Ctrl + Alt + Break: Switch between a window and full screen.
  • Ctrl + Alt + End: Display the Windows Security dialog box.
  • Alt + Delete: Display the system menu.
  • Ctrl + Alt + Minus Sign (-) on the numeric keypad: Place a copy of the active window, within the client, on the Terminal server clipboard (provides the same functionality as pressing Alt + PrtScn on a local computer).
  • Ctrl + Alt + Plus Sign (+) on the numeric keypad: Place a copy of the entire client window area on the Terminal server clipboard (provides the same functionality as pressing PrtScn on a local computer).
  • Ctrl + Alt + Right Arrow: “Tab” out of the Remote Desktop controls to a control in the host program (for example, a button or a text box). Useful when the Remote Desktop controls are embedded in another (host) program.
  • Ctrl + Alt + Left Arrow: “Tab” out of the Remote Desktop controls to a control in the host program (for example, a button or a text box). Useful when the Remote Desktop controls are embedded in another (host) program.

Paint keyboard shortcuts

  • Ctrl + N: Create a new picture
  • Ctrl + O: Open an existing picture
  • Ctrl + S: Save changes to a picture
  • F12: Save the picture as a new file
  • Ctrl + P: Print a picture
  • Alt + F4: Close a picture and its Paint window
  • Ctrl + Z: Undo a change
  • Ctrl + Y: Redo a change
  • Ctrl + A: Select the entire picture
  • Ctrl + X: Cut a selection
  • Ctrl + C: Copy a selection to the Clipboard
  • Ctrl + V: Paste a selection from the Clipboard
  • Right Arrow: Move the selection or active shape right by one pixel
  • Left Arrow: Move the selection or active shape left by one pixel
  • Down Arrow: Move the selection or active shape down by one pixel
  • Up Arrow: Move the selection or active shape up by one pixel
  • Esc: Cancel a selection
  • Delete: Delete a selection
  • Ctrl + B: Bold selected text
  • Ctrl + +: Increase the width of a brush, line, or shape outline by one pixel
  • Ctrl + -: Decrease the width of a brush, line, or shape outline by one pixel
  • Ctrl + I: Italicize selected text
  • Ctrl + U: Underline selected text
  • Ctrl + E: Open the Properties dialog box
  • Ctrl + W: Open the Resize and Skew dialog box
  • Ctrl + Page Up: Zoom in
  • Ctrl + Page Down: Zoom out
  • F11: View a picture in full-screen mode
  • Ctrl + R: Show or hide the ruler
  • Ctrl + G: Show or hide gridlines
  • F10 or Alt: Display keytips
  • Shift + F10: Show the current shortcut menu
  • F1: Open Paint Help

WordPad keyboard shortcuts

  • Ctrl + N: Create a new document
  • Ctrl + O: Open an existing document
  • Ctrl + S: Save changes to a document
  • F12: Save the document as a new file
  • Ctrl + P: Print a document
  • Alt + F4: Close WordPad
  • Ctrl + Z: Undo a change
  • Ctrl + Y: Redo a change
  • Ctrl + A: Select the entire document
  • Ctrl + X: Cut a selection
  • Ctrl + C: Copy a selection to the Clipboard
  • Ctrl + V: Paste a selection from the Clipboard
  • Ctrl + B: Make selected text bold
  • Ctrl + I: Italicize selected text
  • Ctrl + U: Underline selected text
  • Ctrl + =: Make selected text subscript
  • Ctrl + Shift + =: Make selected text superscript
  • Ctrl + L: Align text left
  • Ctrl + E Align text center
  • Ctrl + R:: Align text right
  • Ctrl + J: Justify text
  • Ctrl + 1: Set single line spacing
  • Ctrl + 2: Set double line spacing
  • Ctrl + 5: Set line spacing to 1.5
  • Ctrl + Shift + >: Increase the font size
  • Ctrl + Shift + <: Decrease the font size
  • Ctrl + Shift + A: Change characters to all capitals
  • Ctrl + Shift + L: Change the bullet style
  • Ctrl + D: Insert a Microsoft Paint drawing
  • Ctrl + F: Find text in a document
  • F3: Find the next instance of the text in the Find dialog box
  • Ctrl + H: Replace text in a document
  • Ctrl + Left Arrow: Move the cursor one word to the left
  • Ctrl + Right Arrow: Move the cursor one word to the right
  • Ctrl + Up Arrow: Move the cursor to the line above
  • Ctrl + Down Arrow: Move the cursor to the line below
  • Ctrl + Home: Move to the beginning of the document
  • Ctrl + End: Move to the end of the document
  • Ctrl + Page Up: Move up one page
  • Ctrl + Page Down: Move down one page
  • Ctrl + Delete: Delete the next word
  • F10: Display keytips
  • Shift + F10: Show the current shortcut menu
  • F1: Open WordPad Help

Calculator keyboard shortcuts

  • Alt + 1: Switch to Standard mode
  • Alt + 2: Switch to Scientific mode
  • Alt + 3: Switch to Programmer mode
  • Alt + 4: Switch to Statistics mode
  • Ctrl + E: Open date calculations
  • Ctrl + H: Turn calculation history on or off
  • Ctrl + U: Open unit conversion
  • Alt + C: Calculate or solve date calculations and worksheets
  • F1: Open Calculator Help
  • Ctrl + Q: Press the M- button
  • Ctrl + P: Press the M+ button
  • Ctrl + M: Press the MS button
  • Ctrl + R: Press the MR button
  • Ctrl + L: Press the MC button
  • %: Press the % button
  • F9: Press the +/– button
  • /: Press the / button
  • *: Press the * button
  • +: Press the + button
  • -: Press the – button
  • R: Press the 1/× button
  • @: Press the square root button
  • 0-9: Press the number buttons (0-9)
  • =: Press the = button
  • .: Press the . (decimal point) button
  • Backspace: Press the backspace button
  • Esc: Press the C button
  • Del: Press the CE button
  • Ctrl + Shift + D: Clear the calculation history
  • F2: Edit the calculation history
  • Up Arrow key: Navigate up in the calculation history
  • Down Arrow key: Navigate down in the calculation history
  • Esc: Cancel editing the calculation history
  • Enter: Recalculate the calculation history after editing
  • F3: Select Degrees in Scientific mode
  • F4: Select Radians in Scientific mode
  • F5: Select Grads in Scientific mode
  • I: Press the Inv button in Scientific mode
  • D: Press the Mod button in Scientific mode
  • Ctrl + S: Press the sinh button in Scientific mode
  • Ctrl + O: Press the cosh button in Scientific mode
  • Ctrl + T: Press the tanh button in Scientific mode
  • (: Press the ( button in Scientific mode
  • ): Press the ) button in Scientific mode
  • N: Press the ln button in Scientific mode
  • ;: Press the Int button in Scientific mode
  • S: Press the sin button in Scientific mode
  • O: Press the cos button in Scientific mode
  • T: Press the tan button in Scientific mode
  • M: Press the dms button in Scientific mode
  • P: Press the pi button in Scientific mode
  • V: Press the F-E button in Scientific mode
  • X: Press the Exp button in Scientific mode
  • Q: Press the x^2 button in Scientific mode
  • Y: Press the x^y button in Scientific mode
  • #: Press the x^3 button in Scientific mode
  • L: Press the log button in Scientific mode
  • !: Press the n! button in Scientific mode
  • Ctrl + Y: Press the y√x button in Scientific mode
  • Ctrl + B: Press the 3√x button in Scientific mode
  • Ctrl + G: Press the 10x button in Scientific mode
  • F5: Select Hex in Programmer mode
  • F6: Select Dec in Programmer mode
  • F7: Select Oct in Programmer mode
  • F8: Select Bin in Programmer mode
  • F12: Select Qword in Programmer mode
  • F2: Select Dword in Programmer mode
  • F3: Select Word in Programmer mode
  • F4: Select Byte in Programmer mode
  • K: Press the RoR button in Programmer mode
  • J: Press the RoL button in Programmer mode
  • <: Press the Lsh button in Programmer mode
  • >: Press the Rsh button in Programmer mode
  • %: Press the Mod button in Programmer mode
  • (: Press the ( button in Programmer mode
  • ): Press the ) button in Programmer mode
  • |: Press the Or button in Programmer mode
  • ^: Press the Xor button in Programmer mode
  • ~: Press the Not button in Programmer mode
  • &: Press the And button in Programmer mode
  • A-F: Press the A-F buttons in Programmer mode
  • Spacebar: Toggles the bit value in Programmer mode
  • A: Press the Average button in Statistics mode
  • Ctrl + A: Press the Average Sq button in Statistics mode
  • S: Press the Sum button in Statistics mode
  • Ctrl + S: Press the Sum Sq button in Statistics mode
  • T: Press the S.D. button in Statistics mode
  • Ctrl + T: Press the Inv S.D. button in Statistics mode
  • D: Press the CAD button in Statistics mode

Windows Journal keyboard shortcuts

  • Ctrl + N: Start a new note
  • Ctrl + O: Open a recently used note
  • Ctrl + S: Save changes to a note
  • Ctrl + Shift + V: Move a note to a specific folder
  • Ctrl + P: Print a note
  • Alt + F4: Close a note and its Journal window
  • Ctrl + Z: Undo a change
  • Ctrl + Y: Redo a change
  • Ctrl + A: Select all items on a page
  • Ctrl + X: Cut a selection
  • Ctrl + C: Copy a selection to the Clipboard
  • Ctrl + V: Paste a selection from the Clipboard
  • Esc: Cancel a selection
  • Delete: Delete a selection
  • Ctrl + F: Start a basic find
  • Ctrl + G: Go to a page
  • F5: Refresh find results
  • F5: Refresh the note list
  • F6: Toggle between a note list and a note
  • Ctrl + Shift + C: Display a shortcut menu for column headings in a note list
  • F11: View a note in full-screen mode
  • F1: Open Journal Help

Windows Help viewer keyboard shortcuts

  • Alt + C: Display the Table of Contents
  • Alt + N: Display the Connection Settings menu
  • F10: Display the Options menu
  • Alt + Left Arrow: Move back to the previously viewed topic
  • Alt + Right Arrow: Move forward to the next (previously viewed) topic
  • Alt + A: Display the customer support page
  • Alt + Home: Display the Help and Support home page
  • Home: Move to the beginning of a topic
  • End: Move to the end of a topic
  • Ctrl + F: Search the current topic
  • Ctrl + P: Print a topic
  • F3: Move the cursor to the search box

Script – aliases

Posted on 2012/01/29 by arno Posted in Scripts

Aliases

source: http://blog.miralinux.net/files/linux/scripts/aliases

[include]../../../files/linux/scripts/aliases[/include]

Script: mkmotd – create motd

Posted on 2012/01/27 by arno Posted in Scripts

Create message of the day

mkmotd.sh

The contents of /etc/motd are displayed by login(1) after a successful login but just before it executes the login shell.

source: http://blog.miralinux.net/files/linux/local/bin/mkmotd.sh

[include]../../../files/linux/local/bin/mkmotd.sh[/include]

Creates an output like:

Linux hostname.domain.tld 2.6.0-120.3.2.el6.i686 #1 SMP Tue Mar 6 21:21:22 GMT 2012 i686 i686 i386 GNU/Linux
**************************************************************
* Welcome @ hostname.domain.tld
*-------------------------------------------------------------
* Intel(R) Xeon(R) CPU            3040  @ 1.86GHz
* 7984 Mb memory
*-------------------------------------------------------------
* /dev/sda 42°C [3.00TB] Western Digital #WD-W29345798346#
* /dev/sdb 43°C [3.00TB] Western Digital #WD-W34208573245#
* /dev/sdc 50°C [2.00TB] Hitachi Deskstar #JK134825798342#
* /dev/sdd 49°C [2.00TB] Hitachi Deskstar #JK348957345334#
* /dev/sde 00°C [64.0GB] JMicron based #039485739845#
* /dev/sdf 41°C [2.00TB] Western Digital #WD-WCAZ49573453#
* /dev/sdg 40°C [3.00TB] Western Digital #WD-WMA394759834#
*-------------------------------------------------------------
* inet (00:00:00:00:00:00) lo   127.0.0.1/8 scope host
* inet (00:ff:00:ff:00:81) eth0 192.168.41.10/24 brd 192.168.41.255
*-------------------------------------------------------------
* update(17:04 26-07-2012)                Copyright 1973/2012
**************************************************************

changelog:

201207, added harddisk temperatures, timestamp and changed layout ethernet addresses.

201206, added reading of hardwareinfo, harddrives, raid, network information automaticly.

201203, created a script that outputs text, hostname and year to the /etc/motd file.
« Previous Page
Next Page »
  • Login
  • Mother of all Portals
  • .Handy .Handig
  • Links – wikis – wikies

Archives

  • June 2022
  • October 2021
  • June 2021
  • September 2016
  • April 2016
  • March 2016
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
CyberChimps ©2025