collection of HOW-TO's

This HOW-TO/FAQ is no longer being maintained. Some commands might not work as shown

Collected/edited by Nasser Abbasi

April 20, 2008

 

1.     Update section for Solaris 10. 8

2.     General HOWTO's. 10

1.     What is the order of searching for DLL's in windows?. 10

2.     How to use anti alias fonts with X?. 11

3.     I am getting unable to open terminal error from application (cscope), why?. 12

4.     How to convert ASN.1 to XML?. 12

5.     How to convert genbank asn.1 to xml?. 13

6.     How to parse genbank?. 13

7.     How to use windows Look and Feel on Solaris?. 14

8.     How to read string from command line in Java?. 15

9.     How to get class name from static method in Java?. 15

10.       How to use safe enumeration in Java?. 16

11.       How to connect solaris and win2k using SAMBA?. 17

12.       What environment variables used by alladin ghostscript?. 17

13.       How to delete the route in windows?. 17

14.       Where does Mozilla keep email folder on windows?. 18

15.       How to change where mozilla looks for bookmarks?. 18

16.       How to use J2EE?. 18

17.       How to convert IE bookmarks (favoriets) to Netscape bookmarks?. 32

18.       Where is favorites folder used by IE stored on the PC?. 32

19.       How to print on 11x17 from visio, to get max page size?. 32

20.       some java applications. 33

21.       What network interfaces are there for Solaris?. 33

22.       How to find what HW and devices are known to Solaris and other OS info?. 34

23.       How to send signal to a process on solaris. 34

24.       NFS. Solaris as server, Linux as client. Linux mounting Solaris filesystem over NFS. 35

25.       NFS. Solaris as client, Linux as server. Solaris mounting linux filesystem over NFS. 37

26.       How to find what filesystems are allready set shared on solaris?. 40

27.       what are the tcpdump flags?. 40

28.       How to convert router to multi-homed on Solaris. 40

29.       How to force a host to become a router on Solaris?. 40

30.       How to force a host to use dynamic routing?. 41

31.       How to turn off ICMP router discovery on Solaris?. 41

32.       How to change the MTU of an interface?. 41

33.       What is the smallest MTU that can be used?. 41

34.       How to change IP address of machine on Solaris?. 41

35.       How to add entry to routing table on Solaris?. 41

36.       How to look at routing table on Solaris?. 41

37.       What files used to setup a host on a network for Solaris?. 42

38.       How to change or look at TCP/IP setting on solaris?. 47

39.       How to allow root to use telnet on Solaris?. 50

40.       How to allow root to use ftp on Solaris?. 51

41.       How to use truss command to debug program on solaris?. 51

42.       1.42 How to debug shell scripts?. 51

43.       How does traceroute work?. 51

44.       How to tell apache to deny browsing a directory?. 52

45.       How to start and configure apache on Linux?. 52

46.       How to install and use the htdig search engine on Linux?. 53

47.       How to restart nfs server so that it reads in /etc/exports?. 56

48.       How to use hypermail to archive a netscape Inbox?. 56

49.       How to find if same email message exist in the email Inbox?. 56

50.       What are the protocol numbers in the IP protocol field?. 56

51.       How to substitute one word for another in a file from command line?. 59

52.       How to configure Netscape browser preferences for different mime types?. 59

53.       How to use perl to display a button?. 60

54.       How to install ext2fs on Solaris?. 60

55.       How to tell a MPEG-1 bitstream from a MPEG-2 bitstream?. 61

56.       How to start xterm with large scroll buffer?. 61

57.       How to use CVS?. 61

58.       How to convert files from unix to mac to windows format?. 62

59.       How to mount things?. 63

60.       What are the common RPM commands?. 64

61.       How to start and stop the network on Linux?. 64

62.       How to find where some of gcc object files are?. 65

63.       How to extract object files from a library?. 65

64.       How to look at assembler of an object file on Linux?. 65

65.       How to print the symbol table of a library?. 65

66.       How to apply a patch file in Linux?. 65

67.       How to debug a running process?. 65

68.       How to find what files are open on linux?. 66

69.       On Linux, what to do if an application it can't see a shared library?. 66

70.       How do you sync your computer's clock with the National Institute of Standards and Technology through Linux?  66

71.       How do display the index.html file at some URL from command line?. 66

72.       How do download ftp or websites in batch mode from command line?. 67

