Creating a bootable USB installer for Windows 10, 8.1 or 7

Creating a bootable USB installer for Windows 10, 8.1 or 7

The newest and most powerful kid on the block is Rufus, an excellent utility that cames in both Installable and Portable versions. It has a lot of options for creating an installable USB, and works for Windows and Linux.

MWSnap007 2015-08-28, 18_49_21


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.
How to clean viruses from a heavily infected PC using a USB rescue disk

How to clean viruses from a heavily infected PC using a USB rescue disk

In case your PC is heavily infected with viruses it doesnt make sense to try to clean it after installing antivirus software. This is because the virus may be capable of messing with the antivirus installation. In this case, the solution is to use a Rescue Disk system. A rescue disk is a bootable disk, i.e it does not require booting off the hard disk. Hence viruses in the hard disk boot sector are not loaded to memory.

The usual way to create a rescue system is to create a CD or DVD based rescue disk. But in situations where you don’t have access to a writable CD or DVD, or if your laptop or netbook doesn’t have a working CD drive, you may create a rescue disk with a USB. I’ll explain the steps for creating a rescue system using Avira Antivirus and a flash usb drive.

On a clean PC/Laptop, install Avira Antivirus.
Open Avira Antivirus.
Extras > Download rescue CD > Start

MWSnap008 2015-08-09, 21_58_26

When the download is done, the software prompts you to insert a CD. Ignore it and click Cancel.
Now you will be asked if you want to save an iso. Click Yes, and save the iso file.
Download Rufus, a software to create bootable usb disks.
Open Rufus, and select “Create a bootable disk using” option to select the iso you saved.

MWSnap009 2015-08-09, 22_01_36

Click Start.
Write protect the USB disk.

Shutdown the infected laptop/pc.
Now, insert the usb disk into it.
Boot the pc.
Avira rescue system, based on Ubuntu opens. Allow it to update virus definitions, and scan all the drives. It will clean the detected viruses.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

How to write protect a USB drive

Open Command Prompt (cmd) as Admin.
Run Diskpart:

C:\WINDOWS\system32>diskpart

List disks:

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          298 GB  7168 KB
  Disk 1    Online          931 GB      0 B
  Disk 2    Online         1862 GB      0 B
  Disk 3    Online         7702 MB      0 B

Select the required disk:

DISKPART> select disk 3

Disk 3 is now the selected disk.

Make it read only:

DISKPART> attributes disk set readonly
Disk attributes set successfully.

DISKPART> exit

Leaving DiskPart...

To clear the read-only attribute:

attributes disk clear readonly

Note that the readonly bit is not absolute. Viruses can ignore the bit.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

How to install Brother DCP-7060D on Ubuntu

Visit the Linux driver(.deb) download page for Brother DCP-7060D.
Download the “Driver Install Tool”
Run the following:

gunzip linux-brprinter-installer-2.0.0-1.gz
sudo su 
bash linux-brprinter-installer-2.0.0-1

Now you will asked: “Input model name ->”
Type: DCP-7060D
and type Y to all the prompts until you reach this question:
“Will you specify the DeviceURI ?”
Here, specify No if you have the printer connected to USB (7060D has no direct network support).

After installation continues, try to print a test page. It didnt succeed for me and I found that Linux was “waiting for the printer to respond”.

At this point, I opened “Printers” from Unity, deleted the printer that was automatically installed, and clicked on “Add new printer”, and chose the entry corresponding to DCP-7060D. Now the test page worked.

Troubleshooting:
For some odd reason, on my new Ubuntu 14.04 installation, www.brother.com could not be resolved by the installation script (wget timeout). I had to manually add the following line to /etc/hosts:

23.55.58.66 www.brother.com

Installing Scanner drivers:
Download the scanner DEBs from the download page

dpkg -i --force-all brscan4-0.4.3-2.amd64.deb 
dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb
dpkg -i --force-all brother-udev-rule-type1-1.0.0-1.all.deb

After installation, CUPS can be managed from http://localhost:631/printers

Manufacturer instructions for installation:
Login as a superuser ( or use “sudo” option if it is required )

Check if pre-required procedures are completed
For Debian/Ubuntu 64 bit
For Ubuntu8.04 or greater

Download drivers
Download LPR driver and cupswrapper driver.

Install LPR driver and cupswrapper driver
Turn on the printer and connect the USB cable.
Open the terminal and go to the directory where the drivers are.
Install LPR driver.The install process may take some time. Please wait until it is complete.
Command (for dpkg) : dpkg -i –force-all (lpr-drivername)

Install cupswrapper driver.The install process may take some time. Please wait until it is complete.
Command (for dpkg) : dpkg -i –force-all (cupswrapper-drivername)

Check if the LPR driver and cupswrapper driver are installed
Command (for dpkg) : dpkg -l | grep Brother

Depending on the connection type you are using (USB or Network), follow one of the steps below.

(for USB Connection)
Open a web browser and go to “http://localhost:631/printers”.
Check if the Device URI of your printer is “usb://Brother/(your printer’s model name)”

