iPhone Linux Windows

Add mobile websites to your iPhone’s home screen

Many websites and services offer great mobile versions without being packaged in an App Store application. If you want to be able to quickly access these sites from your home screen, follow these steps:

  1. Launch Safari on your iPhone
  2. Browse to a desired mobile site (most sites will automatically redirect you to the mobile version once they determine that you’re using an iPhone)
  3. Click the Favorites (+) button at the bottom of Safari
  4. Click “Add to Home Screen”
  5. Type a name for the icon that will appear on your home screen
  6. Click the “Add” button

You will now see an icon on your home screen that will take you directly to the mobile website.

iPhone Linux Windows Wipe Data

How to Wipe Your iPhone of all Personal Data

Clearing all of the data from your iPhone is simple.

  1. Go to Settings
  2. Tap on General
  3. Scroll all the way down and tap Reset
  4. Choose Erase All Content and Settings
  5. Enter passcode (if you’re using one)
  6. Select Erase iPhone (twice), confirming that you REALLY want to lose everything

Make sure you have it plugged in, as the process will take quite a long time, “about an hour” according to the warning. But, believe me, it is time well spent!

Once the process is complete, you’ll be left with a “factory fresh” installation of the iPhone OS with no trace of you or your data.

Linux Windows

Disable User Account Control (UAC) on Windows 7 or Vista via Control Panel

This is an easy method that you can use to disable the annoying User Account Control (UAC) from the control panel GUI interface in either Windows 7 or Vista.

See enable or disable UAC from the command line to do it from the trusty command line.

Note: Disabling UAC will lead to a less secure system, so be warned.

Disable UAC on Windows Vista
Open Control Panel, and type “UAC” into the search box. You’ll see a link for “Turn User Account Control (UAC) on or off”:

On the next screen you should uncheck the box for “Use User Account Control (UAC)”, and then click on the OK button.

Unfortunately you will have to reboot your computer before the changes take effect, but you will be all done with annoying prompts.

Disable UAC on Windows 7
Windows 7 makes it much easier to deal with UAC settings, and in fact you don’t have to completely disable UAC if you don’t want to. Just type UAC into Start/Run, Start/Search or Control Panel search boxes.

You can simply drag the slider up or down, depending on how often you want to be alerted.

If you drag it all the way down to the bottom, you’ll have disabled it entirely.

Command Line Grep Linux Windows

How to kill and logout a user in Linux

You can check who is logged in to a Linux system by executing

who or w commands

and then you can get the user PID

ps aux | grep username or tty

and kill it

kill -KILL PID

or you can use pkill command and kill the user by its username

pkill -KILL -u username

It would be nice to send the users a warning message before logging them out.

Encryption Linux Passwords rdesktop RDP SourceForge TSClient WGET Windows

Using Remote Desktop for Linux with rdesktop

rdesktop client can be used to connect to Windows Terminal Services for Remote Desktop Protocol (RDP) from Linux machines. The rdesktop client supports all version of Microsoft Windows including the latest, Windows Server 2008 and Windows 7 Operating Systems, and it runs on most unix based platforms as well as other ports.

Visit for more information or to download rdesktop.

Download and Install:

  1. wget
  2. tar -zxf rdesktop-1.6.0.tar.gz
  3. cd rdesktop-1.6.0
  4. ./configure
  5. make
  6. make install

Basic Usage:

rdesktop -k en-us -a 16 -f -u <username> -p <password> <server>

Command Options Used:

-f switch for full screen mode
-k for keyboard layout on server
-a for color depth
-u for username
-p for password

Note: To exit full screen mode press: CTRL + ALT + Enter

Full Usage Options

Usage: rdesktop [options] server[:port]
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password (- to prompt)
-n: client hostname
-k: keyboard layout on server (en-us, de, sv, etc.)
-g: desktop geometry (WxH)
-f: full-screen mode
-b: force bitmap updates
-L: local codepage
-A: enable SeamlessRDP mode
-B: use BackingStore of X-server (if available)
-e: disable encryption (French TS)
-E: disable encryption from client to server
-m: do not send motion events
-C: use private colour map
-D: hide window manager decorations
-K: keep window manager key bindings
-S: caption button size (single application mode)
-T: window title
-N: enable numlock syncronization
-X: embed into another window with a given id.
-a: connection colour depth
-z: enable rdp compression
-x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)
-P: use persistent bitmap caching
-0: attach to console
-4: use RDP version 4
-5: use RDP version 5 (default)

There is also a graphical user interface (GUI) that you can use named Terminal Server Client [tsclient]
Visit: for more information and to download tsclient.

Command Line Linux UAC Win 7 Win7 Windows Windows 7 Windows Vista Windows7

Disable/Enable User Access Control (UAC) on Windows 7 or Vista from the Command Line

Microsoft introduced User Account Control (UAC) in Windows Vista. UAC enables users to perform common tasks as non-administrators, called standard users in Windows (Vista and Windows 7), and as administrators without having to switch users, log off, or use Run As. A standard user account is synonymous with a user account in Windows XP. User accounts that are members of the local Administrators group will run most applications as a standard user. By separating user and administrator functions while enabling productivity, UAC is an important enhancement for Windows.

Disable UAC from the command line

%systemroot%System32cmd.exe /k %windir%System32reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 0 /f

Enable UAC from the command line

%systemroot%System32cmd.exe /k %windir%System32reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 1 /f

A couple caveats

  1. Must be run with administrative rights.  You could right-click on Command Prompt shortcut and select Run as Administrator.
  2. You may have to reboot for changes to take affect.

You can also enable or disable UAC from the Control Panel.

Command Line Linux Restart shutdown.exe Windows

