Ubuntu

From Fab Lab Wiki - by NMÍ Kvikan
Revision as of 14:18, 28 January 2013 by Bjartur (Talk | contribs)

Jump to: navigation, search


Settings for the machines in Ubuntu

  • window size: 450
  • editor width: 45
  • editor height: 45
  • camm: 'stty 9600 raw -echo crtscts </dev/ttyS0; cat "file" > /dev/ttyS0'
  • rml: 'stty 9600 raw -echo crtscts </dev/ttyS0; cat "file" > /dev/ttyS0'
  • epi: 'lpr -Pepilog "file"; sleep 15; lprm -Pepilog -'
  • ps: 'lpr "file"'




  • demsg
  • lsusb

How do I install .deb file?

To install package called package.deb type the following command: Go to directory where package.deb is kept. For example if it is in /tmp directory:

$ cd /tmp

Type the following command:

$ sudo dpkg -i package.deb

To run python file

python hello.step.45.py /dev/ttyUSB0

To show network folder in any program

  • Go to home folder
  • Show hidden files (ctrl H)
  • Find the folder .gvfs
  • Drag to the sidebar

Wireless problem in Ubuntu

The wireless worked fine in 10.04 then after the upgrade it kept asking for the wep key every 30 seconds. But the network would work in that 30 seconds. Frustrating. I found this answer and found a bit of a faster way to get things going.

First, open up the drawer, type in Network Tools. Then open Network Tools, switch it to the WLAN and click Configure. Finally in the Wireless tab, find the "auto" connection, highlight it and click Edit. then go to Security, and enter the key there. Click Save and it's done.

Run the terminal and write "sudo apt-get install linux-firmware-nonfree" After that the wifi is connected

How to make a file executable in Ubuntu

Open Terminal

  • Open Terminal: Ctrl+Shift+T or Applications -> Accessories -> Terminal
  • Make file excutable
sudo chmod +x filename.bin
  • Replace your file’s name into “filename”
  • Enter your password. The file is now executable.


Links

Unix/Linux Command Reference from Fosswire