Friday, November 28, 2008
Tuesday, September 30, 2008
[Ubuntu] SSH: Staying connected to the server
1. PuTTY
In the menu of the PuTTY,
go to Connection > Seconds between keep-alives (0 to turn off),
and enter the number of seconds, which will
makes PuTTY to send a null packet to keep session alive.
2. ssh on Ubuntu
http://ubuntu.wordpress.com/2006/02/03/keeping-ssh-sessions-alive/In sum, in /etc/ssh/ssh_config
addServerAliveInterval 5
Sunday, September 28, 2008
[Ubuntu] Several tips
1. how to know the number of files in directory
> ls |wc -l
2. how to know the size of directory
> du -h
> ls
2. how to know the size of directory
> du -h
Wednesday, September 17, 2008
[Ubuntu] C# on Ubuntu
1. Install mono and monodevelop
http://tempvariable.blogspot.com/2008/04/installing-mono-191-on-ubuntu-804-hardy.html
2. Install .Net
sudo apt-get install mono-gmcs (.NET 2.0)
sudo apt-get install mono-mcs (.NET 1.1)
3. First example of mono and monodevelopment
http://beans.seartipy.com/2006/06/28/writing-your-first-program-with-mono-and-monodevelop/
** If you install 'gmcs', check Project>Runtime option > Runtimer version: Mono/.NET 2.0 profile
http://tempvariable.blogspot.com/2008/04/installing-mono-191-on-ubuntu-804-hardy.html
2. Install .Net
sudo apt-get install mono-gmcs (.NET 2.0)
sudo apt-get install mono-mcs (.NET 1.1)
3. First example of mono and monodevelopment
http://beans.seartipy.com/2006/06/28/writing-your-first-program-with-mono-and-monodevelop/
** If you install 'gmcs', check Project>Runtime option > Runtimer version: Mono/.NET 2.0 profile
In the project options page go to the runtime options panel and select
runtime version 2.0.
Monday, September 15, 2008
[Ubuntu] SSH tunneling
1. SSH login without password
http://linuxproblem.org/art_9.html
2. ssh -l gunhee1 server1 gunhee2@server2
or
ssh -t gunhee1@server1 "ssh gunhee2@server2"
3. scp multiple hops
scp -Cp -o "ProxyCommand ssh gateID@gatehost nc remotehost 22" remoteID@remotehost:matlab.el ./
4.
sshfs gunhee1@server1: ~/mount/
fusermount -u mountpoint
sudo apt-get install sshfs
sudo adduser username fuse
sudo chgrp fuse /dev/fuse
sudo chmod 4755 /bin/fusermount
http://linuxproblem.org/art_9.html
2. ssh -l gunhee1 server1 gunhee2@server2
or
ssh -t gunhee1@server1 "ssh gunhee2@server2"
3. scp multiple hops
scp -Cp -o "ProxyCommand ssh gateID@gatehost nc remotehost 22" remoteID@remotehost:matlab.el ./
4.
sshfs gunhee1@server1: ~/mount/
fusermount -u mountpoint
sudo apt-get install sshfs
sudo adduser username fuse
sudo chgrp fuse /dev/fuse
sudo chmod 4755 /bin/fusermount
Sunday, September 14, 2008
[Ubuntu] Emacs command
1. run octave
M-x run-octave
2. Basics
C-x C-f "find" file i.e. open/create a file in buffer
C-x C-s save the file
C-x C-w write the text to an alternate name
C-x C-v find alternate file
C-x i insert file at cursor position
C-x b create/switch buffers
C-x C-b show buffer list
C-x k kill buffer
C-z suspend emacs
C-X C-c close down emacs
2. Editing
C-Space Set beginning mark (for region marking for example)
C-W "kill" (delete) the marked region region
M-W copy the marked region
C-y "yank" (paste) the copied/killed region/line
2. Window-Commands
C-x 0 delete window
C-x 1 close all windows except the one the cursors in
C-x 2 split window horizontally
C-x 3 split window vertically
C-x o change to other window
3. Shell
M-x shell starts shell modus
M-x run-octave
2. Basics
C-x C-f "find" file i.e. open/create a file in buffer
C-x C-s save the file
C-x C-w write the text to an alternate name
C-x C-v find alternate file
C-x i insert file at cursor position
C-x b create/switch buffers
C-x C-b show buffer list
C-x k kill buffer
C-z suspend emacs
C-X C-c close down emacs
2. Editing
C-Space Set beginning mark (for region marking for example)
C-W "kill" (delete) the marked region region
M-W copy the marked region
C-y "yank" (paste) the copied/killed region/line
2. Window-Commands
C-x 0 delete window
C-x 1 close all windows except the one the cursors in
C-x 2 split window horizontally
C-x 3 split window vertically
C-x o change to other window
3. Shell
M-x shell starts shell modus
Saturday, September 13, 2008
[Ubuntu] Syntax Highlight of Emacs for Octave
Just use the one for matlab.
http://www.mathworks.com/matlabcentral/files/104/matlab.el
comment out
;; Installation:
;; Syntax highlighting:
http://www.mathworks.com/matlabcentral/files/104/matlab.el
comment out
;; Installation:
;; Syntax highlighting:
[Ubuntu] If 'Shift' or 'Caps Lock' doesn't work when using vmware on linux guest
> setxkbmap
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/195982
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/195982
Thursday, September 11, 2008
[Ubuntu] Install VMware v6.0.2 on hardy
1.
sudo aptitude install build-essential
sudo aptitude install patch
2.
/vmware-distrib/ vmware-install.pl
3.
/vmware-any-any-update116/rnme.pl
sudo aptitude install build-essential
sudo aptitude install patch
2.
/vmware-distrib/ vmware-install.pl
3.
/vmware-any-any-update116/rnme.pl
Tuesday, September 9, 2008
Saturday, September 6, 2008
[Ubuntu tip] How to download the file from URL
wget http://syserr.com/stuff/madwifi-cvs-20051025.tar.gz
Will download the file from any URL you enter after “wget”
-c, --continue
부분적으로 받은 파일을 계속해서 이어받는다.
http://blog.mping.co.kr/333
Will download the file from any URL you enter after “wget”
-c, --continue
부분적으로 받은 파일을 계속해서 이어받는다.
http://blog.mping.co.kr/333
Saturday, August 2, 2008
[Octave] how to install 'eigs' on ubuntu
If you want to use the 'eigs',
you need the following package called Arpack.
http://octave.sourceforge.net/arpack/index.html
However, before that,
you need to install the following two libraries on ubuntu.
1. sudo apt-get install libsuitesparse-dev
2. sudo apt-get install libarpack2-dev
How can I install the package on Octave?
see http://octave.sourceforge.net/FAQ.html
you need the following package called Arpack.
http://octave.sourceforge.net/arpack/index.html
However, before that,
you need to install the following two libraries on ubuntu.
1. sudo apt-get install libsuitesparse-dev
2. sudo apt-get install libarpack2-dev
How can I install the package on Octave?
see http://octave.sourceforge.net/FAQ.html
Friday, August 1, 2008
[Latex] Getting pdflatex to embed all fonts
http://www.daniel-lemire.com/blog/archives/2005/08/29/getting-pdflatex-to-embed-all-fonts/
[Latex] Font problem in ACM proceeding templates
First check if all tex packages are installed
sudo apt-get install texlive
sudo apt-get install texlive
[Latex] How to change papersize from A4 to letter
http://www.tug.org/texlive/doc/texlive-en/live.html
sudo texconfig paper letter
sudo texconfig paper letter
[Octave] GNU plot setting
Just set term as 'postscripts'.
I don't know the details of what happen inside, but the point is it works!
I don't know the details of what happen inside, but the point is it works!
Subscribe to:
Posts (Atom)