remote connect to bell: =========================================================== From any cs machine, open a terminal, then ssh -XY bell.cs.ucr.edu (that is, ssh, space, minus sign, space, followed by capital X, capital Y) If it prompts for (yes/no), type yes Then it will prompt for password, type your password, notice that it will not echo, that is, you will NOT see *** as in other places. From that terminal, type geany & (that is, geany followed by ampersand) This will give you access to geany from any machine in cs department, including all labs and TA room. Tabs ============================================================== From Geany menu ------------------------- Edit->Preferences->Editor->Indentation->Select Spaces from the radio buttons Make sure you click Apply or OK to finish. Then do this Project->Apply Default Indentation To convert all tabs into spaces for code already written, do this Document->Convert all tabs into spaces From terminal -------------------------- cat -t main.cpp (if you see ^I in the output, then your code has tabs) Alternatively, do this to show tabs (need to ssh into bell): -------------------------- /home/csgrads/lyan/public_html/TA/showtab.sh main.cpp Do this to remove tabs from your main.cpp -------------------------- /home/csgrads/lyan/public_html/TA/untab.sh main.cpp Linux command: ============================================================== # list directories ls -l show details -a show hidden files -d show directory but not the content of the directory # print working directory (show current directory) pwd # create directory mkdir -p create directory with depth more than one level # delete file rm # rm for remove # delete directory rmdir # you need to delete all files and directories inside first # create file cat > # this is cat greater_than gedit # use any editor to create file, consider learn vim or emacs # rename file mv oldname newname # mv for move # file permissions: ls -l shows file permission drwxrwxrwx positions: 0 it is d if directory, else it is - 1-3 permission for user (yourself) 4-6 permission for group (you and your groupmates) 7-9 permission for other (everybody) r means read w means write x means execute # to change permission: chmod u+x filename # make file executable for yourself chmod o-w filename # make file not writable by others chmod o+r filename # make file readable to everybody # search for a file find -name -print # compile file.cpp g++ -o file.cpp # run/execute program ./ # this is dot slash exename, assume your executable is called exename Comments or feedbacks, email lyan@cs.ucr.edu for improvement.