Upgrade to Pro — share decks privately, control downloads, hide ads and more …

01219112 Intro to IT - Group 2: How to find har...

01219112 Intro to IT - Group 2: How to find hardware information in Linux based-OS

Manatsawin Hanmongkolchai

August 28, 2013
Tweet

Transcript

  1. What is Linux • An operating system kernel created by

    Linus Torvalds from Finland and later joined by programmers all over the world. • Completely Free and Open Source. Wednesday, September 4, 13
  2. Linux distributions • Linux distributions were created by combining the

    Linux kernel with other softwares and preconfigure it to be usable (almost) out of the box • Example of Linux distributions: • Ubuntu • Debian • Fedora • Red Hat (commercial, non-free) • openSUSE • In this room we use Ubuntu Wednesday, September 4, 13
  3. Ubuntu • Ubuntu was founded by Mark Shuttleworth and aim

    to be a user-friendly Linux. • Releases every 6 month, a LTS (for long term support) every 2 years • Based on Debian Wednesday, September 4, 13
  4. Let’s use the Terminal • The terminal emulator is a

    window to Linux’s most powerful interface: the Terminal • If you have a Mac, you can use it too but some commands may not be available To open the terminal, search for it using Spotlight. Wednesday, September 4, 13
  5. Basic command • cd - change directory • ls -

    list file (in curent directory) • pwd - print working directory • cp - copy file • mv - move file • cat - concatinate file and print it out Wednesday, September 4, 13
  6. Example • Suppose you have a file named “test”. (But

    right now you don’t, so type touch test and press enter) Wednesday, September 4, 13
  7. Example • Suppose you have a file named “test”. (But

    right now you don’t, so type touch test and press enter) • You want to copy your file to “test2” So, run cp test test2 Wednesday, September 4, 13
  8. More basic commands • mv also can be use to

    rename a file • touch - Create new empty file or update the file’s last modification date. • rm - remove file (NOT MOVE TO TRASH!) • wget - download file (you can think it as web get) • python - Yep, it is preinstalled on Ubuntu! Wednesday, September 4, 13
  9. Arguments • Most Linux commands accept arguments to modify the

    working of the program. For example: • cp -r: Make cp copy folders instead of ignoring it • rm -r: Make rm remove files in subfolders • You can combine arguments: rm -ri -r is for recursive, -i for interactive (ask before removing each file) Wednesday, September 4, 13
  10. Stuff you should try •cat /etc/shadow • You will find

    that you can’t. Some files in Linux are protected by permission. The shadow file store passwords of every users Wednesday, September 4, 13
  11. Stuff you should try •cat /etc/shadow • You will find

    that you can’t. Some files in Linux are protected by permission. The shadow file store passwords of every users •wget http://madoka.whs.in.th/ NXT.iso Wednesday, September 4, 13
  12. Stuff you should try •cat /etc/shadow • You will find

    that you can’t. Some files in Linux are protected by permission. The shadow file store passwords of every users •wget http://madoka.whs.in.th/ NXT.iso • You will download a file, try canceling it by pressing ctrl+c Wednesday, September 4, 13
  13. Stuff you should try •wget -c http://madoka.whs.in.th/ NXT.iso • -c

    is to continue downloading file. Try canceling again and rerun wget without -c Wednesday, September 4, 13
  14. Stuff you should try •wget -c http://madoka.whs.in.th/ NXT.iso • -c

    is to continue downloading file. Try canceling again and rerun wget without -c • rm NXT.iso after you use it Wednesday, September 4, 13
  15. Stuff you should try •wget -c http://madoka.whs.in.th/ NXT.iso • -c

    is to continue downloading file. Try canceling again and rerun wget without -c • rm NXT.iso after you use it • Try typing hashtags as commands like #SKE Wednesday, September 4, 13
  16. Stuff you should try •wget -c http://madoka.whs.in.th/ NXT.iso • -c

    is to continue downloading file. Try canceling again and rerun wget without -c • rm NXT.iso after you use it • Try typing hashtags as commands like #SKE • You will find that all hashtags are valid commands. This is because everything after # is a comment. Wednesday, September 4, 13
  17. Need help? • Ask the man! • Try this: man

    ls • Pictured is man for ls on the Mac, note that arguments for Mac and Linux version of ls are different. Wednesday, September 4, 13
  18. Don’t know the command? • Ask the man! • Try

    this: man -k list file • After -k type whatever you wanted. • Or just Google. Wednesday, September 4, 13
  19. Your computer • Linux use concept of “Everything is a

    file, if it a file it is a process.” • Everything in Linux is exposed in /proc and /sys • Try cat /proc/cpuinfo • Try it on your Android if you have Terminal emulator installed. Wednesday, September 4, 13
  20. One command to rule them all • Try this: sudo

    lshw (not available on the Mac :P) • If it ask for password, type the password you use to login. It won’t show **** when you type. Wednesday, September 4, 13
  21. CPU • One item for each CPU • Check whether

    it matches: • A minimum of quad core CPU with at least 3.1GHz clock speed and 3.9 GHz when using Turbo boost. With L3 cache at least 8 MB Wednesday, September 4, 13
  22. Memory • SDRAM-DDR3 Memory with minimum of 1600MHz bus speed

    at least 8GB and upgradable to at least 16GB of memory. Wednesday, September 4, 13
  23. Hard drive • SATA hard drive at least 500GB with

    7200 rpm speed or better. Wednesday, September 4, 13
  24. Ethernet • VGA, HDMI and RJ45 Network with speed of

    10/100/1000 Mbps at least one port per type. Wednesday, September 4, 13
  25. Card reader • Not installed in my VM, so no

    screenshot • A memory card reader and writer at least 8-in-1. Wednesday, September 4, 13
  26. Screen resolution • Meet Xorg: the display manager for Linux.

    • X work in a client-server model. You could do a X forwarding to run application on other computer and forward the screen to your computer as if it was running on your computer. • Try this: ssh -X yourfriendsip and type gedit. (Mac doesn’t use X, so you can’t do that. You need to install Xquartz first, still you have to ssh to a Linux machine as Mac apps doesn’t use X11) Wednesday, September 4, 13
  27. Getting resolution • Run this: xrandr Have Anti-Glare monitor larger

    than 23" add resolution larger than 1920 x 1080Pixels Wednesday, September 4, 13
  28. Monitor Size Measured by the diagonal lines. From one side

    to the other side, as shown above. Wednesday, September 4, 13
  29. One more thing • Do you have to use command

    line to use Linux? • No, but as you can see, all your information is just one line away. With graphical interface it is a bunch of clicks before getting each information. • I hope you guys and girls will learn and love command line whether you use Linux or Mac (or switch to one!) Wednesday, September 4, 13
  30. Group Member • 1. Worapon Olanwanitchakul 56105456290 • 2. Manatsawin

    Hanmongkolchai 5610545757 • 3. Nut Kaewnak 5610545676 • 4. Matikainen Juuso • 5. Patawat Watakul 5610545714 Thank you Wednesday, September 4, 13