73.       How to create bean manifest file in jar file?. 67

74.       How to start X in different depths on linux?. 67

75.       How to clone the system disk on Solaris?. 68

76.       How to make douple-click in X selects the whole file name?. 68

77.       How to bring down an interface, then up, on linux?. 68

78.       How to find what is running as a module on linux?. 68

79.       How to start a secure shell session?. 69

80.       How to convert an RPM file to DEB file?. 69

81.       How to count lines of source code in a tree?. 69

82.       How to the largest sub-directory in current path?. 69

83.       How to find what version of redhat one is running (Linux)?. 69

84.       How to compile and link a simple gtk+ program?. 69

85.       How to cat a file, with a line number printed next to each line?. 69

86.       How to find what fonts are there for X?. 70

87.       How to remove lines from a file that matches some regexp using emacs?. 70

88.       How to find what font is used by xterm?. 71

89.       How to start print daemon on linux?. 72

90.       How to add tags to file using SCCS?. 72

91.       How to access sybase database using isql?. 72

92.       How to disable or enable CDE on linux?. 72

93.       How to disable or enable CDE on Solaris (run with no X)?. 73

94.       How to configure network on linux?. 73

95.       How to use find command to list directories only to some depth?. 75

96.       How to login to Solaris if you lost the root password?. 75

97.       How to append the date to a file name?. 76

98.       How to print to remote printer from Linux?. 76

99.       How to search name of tunables in solaris kernel libraries?. 77

100.     How to prevent DNS lookup in Solaris?. 77

101.     How to find what NFS version is used?. 78

102.     How to find total size of selected files?. 78

103.     How to find limits of a process?. 78

104.     How to add swap space on Solaris?. 78

105.     How to find what patches are installed on Solaris?. 79

106.     How to find what dynamic libraries are linked to an executable?. 79

107.     How to look at dynamic section information on Solaris?. 79

108.     How to format a floppy on Solaris?. 79

109.     How to insert a page break in emacs?. 80

110.     How to use SCCS?. 80

111.     How to find default printer on Solaris?. 81

112.     How to send email from command line?. 81

113.     How to find what ports are used on the host?. 81

114.     How to find what process is using which files and ports?. 81

115.     How to start SNMP trap daemon on Solaris?. 81

116.     How to detect when filesystem size reaches some threshold?. 82

117.     How to copy large file system from one host to another?. 83

118.     How to execute a remote script and check for its final status?. 84

119.     How do netscape plugins work?. 85

120.     How to restart inted after making changes to inted.conf?. 86

121.     How to turn off IP forwarding in Solaris?. 87

122.     How to turn on IP forwarding in Solaris on specific interface?. 87

123.     How to stop nfs and sendmail on Solaris?. 87

124.     How to install new disk and mount it on Solaris?. 87

125.     How to extract tar content that has /net/... files on Solaris?. 88

126.     How to copy trees from one file system to another?. 88

127.     How to tar and gzip a tree to some location?. 88

128.     What is the difference between DER and BER encoding ?. 88

129.     How to remove comments line from an Ada program ?. 89

130.     How to disable and enable CDE on Linux?. 89

131.     How to find what search paths is set for gcc ?. 89

132.     How to use pax to tar files from IBM OS390 to ascii machine ?. 90

133.     How to use indent program ?. 90

134.     How to find information about RPC registered programs ?. 90

135.     How to rename files using sed from command line?. 90

136.     How to capture all commands and output of a session into a file?. 91

137.     How to remove a directory from being NFS mounted?. 91

138.     How to set the clock on HPUX?. 91

139.     How to print using enscript?. 91

140.     How to find the version of glibc on a Linux box?. 91

141.     How to change tcp/ip setting on Linux?. 93

142.     Why can't one use floating point math in Linux kernel?. 93

143.     How to add a new system call in Linux?. 94

144.     How to start NFS on Solaris?. 95

145.     How to find what is the device name for CDROM to mount on Linux?. 95

146.     How to find what web server is running on a web site?. 96

147.     How to download the main web page of a site from command line?. 96

148.     How to download Sun web page style sheet?. 97

149.     How to boot Solaris in 32 bit mode?. 97

150.     How to change the IP address of an interface on Linux?. 97

151.     How to find resolution and number of colors used by X?. 97

152.     How to find disk and terminal IO statistics on Solaris?. 97

