Sunday, February 15, 2015

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

1. Download drivers from Canon Support site:

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
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


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 '' 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 '' 

lnx#> chmod a+x' 
lnx#> sudo -s './' 

And voila, you have new mac address changed remotely.

Friday, January 13, 2012

Terminal command line editing shortcuts

From CentOs Bible PDF E-Book.

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.

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].

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
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.

Friday, January 6, 2012

{Solved} How to install Canon LBP2900 on 64 bit Ubuntu/Linux Mint/Lubuntu

A.1. Create this directory
lnx#> sudo mkdir -p /var/log/CCPD
lnx#> sudo chown -R root:lp /var/log/CCPD/
If not, you'll get this error message "ccp send_data error, exit"

A.2. Make sure that /var/ccpd/fifo0 actually exists:
lnx#>ls -l /var/ccpd
When missing, it can be added manually:
lnx#>sudo mkdir /var/ccpd
lnx#>sudo mkfifo /var/ccpd/fifo0
lnx#>sudo chown -R lp:lp /var/ccpd

1. Download this archive

2. Extract files from the archive

3. Go to 64-bit/ directory

4. Install the deb packages:
lnx#>sudo dpkg -i *.deb

5. Restart CUPS:
lnx#>sudo service cups restart

6. Find ppd:
lnx#> find /usr/share/cups/model -name '*LBP*K.ppd' | grep 2900 /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd

7. Add printer into CUPS:
lnx#>sudo lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

8. Link the Printer to the USB Printer Port:
lnx#>sudo ccpdadmin -p LBP2900 -o /dev/usblp0

 CUPS_ConfigPath = /etc/cups/
 LOG Path        = None
 UI Port         = 59787

 Entry Num  : Spooler   : Backend       : FIFO path             : Device Path   : Status
     [0]    : LBP2900   : ccp           : /var/ccpd/fifo0       : /dev/usblp0   :

9. Restart services
lnx#>sudo service ccpd stop
lnx#> sudo service ccpd start
lnx#>sudo service cups restart

10. Monitor printer with:
lnx#> captstatusui -P LBP2900

11. Print test page.

12. Eureka!

Friday, March 18, 2011

Ubuntu, OpenSuse & Laker error XESetWireToEventCookie (Solved)

Installed Laker, at start get this error:


/tools/Laker/current/platform/LINUX/bin/laker: symbol lookup error: /usr/lib/ undefined symbol: XESetWireToEventCookie

On the net I found that with everything is ok. I get this lib (tar.gz) from here
I follow these steps:
> ./configure
> make
> sudo make install
> cp /usr/local/ /usr/lib/
> cd /usr/lib
> mv{,.orig}   #this will rename the old to
> mv{,.orig} # the same as above
> ln -s
> ln -s

After these changes I was able to start Laker on ubuntu and opensuse