Difference between revisions of "Linux Workstation"

From WikiBiron
(Getting Started)
(Matlab)
Line 48: Line 48:
  
 
'''Matlab on prospero'''
 
'''Matlab on prospero'''
 +
 +
To run Matlab on prospero, switch to the special user account using the command su -l matlab_usr. The password is matlab_user.
 +
 +
Then start Matlab using the command, run  /home/matlab_user/Matlab/bin/matlab
 +
 +
All the others are the same as sipi-dsp-11

Revision as of 14:29, 24 May 2011

Getting Started

Computer address - sipi-dsp-11.usc.edu (128.125.20.215) and prospero.usc.edu (128.125.20.30)

Creating an account - Send your desired username to whomever is currently administering the machine and they will create an account for you, and give a default password.

Log in - now you should be able to ssh to the computer and log into your own account with the default password. Change your password using the command passwd which will then ask for you new password.

Once you are able to log into your account the first thing I recommend is to start a vnc server running on your account. VNC is kind of like RDC for Windows. It allows you to have a graphical interface with your account, which for things like Matlab is nice (although you can run Matlab from the command line...).

VNC server - from the command prompt type vncserver the first time it will request that you give it a password, which can be different than your user password. Also, it will start your vncserver. Be sure to note which display your server started on. I.e. it should say "New 'sipi-dsp-11.usc.edu:2 (dummy)' desktop is sipi-dsp-11.usc.edu:2" and the number after the colon :2 is the display number.

Note: Only ports 1-10 on the firewall are open for VNC. Let me know if we need more (you can connect via vnc if the port is not open).

VNC viewer - you need to download a vnc viewer client on your windows box. I have used both RealVNC and TightVNC (RealVNC is better...they created vnc). I have tried Chicken of the VNC for Mac, but haven't got it to work yet (other problems, not the software).

Run the client and connect to the address sipi-dsp-11.usc.edu:(display port). If everything goes right it should ask you for your password, and then open the session. I haven't got things to work from home yet. I think it should using VPN, but I am not sure.

Also, please remember to kill your vnc server when you are finished. From the terminal just enter vncserver -kill :(displayport). This way we don't have to have too many ports open on the firewall. In doing this you will have to log in via Putty each time and restart your server, but that shouldn't be too much of a problem.

The window manager (GUI client) that is default is 'twm', which isn't much to look at and is only command line. If all you want to do is use Matlab then this should be fine. Just type matlab and the command and it will open fine. If you want a nicer GUI then you have to edit your xstartup file.

While logged into vnc type emacs .vnc/xstartup this will open emacs (a text editor) and your xstartup file. The standard file looks like this:

  1. !/bin/sh
  1. Uncomment the following two lines for normal desktop:
  2. unset SESSION_MANAGER
  3. exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &

the last line tells which window manager to use. So you can remove twm & and use either exec gnome-session or startkde & for a gnome or kde window manager.

FTP - finally I have set up an FTP server. You should not have to do anything after you have set up your account to use FTP. Just point your standard FTP client to sipi-dsp-11.usc.edu and enter your username and password.

Matlab

Matlab on sipi-dsp-11 To run Matlab on sipi-dsp-11 switch to the special user account using the command su -l Matlab_usr. The password is Matlab8241.

Then start Matlab using the command /opt/Matlab2010b/bin/matlab

Since there is only one Matlab user account you have to do some work to create your own work folders. This is actually pretty simple though. Everyone should just create a folder in the Matlab directory that is their work folder, i.e., I created SeanWork in /opt/Matlab2010b (which is the folder I installed Matlab to). You can then create a symbolic link, ln -s /opt/Matlab2010b/SeanWork /home/SeanMcPherson/Matlab, so that the files in my 'work' directory are easily accessible in my home folder. Also, the file permissions can be set on the folder to limit who can access the files (although Matlab_usr must have access).

Matlab on prospero

To run Matlab on prospero, switch to the special user account using the command su -l matlab_usr. The password is matlab_user.

Then start Matlab using the command, run /home/matlab_user/Matlab/bin/matlab

All the others are the same as sipi-dsp-11