I was getting the following error in Linux Evolution email client “Failed to get capabilities: Error performing TLS handshake: An unexpected TLS packet was received.” This error happened when Dovecot was upgraded from version 2.2 to version 2.3. My steps to correct the problem are posted on my blog at https://blog.chadchenault.com/2019/03/20/linux-evolution-email-broken-fails-with-dovecot-upgrade-to-version-2-3/
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
2019/03/20
2013/10/27
Brother HL-2270DW printer driver install: Ubuntu 13.04 64 bit versions
This post is to let people know that the Brother HL-2270DW printer can be installed and works under linux. I am currently using the printer in wifi mode printing to it from Ubuntu 13.04. I have posted installation instructions for Ubuntu 12.04 and these instructions also work for Ubuntu 13.04. Here is the link to the installation instructions http://chadchenault.blogspot.com/2012/05/brother-hl-2270dw-printer-driver.html.
I hope you enjoy this printer as much as I have.
I hope you enjoy this printer as much as I have.
2013/09/25
Hot Swap (remove and add) a RAID 1 disk in Ubuntu 13.04
Edit 2015-0630: Do not use the below as a backup solution. A better solution I now use is rsync to mirror my raid array to an external LUKS encrypted hard drive.
This article shows you how to remove a disk from a RAID 1 array in Ubuntu 13.04 and add a new disk to the Array. This is known as hot swapping when you replace the drive without shutting the computer down.
I have a home server that I back up all my data to from all my different devices and computers. This data is on an encrypted LUKS filesytem with software RAID 1 array. A RAID 1 Array requires a minimum of 2 disks and the disks are mirrored so that if one disk fails, you still have your data on a second disk. I also like to keep a third disk off site and rotate it into the RAID 1 Array. The off site backup protects my data in case my computer is ever stolen or destroyed in a fire. This is easiest if you have a hot swap hard drive bay in your computer.
Requirements for this to work.
Linux Operating System
Mdadm software installed (RAID software)
All of the following commands are in the terminal.
You will have to replace 'md1' and 'sdd' with your own values from your machine.
I use dm-crypt software for disk encryption.
This article shows you how to remove a disk from a RAID 1 array in Ubuntu 13.04 and add a new disk to the Array. This is known as hot swapping when you replace the drive without shutting the computer down.
I have a home server that I back up all my data to from all my different devices and computers. This data is on an encrypted LUKS filesytem with software RAID 1 array. A RAID 1 Array requires a minimum of 2 disks and the disks are mirrored so that if one disk fails, you still have your data on a second disk. I also like to keep a third disk off site and rotate it into the RAID 1 Array. The off site backup protects my data in case my computer is ever stolen or destroyed in a fire. This is easiest if you have a hot swap hard drive bay in your computer.
Requirements for this to work.
Linux Operating System
Mdadm software installed (RAID software)
All of the following commands are in the terminal.
You will have to replace 'md1' and 'sdd' with your own values from your machine.
- Identify disk to remove from Array
- sudo fdisk -l
- Fail disk from the Array
- sudo mdadm /dev/md1 -v --fail /dev/sdd
- Remove disk from the Array
- sudo mdadm /dev/md1 -v --remove /dev/sdd
- Check disk is removed from the Array
- sudo mdadm --detail /dev/md1
- Physically remove disk from the machine
- Insert new disk into machine
- Check that new disk is seen by machine
- sudo fdisk -l
- Add disk to the Array, different method for new disk with no partitions versus readding a disk back to the Array
- New hard drive with no partitions
- sudo mdadm /dev/md1 -v --add /dev/sdd
- Disk that has been part of the Raid Array before
- sudo mdadm /dev/md1 -v --re-add /dev/sdd
- Monitor status of Raid rebuild
- sudo mdadm /dev/md1 --detail
I use dm-crypt software for disk encryption.
2013/08/23
Nautilus File Manager: Add An Application to "Open With" menu in Ubuntu Linux 13.04
I found myself needing to open .mp3 and .ogg files with an application (pyRenamer) from within the file manager nautilus, also called Files, in Ubuntu Linux 13.04. From within Files, you can right click on a file and a menu opens, then select "Open With" and the application you want the file to open in.
My problem was "pyRenamer" was not listed in the applications and so this post gives instructions on how to add an application to the "Open With" menu in the Files application.
I used information from this site: https://ubuntugenius.wordpress.com/2012/06/18/ubuntu-fix-add-program-to-list-of-applications-in-open-with-when-right-clicking-files-in-nautilus/
1. Find the name of the application you want to open. It is probably found in /usr/share/applications. You can list all the applications in this directory with
ls /usr/share/applications
The name of the application will end in ".desktop", for example pyRenamer.desktop.
2. Edit pyrenamer.desktop file. This method affects all users of the machine.
sudo gedit /usr/share/applications/pyrenamer.desktop
edit the line: Exec=pyrenamer
to: Exec=pyrenamer %F
Save file and exit.
This allows you to select pyRenamer application from within the right click menu:Open With/Other Application...
3. This is an alternate method of adding an application to the right click "open with" menu. This method is user specific.
Open the file /home/$USER/.local/share/applications/mimeapps.list in your favorite text editor. $USER will be your user name and does not need to be changed if you paste this into the command line.
gedit /home/$USER/.local/share/applications/mimeapps.list
4. Edit this file so that .ogg and .mp3 files can be opened by pyRenamer application. There are two highlighted lines that I added.
I used information from this site: https://ubuntugenius.wordpress.com/2012/06/18/ubuntu-fix-add-program-to-list-of-applications-in-open-with-when-right-clicking-files-in-nautilus/
1. Find the name of the application you want to open. It is probably found in /usr/share/applications. You can list all the applications in this directory with
ls /usr/share/applications
The name of the application will end in ".desktop", for example pyRenamer.desktop.
2. Edit pyrenamer.desktop file. This method affects all users of the machine.
sudo gedit /usr/share/applications/pyrenamer.desktop
edit the line: Exec=pyrenamer
to: Exec=pyrenamer %F
Save file and exit.
This allows you to select pyRenamer application from within the right click menu:Open With/Other Application...
3. This is an alternate method of adding an application to the right click "open with" menu. This method is user specific.
Open the file /home/$USER/.local/share/applications/mimeapps.list in your favorite text editor. $USER will be your user name and does not need to be changed if you paste this into the command line.
gedit /home/$USER/.local/share/applications/mimeapps.list
4. Edit this file so that .ogg and .mp3 files can be opened by pyRenamer application. There are two highlighted lines that I added.
Hope this helps!
2012/07/23
List Your Personal Scripts from the Terminal, Alias Solution
last edit: 2012-0723
Notes: If you see brackets "[ ]" in code, that indicates you supply your own variable in place of the brackets. Example: [date] = You type in "2012-0723". Quotes do not have to be included.
One of the things I enjoy about Linux is the fun and power of the scripting with bash and python. However there comes a time when you accumulate so many scripts that you can't remember their names to run them. One solution is to create a keyboard short cut that lists all the scripts in your script directory. So instead of typing:
> clear; ls -l /home/chad/Documents/scriptsThe short cut would be:
> llsAliases are created in two places: /etc/bash.rc or ~/.bash_aliases (~ is a shortcut for your home directory, ex. /home/chad). For this example we will add entries to /etc/bash.rc will allow short cuts to all users including root.
Backup /etc/bash.rc in case you make a mistake
> cp /etc/bash.rc /etc/bash.rc.[date].bak orEdit bash.rc with your favorite text editor
> cp /etc/bash.rc /etc/bash.rc.2012-0723.bak
> nano /etc/bash.rcor if using gnome shell or default Ubuntu
> gksudo gedit /etc/bash.rc
Find section labeled "# Alias definitions." and add your alias commands below this section. My examples are below. The first example lists all files in my script directory.
alias lls='clear; ls -l --almost-all --classify /home/chad/Documents/bin'Next save your file and then update your alias variables so that your terminal shell will we aware of them. You update your bash.rc file using the "source" shell command. The source command is useful to load function or variables stored in another file.
alias ll='ls --almost-all -l --classify' # classify indicates file type
alias la='ls --almost-all' # long, shows hidden files
alias l='ls -C --classify' #Columns, file types
> source /etc/bash.rcNow test your new alias shortcut and you should see all the files listed in your scripts directory.
> llsYou can change formatting of the ls command. See man ls for options.
2012/05/28
Brother HL-2270DW printer driver install: Ubuntu 12.04 64 bit versions
** Update 2016-0717 I am still using this printer on Ubuntu 16.04. Brother now provides the drivers as "deb" files that work with Ubuntu. I would use their drivers instead of the ones that I have here (mine are old now). Also look at the below comment on May 7, 2014 at 3:42 AM by Jo Boug. His method of installation is another good option also.
This post explains how to install Brother HL-2270DW printer drivers in Ubuntu 12.04, 64 bit versions. These instructions also work on Ubuntu 13.04. It should also work for any other Debian linux distributions, however I have only tested this on Ubuntu. Brother does not include 64 bit drivers and thus this why I created this post. There is a previous post on installing in Ubuntu 11.04/11.10 with steps on modifying the Brother 32 bit driver for 64 bit installations http://chadchenault.blogspot.com/2011/09/brother-hl-2270dw-printer-driver.html. The Ubuntu 11.xx instructions will also work for 12.04. The 12.04 includes screenshots and different formatting. You only need to follow my instructions if you are running a 64 bit version of Ubuntu. If you are concerned about security with downloading files that I have patched, you can follow the instructions from the link above to apply the patch yourself. The driver files are current as 05/28/2012.
3.2.9.1 Description: HL2270DW-wifi
3.2.9.1.1 added "-wifi" since you can also have USB printing and this requires adding a new printer configuration
3.2.9.2 Location: Study
3.2.9.3 Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
3.2.9.3.1 Bold indicates this is for wifi printing, very important to have this correct!!!
3.2.9.5 Select "Continue" at bottom of page
You get a new page titled "Modify HL2270DW"
3.2.10 Under "Model" select "Current Driver - Brother HL2270DW for CUPS"
3.2.10.1 If the current driver (PPD file) for HL2270DW is not displayed (a problem with Ubuntu 13.10) then you need to tell CUPS where the driver file is located. At "Or Provide a PPD File:", select "Browse" button and navigate to file: /usr/share/cups/model/HL2270DW.ppd.
3.2.11 Select "Modify Printer"
You get a new page titled "HL2270DW (Idle, Accepting Jobs, Shared)"
3.2.12 Print a Test Page
3.2.13 Select from menu "Maintenance/Print a Test Page"
Congratulations
References
This post explains how to install Brother HL-2270DW printer drivers in Ubuntu 12.04, 64 bit versions. These instructions also work on Ubuntu 13.04. It should also work for any other Debian linux distributions, however I have only tested this on Ubuntu. Brother does not include 64 bit drivers and thus this why I created this post. There is a previous post on installing in Ubuntu 11.04/11.10 with steps on modifying the Brother 32 bit driver for 64 bit installations http://chadchenault.blogspot.com/2011/09/brother-hl-2270dw-printer-driver.html. The Ubuntu 11.xx instructions will also work for 12.04. The 12.04 includes screenshots and different formatting. You only need to follow my instructions if you are running a 64 bit version of Ubuntu. If you are concerned about security with downloading files that I have patched, you can follow the instructions from the link above to apply the patch yourself. The driver files are current as 05/28/2012.
Instructions
1. Download the following 2 driver files that have been patched to work on 64 bit versions of Ubuntu. The patched (modified for 64 bit linux) driver files have "a" added to the file name.
1.1.2 CUPS patched driver
1.2.2 Brother printer patched driver
2. Open a terminal window "ctrl + alt + t"
2.1 Install file dependency (lib32stdc++) for 64 bit operating system by pasting the following code into a terminal window.
2.1.1 sudo apt-get install lib32stdc++6
2.1 Install file dependency (lib32stdc++) for 64 bit operating system by pasting the following code into a terminal window.
2.1.1 sudo apt-get install lib32stdc++6
2.2 Change into the directory to where the files where downloaded.
2.3 Enter the following two commands from the terminal window. You can copy these commands one at a time and paste them into the terminal window. Press "Enter" key to run the command after pasting.
2.3.1 sudo dpkg -i --force-all hl2270dwlpr-2.1.0-1a.i386.deb
2.3.2 sudo dpkg -i --force-all cupswrapperHL2270DW-2.0.4-2a.i386.deb
USB printing should now work. If you want to configure wifi or ethernet printing, you will need to configure CUPS
3. Wireless Printing Configuration for wifi (2 methods of configuration: Brothers or CUPS). I prefer the CUPS method.
3.1 Follow Brother's instructions
3.2 Configure printer using CUPS printing system
3.2.1 Open web browser and goto http://localhost:631
3.2.2 login with your Ubuntu user name and password. If you get a password error (new for 13.10), open a terminal and type in the following command: sudo killall cupsd
3.2.3 Select "Administration" tab up top
3.2.4 Under "Printers" select "Manage Printers"
3.2.5 you will now be at http://localhost:631/printers/?
3.2.5 Select the printer "HL2270DW"
you will now be at http://localhost:631/printers/HL2270DW
3.2.6.1 My setting is "Connection: usb:/dev/usb/lp0"
3.2.6.1 My setting is "Connection: usb:/dev/usb/lp0"
This is the setting for USB printing ("usb:")
3.2.6.2 Select from Menu "Administration/Modify Printer" if you are not using USB printing. If you wanted to keep the USB printing option you should select from Menu "Administration/Add Printer"
3.2.6.2.1 Enter your Ubuntu user name and password if prompted
The new page will be titled "Modify HL2270DW" assuming you choose the "Modify Printer" option above.
3.2.7 Select the entry "Brother HL-2270DW series (Brother HL-2270DW series)" from
the section "Discovered Network Printers:"
3.2.8 There are multiple entries for "Brother HL-2270DW series (Brother HL-2270DW series)" and they do not have the same configurations. I randomly selected one entry and then Select "Continue" at the bottom of the page.
3.2.9 You will get a new page for editing the printers configuration, my configuration follows
3.2.9.1 Description: HL2270DW-wifi
3.2.9.1.1 added "-wifi" since you can also have USB printing and this requires adding a new printer configuration
3.2.9.2 Location: Study
3.2.9.3 Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
3.2.9.3.1 Bold indicates this is for wifi printing, very important to have this correct!!!
3.2.9.4 If the "pdl-datastream._tcp.local/" was wrong I hit the back button on my browser and tried another entry until I got the correct "Connection" configuration.
3.2.9.5 Select "Continue" at bottom of page
You get a new page titled "Modify HL2270DW"
3.2.10 Under "Model" select "Current Driver - Brother HL2270DW for CUPS"
3.2.10.1 If the current driver (PPD file) for HL2270DW is not displayed (a problem with Ubuntu 13.10) then you need to tell CUPS where the driver file is located. At "Or Provide a PPD File:", select "Browse" button and navigate to file: /usr/share/cups/model/HL2270DW.ppd.
You get a new page titled "HL2270DW (Idle, Accepting Jobs, Shared)"
3.2.12 Print a Test Page
3.2.13 Select from menu "Maintenance/Print a Test Page"
Congratulations
Thanks to GSBoomer for this arcane information from this post.
These instructions are heavily copied from my previous post "Brother HL-2270DW printer driver install: Ubuntu 11.04".
Thanks to herrsaalfeld for PPD/driver file location and for "sudo killall cupsd" command when password fails in Ubuntu 13:10.
These instructions are heavily copied from my previous post "Brother HL-2270DW printer driver install: Ubuntu 11.04".
Thanks to herrsaalfeld for PPD/driver file location and for "sudo killall cupsd" command when password fails in Ubuntu 13:10.
2011/09/09
Brother HL-2270DW printer driver install: Ubuntu 11.04
Brother HL-2270DW printer driver install, Ubuntu 11.04 64-bit
09/09/2011
Addendum 09/28/2012 - These steps also work for installing in Ubuntu 12.04 64-bit. I have posted an updated install than includes screenshots of settings http://chadchenault.blogspot.com/2012/05/brother-hl-2270dw-printer-driver.html.
1. Follow "Steps 1-3" on http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
2. After Step 3, the driver must be patched for Ubuntu 11.04 64-bit
Patched driver instructions are located here: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#f00098 FAQ I cannot install Monochrome Laser Printer driver on Ubuntu11.4(64bit). Thanks to alliance1975 for this information at http://ubuntuforums.org/showpost.php?p=11051299&postcount=13
If you do not want to patch/change the driver file yourself, I have included download links to the two patched driver files. This will allow you to skip steps 2.1 and 2.2 below.
CUPS wrapper Brother HL-2270DW driver/patched Ubuntu 11.04 64-bit version 2.0.4-2
Brother HL-2270DW printer driver/patched Ubuntu 11.04 64-bit version 2.1.0-1
2.1 Download the patch file (brdpkgdeldep.gz, ver.1.0.0-1, 323 byte)
http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://www.brother.com/pub/bsc/linux/dlf/brdpkgdeldep.gz&lang=English_lpr
2.2 The patch will make a new version of the driver and append the filename with the letter "a". Example " hl2270dwlpr-2.1.0-1a.i386.deb ".
2.2.1 I was using chrome web browser and the patch file was self extracted and saved the file as brdpkgdeldep.gz.txt
2.2.2 I renamed the file to brdpkgdeldep.sh
2.2.3 I made the file executable in nautilus
Menu: File/Properties/Permissions/Execute "Allow executing the file as a program"
Put a "check" in the box for "Allow executing the file as a program"
2.2.4 If downloaded file is saved as a .gz file
Extract the downloaded file: Command: gunzip brdpkgdeldep.gz
2.2.5 Please move Linux LPD-driver package and Linux CUPS-driver to the directory that "brdpkgdeldep" file is stored in.
Go to the directory where the drivers are stored in
Run the commands:
Command: sudo bash brdpkgdeldep.sh hl2270dwlpr-2.1.0-1.i386.deb
* This is Linux LPD-driver package
Command: sudo bash brdpkgdeldep.sh cupswrapperHL2270DW-2.0.4-2.i386.deb
* This is the Linux CUPS-driver package
Check that the drivers have been modified; show the contents of the current directory
Command: ls
output should show two new files
hl2270dwlpr-2.1.0-1a.i386.deb
cupswrapperHL2270DW-2.0.4-2a.i386.deb
2.3 Install the new Linux driver package file (LPR/CUPS) using the conventional method.
This follows "Step 4" from http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
Make sure to use the new drivers that have the "a" added to the filename
Command: sudo dpkg -i --force-all hl2270dwlpr-2.1.0-1a.i386.deb
Command: sudo dpkg -i --force-all cupswrapperHL2270DW-2.0.4-2a.i386.deb
This installed usb printing, you must change the configuration to enable wifi printing
2.4 Wireless Printing Configuration for wifi (2 methods of configuration: Brothers or CUPS)
2.4.1 Follow Brother's instructions
"Step 5. Confirm/Configure a file according to your connection"
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
2.4.2 Configure printer using CUPS printing system
Open web browser and goto http://localhost:631
login with your Ubuntu user name and password
Select "Administration" tab up top
Under "Printers" select "Manage Printers"
you will now be at http://localhost:631/printers/?
Select the printer "HL2270DW"
you will now be at http://localhost:631/printers/HL2270DW
My setting is "Connection: usb:/dev/usb/lp0"
This is the setting for USB printing
Select "Administration/Modify Printer"
The new page will be titled "Modify HL2270DW"
Find the section "Discovered Network Printers:" and select the entry "Brother HL-2270DW series (Brother HL-2270DW series)"
There are four entries for "Brother HL-2270DW series (Brother HL-2270DW series)" and they do not have the same configurations.
I randomly selected one entry, if it was wrong I hit the back button on my browser and tried another entry until I got the correct "Connection" configuration which is listed in then next section
Select "Continue" at the bottom of the page
You will get a new page for editing the printers configuration, my configuration follows
Description: HL2270DW-wifi
added "-wifi" since you can also have USB printing and this requires adding a new printer configuration
Location: Study
Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
This is for wifi printing, very important to have this correct!!!
Thanks to GSBoomer for this arcane information from this post http://ubuntuforums.org/showpost.php?p=11196906&postcount=15
You can also check the box "Share This Printer" to allow others on your network to use this printer through your computer connection
The other computers must be running CUPS (Mac, Linux, and Windows) http://www.cups.org/software.php. Thank you CUPS and Apple, open source goodness!!!!
I think this keeps other users from having to install the Brother printer drivers (not an easy task)
Select "Continue"
You get a new page titled "Modify HL2270DW"
Under "Model" select "Current Driver - Brother HL2270DW for CUPS"
Select "Modify Printer"
You get a new page titled "HL2270DW (Idle, Accepting Jobs, Shared)"
Print a Test Page
Select "Maintenance/Print a Test Page"
Congratulations
09/09/2011
Addendum 09/28/2012 - These steps also work for installing in Ubuntu 12.04 64-bit. I have posted an updated install than includes screenshots of settings http://chadchenault.blogspot.com/2012/05/brother-hl-2270dw-printer-driver.html.
1. Follow "Steps 1-3" on http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
2. After Step 3, the driver must be patched for Ubuntu 11.04 64-bit
Patched driver instructions are located here: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#f00098 FAQ I cannot install Monochrome Laser Printer driver on Ubuntu11.4(64bit). Thanks to alliance1975 for this information at http://ubuntuforums.org/showpost.php?p=11051299&postcount=13
If you do not want to patch/change the driver file yourself, I have included download links to the two patched driver files. This will allow you to skip steps 2.1 and 2.2 below.
CUPS wrapper Brother HL-2270DW driver/patched Ubuntu 11.04 64-bit version 2.0.4-2
Brother HL-2270DW printer driver/patched Ubuntu 11.04 64-bit version 2.1.0-1
2.1 Download the patch file (brdpkgdeldep.gz, ver.1.0.0-1, 323 byte)
http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://www.brother.com/pub/bsc/linux/dlf/brdpkgdeldep.gz&lang=English_lpr
2.2 The patch will make a new version of the driver and append the filename with the letter "a". Example " hl2270dwlpr-2.1.0-1a.i386.deb ".
2.2.1 I was using chrome web browser and the patch file was self extracted and saved the file as brdpkgdeldep.gz.txt
2.2.2 I renamed the file to brdpkgdeldep.sh
2.2.3 I made the file executable in nautilus
Menu: File/Properties/Permissions/Execute "Allow executing the file as a program"
Put a "check" in the box for "Allow executing the file as a program"
2.2.4 If downloaded file is saved as a .gz file
Extract the downloaded file: Command: gunzip brdpkgdeldep.gz
2.2.5 Please move Linux LPD-driver package and Linux CUPS-driver to the directory that "brdpkgdeldep" file is stored in.
Go to the directory where the drivers are stored in
Run the commands:
Command: sudo bash brdpkgdeldep.sh hl2270dwlpr-2.1.0-1.i386.deb
* This is Linux LPD-driver package
Command: sudo bash brdpkgdeldep.sh cupswrapperHL2270DW-2.0.4-2.i386.deb
* This is the Linux CUPS-driver package
Check that the drivers have been modified; show the contents of the current directory
Command: ls
output should show two new files
hl2270dwlpr-2.1.0-1a.i386.deb
cupswrapperHL2270DW-2.0.4-2a.i386.deb
2.3 Install the new Linux driver package file (LPR/CUPS) using the conventional method.
This follows "Step 4" from http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
Make sure to use the new drivers that have the "a" added to the filename
Command: sudo dpkg -i --force-all hl2270dwlpr-2.1.0-1a.i386.deb
Command: sudo dpkg -i --force-all cupswrapperHL2270DW-2.0.4-2a.i386.deb
This installed usb printing, you must change the configuration to enable wifi printing
2.4 Wireless Printing Configuration for wifi (2 methods of configuration: Brothers or CUPS)
2.4.1 Follow Brother's instructions
"Step 5. Confirm/Configure a file according to your connection"
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
2.4.2 Configure printer using CUPS printing system
Open web browser and goto http://localhost:631
login with your Ubuntu user name and password
Select "Administration" tab up top
Under "Printers" select "Manage Printers"
you will now be at http://localhost:631/printers/?
Select the printer "HL2270DW"
you will now be at http://localhost:631/printers/HL2270DW
My setting is "Connection: usb:/dev/usb/lp0"
This is the setting for USB printing
Select "Administration/Modify Printer"
The new page will be titled "Modify HL2270DW"
Find the section "Discovered Network Printers:" and select the entry "Brother HL-2270DW series (Brother HL-2270DW series)"
There are four entries for "Brother HL-2270DW series (Brother HL-2270DW series)" and they do not have the same configurations.
I randomly selected one entry, if it was wrong I hit the back button on my browser and tried another entry until I got the correct "Connection" configuration which is listed in then next section
Select "Continue" at the bottom of the page
You will get a new page for editing the printers configuration, my configuration follows
Description: HL2270DW-wifi
added "-wifi" since you can also have USB printing and this requires adding a new printer configuration
Location: Study
Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
This is for wifi printing, very important to have this correct!!!
Thanks to GSBoomer for this arcane information from this post http://ubuntuforums.org/showpost.php?p=11196906&postcount=15
You can also check the box "Share This Printer" to allow others on your network to use this printer through your computer connection
The other computers must be running CUPS (Mac, Linux, and Windows) http://www.cups.org/software.php. Thank you CUPS and Apple, open source goodness!!!!
I think this keeps other users from having to install the Brother printer drivers (not an easy task)
Select "Continue"
You get a new page titled "Modify HL2270DW"
Under "Model" select "Current Driver - Brother HL2270DW for CUPS"
Select "Modify Printer"
You get a new page titled "HL2270DW (Idle, Accepting Jobs, Shared)"
Print a Test Page
Select "Maintenance/Print a Test Page"
Congratulations
2010/09/28
Favorite command line tricks in Linux
The following are a list of commands that have been useful for me on the linux command line. Please use the 'man' command from the terminal to learn how to use the commands.
'>>' text that follows these symbols are to be entered on the command line.
>>man [command] # prints manual/instructions and options for the linux command. Type 'ctrl' + 'z' to exit the manual. Example >>man find #shows instructions for find command
>>rm [filename]# deletes file
>>cp [filename] [destination]#copies file to destination
>> find #finds files, a very powerful command because its list of files can be piped '|' into another command which allows processing a large number of files at once.
>>xargs [options] command # build and execute command lines from standard input (which is normally the keyboard).
Tags: command line, shell, linux, find, arg, man
'>>' text that follows these symbols are to be entered on the command line.
>>man [command] # prints manual/instructions and options for the linux command. Type 'ctrl' + 'z' to exit the manual. Example >>man find #shows instructions for find command
>>rm [filename]# deletes file
>>cp [filename] [destination]#copies file to destination
>> find #finds files, a very powerful command because its list of files can be piped '|' into another command which allows processing a large number of files at once.
>>xargs [options] command # build and execute command lines from standard input (which is normally the keyboard).
- -0 #Useful when input items might contain white space, quote marks, or backslashes.
- -I #Replace occurrences of replace-str in the initial-arguments with names read from standard input. Also, unquoted blanks do not terminate input items; instead the separator is the newline charac‐ ter. Implies -x and -L 1.
- --max-procs=max-procs # Run up to max-procs processes at a time; the default is 1. If max-procs is 0, xargs will run as
many processes as possible at a time. Use the -n option with -P; otherwise chances are that only one exec will be done.
xargs -0 -I "{}" ~/Documents/py/speedup.py "{}"
find -name "*.mp3" -print0 | xargs -0 --max-procs 2 -I "{}" [command] "{}"
Tags: command line, shell, linux, find, arg, man
Subscribe to:
Posts (Atom)