153.     How to find/monitor system activity on Solaris?. 98

154.     How to find how much physical memory and monitor memory on Solaris?. 98

155.     apropos gives error /usr/share/man/windex: No such file or directory on Solaris, why?. 98

156.     On Linux, How to exit X to CLI and then back to X without killing X?. 98

157.     On Linux, How to switch between Xterms using keyboard ?. 98

158.     What files are used on Linux to setup network?. 99

159.     how to change color depth when starting gnome using GDM?. 101

160.     how to set an environment variable for a CGI?. 101

161.     how to start SAMBA automatically on Solaris?. 101

162.     What are Mimi types for known files?. 102

163.     How to do backup on Solaris?. 103

164.     How to find what scsi and ide devices connected to Solaris box?. 103

165.     How to add second IDE (or scsi) disk to a solaris box?. 104

166.     How to use GNOME and KDE on Solaris?. 104

167.     How to change between GNOME or KDE on linux?. 105

168.     What are the different key lengths used with different crypto algorithms?. 105

169.     How to find the list of native instruction sets executable on your Solairs box?. 105

170.     How does the Solaris linker find the libraries it needs?. 106

171.     How to analyze a core dump on solaris?. 106

172.     How to load kadb kernel debugger so that solaris jumps to it when it crashes?. 106

173.     How to find if Solaris booted in 32 or 64 bit mode?. 107

174.     How to compile for 64 or 32 bit Solaris using Sun Forte C compiler?. 107

175.     What are the data type sizes in 64 and 32 bit images for Solaris?. 107

176.     How to convert a static library to dynamic library on Solaris?. 109

177.     How to load a dynamic library of DLL into java?. 109

178.     How to use java programs in command lines using unix pipes?. 110

179.     I've installed Linux on disk, and now when I install windows, it won't boot from disk, why?  110

180.     How to start a command and logout from the terminal leaving the command running?. 110

181.     How to run cscope?. 110

182.     How to start CDE in solaris from console?. 111

183.     How to install PERL for windows?. 111

184.     How to change the resolution (and start X) using X server running under CYGWIN?. 112

185.     How to set HOME env variable when starting X under cygwin?. 112

186.     How to change emacs fonts under windows?. 113

187.     Clicking on a URL from inside email message in outlook express does not work after uninstalling mozilla on windows, why?. 114

188.     How to view a dvi?. 115

189.     How to create a debian package from source?. 115

190.     How to find what DLL's are missing from a WINE application on linux?. 116

191.     How to install windows registery file into WINE on linux?. 116

192.     How to find the version of X installed?. 116

193.     How to close X in cygwin?. 116

194.     How to starts X with different dpi values?. 116

195.     Where does the outlook express email folder hides in widows?. 117

196.     How to import outlook express messages in a .dbx file from different location?. 117

197.     Dennis Ritchie URL's. 119

198.     How to connect linux and win2k using SAMBA?. 120

199.     What is the C code for a typical server loop?. 121

200.     How to Compile and Link OpenGL Applications?. 121

201.     How to use RPC with a firewall?. 122

202.     How to convert video tapes to digital to store on a PC?. 123

203.     MBR?. 125

204.     How to write a pixel (and line) to the screen?. 126

205.     How to access CVS anonymous? (for java giat tree, gjt) ?. 128

206.     On pathnames on different OS's. 129

207.     How to change X resolution in linux by chaging XF86Config?. 131

208.     How to covert byte to int in Java without expansion?. 132

209.     How to setup a signal handler in C?. 132

210.     How big are java classes?. 133

211.     Where are the java FAQ's ?. 134

212.     What is the command to list symbols in an exec of shared lib on solari?. 134

213.     What are some usefull escape sequences in C (to make alerts and others)?. 135

214.     How to find values of shared memory info in Solaris?. 135

215.     How to find interface speed on solaris?. 135

216.     How to change X resolution on solaris?. 136

217.     How to dump an image (executable) on solaris?. 136

218.     How to dump the symbol table of an executable?. 136

219.     How to show line numbers in vi?. 137

220.     How to read UNICODE from file?. 137

221.     How to convert UNICODE to ANSI in windows and vis versa?. 137

222.     what is UNICODE?. 137

223.     how to create a character device on linux?. 139

224.     How to convert man pages to HTML?. 139

225.     What are the conversion programs, how to convert from one file to another?. 140

