Linux: Difference between revisions

From esoterum.org
Jump to navigationJump to search
NoThing (talk | contribs)
domeleltolo
 
(124 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://dongkarpinski.ifrance.com/small/ortopad-master.html ortopad master aid] [http://adelagreco.ugu.pl/u-turn-jennifer.html u turn jennifer lopez] [http://joygobert.ifrance.com/articles/widget.html widget] [http://usmd-hospital.panterra.in/ usmd hospital] [http://samelladykema.ifrance.com/articles/spanish-vocabulary.html bilingual card modern spanish vocabulary] [http://jerricakohn.ifrance.com/new/mike-douglass.html mike douglass] [http://preciousstahl.ifrance.com/association-com.html association com realtor sandicor] [http://www.dougoros.mystarship.com/ www] [http://wild-boys.pappas.in/ wild boys] [http://mitglied.lycos.de/fagriesi//content/west-glen-town.html west glen town center west des moines] [http://mitglied.lycos.de/altuey//bourse-cours.html cours bourse] [http://danilledelph.ifrance.com/longest-lasting.html longest lasting gum flavor] [http://isabelhsu.ifrance.com/text/poll-sex-survey.html poll sex survey] [http://franciscageis.pop3.ru/human-skin.html human irritation skin] [http://cicciolina-movies.panterra.in/ cicciolina movies] [http://adelagreco.ugu.pl/printing-passport.html passport photo printing] [http://advanced-flash.waunakee.in/ advanced flash button tutorial] [http://cindisavoie.ifrance.com/articles/perennial-flowers.html perennial flowers] [http://wisconsin-dnr.capucine.in/ wisconsin dnr] [http://how-to-masturbation.explisit.in/ how to masturbation] [http://chiekolinneman.ide.am/blog/photoclub.html photoclub] [http://lisettezeiger.pop3.ru/comments/owens.html owens illinois] [http://xbms-server.britzka.in/ xbms server] [http://samelladykema.ifrance.com/articles/monavie.html monavie] [http://survivor-message.mainland.in/ survivor message board] [http://preciousstahl.ifrance.com/steele.html steele] [http://delphiaho.freehostia.com/cheat-o-matic.html cheat-o-matic] [http://raelenemauney.ifrance.com/topic/oconee-memorial.html oconee memorial park] [http://cartoon-dolls.kamahi.in/ cartoon dolls maker] [http://franciscageis.pop3.ru/size-of-planets.html size of each planet] [http://john-irving-title.kamahi.in/ john irving title character] [http://menards-garage.25teabags.in/ menards garage package] [http://danilledelph.ifrance.com/vente-de-maison.html vente de maison outaouais] [http://leap-pad-case.holily.in/ leap pad case] [http://aim-bowling.waunakee.in/ aim bowling buddy icon soup] [http://dongkarpinski.ifrance.com/small/dial-up-internet.html dial internet phone service up voip] [http://cindisavoie.ifrance.com/articles/ibo-people-nigeria.html ibo people nigeria] [http://oven-roaster.take-you.in/ oven roaster] [http://danilledelph.ifrance.com/hi-tech-credit.html hi tech credit card wallet] [http://delphiaho.freehostia.com/foto-ballerine.html foto ballerine] [http://rocioslez.freehostia.com/description/ecosmartshop.html ecosmartshop] [http://mr-chew.kamahi.in/ mr chew] [http://www.varulven.cz28.com/ domain] [http://melodidail.iespana.es/wiki/cow-pictures.html picture of holstein cow] [http://gideon.lufberry.in/ gideon] [http://adriennedeverea.ifrance.com/wiki/spoon-river.html spoon river speedway] [http://cindisavoie.ifrance.com/articles/val-garland.html val garland makeup] [http://shereehildebran.ide.am/blog/tonkinese-cats.html tonkinese cats] [http://web-hosting-service.britzka.in/ web hosting service] [http://sherajoy.iespana.es/alabama-department.html alabama department of revenue] [http://cindisavoie.ifrance.com/articles/art-design-drawing.html art design drawing fashion work] [http://djstarsky.jouwpagina.nl/ page] [http://manymori.ifrance.com/how-old-is-jamie.html how old is jamie spears] [http://helenenoah.pop3.ru/data/alaskan-fishing.html alaskan fishing adventures] [http://chanellfeinberg.ide.am/directory/lost-in-paradise.html lost in paradise movie] [http://homes-for-sale.saltbox.in/ homes for sale tennessee] [http://rdu-airline.explisit.in/ rdu airline] [http://www.ytdfkzirf.freehosting.net/ sitemap] [http://delphiney.freehostia.com/capo-d-orlando.html capo d orlando fiera] [http://dear.explisit.in/ dear] [http://samelladykema.ifrance.com/articles/cartoon-animation.html cartoon animation] [http://joygobert.ifrance.com/articles/erica-jong-quote.html erica jong quote] [http://delanaflack.ugu.pl/genevieve-michelle.html genevieve michelle] [http://oziecompton.iespana.es/star-spangled.html star spangled banner] [http://samelladykema.ifrance.com/articles/tide-chart-san.html tide chart san francisco] [http://keikoreep.ifrance.com/outlaw.html outlaw] [http://joe-music-public.take-you.in/ joe music public video] [http://rebeccamikesell.iespana.es/library/party-chicks.html party chicks] [http://fly-rods.capucine.in/ fly rods] [http://juliennebaines.ifrance.com/pin-the-tail.html pin the tail on] [http://real-estate-boise.25teabags.in/ real estate boise] [http://lisettezeiger.pop3.ru/comments/busty-blondes-lesbian.html busty blondes lesbian] [http://preciousstahl.ifrance.com/it-jiggy-lyric.html it jiggy lyric] [http://cleopatrarollis.ifrance.com/lee-marvin.html lee marvin] [http://marshallmcnemar.ifrance.com/pages/wnep.html wnep 16] [http://teletype-gps.diglot.in/ teletype gps 16 channel bluetooth gps] [http://mitglied.lycos.de/altuey//microsoft-access.html microsoft access xml export] [http://high-temperature.mainland.in/ high temperature sleeving] [http://360-degree.kamahi.in/ 360 degree] [http://jerricakohn.ifrance.com/new/harry-potter.html harry potter 4 trailer] [http://vespa.25teabags.in/ vespa] [http://www.niconova.00go.com/ domain] [http://submersible-well.explisit.in/ submersible well water pump] [http://rocioslez.freehostia.com/description/soul-boy.html soul boy] [http://used-electric.25teabags.in/ used electric ranges] [http://melodidail.iespana.es/wiki/elysian-fields.html elysian fields] [http://rocioslez.freehostia.com/description/telegramma-online.html telegramma online] [http://rebeccamikesell.iespana.es/library/hilton-head-house.html hilton head beach house] [http://interior-designer.diglot.in/ interior designer boston] [http://delphiney.freehostia.com/vertical-stand.html vertical stand] [http://juliennebaines.ifrance.com/arai-visor.html arai visor] [http://rocioslez.freehostia.com/description/dimage-xt.html dimage xt] [http://isabelhsu.ifrance.com/text/pinay-girls.html pinay girls] [http://dongkarpinski.ifrance.com/small/drumming.html drumming lesson] [http://wanoutlaw.ugu.pl/web/ghost-recon-2-cheats.html 2 cheat ghost ps2 recon] [http://the-gift-of-faith.take-you.in/ the gift of faith] [http://melodidail.iespana.es/wiki/measurements.html measurements of the small intestine] [http://marshallmcnemar.ifrance.com/pages/vintage-porn-gallery.html vintage porn gallery vintage sex] [http://rocioslez.freehostia.com/description/film-polar-espress.html film polar espress] [http://samelladykema.ifrance.com/articles/daihatsu.html daihatsu terios] [http://shereehildebran.ide.am/blog/the-millionaire.html the millionaire real estate agent business plan] [http://cindisavoie.ifrance.com/articles/sistemas-contra.html sistemas contra incendios] [http://wanoutlaw.ugu.pl/web/statistics-about.html child and divorce statistics] [http://georginagoo.ugu.pl/styles/2-unlimited.html 2 twilight unlimited zone] [http://britney-spears.kamahi.in/ britney spears pink see through shirt] [http://www.mituista.00server.com/ url] [http://once-upon-a-time.saltbox.in/ once upon a time when i was colored] [http://rosenabloss.iespana.es/heiroglyphics.html heiroglyphics] [http://manymori.ifrance.com/joe-doerksen-vs.html joe doerksen vs chris leben] [http://jacintado.freehostia.com/sfondi-marini.html sfondi marini] [http://pinochle-meld-points.waunakee.in/ pinochle meld points] [http://rocioslez.freehostia.com/description/john-lennon-collection.html john lennon collection] [http://ilonabiehl.ugu.pl/blog/military-draft.html military draft] [http://dongkarpinski.ifrance.com/small/trouble-shoot.html trouble shoot pcr] [http://sadedurant.ifrance.com/irish-ferry.html irish ferry holidays] [http://rocioslez.freehostia.com/description/bielle-della.html bielle della polini] [http://samelladykema.ifrance.com/articles/wooden-punishment.html wooden punishment pony] [http://joygobert.ifrance.com/articles/zemanova-jpg.html zemanova jpg] [http://jerricakohn.ifrance.com/new/scottsdale-golf.html scottsdale golf community] [http://japanese-animated.holily.in/ japanese animated cartoons] [http://purple-orchid.explisit.in/ purple orchid tree] [http://adelagreco.ugu.pl/wwwcircuitcitycom.html www.circuitcity.com] [http://isabelhsu.ifrance.com/text/edmonton-totem-outfitters.html edmonton totem outfitters] [http://danilledelph.ifrance.com/william-buehler.html william buehler] [http://www.heartxstitches.msgserver.net/ url] [http://georginagoo.ugu.pl/styles/index-of-indian.html index of indian girl] [http://isabelhsu.ifrance.com/text/horse-art.html horse art] [http://melodidail.iespana.es/wiki/quick-funny-halloween.html quick funny halloween costumes] [http://jerricakohn.ifrance.com/new/which-computer.html which computer operating system review] [http://rise-of-nation.capucine.in/ rise of nation cheat code] [http://carolynesalcedo.ifrance.com/angelina-jolie.html angelina jolie naked free] [http://chaneltiffany.ide.am/html/satellite-phone.html satellite phone] [http://delanaflack.ugu.pl/chicago-cubs.html chicago cubs photos] [http://www.pesicola123.freewebtools.com/ website] [http://brandy-norwood.leonis.in/ brandy norwood] [http://preciousstahl.ifrance.com/college-upskirt.html college upskirt sluts] [http://adelinazehr.pop3.ru/lib/sports-radio.html sports radio boston ma] [http://jongharney.ifrance.com/small/art-school.html art clip school] [http://deettatimko.pop3.ru/blog/mcmillin-companies.html mcmillin companies llc] [http://samelladykema.ifrance.com/articles/a-common-ground.html a common ground danbury] [http://rocioslez.freehostia.com/description/dv-gr-d239.html dv gr-d239] [http://multiple-myeloma.mainland.in/ multiple myeloma] [http://rocioslez.freehostia.com/description/schumann-sonnenschein.html schumann sonnenschein] [http://jerricakohn.ifrance.com/new/pokemon-fire-red.html pokemon fire red cheats] [http://joygobert.ifrance.com/articles/diaper-pin.html adult diaper pin] [http://delanaflack.ugu.pl/enabling-snmp.html enabling snmp in freebsd] [http://adelagreco.ugu.pl/bikini-pool.html bikini girl party pool] [http://preciousstahl.ifrance.com/el-high-in-paso.html el high in paso school texas] [http://tcu.kamahi.in/ tcu] [http://infiterra.britzka.in/ infiterra] [http://jilldaughter.ide.am/article/urine-test.html urine test] [http://bike-tours.panterra.in/ bike tours] [http://dannetteschauer.pop3.ru/q/see-my-wife.html see my wife fuck] [http://keenasnapp.pop3.ru/hockey-hall-of.html fame hall hockey] [http://uoa-loop.britzka.in/ uoa loop] [http://lexmark-printer.kamahi.in/ lexmark printer ink] [http://keikoreep.ifrance.com/tesora.html tesora] [http://juliennebaines.ifrance.com/bissell.html bissell flip it] [http://chasityneblett.ifrance.com/text/infant-toys-mobiles.html infant toys mobiles] [http://www.gwebspace.de/piplo/ website] [http://www.aryndhati.engineersb.com/ link] [http://jilldaughter.ide.am/article/free-xbox-360.html 360 box free radio x] [http://home.graffiti.net/kommersantid/ sitemap] [http://embarrass.capucine.in/ embarrass] [http://madrid-tourism.holily.in/ madrid tourism] [http://bravo.leonis.in/ bravo] [http://electricians-jobs.mainland.in/ electricians jobs in canada] [http://www.katiebunny.macvillage.net/ home] [http://marshallmcnemar.ifrance.com/pages/mix101.html mix101] [http://carolynesalcedo.ifrance.com/why-is-the-sky.html why is the sky blue] [http://john-cena-lyrics.mainland.in/ john cena lyrics] [http://ilonabiehl.ugu.pl/blog/peat-soil.html peat soil] [http://annamaetillman.iespana.es/wiki/pbsorg.html pbs.org lewis and clark] [http://rebeccamikesell.iespana.es/library/gwendolyn-brooks.html brook by cool gwendolyn real we] [http://production-managers.pappas.in/ production managers role] [http://ripley-derbyshire.explisit.in/ ripley derbyshire hotels] [http://emabassy-suites.lufberry.in/ emabassy suites chevy chase] [http://melodidail.iespana.es/wiki/2sd882.html 2sd882] [http://carynbernier.pop3.ru/interstate-electronics.html interstate electronics inc.] [http://louriemats.freehostia.com/lib/sennheiser-cuffie.html sennheiser cuffie hd 280] [http://delanaflack.ugu.pl/lydias-kitchen.html lydias kitchen website] [http://www.fotoyuk.mystarship.com/ sitemap] [http://beyblades.take-you.in/ beyblades] [http://melodidail.iespana.es/wiki/subliminal-orphans.html subliminal orphans] [http://helenenoah.pop3.ru/data/flush-mount-lighting.html flush mount lighting] [http://keikoreep.ifrance.com/long-service-awards.html long service awards] [http://lindsey-lohan-in.kamahi.in/ lindsey lohan in bathing suit] [http://delanaflack.ugu.pl/stanley-lunn.html stanley lunn] [http://louriemats.freehostia.com/lib/move-la-colita.html move la colita] [http://www.drunkenlawyer.goosemoose.com/ link] [http://www.almadelsilencio.techweenies.com/ page] [http://toilet-bowels.holily.in/ toilet bowels] [http://live-adult-cam.25teabags.in/ live adult cam chat] [http://electronic-board.leonis.in/ electronic board meeting] [http://samelladykema.ifrance.com/articles/aspartame-insulin.html aspartame insulin response] [http://sadedurant.ifrance.com/hummingbird.html humming bird depth finder] [http://listen-to-spanish.diglot.in/ listen to spanish guitar music] [http://cindisavoie.ifrance.com/articles/prince-harry-shirtless.html prince harry shirtless pictures] [http://dorothycluff.iespana.es/q/q-1012.html q 101.2] [http://joygobert.ifrance.com/articles/amateur-large.html amateur large boob]
== Fedora 9 ==
*[http://www.linuxforums.org/forum/red-hat-fedora-linux/129316-solved-no-sound-when-you-tube-contents-run-fedora-9-a.html Install flash sound support]: <code>yum install pulseaudio-libs libflashsupport</code>
*[http://www.linuxquestions.org/questions/fedora-35/boot-to-command-prompt-fedora-9-a-654830/ Boot to single user mode]
*[http://fedoraproject.org/wiki/JavaFAQ Java FAQ on the Fedora wiki]
*[http://www.thoughtpolice.co.uk/vmware/howto/fedora-9-vmware-tools-install.html Installing VMware tools]
*[http://www.mjmwired.net/resources/mjm-services-f9.html List of services and recommendations]
*[http://fedoraproject.org/wiki/Docs/CustomKernel Custom Kernel]
*[http://fedoraproject.org/wiki/Docs/CustomKernel Building kernel from source RPM]
*[http://linuxonps3.wordpress.com/2008/12/30/building-a-custom-kernel-for-ps3/ Building kernel for PS3]
 
== Fedora 7 ==
*[http://www.fedorafaq.org/basics/ Fedora FAQ]
*<code>su -</code> change to super user
Add user:
*<code>/sbin/adduser username</code>
*<code>passwd username</code>
Add user to sudo list:
*<code>echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers</code> Where 'loginname' is your user account. Use 'ALL=(ALL) NOPASSWD:ALL' if you don't want to require a password
Add user to existing group (precede with <code>su -</code>):  
*<code>usermod -G {groupname} {username}</code>
*<code>sudo chown -R new_owner:new_group folder</code> Recursively change owner and group of folder
*<code>init [number]</code> set runmode number (5=graphical, 3=text, 1=single user)
*<code>[ctl][alt][F1]</code> switch to text mode
*<code>[ctl][alt][F7]</code> switch to graphical mode
 
 
=== KDE ===
*<code>startkde</code> start KDE (from ssh)
*Added <code>xset r off</code> to <code>.bashrc</code> hopefully fixing annoying problem with unwanted repeating characters when using VNC based on [http://bugs.kde.org/show_bug.cgi?id=55691 this conversation].
*Attempted to set up remote desktop sharing through ssh, so far not really working:
:% <code>krfb</code>
:% <code>vncviewer localhost:5900
:-Added XTEST(X11R6) to Exceed Xconfig under X Server Protocol, Extensions Tab
 
== CygWin ==
== CygWin ==
*Installing minicom on cygwin:
*Installing minicom on cygwin:
Line 17: Line 50:
*[http://www.cs.utah.edu/dept/old/texinfo/ GNU manuals from University of Utah]
*[http://www.cs.utah.edu/dept/old/texinfo/ GNU manuals from University of Utah]


=== Commands ===
 
 
=== Command Line ===
*[http://linuxgazette.net/issue38/tag/6.html Getting host and user names], host name
*[http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/s1-init-boot-shutdown-init.html init and runlevels]
*[http://www.perpetualpc.net/srtd_commands_rev.html Common Linux commands]
*[http://www.perpetualpc.net/srtd_commands_rev.html Common Linux commands]
*[http://www.computerhope.com/unix/overview.htm Common Linux commands]
*[http://www.computerhope.com/unix/overview.htm Common Linux commands]
*[http://linux.deadgod.net/2007/01/01/Special_Bash_Variables_I <code>history</code>]
*count lines of code in a directory http://vision-media.ca/resources/unix/counting-lines-in-a-script
:<code>find . -type f | xargs wc -l</code>
:<code>find . -type f -name '*.c' | xargs wc -l</code> specific file type
*<code>mount -o loop disk1.iso [/directory]</code> Mount an .iso file
*To get information on the server/computer:
:<code>cat /proc/cpuinfo</code>
:<code>cat /proc/meminfo</code>
:<code>dmesg</code>
:<code>lspci</code> (list pci devices)
:<code>df</code> (hard drive information)
:<code>du -k /home/ | sort -n | tail -10</code> [http://recursive-design.com/blog/2007/02/06/find-large-folders/ find 10 largest folders in specified directory]


*<code>id</code> get my UID
*<code>pkill -U [UID]</code> Logoff user "UID"
*<code>pgrep</code> looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout.
*<code>ifconfig</code> network/ip information | <code>/sbin/ifconfig</code> if not root
*<code>sysctl kernel.hostname=NEW_HOSTNAME</code> to permanantly change hostname
*<code>service network restart</code> restart network services
*<code>find . -name "rc.conf" -print</code>
*<code>xhost +[server name, i.e. vlsi]</code> (give permission to remote server to use local display)
*<code>setenv DISPLAY=###.###.###.###:0.0</code> (set DISPLAY variable to local ip address)
*<code>cat /var/log/messages |grep ***</code> (Search system messages for specific word)
*<code>cat /var/log/messages |grep ***</code> (Search system messages for specific word)
*<code>service xinetd restart</code> (Restart xinetd server)
*<code>service xinetd restart</code> (Restart xinetd server)
Line 27: Line 85:
*<code>ps</code> (processes)
*<code>ps</code> (processes)
*<code>top</code> (processes dynamic list)
*<code>top</code> (processes dynamic list)
*<code> cat /proc/cpuinfo (host information)
:cat /proc/meminfo
:dmesg
:lspci </code>
*<code>strace ./ldecod.exe -e trace=gmon.out</code> Debugging: print system calls made by ldecod.exe during execution
*<code>strace ./ldecod.exe -e trace=gmon.out</code> Debugging: print system calls made by ldecod.exe during execution
*<code>md5sum [filename]</code> Generate md5 hash of [filename]
*<code>ar -s</code> or <code>ranlib</code> add index to archive (.a) file
=== Software ===
*[http://cloc.sourceforge.net/ cloc]: utility for counting lines of code
*meld: compare and merge up to three files
*yay: yet another YUV viewer
:<code>%yay [-s <with>x<height>] <filename>.yuv</code>
*mpeg4ip tools: toolbox for mp4, avi, mov, etc. (!!! Could only find executables for Windows !!!)
:<code>%mp4info.exe [file.mp4]</code>
:<code>%mp4creator -extract=1 file.avi file.264</code> (extract track number based on info given by <code>mp4info.exe</code>
*gprof: gnu profiling software
:<code>%gprof [executable] gmon.out > [gprof.out]</code>
:<code>gmon.out</code> is generated by compiling target executable with -pg as a compiler and linker flag, then running the resulting executable normally
*[http://mvertes.free.fr/cgprof/cgprof.html cgprof]: generate call-graph based on gprof data
:<code>cgprof -T ps -g [gprof.out] [gprof.ps]</code> (output postscript file)
*Converting postscript to other format.
:-Use Windows GhostScript->convert to generate a .tif (600dpi) or .pdf (720dpi) or one of several other formats
:-For poster size images generate .pdf with GhostScript and open with PaintShop Pro using high dpi value, then save as .tif or other file and print with MS Publisher as poster
*<code>[http://www.gson.org/egypt/egypt.html egypt]</code> Create call graph from gcc's rtl dump
*<code>links</code> text based browser
=== Drivers ===
*[http://www.freesoftwaremagazine.com/articles/drivers_linux Short tutorial on writing drivers in linux]
== Networking ==
*[http://tdistler.com/2008/10/14/setting-the-dhcp-hostname-on-linux How to set dhcp hostname in linux]
*[https://www4.nau.edu/its/pcsupport/network/dhcp/winxp.aspx Set dhcp hostname in windows xp]
*[http://iptables-tutorial.frozentux.net/iptables-tutorial.html Very thorough tutorial on TCP/IP and iptables], Oskar Andreasson
== Utilities ==
=== yum ===
*[http://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-skype-on-fedora-12-a-832589/ Set up yum repository for skype]
=== bluefish ===
*[http://bluefish.openoffice.nl/ Home at openoffice], bluefish is
:*Bluefish is a powerful editor targeted towards programmers and webdesigners, with many options to write websites, scripts and programming code.
=== cron ===
*[http://www.snow.nl/dist/xhtmlc/ch13s07.html crontab information], editing cron's tasks
=== tar/bzip ===
*<code>bzip2 -cd files.tar.bz2 | tar xvf -</code> Bzip
*<code>bzip2 -cd files.tar.bz2 | tar xvf -</code> Bzip
*<code>tar -cf ouput.tar folder</code> Tar a folder
*<code>tar -cf ouput.tar folder</code> Tar a folder
Line 37: Line 133:
*<code>tar -xzvf input.tar.gz</code> Untar and unzip a tar-ball
*<code>tar -xzvf input.tar.gz</code> Untar and unzip a tar-ball


=== Drivers ===
=== poster ===
*[http://www.freesoftwaremagazine.com/articles/drivers_linux Short tutorial on writing drivers in linux]
*[http://www.inkguides.com/eps-postscript-poster.asp poster], create multipage postscript files from postscript input
 
=== gdb ===
*>[http://www.cs.utah.edu/dept/old/texinfo/gdb/gdbint.html GDB Internals from U Utah]
*[http://darkdust.net/files/GDB%20Cheat%20Sheet.pdf cheat sheet]
*[http://www.eecs.harvard.edu/~mdw/course/cs161/handouts/gdb.html Quick reference from Harvard]
*<code>x/16w $sp</code> display 16 words starting at address of stack pointer
*<code>display/x {long long int}__ovly_current</code> after every halt display contents of address __ovly_current as long long int in hexidecimal format
*<code>set spu stop-on-load on</code> set temporary breakpoint upon entry to spu code in ppu-gdb
 
=== find ===
*[http://ss64.com/bash/find.html#examples find examples]
=== [http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-command-line/ Mail] ===
 
=== [http://ccrma.stanford.edu/planetccrma/man/man1/avr-nm.1.html nm] ===
*<code>nm --size-sort *.o </code>><code> function_sizes.nm</code> report sizes of all functions in given object files
 
=== Virtual Network Computing (VNC) Server ===
*[http://en.wikipedia.org/wiki/VNC VNC on Wikipedia]
*[http://www.freebsddiary.org/tightvnc.php TightVNC information]
*<code>vncserver :1 -geometry 1880x1160</code>
*<code>vncviewer localhost:#</code> over ssh
*<code>/etc/sysconfig/vncservers</code>
*<code>/sbin/service vncserver restart</code>
*<code>vncserver -kill :1</code>
 
=== grep ===
*<code>grep -lir "[text]"</code> find file containing
#<code>find . | xargs grep whatever</code> recursively find text starting from .
 
=== xev ===
*Track interface signals such as key presses and mouse movement


=== Bootloader ===
=== Bootloader ===
Line 51: Line 178:
*[http://handhelds.org/moin/moin.cgi/UsbNet Setting up usbnet (Fedora Core 4)]
*[http://handhelds.org/moin/moin.cgi/UsbNet Setting up usbnet (Fedora Core 4)]
*[http://handhelds.org/moin/moin.cgi/WindowsXpUsbNetworkHowTo usbnet for Windows]
*[http://handhelds.org/moin/moin.cgi/WindowsXpUsbNetworkHowTo usbnet for Windows]
=== public key authentication ===
*[http://blogs.sun.com/jkini/entry/how_to_scp_scp_and How to set up public/private key to perform file transfers without providing password every time]
=== scp ===
*[http://community.activestate.com/forum-topic/svn-ssh-mac-os-x-and-password-prompts Information on ssh-agent for public key authentication]
=== rsync ===
*[http://www.linux.com/feature/113847 Making secure remote backups with Rsync]
*<code>rsync -avz -e ssh ~/source/ user@host:~/destination/</code>
=== sed ===
*[http://www.grymoire.com/Unix/Sed.html Tutorial]
*[http://www.moxleystratton.com/articles/rename-files-bash File renaming]:
:<code>ls *old|sed 's/\(.*\)\.old/mv \1.old  \1.new/'|sh</code>


=== TFTP ===
=== TFTP ===
*[http://www.livibetter.com/blog/2007/06/14/installing-tftp-on-fedora/ Installing tftp on Fedora 6]
*[http://www.livibetter.com/blog/2007/06/14/installing-tftp-on-fedora/ Installing tftp on Fedora 6]
*[http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd tftp instructions]
*[http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd tftp instructions]
=== [[Fedora Red Hat Enterprise Linux]] (RHEL) ===
*[http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo Create bootable USB drive using Fedora script]
*[http://www.livibetter.com/blog/2007/06/14/installing-tftp-on-fedora/ Installing tftp on Fedora]
*[http://fr.rpmfind.net/linux/RPM/Dag_Apt_Repository_for_Fedora_Core_1.html Fedora Core 1 Repository]
*[http://www.redhat.com/docs/manuals/linux/RHL-7-Manual/ref-guide/s1-rpm-using.html Using rpm]


=== Compilers ===
=== Compilers ===
*[ftp://download.intel.com/software/products/opensource/downloads/howto0_.pdf Cross compiler for Arm information]
*[ftp://download.intel.com/software/products/opensource/downloads/howto0_.pdf Cross compiler for Arm information]
*[http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/build-arm-linux-3.4.4 How to build arm-linux toolchain for ARM/XSCALE]
*[http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/build-arm-linux-3.4.4 How to build arm-linux toolchain for ARM/XSCALE]
==== gcc ====
*[http://en.wikibooks.org/wiki/GNU_C_Compiler_Internals/Print_version Online book: GNU C Compiler Internals]
*[http://www.cse.iitb.ac.in/~uday/courses/cs324-05/gccProjects/node4.html Dumping intermediate formats]
*[http://books.google.com/books?id=wQ6r3UTivJgC&pg=PA361&lpg=PA361&dq=gcc+cfg+dump&source=bl&ots=EJXjOn5xJz&sig=pEm_-EYsj-aBgRFrO_q8JFyr1IU&hl=en&ei=XASFSpqFN4PwsQP99sWVBw&sa=X&oi=book_result&ct=result&resnum=4#v=onepage&q=gcc%20cfg%20dump&f=false ''The Difinitive Guide to GCC'']
*[http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Optimize-Options.html gcc flags]
*[http://blog.flameeyes.eu/2008/01/17/today-how-to-identify-unused-exported-functions-and-variables Information on -Wl,--gc-sections linker option]
==== XLC ====
*[http://www-01.ibm.com/software/awdtools/xlcpp/multicore/library/ XLC references]


=== Make ===
=== Make ===
*>>[http://www.gnu.org/software/automake/manual/make/Functions.html Make functions], string manipulation etc.
*[http://sourceforge.net/projects/gcmakefile/ generic makefile on sourceforge], text [http://www.esoterum.org/mw/images/4/4c/Makefile.txt here]
*[http://www.gnu.org/software/make/manual/make.html Make manual]
*[http://www.gnu.org/software/make/manual/make.html Make manual]
*[http://makepp.sourceforge.net/1.19/makepp_statements.html Various Make statements]
*[http://www.cprogramming.com/tutorial/makefiles_continued.html Advanced Makefile reference]
== [[Fedora Red Hat Enterprise Linux]] (RHEL) ==
*[http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo Create bootable USB drive using Fedora script]
*[http://www.livibetter.com/blog/2007/06/14/installing-tftp-on-fedora/ Installing tftp on Fedora]
*[http://fr.rpmfind.net/linux/RPM/Dag_Apt_Repository_for_Fedora_Core_1.html Fedora Core 1 Repository]
*[http://www.redhat.com/docs/manuals/linux/RHL-7-Manual/ref-guide/s1-rpm-using.html Using rpm]

Latest revision as of 02:55, 29 December 2010

Fedora 9

Fedora 7

Add user:

  • /sbin/adduser username
  • passwd username

Add user to sudo list:

  • echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers Where 'loginname' is your user account. Use 'ALL=(ALL) NOPASSWD:ALL' if you don't want to require a password

Add user to existing group (precede with su -):

  • usermod -G {groupname} {username}
  • sudo chown -R new_owner:new_group folder Recursively change owner and group of folder
  • init [number] set runmode number (5=graphical, 3=text, 1=single user)
  • [ctl][alt][F1] switch to text mode
  • [ctl][alt][F7] switch to graphical mode


KDE

  • startkde start KDE (from ssh)
  • Added xset r off to .bashrc hopefully fixing annoying problem with unwanted repeating characters when using VNC based on this conversation.
  • Attempted to set up remote desktop sharing through ssh, so far not really working:
% krfb
% vncviewer localhost:5900
-Added XTEST(X11R6) to Exceed Xconfig under X Server Protocol, Extensions Tab

CygWin

  • Installing minicom on cygwin:
  1. Add folder: /var/lock
  2. Move file minirc.dfl to /usr/local/etc
  3. Fix serial port /dev/ttyS1 -> /dev/com1 ???

Unix/Linux


Command Line

find . -type f | xargs wc -l
find . -type f -name '*.c' | xargs wc -l specific file type
  • mount -o loop disk1.iso [/directory] Mount an .iso file
  • To get information on the server/computer:
cat /proc/cpuinfo
cat /proc/meminfo
dmesg
lspci (list pci devices)
df (hard drive information)
du -k /home/ | sort -n | tail -10 find 10 largest folders in specified directory
  • id get my UID
  • pkill -U [UID] Logoff user "UID"
  • pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout.
  • ifconfig network/ip information | /sbin/ifconfig if not root
  • sysctl kernel.hostname=NEW_HOSTNAME to permanantly change hostname
  • service network restart restart network services
  • find . -name "rc.conf" -print
  • xhost +[server name, i.e. vlsi] (give permission to remote server to use local display)
  • setenv DISPLAY=###.###.###.###:0.0 (set DISPLAY variable to local ip address)
  • cat /var/log/messages |grep *** (Search system messages for specific word)
  • service xinetd restart (Restart xinetd server)
  • rpm -ivh foo-1.0-1.i386.rpm (Add a package with rpm)
  • rpm -e foo (Remove a package with rpm)
  • ps (processes)
  • top (processes dynamic list)
  • strace ./ldecod.exe -e trace=gmon.out Debugging: print system calls made by ldecod.exe during execution
  • md5sum [filename] Generate md5 hash of [filename]
  • ar -s or ranlib add index to archive (.a) file

Software

  • cloc: utility for counting lines of code
  • meld: compare and merge up to three files
  • yay: yet another YUV viewer
%yay [-s <with>x<height>] <filename>.yuv
  • mpeg4ip tools: toolbox for mp4, avi, mov, etc. (!!! Could only find executables for Windows !!!)
%mp4info.exe [file.mp4]
%mp4creator -extract=1 file.avi file.264 (extract track number based on info given by mp4info.exe
  • gprof: gnu profiling software
%gprof [executable] gmon.out > [gprof.out]
gmon.out is generated by compiling target executable with -pg as a compiler and linker flag, then running the resulting executable normally
  • cgprof: generate call-graph based on gprof data
cgprof -T ps -g [gprof.out] [gprof.ps] (output postscript file)
  • Converting postscript to other format.
-Use Windows GhostScript->convert to generate a .tif (600dpi) or .pdf (720dpi) or one of several other formats
-For poster size images generate .pdf with GhostScript and open with PaintShop Pro using high dpi value, then save as .tif or other file and print with MS Publisher as poster
  • egypt Create call graph from gcc's rtl dump
  • links text based browser

Drivers

Networking

Utilities

yum

bluefish

  • Bluefish is a powerful editor targeted towards programmers and webdesigners, with many options to write websites, scripts and programming code.

cron

tar/bzip

  • bzip2 -cd files.tar.bz2 | tar xvf - Bzip
  • tar -cf ouput.tar folder Tar a folder
  • tar -czvf output.tar.gz folder Tar and gzip a folder
  • tar -xzvf input.tar.gz Untar and unzip a tar-ball

poster

  • poster, create multipage postscript files from postscript input

gdb

  • >GDB Internals from U Utah
  • cheat sheet
  • Quick reference from Harvard
  • x/16w $sp display 16 words starting at address of stack pointer
  • display/x {long long int}__ovly_current after every halt display contents of address __ovly_current as long long int in hexidecimal format
  • set spu stop-on-load on set temporary breakpoint upon entry to spu code in ppu-gdb

find

Mail

nm

  • nm --size-sort *.o > function_sizes.nm report sizes of all functions in given object files

Virtual Network Computing (VNC) Server

grep

  • grep -lir "[text]" find file containing
  1. find . | xargs grep whatever recursively find text starting from .

xev

  • Track interface signals such as key presses and mouse movement

Bootloader

USBNET (USBDNET)

-BLOB requires cdc_subset module (# modprobe cdc_subset)
-apparently uhci-hcd is the usb 1.0 driver from linux 2.4

public key authentication

scp

rsync

sed

ls *old|sed 's/\(.*\)\.old/mv \1.old \1.new/'|sh

TFTP

Compilers

gcc

XLC

Make

Fedora Red Hat Enterprise Linux (RHEL)