Removing the drum from toner-drum assembly on a Brother DCP-7060D

https://www.youtube.com/watch?v=-ZgfY1ow7LE


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.

Hissing noise on Realtek HD onboard audio in Debian

It was because mics were enabled. Open gnome-alsamixer, and disable the following:

“Front Mi”, “Mic”


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

Fix for low sound volume on Realtek onboard audio Realtek ALC662 rev1

I have Realtek Onboard Audio which I use to power my headphones, when I dont want to use the Creative speakers. I found that had miniscule sound output after installing Debian. As with most of the stuff I did with Debian, I went around to the cause of this and workarounds. I had already compiled a kernel with alsa support, and Debian unlike Ubuntu doesnt ship with the annoying Pulseaudio. So the drivers werent the issue. I discovered that I could create a “virtual” PCM device and insert another slider in the alsa  configuration system, and get it to boost volume tremendously. I couldnt even perceive any distortion as such.

Create a new file /etc/asound.conf or create ~/.asoundrc. I believe that the system version overrides the user version.

[[email protected] ~]$ cat /etc/asound.conf
pcm.!default {
      type plug
      slave.pcm "softvol"
  }

  pcm.softvol {
      type softvol
      slave {
          pcm "dmix"
      }
      control {
          name "Pre-Amp"
          card 0
      }
      min_dB -5.0
      max_dB 120.0
      resolution 10
  }

It creates a new slider in alsamixer, which can be used to boost the sound volume significantly.

I also added the following line to the end of /etc/modprobe.d/alsa-base.conf:

#Fix for HDAudio card
options snd-hda-intel model=ALC662

To see the difference, restart the service:

sudo alsa force-reload

I did some more tweaking with it, and I believe increased the sound even further. However it was supposed to display an additional volume slider (in adddition to the one which I added via above code).

[[email protected] ~]$cat /etc/asound.conf
pcm.!default {
      type plug
      slave.pcm "softvol"
  }

  pcm.softvol {
      type softvol
      slave {
          pcm "dmix"
      }
      control {
          name "Pre-Amp"
          card 0
      }
      min_dB -5.0
      max_dB 120.0
      resolution 10
  }
pcm.softvol {
    type            softvol
    slave {
        pcm         "ALC662"
    }
    control {
        name        "SpecialBoost"
        card        0
    }
}

 

Some debug info:

[[email protected] ~]$ cat /proc/asound/card0/codec* | grep Codec
1:Codec: Realtek ALC662 rev1

Some useful resources:
1. Alsa howto


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

Install HP Laserjet P1007 in Debian and Ubuntu

This was the easiest installation I’ve ever seen in a Linux distro, comparable to Windows Plug and Play

I plugged in my printer. As expected nothing happened. I tried to fathom what happened:

[[email protected] c]$ sudo tail -f /var/log/messages
Dec  7 10:49:38 debian kernel: [ 6316.051712] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:49:38 debian kernel: [ 6316.051715] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:49:38 debian kernel: [ 6316.051718] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:49:38 debian kernel: [ 6316.051720] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:49:38 debian kernel: [ 6316.051849] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:49:39 debian kernel: [ 6316.635466] usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:49:39 debian kernel: [ 6316.635500] usbcore: registered new interface driver usblp
Dec  7 10:49:39 debian kernel: [ 6317.567202] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: Missing HP LaserJet P1007 firmware file /lib/firmware/hp/sihpP1005.dl
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: ...read foo2zjs installation instructions and run ./getweb P1007

That was very instructive. Ok, so I have to execute ./getweb. From where.

Since it said foo2zjs I tried to find out where foo2zjs was located

[[email protected] c]$ which foo2zjs
/usr/bin/foo2zjs

Great. So:

[[email protected] c]$ cd /usr/bin
[[email protected] bin]$ which foo2zjs
/usr/bin/foo2zjs
[[email protected] bin]$ ./getweb P1007
You need to be root
[[email protected] bin]$ sudo ./getweb P1007
sihpP1005.img

(c) Copyright Hewlett-Packard 2008

[[email protected] bin]$ sudo tail -f /var/log/messages
Dec  7 10:49:38 debian kernel: [ 6316.051712] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:49:38 debian kernel: [ 6316.051715] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:49:38 debian kernel: [ 6316.051718] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:49:38 debian kernel: [ 6316.051720] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:49:38 debian kernel: [ 6316.051849] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:49:39 debian kernel: [ 6316.635466] usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:49:39 debian kernel: [ 6316.635500] usbcore: registered new interface driver usblp
Dec  7 10:49:39 debian kernel: [ 6317.567202] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: Missing HP LaserJet P1007 firmware file /lib/firmware/hp/sihpP1005.dl
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: ...read foo2zjs installation instructions and run ./getweb P1007

So it downloaded the file but again gave the same message. I decided to unplug and replug the printer.

Sure enough I was greeted by the familiar startup sound of the printer… And confirmation from syslog:

[[email protected] bin]$ sudo tail -f /var/log/messages
Dec  7 10:53:42 debian kernel: [ 6560.287745] usb 1-7.1.2: New USB device found, idVendor=03f0, idProduct=4817
Dec  7 10:53:42 debian kernel: [ 6560.287750] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:53:42 debian kernel: [ 6560.287754] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:53:42 debian kernel: [ 6560.287756] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:53:42 debian kernel: [ 6560.287759] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:53:42 debian kernel: [ 6560.287903] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:53:42 debian kernel: [ 6560.290938] usblp1: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:53:43 debian kernel: [ 6561.402520] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:53:45 debian /usr/sbin/hpljP1007: foo2zjs: loading HP LaserJet P1007 firmware /lib/firmware/hp/sihpP1005.dl to /dev/usb/lp1 ...
Dec  7 10:53:46 debian /usr/sbin/hpljP1007: foo2zjs: ... download successful.
Dec  7 10:53:58 debian udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-P1007