226.     How to use rsh with the same environment on each host?. 141

227.     How to list files contained in a Solaris package?. 142

228.     How to find which package a file belong to? Solaris package. 142

229.     How to examine shared memory on linux?. 142

230.     RPC for linux?. 142

231.     How to turn on the openboot diagnostics during the boot process for Solaris/Sparc?. 142

232.     I've installed new device on Solaris sparc, but it does not see it, why?. 143

233.     Which file systems are mounted always at boot time in Solaris/sparc?. 143

234.     How to recover corrupted tar file?. 143

235.     What are some big java applications?. 144

236.     How to get version of sw in linux kernel?. 145

237.     How to write to CD on Unix/Linux?. 145

238.     How to use XCOPY on DOS to copy files?. 146

239.     How to output an integer with worrying about its size. 146

240.     Where to get some free application servers?. 146

241.     How to use stream IO in Ada?. 147

242.     How to make emacs use LF for line termination (Unix style) on windows?. 148

243.     How to set the editor mode for the shell on Unix?. 148

244.     Hints for ftp security?. 148

245.     What is the difference between MPEG and JPEG?. 150

246.     How to call fortran from Ada?. 150

247.     How to use gdb to look at linux kernel image, debugging linux kernel?. 152

248.     What is NIS and what is it used for?. 153

249.     What is DNS and what is it used for?. 153

250.     How to use Java in Makefiles under cygwin using windows JDK, classpath problems?. 153

251.     How to find if a connection exist with some host?. 153

252.     Why is ifconfig -a showing a different netmask than what is in /etc/netmasks?. 154

253.     How does Solaris find the nis server (for use by yp commands)?. 156

254.     Where are bookmark folder kept with IE browser?. 156

255.     Where does Netscape 7 keeps the email?. 156

256.     How to view postscript files on windows?. 156

257.     How to Convert a document to PDF on windows? (such as Mathematica note book?) 157

3.     Latex  HOW TO.. 158

258.     how to configure latex on cygwin?. 158

259.     How to put a box around verbatim?. 158

260.     notes on setting paper size in latex and dvips. 159

261.     How to make latex2html (version 2000) not use absolute path for images?. 160

262.     How to generate PDF from Latex?. 161

263.     How to install latex2html under windows?. 163

264.     How to configure latex2html to run on cygwin. 168

265.     I am getting error unable to find html.sty when running Latex, how to fix?. 173

266.     How to install/use Latex2html on Solaris?. 173

267.     How to use specific font in latex?. 173

268.     From where to download latex packages? where is CTAN?. 174

269.     How to use HTML links in latex?. 174

270.     how make text bold, italic?. 174

271.     how to insert index?. 174

272.     how to make table?. 175

273.     How to put spaces between letters?. 175

274.     How to find mismatched paranthesis in latex, is lint for latex?. 176

275.     How to display a PDF file using ghostscipt?. 176

276.     How can I indent the first line after a section heading?. 177

277.     How not to print page number on a title page?. 177

278.     How to reduce space between enumeration list lines?. 177

279.     How to change fonts in scientific word?. 177

280.     How to fix paragraph spacing in SW?. 178

281.     What commands to add to SW in preamble to make it look better?. 178

282.     What commands in SW to make title show up when previewing?. 178

283.     How to include graphics in latex for best PDF output?. 178

284.     How to convert ps to pdf?. 180

285.     Why I get error tcilatex file not found when compiling tex document?. 180

286.     How do I know which packages needed for which special Math symbols?. 180

287.     Why there is no vertical spacing added automatically between paragphs?. 181

288.     How to install Cygwin?. 181

289.     How to use latex2html?. 181

290.     How to put things side-by-side in latex?. 182

291.     How to make sure VISIO eps output ok for latex?. 182

4.     VI 183

292.     VI commands. 183

293.     Another VI reference. 187

5.     MATLAB.. 192

294.     How to put single quote in matlab string?. 192

295.     How to print structure field names in matlab (not the values)?. 192

296.     How to close all figures in matlab?. 193

297.     How to clear all workspace variables ?. 194

298.     roundeven?. 194

299.     netlib, where to get?. 195

300.     speed tricks in matlab?. 195

301.     Plotting tricks in matlab?. 196

302.     How to pass arguments to matlab from command line?. 196

303.     How to generate noise signal in matlab?. 198

304.     Using mean, variance, and standard deviation