User Tools

Site Tools


linux:welcome

This is an old revision of the document!


Linux Help

Commands

locate

Find files everywhere

Serial to USB

If you are using the usb → RS232 adapter, the serial drivers may need to be installed for the device to work properly. After plugging in the device, first check the hardware messages to see the device was detected:

dmesg

Torward the end of the messages, you should see this:

usb 1-1: new full speed USB device using uhci_and address 2
usb 1-1: configuration #1 chosen from 1 choice

if you see this, then you do not need to do the rest

[ 5429.330501] moschip7720 2-1.1:1.0: Moschip 2 port adapter converter detected
[ 5429.331157] usb 2-1.1: Moschip 2 port adapter converter now attached to ttyUSB1
[ 5429.331245] usb 2-1.1: Moschip 2 port adapter converter now attached to ttyUSB2

Now, we need to figure out the device vendor number and product number to tell the usbserial driver. For this we can use lsusb. The easiest way to find the information is to first unplug the device, then run lsusb:

lsusb

You will see a summary list of your USB devices on the system, I only have one:

Bus 001 Device 001: ID 0000:0000

Now, plug the device back in, and run lsusb again:

lsusb

Cardapio

Installation in Ubuntu

Cardapio can easily be installed in Ubuntu versions 10.04 (Lucid Lynx), 10.10 (Maverick Meerkat), 11.04 (Natty Narwhal), and the upcoming 11.11 (Oneiric Ocelot). To install, simply follow the steps below:

1) Run these commands in a terminal:

$ sudo add-apt-repository ppa:cardapio-team/unstable && sudo apt-get update

2) Now pick one or more of these, depending on how you want to use Cardapio:

$ sudo apt-get install cardapio-gnomepanel # <-- to install the Gnome-Panel applet
$ sudo apt-get install cardapio-docky             # <-- to install the Docky applet
$ sudo apt-get install cardapio-awn                # <-- to install the AWN applet
$ sudo apt-get install cardapio-gnomeshell  # <-- to install the Gnome-Shell applet
$ sudo apt-get install cardapio                         # <-- to use it in stand-alone mode only

3) Done!

Matlab

Make sure you activate with the right username otherwise it wont work.

Ubuntu Matlab help

Create A MATLAB Launcher

1) Get an icon:

sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png

2) Get the launcher file:

sudo wget 'https://help.ubuntu.com/community/MATLAB?action=AttachFile&do=get&target=matlab-r2011a.desktop' -O /usr/share/applications/matlab.desktop

Problems

Matlab is not yet updated to Oneric so yo have to create a symbolic link to

/lib/i386-linux-gnu/libc.so.6

change dir to /lib/ and excute the following command

sudo ln -s i386-linux-gnu/libc.so.6 libc.so.6

This works but creates another problem:

<blockquote> libc.so was moved as part of the multiarch work in Ubuntu 11.04. The reason that there can't be a symlink there is that the purpose of multiarch is to make it possible to install both the i386 and amd64 versions of libc at the same time so that you can run 32-bit binaries more easily on 64-bit systems and vice versa (and other similar situations). If the libc6 package contained a symlink to the new location, then the versions of that package for different architectures wouldn't both be installable at the same time (which version of the symlink would dpkg pick?), defeating the entire point of the exercise.

Anything that hardcodes the path to libc.so must be updated to work properly from Ubuntu 11.04 onwards. If the script you're talking about is part of Ubuntu, please report a bug on it and add the multiarch tag. <cite>http://askubuntu.com/questions/40416/why-is-lib-libc-so-6-missing</cite> </blockquote>

linux/welcome.1324471442.txt.gz · Last modified: 2021/08/14 04:19 (external edit)