Sunday, February 15, 2015

How to install Canon LBP6000b Linux Mint 17.1 x86_64 (codename: Rebecca)

1. Download drivers from Canon Support site: http://goo.gl/fkCjji

2. Install them:

me@pc ~/Downloads $ ll Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz
-rw-r----- 1 me me 63947735 февр.  1 15:39 Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz
me@pc ~/Downloads $ tar xzvf Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz
Linux_CAPT_PrinterDriver_V260_uk_EN/
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/Debian/
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/Debian/cndrvcups-capt_2.60-1_i386.deb
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/Debian/cndrvcups-common_2.60-1_i386.deb
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/RPM/
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/RPM/cndrvcups-capt-2.60-1.i386.rpm
Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/RPM/cndrvcups-common-2.60-1.i386.rpm
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian/
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian/cndrvcups-capt_2.60-1_amd64.deb
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian/cndrvcups-common_2.60-1_amd64.deb
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/RPM/
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/RPM/cndrvcups-capt-2.60-1.x86_64.rpm
Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/RPM/cndrvcups-common-2.60-1.x86_64.rpm
Linux_CAPT_PrinterDriver_V260_uk_EN/Doc/
Linux_CAPT_PrinterDriver_V260_uk_EN/Doc/guide-capt-2.6xUK.tar.gz
Linux_CAPT_PrinterDriver_V260_uk_EN/Doc/LICENSE-captdrv-2.60E.txt
Linux_CAPT_PrinterDriver_V260_uk_EN/Doc/README-capt-2.6xUK.txt
Linux_CAPT_PrinterDriver_V260_uk_EN/Src/
Linux_CAPT_PrinterDriver_V260_uk_EN/Src/cndrvcups-capt-2.60-1.tar.gz
Linux_CAPT_PrinterDriver_V260_uk_EN/Src/cndrvcups-common-2.60-1.tar.gz
me@pc ~/Downloads $ cd Linux_CAPT_PrinterDriver_V260_uk_EN/
32-bit_Driver/ 64-bit_Driver/ Doc/           Src/        
me@pc ~/Downloads $ cd Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian/
me@pc ~/Downloads/Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian $ ll
total 12168
drwxr-xr-x 2 me me     4096 июля  16  2013 .
drwxr-xr-x 4 me me     4096 июля  16  2013 ..
-r-xr-xr-x 1 me me 10913574 июня  27  2013 cndrvcups-capt_2.60-1_amd64.deb
-r-xr-xr-x 1 me me  1532356 июня  27  2013 cndrvcups-common_2.60-1_amd64.deb
me@pc ~/Downloads/Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian $ sudo dpkg -i *.deb
[sudo] password for me:
(Чтение базы данных … на данный момент установлено 184982 файла и каталога.)
Preparing to unpack cndrvcups-capt_2.60-1_amd64.deb ...
Unpacking cndrvcups-capt (2.60-1) over (2.60-1) ...
Preparing to unpack cndrvcups-common_2.60-1_amd64.deb ...
Unpacking cndrvcups-common (2.60-1) over (2.60-1) ...
Настраивается пакет cndrvcups-common (2.60-1) …
Настраивается пакет cndrvcups-capt (2.60-1) …
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot

3. Added this to /etc/rc.local

me@pc ~ $ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sudo service cups restart
sudo service ccpd stop
sudo service ccpd start
exit 0

4. Open Mint Control Panel for printers and Add printer.
5. Let printer ON
6. Restart PC.
7. After restart complete, try to print test page.
8. Done.

Saturday, June 23, 2012

how to start multiple linux skype (v.4.0) instances?


We can start multiple linux skype (v.4.0) instances:

1. example personal skype instance:
lnx#> skype --dbpath=./.own

2. example work skype instance:
lnx#> skype --dbpath=./.work

See in terminal:
lnx#> skype --help

or/and

http://community.skype.com/t5/Linux/Secondary-account-in-Skype-4-0/td-p/797008

Thank You. :)

Wednesday, February 29, 2012

How to change nic mac address remotely without lose connection? (solution)

If you are on local computer, to change mac address you need to:
ifdown eth0
ifconfig eth0 hw ether xx:xx:xx_mac_address
ifup eth0 


Attention, you cannot do this when remotely connected, 
because "ifdown eth0" will disable nic and this mean no more network connection. 
You can try to change mac address remotely (i've succeed to) with this simple trick. (focus-pokus) :) 


Make one file 'nicmac.sh' with: 
 #!/usr/bin/env bash 
ifdown eth0 
ifconfig eth0 hw ether xx:xx:xx_mac_address  # example: 50:aa:49:99:4a:00 
ifup eth0 
 #--End of file 'nicmac.sh' 


Then: 
lnx#> chmod a+x nicmac.sh' 
lnx#> sudo -s './nicmac.sh' 


And voila, you have new mac address changed remotely.

Friday, January 13, 2012

Terminal command line editing shortcuts

From CentOs Bible PDF E-Book.

TABLE 4-1
Keystrokes for Navigating Command Lines
Keystroke Full Name Meaning
[Ctrl]+f Character forward Go forward one character.
[Ctrl]+b Character backward Go backward one character.
[Alt]+f Word forward Go forward one word.
[Alt]+b Word backward Go backward one word.
[Ctrl]+a ([Home] key) Beginning of line Go to the beginning of the current line.
[Ctrl]+e ([End] key) End of line Go to the end of the line.
[Ctrl]+l Clear screen Clear screen and leave line at the top of
                     the screen.


TABLE 4-2
Keystrokes for Editing Command Lines
Keystroke Full Name Meaning
[Ctrl]+d Delete current Delete the current character.
[Backspace] Delete previous Delete the previous character.
[Ctrl]+t Transpose character Switch positions of current and previous characters.
[Alt]+t Transpose words Switch positions of current and previous words.
[Alt]+u Uppercase word Change the current word to uppercase.
[Alt]+l Lowercase word Change the current word to lowercase.
[Alt]+c Capitalize word Change the current word to an initial capital.
[Ctrl]+v Insert special character Add a special character. For example, to add a [Tab]
                                 character, press [Ctrl]+v+[Tab].

TABLE 4-3
Keystrokes for Cutting and Pasting Text in Command Lines
Keystroke Description
[Ctrl]+k Cut text to the end of the line.
[Ctrl]+u Cut text to the beginning of the line.
[Ctrl]+w Cut the word located behind the cursor.
[Alt]+d Cut the word following the cursor.
[Ctrl]+y Paste most recently cut text.
[Alt]+y Rotate back to previously cut text and paste it.
[Ctrl]+c Cancel the entire command line.

Thursday, January 12, 2012

Python autocompletion (from the net)

Original source from HERE


Enabling auto-complete in the interactive python interpreter will greatly increase your development speed. Sometimes you can't recall a method's name or you're not sure which method to use in the first place.
First we're going to create a file in your home directory called ".pythonrc" which will hold our configuration details. This file should contain the following:
import rlcompleterreadline
readline.parse_and_bind('tab:complete')
Then we'll set the PYTHONSTARTUP environment variable in our .bashrc (or .bash_profile if you're using that). If the PYTHONSTARTUP variable is set to a readable file, then the contents of that file will be run before anything else when the interactive interpreter is run.
echo "export PYTHONSTARTUP=~/.pythonrc" >> .bashrc
Then either open a new terminal window or reload your .bashrc file:
source ~/.bashrc
You're all set, just run python to enter the interpreter and give it a whirl. For example, run:
import sys
Then type in "sys." and hit tab twice, and you'll see all the methods on the sys object.