/srv/irclogs.ubuntu.com/2012/01/15/#ubuntu-classroom.txt

=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu User Days - Current Session: Ubuntu Equivalents - Instructors: sagaci
ClassBotLogs for this session will be available at http://irclogs.ubuntu.com/2012/01/15/%23ubuntu-classroom.html following the conclusion of the session.00:00
sagaciHi, I'd like to welcome you to the Ubuntu Equivalents session00:01
sagaciand thanks to JoseeAntonioR for his session on Firefox00:01
sagaciThis session is all about applications that you can use on Ubuntu that you may commonly use on Windows or Mac00:02
sagaciif you have a question, please append QUESTION: at the start of your question so the ClassBot can pick it up :)00:03
sagacithis session is intended for people that are thinking of switching to Ubuntu, or have recently switched to Ubuntu and need to find applications to fit their needs00:04
sagaciand as such, I'll be running through some popular applications on Ubuntu00:05
sagacimost of these applications can be found and installed via the Ubuntu Software Centre00:05
sagaciI'll start off with the Browser00:06
sagaciOn Windows, you may be used to using Internet Explorer or on a Mac, Safari00:06
sagaciFirefox in the default browser in Ubuntu, and a good browser at that00:07
sagaciI won't go into too much detail with Firefox, since JoseeAntonioR pretty much covered it in the last session00:08
sagacibut for alternatives - there's Chrome and Chromium. Chrome is the browser developed by Google and has gained a significant portion of the market, due to its slick interface and ease-of-use00:09
sagaciChromium, by contrast, is the open-source browser that Chrome derives from00:09
sagacisince chromium is open-source, it is currently available in the Ubuntu Software Centre, but to get chrome, you'll have to look through https://www.google.com/chrome00:12
sagaciMicrosoft Office alternative...? LibreOffice!00:12
sagaciLibreOffice is a complete suite of commonly used applications, such as a word processor, spreadsheet and presentation organiser00:14
ClassBotarchie asked: Is there a simple intuitive equivalent to an image retouching program like "photofilte" for windows00:16
sagaciAlthough I'm not too well versed in image manipulation, I've found that tools such as Shotwell and Gimp have been able to carry out basic tasks, such as cropping and colour correction00:17
ClassBotarchie asked: Should i rather use Firefox or Chromium concerning security?00:17
sagaciIt's probably a question more towards JoseeAntonioR :)... but on both browsers, you should be able to install extension that limit damage of potential threats00:18
sagaciextensions*00:18
sagacithen again, a chunk of staying secure on the web relies on the user :)00:19
ClassBotbenonsoftware asked: This might or might not be releated but why did the default move from OpenOffice to LibreOffice?00:19
sagaciQuite a big question for this kind of session, but as I can tell, moving away or "forking" OpenOffice has made it much easier for the community and developers to actually contribute code to the office suite00:20
sagaciwhen using a dual boot system, or you're in a place that uses multiple operating systems - you should consider leaning toward applications that are cross-platform00:22
sagaciCross-platform means that the application will run on Ubuntu, Windows and MacOS00:22
sagacithis saves the need to constantly refocus your thinking onto "what Operating System am I using - oh, I'll have to use this application for that"00:23
sagacifor example, if you use firefox or chrome, they are easily installed on either environment, thus creating a more seamless experience00:23
ClassBotarchie asked: is there a filebrowser that comes up with a "tree"-view like windows explorer? I didn't find a nautilus extension.00:24
sagaciI'm not sure about Nautilus, but I've been using Xubuntu and Thunar (its file manager) and it does support tree view00:24
sagaciEmail client - Thunderbird00:25
sagacias of 11.10, Thunderbird is the default email client00:26
sagaciTB is cross platform, so it's another good reason to use it across your systems :)00:26
sagaciAudio player - Rhythmbox/Banshee00:28
sagaciOn Windows and MacOS, you're possibly used to using Windows Media Player or iTunes00:28
sagaciGood news, there's a bevvy of applications on Ubuntu dedicated to giving you your music :)00:29
sagacion the latest release of Ubuntu, the default audio player is Banshee, a slick media player capable of music playback, library view , podcast subscriptions, internet radio and more00:31
ClassBotMrChrisDruif asked: I don't own an iPod, but do Banshee and Rhythmbox support syncing to iPod's?00:31
sagaciUnfortunately it really depends on what generation of iPod you have00:31
sagaciI haven't owned an iPod for quite a while (mine was a 3rd Gen iPod nano) and back then, it was much easier to sync on Ubuntu than it was on Windows/iTunes :)00:32
sagacibest bet is to just try plugging it it :)00:32
ClassBotbenonsoftware asked: Does Banshee or Rhythmbox support activating iDevice's now?00:33
sagacias far as I know, you need a Windows install or Mac to activate iDevices - at least the latest generation00:34
ClassBotarchie asked: Does Ubuntu support widgets?00:34
sagaciarchie: have a look into the program Screenlets... although I don't use widgets on my Ubuntu 11.10 install, I remember playing around with them in the Intrepid and Jaunty days (2008-2009) and they were useful once you have them set up00:35
sagaciif I think of widgets, I generally think of KDE and its desktop, potentially full of shiny gadgets00:36
sagacion Video Player00:37
sagaciTotem Movie Player is the default movie playback application installed in Ubuntu00:38
sagaciIts minimal interface and its ability to play pretty much anything under the sun (that is, with restricted codecs installed), makes it a popular application among Ubuntu users00:39
sagacifor the sake of cross platform compatibility, you can also try VLC media player00:40
sagacior mplayer, if you prefer to use the command-line00:40
sagaciMrChrisDruif: also mentions Clementine, and I'd like to mention amarok for KDE audio playback00:43
sagaciFile Management00:44
sagaciIn Windows, you'll find Windows Explorer and on MacOS, it's Finder00:44
sagaciWelcome to Nautilus, the file manager we've all grown to love00:45
sagacion 11.04 and 11.10, you can access the file manager from the folder icon under the big ubuntu logo in the top of the Launcher00:45
sagacion 10.10 and 10.04 LTS, you can click on Places and then Home Folder to achieve the same effect00:46
sagacion Kubuntu, we have Dolphin or Konqueror, XFCE has Thunar and Lubuntu has pcmanfm00:46
sagacithese different applications serve the same purpose - to manage and manipulate files and folders but then main difference is their interface00:48
sagaciFile managers such as thunar and pcmanfm may be better suited for low-spec computers, taking up less memory00:49
sagacithese kinds of tools are quite useful for viewing files, making directories, moving/copying files over different drives and more00:50
ClassBotThere are 10 minutes remaining in the current session.00:50
sagacialthough not totally up to date, there's sites such as Linux Alt - http://www.linuxalt.com/ that list equivalent programs for Ubuntu/Linux00:52
sagaciif you are having trouble finding a specific application, you can try asking in the #ubuntu channel, asking people in your LoCo - http://loco.ubuntu.com (find your local team here)00:53
ClassBotThere are 5 minutes remaining in the current session.00:55
sagaciI've put together a wiki page - mostly based on cprofitt's User Day presentation in Jan 2010, on the alternatives available in a nice list - https://wiki.ubuntu.com/UserDays/14012012/Ubuntu%20Equivalent%20Programs00:57
sagacialso, in need of a solitaire/time-waster...?? Frozen-bubble is your friend :D00:59
sagacithanks and have a good day00:59
sagaciup next, benonsoftware00:59
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu User Days - Current Session: How to Get Involved with the Community - Instructors: benonsoftware
ClassBotLogs for this session will be available at http://irclogs.ubuntu.com/2012/01/15/%23ubuntu-classroom.html following the conclusion of the session.01:00
benonsoftwareHello and welcome to Getting Invloved in the Ubuntu Community01:00
benonsoftwareToday I'll tell you about some of the teams and how to get into them01:01
benonsoftwareFirst up at https://wiki.ubuntu.com/Teams there is a list of teams that you can join and help out with01:01
ClassBotsagaci asked: do I have to know how to program to get involved?01:02
benonsoftwareCertainly not!01:02
benonsoftwareThere are LoCo (http://loco.ubuntu.com)01:02
benonsoftwareteams that any one in the area can join01:03
benonsoftwareFor example I'm apart of the Ubuntu-Australian team and the only programming I know is websites :P01:03
benonsoftwareAnother team that a non-programmer can join in the Ubuntu Beginners Team01:04
benonsoftwarehttps://wiki.ubuntu.com/BeginnersTeam01:04
benonsoftwareThere IRC channels are #ubuntu-beginners (Support) and #ubuntu-beginners-team (For on topic)01:04
benonsoftwareIn UBT (Ubuntu Beginners Team) there are Focus Groups01:05
benonsoftwareat the moment there are the wiki focus group, bugs and programming/dev01:05
ClassBotraaa asked: What do teams do?01:06
benonsoftwareraaa: The teams do just about anything, for example the Bug Control group helps with bugs, the Lubuntu team helps with the Lubuntu distro01:06
benonsoftwareThe UBT team helps with helping new members of the Ubuntu Community01:07
benonsoftwareThere is a team that would suit just about anyone in the world01:07
benonsoftwareProgarmmers and non-programmer alike01:08
benonsoftwareFor example I started out with the Ubuntu Community in March/April writing the Team Reports for Ubuntu-Australia01:09
benonsoftwareBy the way if you would like to ask a question write it as QUESTION: This is a question in #ubuntu-classroom-chat01:10
benonsoftwareThere are also Ubuntu based distro teams01:12
benonsoftwareLike Kubuntu, Lubuntu Xubuntu and so on01:12
ClassBotarchie asked: How many people which are not Canonical employees are involved in LoCos etc.?01:13
benonsoftwarearchie: Heaps :P01:13
benonsoftwareSorry, I mis read it :P01:13
benonsoftwarearchie: Too be honest I am not really sure, I would expect some to be invloved01:14
ClassBotJoseeAntonioR asked: My LoCo is not approved. How can we get approved?01:14
benonsoftwareJoseeAntonioR: Each team has to be approved by the LoCo council01:15
benonsoftwareYou can see https://wiki.ubuntu.com/LoCoCouncil/TeamApprovalGuidelines for more infomation01:15
benonsoftwareAnymore questions so far01:15
benonsoftwareJoseeAntonioR: Also https://wiki.ubuntu.com/LoCoGettingApproved is very good too01:16
benonsoftwareI good way to get invovled is that each team usally has a TODO list01:17
benonsoftwareAnother team that is good for progarmmers is the MOTU (https://wiki.ubuntu.com/MOTU)01:19
benonsoftwareThey package software for Ubuntu01:19
benonsoftwareanother team for people who don't know how to program is the Documention Team01:20
benonsoftwarea good way is to start is to go to https://help.ubuntu.com/community and start editing :P01:20
benonsoftwareAll you need is a Launchpad account01:21
benonsoftwareAny questions about anything covered so far?01:22
ClassBotJoseeAntonioR asked: If you are an Ubuntu Member, are you an official member of your LoCo?01:23
benonsoftwareJoseeAntonioR: No, you still have to go the normal proccess though your LoCo team01:24
benonsoftwareBut most LoCo teams is open to join if you live in that Country/State01:26
ClassBotarchie asked: Are there Teams that are underrepresented?01:28
benonsoftwareWell all teams need more people to join01:28
benonsoftwareIn my mind I haven't heard much about Ubuntu Advertisement 01:29
benonsoftwareand also some LoCo teams maybe underreprested01:30
ClassBotarchie asked: Which are the biggest/smallest LoCos?01:30
benonsoftwarearchie: Well on http://loco.ubuntu.com you can see each LoCo team and it all depends on the size of the area/how big Ubuntu is there01:31
benonsoftwareAnother team that isn't big is the Design Team01:32
benonsoftwareThere channel is #ubuntu-design and is always looking for new members01:32
ClassBotjokerdino asked: What do you do if your loco team is not active? For example I am part of the Ubuntu Tamil team and they don't have a mailing list. And they are no longer actively participating. Is it possible to request admin powers or what else can I do ?01:33
benonsoftwareThat always happenes, if you are team contact you can email rt@ubuntu.com and request a mailing list and you can either have a vote in your team for a new leader and if that fails contact the LoCo council01:34
benonsoftwarejokerdino: ^^]01:36
benonsoftwareAlso Team Reports https://wiki.ubuntu.com/TeamReports are very, very good for any team01:39
benonsoftwareSay if there is a team you would like to start?01:40
benonsoftwareIf there is a team you would like to create then see https://wiki.ubuntu.com/BuildingCommunity/CreatingTeamGuide01:40
benonsoftwareAlso many teams of monthly meetings01:42
benonsoftwareMost LoCo meetings are done in there IRC channel so for Ubuntu-Australia it would be #ubuntu-au01:42
benonsoftwareand other council/teams have there meetings in #ubuntu-meeting01:42
benonsoftwareAre there any questions about anything?01:43
ClassBotpangolin asked: How do I contribute to helping the community via IRC, Can I become an op?01:47
benonsoftwarepangolin: Well you can help with support, meetings and other things via IRC01:47
benonsoftwareand with becoming a OP of the IRC Channel, first contact the other ops about it01:47
benonsoftwareUsally core channel (eg #ubuntu, #kubuntu, #lubuntu, #ubuntu+1 -offtopic, etc.01:48
benonsoftwareHave call for ops in the mailing lists and people apply01:48
benonsoftwareFor LoCo channels usally the team contact has Founder access in the channel so contact them about it01:48
benonsoftwareFor most other teams bring it up in your meeting01:49
benonsoftwareAny more questions?01:50
ClassBotThere are 10 minutes remaining in the current session.01:50
benonsoftwareIf anyone would like to contact me either PM myself or email me at benny AT touchlay DOT com01:51
benonsoftwareNext we have Command Line Basics by tonyyarusso01:52
* tonyyarusso waves01:52
tonyyarussoIf you'd like, you can say what your current level of experience with the CLI is in -chat so I have a better sense of our audience today.01:53
benonsoftwareThanks everyone for attending this session and a big thanks to the Classroom Team01:53
ClassBotThere are 5 minutes remaining in the current session.01:55
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu User Days - Current Session: Commandline Basics - Instructors: tonyyarusso
ClassBotLogs for this session will be available at http://irclogs.ubuntu.com/2012/01/15/%23ubuntu-classroom.html following the conclusion of the session.02:00
tonyyarussoAll right, let's get started!02:00
tonyyarussoThis session will introduce new users to the command line interface, and hopefully mention a new thing or two for those of you who already know your way around.02:01
tonyyarussoFirst, what do we mean by command line interface?02:01
tonyyarussoBasically, it's a whole way of interacting with your computer, a suite of programs, similar to the graphical equivalent when you combine gnome stuff, openoffice, metacity, nautilus, firefox, etc.02:01
tonyyarussoThe first thing you deal with is what's called a "shell" - this is just a program that facilitates access to other command line programs, allows for basic interaction with the system, and sometimes offers you a few handy extra features.02:02
tonyyarussoIn Ubuntu, the default shell when you log in interactively is called "bash", and the default one for running system scripts is "dash".02:02
tonyyarussoOthers exists that you can check out, like csh, ksh, fish, and dozens of others.02:03
tonyyarussoFor our purposes, we don't care too much about the differences right now - just know that multiple options exist.02:03
tonyyarussoTo get access to a shell, there are three options.02:03
tonyyarussoIf you're in a desktop environment right now, check the menus.  In Gnome it's under Applications -> Accessories -> Terminal.02:04
tonyyarussoKDE and XFCE users may see something labeled "Konsole" or "xterm".02:04
tonyyarussoYou can also get to one by pressing Ctrl-Alt-1, leaving your graphical world behind entirely.  (Including this chat)  Get back with Ctrl-Alt-7.02:04
tonyyarussoTo access a remote system over the network, you can use a tool called SSH.  use it like this:  ssh username@hostname, like ssh tony@tonyyarusso.com02:05
tonyyarussoWhen you get you shell open, you'll see what's called a prompt:  Mine looks like this:  anthony@sudbury:~$02:05
tonyyarussoErr, yeah, that should have been Ctrl-Alt-F1 and F702:06
tonyyarussoHere, anthony is the username, sudbury is the hostname, ~ is the current working directory, and $ is a priviledge level indicator.02:06
tonyyarusso~ is just shorthand for your home directory, as defined in /etc/passwd.  In my case, that's /home/anthony02:07
tonyyarussoFor the last character, $ indicates that you're operating with normal user permissions, and # indicates root (administrator) permissions.02:07
tonyyarussoWhile we're on that note, on Ubuntu you don't normally log in as root - you use sudo instead.  Run 'sudo command' to run command as root, and you can use 'sudo -i' or 'sudo -s' to get a shell prompt with elevated privs for extended use.02:08
tonyyarussoNow that we're getting into the concept of commands, a quick note about some terminology.02:08
tonyyarussoMost commands have various options to them, also called switches, usually prefixed with - or -- (short and long option, respectively), and then arguments after those.02:09
tonyyarussoFor instance, in the command 'ls -lah /home', `ls` is the command, `-lah` is actually three different switches, equivalent to -l -a -h, and `/home` is an argument (the directory I want to list).02:10
tonyyarussoTo find out what options are supported for any given command and a ton of other information about how to use it, look for a man (manual) page.  For instance, type `man ls` for information about how to use the ls command.  (Press q to exit man when you're done and return to your shell)02:11
tonyyarussoNow that you know that, let's start seeing what you can do.02:11
tonyyarussoThe first question is "Where the heck am I?"02:11
tonyyarussoFilesystems are complex, and it's easily to forget where you're working.  The `pwd` command will print the path of the directory you are currently in (print working directory).02:12
tonyyarussoRight after you've opened a terminal window, this is normally your home directory.02:12
tonyyarussoSo for instance, I'd get this:02:12
tonyyarussoanthony@sudbury:~$ pwd02:12
tonyyarusso/home/anthony02:12
tonyyarussoTo go somewhere else, use the `cd` command.  (This should be familar to DOS users).02:13
tonyyarussoanthony@sudbury:~$ cd /var02:13
tonyyarussoanthony@sudbury:/var$ pwd02:13
tonyyarusso/var02:13
tonyyarussoYou can see there that not only does pwd tell me where I am, but my prompt changed to reflect it too.02:14
tonyyarussoThis is because the prompt is actually a dynamic, configurable thing.02:14
tonyyarussoWhile I normally just leave it at the defaults (they're pretty sane), if you want to add other information to it you can, like the current time.  Take a look at http://www.linuxselfhelp.com/howtos/Bash-Prompt/Bash-Prompt-HOWTO-2.html for details on that.02:14
tonyyarussoNow that I'm in /var, how can I see what's there?  Well, that would be the ls command I referenced.  It will return a list of items in the current directory, or in the directory you pass as an argument02:15
tonyyarussoanthony@sudbury:/var$ ls02:15
tonyyarussobackups  cache  crash  games  lib  local  lock  log  mail  opt  run  spool  tmp02:16
=== duanedesign is now known as evilduanedesign
tonyyarussoanthony@sudbury:/var$ ls /boot02:16
tonyyarussoabi-2.6.32-37-generic         memtest86+.bin02:16
tonyyarussoconfig-2.6.32-37-generic      System.map-2.6.32-37-generic02:16
tonyyarussogrub                          vmcoreinfo-2.6.32-37-generic02:16
tonyyarussoinitrd.img-2.6.32-37-generic  vmlinuz-2.6.32-37-generic02:16
tonyyarussolost+found02:16
tonyyarussoNow look at what adding some switches does:02:16
tonyyarussoanthony@sudbury:/var$ ls -lah02:16
tonyyarussototal 52K02:16
tonyyarussodrwxr-xr-x 15 root root  4.0K 2011-01-27 00:31 .02:16
tonyyarussodrwxr-xr-x 24 root root  4.0K 2012-01-12 02:13 ..02:16
tonyyarussodrwxr-xr-x  2 root root  4.0K 2012-01-12 02:46 backups02:16
tonyyarussodrwxr-xr-x 19 root root  4.0K 2011-02-26 02:45 cache02:16
tonyyarussodrwxrwxrwt  2 root root  4.0K 2010-04-13 15:52 crash02:16
tonyyarussodrwxr-xr-x  2 root root  4.0K 2011-01-27 00:31 games02:16
tonyyarussodrwxr-xr-x 68 root root  4.0K 2011-05-30 21:37 lib02:16
tonyyarussodrwxrwsr-x  2 root staff 4.0K 2010-07-29 02:42 local02:16
tonyyarussodrwxrwxrwt  3 root root    60 2012-01-14 07:41 lock02:16
tonyyarussodrwxr-xr-x 15 root root  4.0K 2012-01-14 07:41 log02:17
tonyyarussodrwxrwsr-x  2 root mail  4.0K 2011-07-15 23:20 mail02:17
tonyyarussodrwxr-xr-x  2 root root  4.0K 2011-01-27 00:18 opt02:17
tonyyarussodrwxr-xr-x 18 root root   640 2012-01-12 02:14 run02:17
tonyyarussodrwxr-xr-x  8 root root  4.0K 2011-01-27 00:27 spool02:17
tonyyarussodrwxrwxrwt  2 root root  4.0K 2012-01-12 02:16 tmp02:17
tonyyarussoAs you can see, the options change how the command operates.  Here I used -l for long listing, -a to show hidden files (the dots), and -h to make the file sizes friendly (4.0K instead of 4096).02:17
tonyyarussoThe long listing gives you a lot of useful information about files.02:17
tonyyarussoThe first column is the permissions - For each "rwx" set, that's whether the owner, group, and others can read, write, and execute/list, respectively.02:18
tonyyarussoThe second column is the number of links, which you probably don't care about.02:18
tonyyarussoThe third is the file's owner.  The fourth is the group - people who are not necessarily the owner, but have been granted some extra set of rights to it.  For instance, you might use group to let your department read files but not edit them while blocking everyone else.02:19
tonyyarussoThen comes the file size, last modification date, and the file name.02:19
tonyyarussoDirectories always show up as 4K - that's a technical detail with the filesystem.02:20
tonyyarusso"Hidden" files and directories are any that begin with a dot.  For instance, if you check your home directory you'll see a bunch that house settings and such, like ~/.gnome2 and ~/.mozilla02:20
tonyyarussoQUESTION Could you explain who/what is staff?02:21
tonyyarussoHere staff is a group of users, so you might have bob, alice, and mary all in the "staff" group on the system.  It just lets you bundle them together for a neater way of assigning permissions.  You'll find group definitions in /etc/group, and can create and modify them with the 'adduser' and 'addgroup' commands.02:22
tonyyarussoNow, listing files is fun and all, but what about moving them around, renaming, deleting, and such?02:23
tonyyarussoIf you want to copy a file from one place to another, use `cp`, with source and destination as arguments, like this:  cp myfile /var/www/ (copies myfile from the current directory into the /var/www directory)02:24
tonyyarussoIf you want to change the name while copying, just include the name as well as the directory: cp myfile /var/www/publicfile02:24
tonyyarussoTo move a file (like copy, but removing the original), it's the same thing:  mv myfile /var/www/02:24
tonyyarussoInterestingly, renaming a file is also done with mv, not a separate command.  As far as the filesystem is concerned, you're moving the file with the old name to a new place, since names are places for it.02:25
tonyyarussoSo, mv IMG_3098.JPG Sue_at_the_Beach.jpg02:26
tonyyarussoTo delete, us rm (remove), with similar syntax: rm Sue_at_the_Beach02:26
tonyyarussoRandom tidbit:  You can create a new, empty file with the `touch` command, or change the modification timestamp of an existing file.02:26
ClassBotJoseeAntonioR asked: What about if I want to delete a folder?02:27
tonyyarussoAn excellent question!02:27
tonyyarussoFor that, you'd use a similar command as for files, called rmdir (Remove Directory).02:27
tonyyarussoMeanwhile, creating a directory is done with mkdir (Make Directory).02:28
tonyyarussoMoving and copying directories use the same mv and cp commands as for files, although you will need the -r switch for cp (recursive).02:29
tonyyarussoAlso, by default rmdir will refuse to remove a directory that is not empty (still has files in it), to prevent accidental deletions.  You can override this with a switch.  (rm can actually do it too)02:29
tonyyarussoAnother file system feature you may want to use sometimes are links, but I'll let you read up on that on your own - `man ln` for some info.02:30
tonyyarussoNow, what about actually viewing and editing files instead of just moving them around?02:31
tonyyarussoThere are a ton of tools for this sort of stuff, so we'll just hit the basics.02:31
tonyyarussoIf you have a text file and want to print the contents of it to the screen, use `cat myfile`.02:31
tonyyarussoYou can also use this to print a bunch of files together, like `cat file1 file2 file3`.02:31
tonyyarussoThis works if the file is short, or if you're using a terminal emulator that supports scrolling, but sometimes you want to view a file in what's called a 'pager', so you can scroll back up and see all of it.02:32
tonyyarussoYou can do this with the 'less' command (or 'more' - don't ask...)02:32
tonyyarussoFor that the pageup and pagedown keys will let you navigate, although there are other keys too.02:33
tonyyarussoYou might not need to see the entire file though, so there are tools that let you view just part of it.02:33
tonyyarussoThese are 'head' and 'tail'.02:34
tonyyarussoIf you just type 'head myfile', it will show the first ten lines of the file.  Tail shows the last ten.  You can change the number with a switch, so tail -25 myfile shows the last 25 lines.02:34
tonyyarussoBy combining these you can view lines 30 through 50, or whatever (more on that later if we have time)02:34
tonyyarussoFor editing text, my favorite is called `nano` - it's easy to use, so good for beginners.  Other people like things like vi or emacs as well, but they're harder to get the hang of.02:35
tonyyarussoDoing 'nano myfile' will open myfile in what's basically a rudimentary word processor, so you would use this to go in and change configuration files, for instance those dot files in your home folder (like .bashrc) or things in /etc02:36
tonyyarussoTo save a file in nano, you use Ctrl-O (write OUT), then Ctrl-x to exit.  You'll see those explained along the bottom of the editor when it's open in case you forget.  (With Ctrl indicated as ^)02:37
tonyyarussoTo look for particular text within a file, use the `grep` utility.  This accepts regular expressions if you know those.  Just `grep somepatterntomatch myfile`.02:37
tonyyarussoFor instance, to see hits to your web site during this hour, you might do `grep 2012:20:[0-9]{2}:[0-9]{2}\ -0600` /var/log/apache2/access.log02:39
tonyyarussoerr, misplaced the ` on that:  grep 2012:20:[0-9]{2}:[0-9]{2}\ -0600 /var/log/apache2/access.log02:40
tonyyarussoAnother fun editing tool is sed - you can use this to replace particular strings in a file without manually going through in nano.  For instance I use this on every new installation to replace all of the "deb" lines in /etc/apt/sources.list to use my local package mirror instead of the public archives.02:41
ClassBotmani990 asked: how do i select different files in a single directory?02:42
tonyyarussoYou can manually specify multiple files, or use shell "wildcards".02:42
tonyyarussoFor instance, `rm *.jpg *.JPG *.jpeg *.JPEG` will delete all jpeg images - the * matches anything, so those mean "anything ending with these various file extensions".02:43
ClassBotmani990 asked: how do i give permissions to my folder?02:43
tonyyarussoThis is the same as for files:  The chown command lets you change the owner and group, and chmod changes the "mode" (permissions).02:43
tonyyarussoPermissions can be specified in numbers or letters.  Start with the letters and worry about the numeric format later.02:44
tonyyarussoSo, to add the "staff" group to something and give them read and write permissions, you'd do this:02:44
tonyyarussochown anthony:staff somefile02:44
tonyyarussochmod g+rw somefile02:44
tonyyarussoI separated the owner and group with a colon.  g+ means "add for the group", and "rw" means "read and write.  To add permission for everyone, do ugo+ or a+ (A for all, as shorthand for user+group+others)02:45
tonyyarusso-R is available as a switch to both to make them recursive (apply to everything under a directory)02:46
tonyyarussoOkay, we'll try to get a few more things in before we have to wrap up:02:46
tonyyarussoPackage management - you can install and remove software from the command line, of course.02:46
tonyyarussoTo find something you want, use 'apt-cache search' - here we see a different format.  'apt-cache' is the command, and 'search' is an operating mode.  It acts basically like a switch.02:47
tonyyarussoSo, 'apt-cache search jabber' will show you a list of various software related to Jabber communication.02:47
tonyyarussoWhen you see one you like, use 'apt-get install', for instance 'apt-get install ejabberd'.02:48
tonyyarussoTo uninstall, it's 'apt-get remove packagename'.02:48
tonyyarussoYou can also list currently installed packages - the easiest way is 'dpkg -l' (no arguments).02:48
tonyyarussoNow some handy features of the shell that will save you tons of time.02:48
tonyyarussoFirst, you can access previous commands with the up arrow.  Scroll around with the up/down to find one you want, and you can use left/right, delete, and typing if you want to edit just a part of it without typing the whole thing.02:49
tonyyarussoYou can also use the 'history' command to get a list of past commands, each with a number next to it.02:49
ClassBotThere are 10 minutes remaining in the current session.02:50
tonyyarussoHere's where another shortcut comes in - just typing !! will run the last command again.  Typing !28 will run the command listed as #28 in history.02:50
tonyyarussoYou can also make aliases for commands you use often.02:50
tonyyarussoFor instance, instead of typing 'ls -lah' all the time, do this:02:51
tonyyarussoalias ll='ls -lah'02:51
tonyyarussothen just use 'll'02:51
tonyyarussoThat will expire when you close the shell - put it in ~/.bashrc to make it permanent.02:52
tonyyarussoNow, a key feature of text utilities:  piping and redirection.02:52
tonyyarussoPiping uses the | character to send the output of one command to the input of another.  You can use this to "chain" commands together.  For instance, I can watch the authorization log for failures, ignore any from my own IP address, and filter to just attempts on the root account like this:02:53
tonyyarussosudo tail -f /var/log/auth.log | grep Failed | grep -v 71.34.0.139 | grep root02:53
tonyyarussoRedirection allows you to write output to a file.  For instance, if I did sudo tail -f /var/log/auth.log | grep Failed | grep -v 71.34.0.139 | grep root > root_auth_failures , I would get a file created called root_auth_failures, and log entries would be written to it as they're created.02:54
tonyyarussoNormally the > redirection will overwrite the file each time you use it - if you want to append instead, use >>02:54
tonyyarussoA few final words:02:54
ClassBotThere are 5 minutes remaining in the current session.02:55
tonyyarussoOnce you're done, and want to log out, use 'exit'.  Ctrl-D does the same thing as exit.02:55
tonyyarussoTo reboot, just do 'sudo reboot'.  For shutdown it's a little tricker - 'shutdown -h now' - specify -h for "halt", and "now" to say "immediately".  The shutdown command lets you do more complicated things, like shutting down an hour from now.02:56
tonyyarussoSome useful text utilities that weren't covered but you can check out with their man pages:  screen, ping, nl, sort, wc, tee, uniq, netstat,irssi, mutt, w3c, top, free, ps, kill02:56
tonyyarussoAnd one more fun example to give you a sense of the things you can do as you get into the scripting side of the shell:02:57
tonyyarussofor person in $(cat staff | sort | uniq); do mail -a "From: Tony Yarusso <tonyyarusso@ubuntu.com>" -a "Content-type: text/html; charset=UTF-8" -s "Check out my User Days class" -b $person "" < message.html ; done02:57
tonyyarussoThat command reads a list of email addresses from a file, makes sure that any duplicate entries are removed, and sends an HTML formatted e-mail to each of those people.  Cool, huh?02:57
tonyyarussoAny more last questions?02:57
tonyyarussoOh, another utility to check out - find02:58
tonyyarussoAs you can see, there are about a zillion utilities out there.  You can also use the 'apropos' command to search for man pages that mention something, like 'apropos mail' to look for instructions on mailing with things that are already installed, and of course apt-cache search to find new things to install.02:59
tonyyarussoThanks for coming, and happy command line usage!02:59
ClassBotLogs for this session will be available at http://irclogs.ubuntu.com/2012/01/15/%23ubuntu-classroom.html03:00
pleia2thanks for a great User Days everyone! quite a day! :D03:00
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat ||
=== manu is now known as Guest54939
DUCKY_Why did ubuntu change from gz to lz flie system on the boot cd06:33
benonsoftwareDUCKY_: Please see #ubuntu for support06:35
=== yofel_ is now known as yofel
medicus99kein Vortrag?15:34
=== bulldog98_ is now known as bulldog98
=== delcoyot1 is now known as delcoyote
=== angela-android is now known as nothingspecial
pangolinDeadmanIncJS: you will see  links  in the topic to logs        of past classes18:05
pangolinalso the schedule for upcoming classes18:05
DeadmanIncJSyeah i clicked on it.  it was all at 2am today, so i missed it18:07
zulwarehello there19:13
=== Merlin[N900] is now known as Kerbero[N900]

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!