If the device URI is different from the example above, please go to “Modify Printer” of your printer to select proper device and driver.
If your printer is not listed on “http://localhost:631/printers”, please go to “http://localhost:631/admin” and click “Add printer” and select proper device and driver.

(for Network Connection)

Open a web browser and go to “http://localhost:631/printers”.
Click “Modify Printer” and set following parameters.
– “LPD/LPR Host or Printer” or “AppSocket/HP JetDirect” for Device
– lpd://(Your printer’s IP address)/binary_p1 for Device URI
– Brother for Make/Manufacturer Selection
– Your printer’s name for Model/Driver Selection
Try a test print
Open a text editor, write something and select “print” from the menu.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Installing Kubuntu 12.04 on Acer Aspire V5-121 Netbook

I recently bought an Acer Aspire V5-121.

Installation went smoothly. But on rebooting I found the following issues:

  • Wifi did not work
  • USB 3.0 did not work
  • Touchpad did not work

Fix for Wifi:

In KDE Menu, type `driver`, to bring up the Additional Drivers link for installing Proprietary drivers. Choose to install the Broadcom STA wireless driver. On installing this driver and rebooting, USB 3.0 too started working.

For enabling Touchpad, all I needed was to press Ctrl-Fn-F7


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Connecting Huawei E1732 3G usb modem to Internet in Debian

For some reason Network manager detects my modem but does not connect it. After adding udev rules nothing happened. Finally I ran across this script called Sakis3G which claimed to be a script working for multiple devices. It worked.

Configuration for Sakis3G

Connect the modem to USB

Download Sakis3G. Choose the i386 version.

chmod +x sakis3g
./sakis3g --interactive

 

Choose action for Sakis3G script: Connect with 3G

Modem category: USB device

USB device: Huawei mobile

Interface: Interface #0

Select APN: Internet (for Idea 3G)

Username: u (anything will do)

Password: p (anything will do)

 

Finally it says E173 connected to Idea

 

Connection Info

Connection Information

Interface: P-t-P (ppp0)

Connected since: 2012-12-02 11:02
Kilobytes received: 1634
Kilobytes sent: 194

Network ID: 40419
Operator name: !dea
APN: internet
internet

Modem: E173
Modem type: USB
Kernel driver: option
Device: /dev/ttyUSB0

IP Address: 1.187.159.6
Subnet Mask: 255.255.255.255
Peer IP Address: 10.64.64.64
Default route(s): 10.64.64.64

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Make a USB Disk write protected or Remove write protection from USB Disk

This is actually a Windws registry hack.

Install the following key to make all USB devices on your system write protected:


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Setting up adb on Linux for Android

If you install adb somewhere and try to run it, you get the an error stating “Insufficent permissions”. So we need to setup a couple of steps to get adb ready to work on Linux with our device.

1. Install Android SDK (Instructions found elsewhere)
First install Android SDK to someplace and set its path in ~/,bashrc

2. Setup path to adb
Edit bashrc and add the following line after the normal PATH statement:

PATH=$PATH:/pathto_adb

Set paths like this:

kate ~/.bashrc

Eg:

PATH=$PATH:~/android/sdk:~/android/android-ndk-r6b:~/android/sdk/tools:~/android/sdk/platform-tools:~/android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:~/android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/bin[/code]
3. set up permissions

On Android Lollipop, you need to enable adb from Developer options:
First enable developer mode, by clicking on build version in About menu multiple times.

Next, under Debugging>Android debugging, toggle it on.
[email protected]:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:2512 Standard Microsystems Corp. USB 2.0 Hub
Bus 004 Device 002: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 004: ID 0bb4:0c87 High Tech Computer Corp. Desire (debug)
Bus 001 Device 005: ID 0781:5406 SanDisk Corp. Cruzer Micro U3

The important part is this: Bus 001 Device 004: ID 0bb4:0c87 High Tech Computer Corp. Desire (debug)

Note: ID 0bb4:0c87

Or it might be:

[[email protected] ~]$ lsusb | grep -i 'desire'
Bus 001 Device 007: ID 0bb4:0ff9 High Tech Computer Corp. Desire / Desire HD / Hero (Charge Mode)

Here, note

0bb4:0ff9[/code]
N.B: The ID 0bb4:0c87 (or 0bb4:0ff9 depending on the PC) is unique for the Desire. So you can just as well copy and paste into the permissions file.

For a Samsung Galaxy Note 2, it is:
[[email protected] ~]$ lsusb
Bus 001 Device 009: ID 04e8:6860 Samsung Electronics Co., Ltd 

For one plus one, it is:
Bus 002 Device 008: ID 05c6:6764 Qualcomm, Inc. A0001 Phone [OnePlus One]

For Oneplus 3, locating it was slightly more difficult:
First you have to enable Developer mode (Clicking on Build version 5 times), and then toggle USB debugging to On.

lsusb showed:

