User Tools

Site Tools


linux:welcome

Linux Help

openssh-server

Install

  • openssh-server
  • ufw
  • gufw

Use gufw to setup the firewall. Create rules to open port 22 for incoming data.

Hohenheim VPN

This solution is working for Ubuntu 11.10, may work on other OS as well.

Install packages

  • vpnc
  • network-manager-vpnc-gnome
  • network-manager-vpnc

Login to Hohenheim intranet and find https://rz-static.uni-hohenheim.de/kommunikation/vpn/Anleitung-vpnc.html. Here you will find the official description for connecting via vpnc.

In Ubuntu vpnc.conf is located at /etc/vpnc/ If you create a file called

default.conf

you can connect to the VPN by typing

sudo vpnc

otherwise you have to type

sudo vpnc [name of conf-file]
default.conf
IPSec gateway 144.41.19.24
IPSec ID Hohenheim-radius
IPSec secret Kartoffel
IKE Authmode psk
Xauth username [username]
Xauth password [password]

Novell drive on Linux

Many people need to access their Novell network drives from within Ubuntu. This page describes how to mount your Novell network drives so that you can read and write to them. It is specific for Hohenheim University section 440c.

This guide is based on Ubuntus officel description and the description made by Martin Weis Debianinstallation#NOVELL_Verzeichnisdienste.

Install and Configure Required Packages

Install

  • Install ncpfs
  • Install IPX

Novell servers use the NCP protocol for network drives. We need to install support for this protocol by installing some packages.

You must enable the Universe repository before installing these packages.

Click on “System>Administration>Synaptic Package Manager” to start Synaptic.
Search for “ncpfs”
Choose to install “ncpfs”
Click “Apply” and allow it to install any required dependencies. Do the same for IPX.

You can also use APT to install the packages

sudo apt-get install ncpfs
sudo apt-get install ipx

Configure

Configure /etc/ipx.conf as follows

# this attempts auto-configuration
IPX_AUTO_PRIMARY=on
IPX_AUTO_INTERFACE=on
IPX_CONFIGURED=yes
# for manual configuration, set IPX_CONFIGURED=yes,
# and set the options below for your system
IPX_DEVICE=eth0                         # The device you use for the connection
#IPX_FRAME=802.2			# either 802.2, 802.3 or EtherII
IPX_FRAME=EtherII                       # EtherII works at Hohenheim
IPX_INTERNAL_NET=no
IPX_NETNUM=4117750			# ip of the server. can be found usin 'slist'
# routing options
IPX_SERVER_ROUTE=no		        # setup route to external server?
IPX_SERVER_NETNUM=0		        # your server's internal network number
IPX_SERVER_NODENUM=000000000000		# your server's node number

Restart ipx after the configuration.

Mount the Novell drives

The drive can now be mounted using the command

ncpmount -S 440-SERVER -U [username].440c.440.uniho -P [password] /media/novell/

You just have to create the directory /media/novell/

To unmount use this command

ncpumount /media/novell/

Create the directory

Create a new directory called “/media/novell”

Open a Terminal.
Run this command:

sudo mkdir /media/novell

Change permissions so that your user can access it. Be sure to use your actual username on the Linux system

sudo chown yourusername:yourusername /media/novell

Optional) Create a link so the folder will be available on your desktop. Be sure to use your actual username again

ln -s /media/novell /home/yourusername/Desktop/novell

An Icon to Mount the Drive

Using alacarte or Main Menu create a launcher.

Click on “Icon” and choose the picture of a mounted harddrive.
Click on the “Command” tab and select “Application in terminal”
Paste this command into the field labeled “Command”

ncpmount -S 440-SERVER -U [username].440c.440.uniho -P [password] /media/novell/

Be sure to edit each of the fields with your information

An Icon to Unmount the Drive

Once the network drive is mounted, you may want to unmount the drive. To do this, we can create another desktop launcher to run the unmount command.

Using alacarte or Main Menu create a launcher.

Click on “Icon” and choose the picture of a unmounted harddrive.
Click on the “Command” tab and select “Application in terminal”
Paste this command into the field labeled “Command”

ncpumount /media/novell 

For more information (including screenshots) go to this blog: How to mount Novell network drives

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>

to lowercase

Add FTDI USB device

First use

lsusb

you should get a result like this

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 0403:fac6 Future Technology Devices International, Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 010: ID 0930:0219 Toshiba Corp. 
Bus 001 Device 003: ID 04f2:b329 Chicony Electronics Co., Ltd 
Bus 001 Device 004: ID 0424:2517 Standard Microsystems Corp. Hub
Bus 001 Device 005: ID 0d8c:0105 C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 007: ID 0e8f:0022 GreenAsia Inc. 
Bus 001 Device 008: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]

now run the command <note important>remember to check the vendor and product on your system</note>

sudo modprobe ftdi_sio vendor=0x0403 product=0xfac6

To check the port number write the following commend

dmesg | grep tty

you should get something like this

[    0.000000] console [tty0] enabled
[   18.817407] usb 1-1.4.2: pl2303 converter now attached to ttyUSB0
[ 8652.821404] usb 3-4: FTDI USB Serial Device converter now attached to ttyUSB1
linux/welcome.txt · Last modified: 2021/08/14 04:21 (external edit)