Monday, December 22, 2014

FL Studio 11 | What's New?

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

How to install Canon LBP2900 on 64 bit Ubuntu 11.10

Original info:
1. ubuntu canon
2. canon (ru.)
lnx#>cat /etc/*release*

1. Download this archive

2. Extract the two 32 or 64 bit rpm files from the archive

3. Go to 64-bit/RPM directory and run this command:
lnx#>sudo alien -c -k -d *.rpm

4. Install the new debian 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 /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

8. Link the Printer to the USB Printer Port:
lnx#>sudo /usr/sbin/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. Unblacklist the usblp module as Canon still use it:
lnx#>sudo nano /etc/modprobe.d/blacklist-cups-usblp.conf
lnx#>sudo /etc/init.d/ccpd restart
lnx#>sudo service cups restart

- Add a # in front of the line with "blacklist usblp" - Note this might cause problems where you are running multiple printers from the same system where CUPS manages those printers directly.

10. If the status monitor works but printing does not, 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
lnx#>sudo /etc/init.d/ccpd restart
lnx#>sudo service cups restart

If Status monitor reports error "Check the DevicePath of /etc/ccpd.conf", then you probably don't have usblp kernel module.

Run the following command:
lnx#>lsmod | grep usblp
If it outputs nothing, load the module and restart ccpd:
lnx#>sudo modprobe usblp ls -l /dev/usb/lp0
lnx#>sudo /etc/init.d/ccpd restart