Going to the printers applet, I could see a new Laserjet P1007 installed. Installed a test print.

Related info can be found here.

Install printer in Kubuntu 12.10

It was too easy. Everything was Plug and play.

However if it doesnt install for you, you can try downloading the file from HP and installing it:

First use the system script to download the driver:

/usr/bin/python /usr/bin/hp-plugin -i

Now install it:

sh /tmp/hplip-3.12.6-plugin.run --nox11 -- -i
[[email protected] droidzone]#/usr/bin/python /usr/bin/hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: PolicyKit support requires DBUS or PolicyKit support files missing
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

\
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.6 |
-----------------------------------------

The driver plugin for HPLIP 3.12.6 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ?

 

sh /tmp/hplip-3.12.6-plugin.run --nox11 -- -i
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.6 Plugin Self Extracting Archive.......................................................

HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Installer ver. 3.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Plug-in version: 3.12.6
Installed HPLIP version: 3.12.6
Number of files to install: 50

You must agree to the license terms before installing the plug-in:

LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in   
........................
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

Done.

 

 

d


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

Check RAM speed and type on Linux

Just use the command

sudo dmidecode --type 17[/code]

[email protected]:~/apps/tor-browser_en-US$ sudo dmidecode --type 17
[sudo] password for droidzone:
# dmidecode 2.11
SMBIOS 2.4 present.
Handle 0x002C, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x002A
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: CHANNEL_A
Bank Locator: CHANNEL_A DIMM0
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Manufacturer: Manufacturer0
Serial Number: SerNum0
Asset Tag: AssetTagNum0
Part Number: PartNum0

Handle 0x002E, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x002A
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: CHANNEL_B
Bank Locator: CHANNEL_B DIMM0
Type: DDR2
Type Detail: Synchronous
Speed: 800 MHz
Manufacturer: Manufacturer1
Serial Number: SerNum1
Asset Tag: AssetTagNum1
Part Number: PartNum1.
[/code]


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

Automatically mounting a hard disk partition at boot

Get the Blockid of the hard disks

[email protected]:~$ sudo blkid
[sudo] password for droidzone:
/dev/sda1: LABEL="Windows7" UUID="10909D8B909D77C4" TYPE="ntfs"
/dev/sda2: UUID="f3606d11-5fbc-4d31-846a-cc812e4cd53f" TYPE="ext4"
/dev/sda5: UUID="4cc50c11-af2a-4352-8dfa-c967deed997a" TYPE="swap"
/dev/sr1: LABEL="UDF Volume" TYPE="udf"
/dev/sdb1: LABEL="WindowsXP" UUID="E6BCC858BCC82541" TYPE="ntfs"
/dev/sdb2: LABEL="Windows8" UUID="94C0680DC067F440" TYPE="ntfs"
/dev/sdb5: LABEL="STORAGE" UUID="642C-370E" TYPE="vfat"
/dev/sdb6: LABEL="userdata" UUID="3ad6396d-9ab2-4435-a850-e03501810734" TYPE="ext4"
/dev/sdb7: LABEL="gentoo" UUID="f8960404-f785-464e-9c43-06777c679153" TYPE="ext4"
/dev/sdb8: UUID="ca39c78d-85ee-4db1-8589-45beb6cc62e8" TYPE="swap" [/code]

Create the mount point for the disk

sudo mkdir -p /hdd/windows7[/code]

Edit /etc/fstab as root

kdesudo kate /etc/fstab[/code]

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=f3606d11-5fbc-4d31-846a-cc812e4cd53f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4cc50c11-af2a-4352-8dfa-c967deed997a none swap sw 0 0
# swap was on /dev/sdb8 during installation
UUID=ca39c78d-85ee-4db1-8589-45beb6cc62e8 none swap sw 0 0
UUID=10909D8B909D77C4 /hdd/windows7 auto user,rw,auto,exec,nobootwait 0 0[/code]

The line added is:

UUID=10909D8B909D77C4 /hdd/windows7 auto user,rw,auto,exec,nobootwait 0 0[/code]


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

Restarting sound on Ubuntu

sudo /sbin/alsa force-reload[/code]


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

Turn off display on Linux

The command is:

xset -display :0 dpms force off[/code]

I had to send the command twice in succession to turn the monitor off


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

Enable Hibernation of Kubuntu 12.05 Precise Pangolin

Apparently 12.05 has hibernation disabled by default. Rather weird since it still has the option in Power settings to assign Hibernation to a power button. An oversight perhaps? Or an example of issues associated with distributed development?

Anyway, officially there is a method to enable Hibernation on 12.05.

First test if Hibernation is supported:

Open the Terminal by pressing Ctrl+Alt+t or by searching for terminal in the dash.
Type

sudo pm-hibernate[/code] into the terminal and press Enter.
Enter your password when prompted. After you computer turns off, switch it back on. If hibernate doesn't work, check if your swap partition is at least as large as your available RAM.

Enable hibernate
If the hibernate test works, you can continue to use the sudo pm-hibernate command when you want to hibernate.

You can also enable the hibernate option in the menus. To do that, use your favorite text editor to create /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla.

Add the following to the file and save:

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes[/code]

Source

You can assign hibernation to a button from the KDE Control Module:


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