[email protected]:~$ lsusb
Bus 002 Device 014: ID 2a70:9011
Bus 002 Device 004: ID 1058:0820 Western Digital Technologies, Inc. My Passport Ultra (WDBMWV, WDBZFP)
Bus 002 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I couldnt get any clue as to which one was OnePlus 3.
So I disconnected and reconnected the device, and took a look at dmesg logs:
dmesg:

[email protected]:~$ dmesg
[22373.685139] usb 2-1.4: USB disconnect, device number 13
[22377.722778] usb 2-1.4: new high-speed USB device number 14 using ehci-pci
[22377.816588] usb 2-1.4: New USB device found, idVendor=2a70, idProduct=9011
[22377.816598] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[22377.816603] usb 2-1.4: Product: Android
[22377.816607] usb 2-1.4: Manufacturer: Android
[22377.816611] usb 2-1.4: SerialNumber: 87a9854a
[22377.820830] usb-storage 2-1.4:1.1: USB Mass Storage device detected
[22377.821088] scsi host15: usb-storage 2-1.4:1.1
[22378.819918] scsi 15:0:0:0: CD-ROM            OnePlus  Device Driver    0318 PQ: 0 ANSI: 2
[22378.829944] sr 15:0:0:0: [sr1] scsi-1 drive
[22378.830294] sr 15:0:0:0: Attached scsi CD-ROM sr1
[22378.830507] sr 15:0:0:0: Attached scsi generic sg4 type 5

Thus from idVendor=2a70, idProduct=9011, I found out that the line ID 2a70:9011 referred to Oneplus 3

Create/Edit /etc/udev/rules.d/99-android.rules

gksu gedit /etc/udev/rules.d/99-android.rules (Gnome)
kdesudo kate /etc/udev/rules.d/99-android.rules (KDE)

 

Or use your favorite editor.

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4:0c87", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", 
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

For OnePlus one:

ATTR{idVendor}=="05c6", ATTR{idProduct}=="6764", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
sudo service udev restart

Now unplug and then reinsert the Device to the usb connection.

Now, adb devices shows my device

On Ubuntu 16.04, and my Oneplus One all of this is no longer necessary. The steps are:
sudo apt install android-tools-adb
OPO:
Connect phone in MTP mode.
Developer options (enable it by multi-tapping About:Android version) > Android debugging: On
Accept the “Trust computer” dialog
Test with

adb devices

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

HTC One X

Pros:

4.7″ HD Screen
Quad Core 1.5 Ghz processor
Nvidia Tegra 3 Chip
32 GB Memory
8 MP Camera with some nice touches

Cons:

Non-removable battery
MicroSIM
No MicroSD Slot

 

Full Specs

CPU Speed

1.5 GHz, quad core

Platform

Android™ 4.0 with HTC Sense™ 4

Memory1

Total storage : 32 GB
RAM:1 GB

Network2

 

HSPA/WCDMA:

  • Europe/Asia: 850/900/1900//2100 MHz

GSM/GPRS/EDGE:

  • 850/900/1800/1900 MHz

 

Sensors

 

  • Gyro sensor
  • G-Sensor
  • Digital compass
  • Proximity sensor
  • Ambient light sensor

 

Connectivity

 

  • 3.5 mm stereo audio jack
  • NFC3
  • Bluetooth with aptX® enabled (Bluetooth® 4.0)
  • Wi-Fi®: IEEE 802.11 a/b/g/n
  • DLNA® for wirelessly streaming media from the phone to a compatible TV or computer
  • micro-USB 2.0 (5-pin) port with mobile high-definition video link (MHL) for USB or HDMI connection (Special cable required for HDMI connection.)

 

Camera with ImageSense™

Camera with ImageSense™

 

  • 8 megapixel camera with auto focus, smart LED flash, and BSI sensor (for better low-light captures)
  • F2.0 aperture and 28mm lens
  • 1080p HD video recording
  • 1.3 megapixel front camera (720p for video chat)
  • Dedicated imaging chip
  • Capture a photo in the midst of recording HD video
  • Continuous shooting mode captures multiple snapshots
  • Auto flash smartly determined by distance from your subject
  • Video stabilization feature removes annoying, shaky motion
  • High quality slow motion video capture and playback

 

Sound enhancement

Sound enhancement

Beats Audio™

Multimedia

Multimedia

 

Audio supported formats:

  • Playback: .aac, .amr, .ogg, .m4a, .mid, .mp3, .wav, .wma (Windows Media Audio 9)
  • Recording: .amr

Video supported formats:

  • Playback: .3gp, .3g2, .mp4, .wmv (Windows Media Video 9), .avi (MP4 ASP and MP3)
  • Recording: .mp4

 

Battery

Battery

Capacity :1800 mAh


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Sftp access to Kindle root dirs via Windows

Get the sftp binary from here

Connect Kindle in USB mode and copy this file to any dir.

Start Putty and ssh to [email protected] Password is mario

Now, manually copy that file from /mnt/us/location_where_copied to /usr/libexec/

chmod 755

Now try sftp to [email protected] with port 22 and password mario

You can now copy files to and fro..

 

If you prefer a File manager interface for copying files though, use WinSCP

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.