Share
Embed
01219112 Intro to IT - Group 2: How to find hardware information in Linux based-OS
Manatsawin Hanmongkolchai
August 28, 2013
Transcript
42 slides
-
How to find the hardware information (Linux based OS) Wednesday,
September 4, 13 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Hard drive • SATA hard drive at least 500GB with
7200 rpm speed or better. Wednesday, September 4, 13 -
Ethernet • VGA, HDMI and RJ45 Network with speed of
10/100/1000 Mbps at least one port per type. Wednesday, September 4, 13 -
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 -
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 -
Getting resolution • Run this: xrandr Have Anti-Glare monitor larger
than 23" add resolution larger than 1920 x 1080Pixels Wednesday, September 4, 13 -
Monitor Size Measured by the diagonal lines. From one side
to the other side, as shown above. Wednesday, September 4, 13 -
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 -
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