How to remotely shutdown, restart or logoff a Windows Machine

With these simple commands you can remotely restart, shutdown, log off or even abort a system shutdown on  Local or remote windows machines using Remote Shutdown Tool (shutdown.exe).

The Remote Shutdown Tool can be accessed via a GUI or from the command prompt.

The Remote Shutdown Tool GUI can be accessed by executing:

shutdown.exe /i

Here are the command line options for shutdown.exe:

Usage examples
Restart a network machine and force any running applications to close

shutdown /m \computername /r /f

Abort a previous shutdown command

shutdown /m \computername /a

Shutdown a network machine and force any running applications to close

shutdown /m \computername /s /f

Logoff a machine and force any running applications to close (This cannot be used with /m to specify the target machine)

shutdown computername /l /f

Hibernate a local machine and force any running applications to close

shutdown /m \computername /h /f

Note: By default the time-out period in previous examples is set to 30 seconds.
Restart a network machine and force any running applications to close giving a reason and set the time-out period to 1 minute (120 sec).

shutdown /m \computername /r /f /c “Computers will restart in 1 minute, please save any work. System Administrator” /t: 120

Schedule a restart of a machine:

at 23:00 /every:M,T,W,Th,F shutdown /r /m \computername

Note: this will run on all versions of Windows (2000, 2003, 2008, XP, Vista, Windows 7).

IIS 6 IIS 7 Win 7 Win7 Windows Windows 2008 Windows 7 Windows Vista Windows7

IIS 7 Log Files Default Location

In Internet Information Services 7 Microsoft changed the default log files location.

IIS 7 Log files location


IIS 6 Log files location


Linux Quick Launch TaskBar Win 7 Win7 Windows Windows 7 Windows7

How to Add Quick Launch to Windows 7 Task Bar

By default Windows 7 does not display quick launch on the taskbar like Windows XP and Vista.

How to Enable Quick Launch in Windows 7

  1. Right-click on taskbar.
  2. From Toolbars Menu select New Toolbar.
  3. Under Folder add: %appdata%MicrosoftInternet ExplorerQuick Launch then press Select Folder.
How to Unlock the Taskbar
  1. Unlock the taskbar by right-clicking on taskbar and select unlock the taskbar.
  2. To lock, do the same but select lock the taskbar.
Taskbar options
In Windows 7 quick launch you can choose whether to display the title and to show text or not.  To change these settings unlock the taskbar, right-click in the quick launch area of the taskbar and toggle Show Text and Show Title as desired.
BackTrack BackTrack 4 Beta BT BT4 HD HDD Linux Ubuntu VMWare WEP Windows WPA

BackTrack 4 PreRelease Hard Disk Install

Since BackTrack 4 Pre-Release does not contain an installer you can follow these steps to install BT4 quickly and easily. The assumption is that you are installing BT4 on an empty disk (/dev/sda in this tutorial).

Boot to BT4 DVD (download BackTrack 4 ISO – make sure to get the BT 4 Beta and not the BT4 Pre Release). Enter commands in bold.

1. Start by creating 3 partitions on the disk, one each for boot, swap and root. Note, since your disk size is probably different than mine the number of cylinders will likely be different.

root@bt:~# fdisk /dev/sda

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs

Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-19457, default 1): <enter>
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-19457, default 19457): +128M

Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 2
First cylinder (18-19457, default 18): <enter>
Using default value 18
Last cylinder, +cylinders or +size{K,M,G} (18-19457, default 19457): +1024M

Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 3
First cylinder (150-19457, default 150): <enter>
Using default value 150
Last cylinder, +cylinders or +size{K,M,G} (150-19457, default 19457): +16000M

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)

Command (m for help): a
Partition number (1-4): 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

2. Format the file systems, mount them and copy over the directory structure. Chroot into new environment.

root@bt:~# mke2fs /dev/sda1
root@bt:~# mkswap /dev/sda2
root@bt:~# swapon /dev/sda2
root@bt:~# mkreiserfs /dev/sda3
root@bt:~# mkdir /mnt/bt
root@bt:~# mount /dev/sda3 /mnt/bt/
root@bt:~# mkdir /mnt/bt/boot
root@bt:~# mount /dev/sda1 /mnt/bt/boot
root@bt:~# cp –preserve -R /{bin,dev,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} /mnt/bt/
root@bt:~# mkdir /mnt/bt/{mnt,tmp,proc,sys}
root@bt:~# chmod 1777 /mnt/bt/tmp/
root@bt:~# mount -t proc proc /mnt/bt/proc
root@bt:~# mount -o bind /dev /mnt/bt/dev/
root@bt:~# chroot /mnt/bt/ /bin/bash

3. Configure /etc/lilo.conf to reflect your setup.


# bitmap=/boot/sarge.bmp
# bmp-colors=1,,0,2,,0
# bmp-table=120p,173p,1,15,17
# bmp-timer=254p,432p,1,0,0
# install=bmp

# delay=20


# map=/boot/map



4. Fix first line in /etc/fstab, and remove unnecessary mount lines. Add the swap partition to the fstab so it gets loaded at boot time. Your fstab should look similar to this:

/dev/sda3 / reiserfs defaults 0 0 # AutoUpdate
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts gid=5,mode=620 0 0 # AutoUpdate
tmpfs /dev/shm tmpfs defaults 0 0 # AutoUpdate

5. Execute lilo and reboot!

root@bt:/# lilo -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007, and compiled at 14:08:06 on May 15 2008

Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/vmlinuz
Mapping RAM disk /boot/splash.initrd
Added BT4 *

Writing boot sector.
Backup copy of boot sector in /boot/boot.0800
root@bt:/# exit
root@bt:~# reboot

BackTrack links