Tuesday, January 19, 2016
Monday, November 17, 2014
SSH With GUI
open a GUI application over ssh by simply using the -X flag:
ssh -X user@server
It's also typically a good idea to use compression on the ssh as well when you allow X11 forwarding. Makes it play nicer with your internet:
ssh -X -C user@server
command used to log in into my Raspberry pi:
ssh -X -C -l pi 192.168.0.124
ssh -X user@server
It's also typically a good idea to use compression on the ssh as well when you allow X11 forwarding. Makes it play nicer with your internet:
ssh -X -C user@server
command used to log in into my Raspberry pi:
ssh -X -C -l pi 192.168.0.124
Monday, October 27, 2014
Install PyUSB 1.0.0
Use the following steps:
sudo apt-get update
sudo apt-get install python-pip
sudo pip install pyusb==1.0.0b1
sudo apt-get update
sudo apt-get install python-pip
sudo pip install pyusb==1.0.0b1
Thursday, October 2, 2014
How to set a Static IP in Ubuntu
(from:http://www.sudo-juice.com/how-to-set-a-static-ip-in-ubuntu-the-proper-way/)
Setting a static IP in Ubuntu is useful for a lot of things. You may want to forward ports from your router to serve web pages, use SSH from outside your local network or set up some sort of media server.
For whatever reason, Ubuntu is trying to make our lives easier by introducing graphical tools to be used by default but kind of making our terminal life a bit harder!
The quick answer to setting up a static IP in Ubuntu the proper way is:
auto eth0
Setting a static IP in Ubuntu is useful for a lot of things. You may want to forward ports from your router to serve web pages, use SSH from outside your local network or set up some sort of media server.
For whatever reason, Ubuntu is trying to make our lives easier by introducing graphical tools to be used by default but kind of making our terminal life a bit harder!
The quick answer to setting up a static IP in Ubuntu the proper way is:
- Disable the graphical management of your network connection in /etc/NetworkManager/NetworkManager.conf
- Gather the information for the static IP (interface, IP to be used, default gateway, subnet, DNS)
- Modify /etc/network/interfaces to include the information above.
- Restart networking and network-manager services
gksudo gedit /etc/NetworkManager/NetworkManager.conf
So our NetworkManager.conf now looks like this….
[main]
plugins=ifupdown,keyfile
#dns=dnsmasq
[ifupdown]
managed=true
gksudo gedit /etc/network/interfaces
/etc/network/interfaces file now looks like this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.101
gateway 192.168.0.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
Restart your networking services
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
Sunday, September 21, 2014
How to use an External Text Editor from Cadence IC6.1.6ISR7 onward
Problem
Cadence unable to generate netlist from schematic which contains verilog/systemverilog/verilogAMS.Solution
add the following in the .simrc under the project directory:
How to Reset MFC-7345N Toner End of Life Message
Provided there is enough toner in a transferred cartridge that does not activate the low toner sensor, then you can clear the end of life message as follows manually.
1. open front cover where toner inserts
2. press the "clear/back" button. It may display "replace drum?". Do not respond to this.
3. press *00. A message "accepted" will be displayed
The toner warning should then be cleared.
1. open front cover where toner inserts
2. press the "clear/back" button. It may display "replace drum?". Do not respond to this.
3. press *00. A message "accepted" will be displayed
The toner warning should then be cleared.
Tuesday, August 12, 2014
How to use an External Text Editor from Cadence IC6.1.6ISR7 onward
$prompt> setenv EDITOR "gvim -f"
Type one of the following in the CIW to change the SKILL variable editor or set it in the .cdsinit file:
editor = "gvim -f"
The most important added variable is ‘useExternalEditor’. Type the below SKILL in the CIW to set an external text editor or
set it in the .cdsinit file for an external text editor instead of the ‘Cadence Text Editor’.
envSetVal("textedit" "useExternalEditor" 'boolean t)
You can check the value of this variable ‘useExternalEditor’ by using the below SKILL:
envGetVal("textedit" "useExternalEditor")
If the above SKILL return value is ‘nil’ then it will always open text cellViews in the ‘Cadence Text Editor’.
Type one of the following in the CIW to change the SKILL variable editor or set it in the .cdsinit file:
editor = "gvim -f"
The most important added variable is ‘useExternalEditor’. Type the below SKILL in the CIW to set an external text editor or
set it in the .cdsinit file for an external text editor instead of the ‘Cadence Text Editor’.
envSetVal("textedit" "useExternalEditor" 'boolean t)
You can check the value of this variable ‘useExternalEditor’ by using the below SKILL:
envGetVal("textedit" "useExternalEditor")
If the above SKILL return value is ‘nil’ then it will always open text cellViews in the ‘Cadence Text Editor’.
Subscribe to:
Posts (Atom)