Tuesday, April 28, 2015

Setting Memo


Dual systems

At first, the department gives us computer with Windows. I shrink disk D and leave 600GB unallocated. This unallocated disk space can be used to install ubuntu. Choose "install alongside windows7" while installing ubuntu. I am so lazy that I didn't choose "others" option. Later on, I may need to learn more about linux system and try to allocate more proper disk space for all kinds of directory. For example, I need larger space for my /usr/local and /home directory.

Network settings

It is very important to set up proxy under linux otherwise you cannot surf the internet.
To set up proxy properly, please refer to this wiki page
Besides, we also need to configure all the IP address for IPV4 connection. Follows are IP configure for my office computer. My computer is PC90087, so my IP is 137.189.90.87
  • Gateway: 137.189.91.254 
  • IP: 137.189.90.87 
  • Subnet mask: 255:255:252:0 
  • DNS server: 
    • Prefer: 137.189.91.188 
    • Alternative: 137.189.91.187 
  • Proxy: http://proxy.cse.cuhk.edu.hk/proxy/cse.pac 
  • Other: Please refer to the wiki page of CSE 

Mount unix home directory

  • Linux: 
    • mkdir ~/UnixFolder
    • sshfs xwchen@linux1:/uac/gds/xwchen ~/UnixFolder
  • My Mac 
    • mkdir ~/UnixFolder
    • sshfs -o sshfs_debug xwchen@gw.cse.cuhk.edu.hk:/uac/gds/xwchen ~/UnixFolder 
  • Windows 
    • Config all the network settings 
    • \smb2\xwchen (Network directory) 

Printer set up

  • Linux: please refer to this article by Qin Liu 
    • sudo apt-get install samba
    • choose the driver HP LJ 4000 PS 
    • Note: we also need to add search domain as "cse.cuhk.edu.hk"
    • If "held authentication", just right click and input user name and password
  • Windows: please refer to our wiki

Dropbox

  • Windows: Download dropbox from official website 
  • Linux: Download dropbox from official website 

Vim

I have not installed many plugins. I think Bob's article is very good and I need to install them later on.
What I have installed?
  • neocomplete, neobundle 
  • trinity, taglist, source explorer, nerdtree, neospinnets 
Many of them can be managed by neobundle, but I do not remember which of them are managed by neobundle...
To use all kinds of plugins, we need to install vim 7.4
  • Install vim7.4
  • sudo apt-get install ctags 
  • Use my old .vimrc file and .vim directory 

Input method

  • Download 汉语 in the language settings; 
  • To use sogou pinyin, we need to install fcitx; 
  • Restart; 
  • Download sogou pinyin from official website; 
  • Install sogou 
  • Set input method in settings center; 
  • Done; 

Email

Use thunderbird mail client, we set up incoming and outcoming server as wiki . I add my cse mail account and two google mail accounts.

SSH remote login from my mac

I spent a lot time trying ssh login. Finally, I found that I need to add some options after ssh command. Since the finger printer of remote host has changed, use this command and the known_hosts file can be updated.

  • ssh xwchen@linux1.cse.cuhk.edu.hk
  • rm .ssh/know_hosts
  • ssh from my mac to gateway then ssh to my office computer

ssh -o UserKnownhostsFile=.ssh/known_hosts - o StrictHostKeyChecking=no pc90087

Install matlab

It is very easy to install MATLAB2014 since all install operations can be finished under GUI. However, I think I need to learn PYTHON later on since MATLAB install package is so huge and cumbersome.
  • Mount matlab iso file on media 
  • Click on install icon 
  • Use crack file to activate matlab 
  • Revise the .bashrc file and add /usr/local/bin to the user path (if you install the matlab in usr/local 

Secure copy file to remote host

Use scp command. For example, if I want to copy file from my mac to my unix home directory, I can use:
scp my_local_file xwchen@gw.cse.cuhk.edu.hk:target_directory

Install latexmk 

  • install texlive-full (if texlive is not full, some packages cannot be found)
  • install latexmk, modify .latexmkrc

Install person wiki

  • Remember backup data/pages
  • After setup, install plugins

What else

Read CSE wiki carefully! Know more about network settings. Organize my personal page.

No comments :

Post a Comment