Create a bootable Pendrive to install Windows 7

  1. Format the Pendrive or USB drive in NTFS format first.
  2. From the start menu right click on the command prompt and select “Run as administrator“.
  3. Now type the following commands (Press enter key after each command).
  4. diskpart. This is to open the disk partition program.
  5. Now to show the list of drives type list disk.
  6. You can see disk’s listed there. Note down the disk number of your pendrive eg. Disk .
  7. Now type SELECT DISK X (where X is the number you noted down for the pendrive from step 5)
  8. Now type CLEAN.
  9. Now type the following commands by pressing enter after each one.
  10. CREATE PARTITION PRIMARY
  11. SELECT PARTITION 1 (Assuming your pendrive/ USB drive is 1).
  12. ACTIVE
  13. FORMAT FS=NTFS
  14. ASSIGN
  15. EXIT (Now the disk partition program will exit). Now we need to give some more commands.
  16. Now insert the Windows 7 Installation DVD and to your DVD drive.
  17. Here i am assuming DVD drive as G and Pendrive as I.(Change it accordingly).
  18. Now type G: CD BOOT
  19. Now type this command BOOTSECT.EXE / NT60 I: to update your USB drive with bootmgr code.
  20. Finally copy all the contents from the Windows 7 DVD to your Pendrive. Make sure you don’t cause any errors.
  21. Plug / Insert your pendrive to your PC and restart the system.
  22. Now Enter the Bios system accordingly by pressing the Delete key. (This might be sometimes F2 or F12. It depends on the type of your system. Any how during the start up your system will display which key to press to enter the Bios).
  23. Now select the USB/ Pendrive as the first boot driver.(Set the first boot priority to USB drive.).
  24. Now save the settings in Bios and restart and you will be able to Install Windows 7 using that pendrive.

Credits: http://www.computingunleashed.com/install-windows-7-from-pendrive-how-to.html

Tips Thinkpad X220 – Debian Jessie

Graphics

To make graphical boot work (for example using plymouth-drm), enable modesetting in /etc/modules:

i915 modeset=1

and then run update-initramfs -u.

Laptop-mode-tools

If you use laptop-mode-tools, you will need the following in /etc/laptop-mode/conf.d/lcd-brightness.conf to configure the brightness of the screen:

BATT_BRIGHTNESS_COMMAND="echo 3000"
LM_AC_BRIGHTNESS_COMMAND="cat /sys/class/backlight/intel_backlight/max_brightness"
NOLM_AC_BRIGHTNESS_COMMAND="cat /sys/class/backlight/intel_backlight/max_brightness"
BRIGHTNESS_OUTPUT="/sys/class/backlight/intel_backlight/brightness"

and the following in /etc/laptop-mode/conf.d/cpufreq.conf to use the correct CPU governors:

BATT_CPU_GOVERNOR=powersave
LM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_GOVERNOR=performance

Credits

How to Delete stuff using the ‘del’ key in Kali / Debian / Gnome

If you want to move a selected item(s) to Wastebasket, press Ctrl and Delete together.

If you want to permanently delete a selected item, press Shift and Delete together.

If you want to use Delete key to move a selected item(s) to Wastebasket,

edit ~/.config/nautilus/accels file

( example: gedit ~/.config/nautilus/accels )

look for ; (gtk_accel_path "<actions>/DirViewActions/Trash" "<primary>Delete") </primary></actions>

uncomment by removing the semicolon and change to the command you want to use. e.g. (gtk_accel_path "<Actions>/DirViewActions/Trash" "Delete")

Credits