All your wishes come true
You can do it!
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. :)
| Reactions: |
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.
ifdown eth0
ifconfig eth0 hw ether xx:xx:xx_mac_address
| Reactions: |
Tuesday, January 24, 2012
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.
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.
| Reactions: |
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 rlcompleter, readline
readline.parse_and_bind('tab:complete')
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.
| Reactions: |
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*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
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
Troubleshooting:
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
1. ubuntu canon
2. canon (ru.)
lnx#>cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
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
Troubleshooting:
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
| Reactions: |
Friday, March 18, 2011
Ubuntu, OpenSuse & Laker error XESetWireToEventCookie (Solved)
Installed Laker, at start get this error:
Error:
/tools/Laker/current/platform/LINUX/bin/laker: symbol lookup error: /usr/lib/libXi.so: undefined symbol: XESetWireToEventCookie
Solution:
On the net I found that with libXi.so.6.0.0 everything is ok. I get this lib (tar.gz) from here http://packages.ubuntu.com/karmic/libxi6
I follow these steps:
> ./configure
> make
> sudo make install
> cp /usr/local/libXi.so.6.0.0 /usr/lib/
> cd /usr/lib
> mv libXi.so{,.orig} #this will rename the old libXi.so to libXi.so.orig
> mv libXi.so.6{,.orig} # the same as above
> ln -s libXi.so.6.0.0 libXi.so
> ln -s libXi.so.6.0.0 libXi.so.6
After these changes I was able to start Laker on ubuntu and opensuse
Error:
/tools/Laker/current/platform/LINUX/bin/laker: symbol lookup error: /usr/lib/libXi.so: undefined symbol: XESetWireToEventCookie
Solution:
On the net I found that with libXi.so.6.0.0 everything is ok. I get this lib (tar.gz) from here http://packages.ubuntu.com/karmic/libxi6
I follow these steps:
> ./configure
> make
> sudo make install
> cp /usr/local/libXi.so.6.0.0 /usr/lib/
> cd /usr/lib
> mv libXi.so{,.orig} #this will rename the old libXi.so to libXi.so.orig
> mv libXi.so.6{,.orig} # the same as above
> ln -s libXi.so.6.0.0 libXi.so
> ln -s libXi.so.6.0.0 libXi.so.6
After these changes I was able to start Laker on ubuntu and opensuse
| Reactions: |
Subscribe to:
Posts (Atom)


