Professional Documents
Culture Documents
Two) Running Multiple Commands From The Command Line Or A Bash Script Undo Gmail's Latest "Enhancements"
Testimonials From Veteran PCLinuxOS Users ms_meme's nook GIMP Tutorial: Masks Explained And Much More!
PCLinuxOS Magazine
Page 1
Table of Contents
5 6 12 13 16 17 19 20 22 23 24 25 26 27 29 30 31 32 3 4 Welcome From The Chief Editor Easy File Sharing with NitroShare Screenshot Showcase Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two) Screenshot Showcase PCLinuxOS Puzzled Partitions Undo Gmail's Latest "Enhancements" Game Zone: Steel Storm: Burning Retribution PCLinuxOS Recipe Corner GIMP Tutorial: Masks Explained Screenshot Showcase ms_meme's nook: OnLine Running Multiple Commands From The Command Line Or A Bash Script Screenshot Showcase Friendship Day LibreOffice Tips & Tricks: Part Two Screenshot Showcase Testimonials From Veteran PCLinuxOS Users Screenshot Showcase More Screenshot Showcase
Disclaimer
1. All the contents of The PCLinuxOS Magazine are only for general information and/or use. Such contents do not constitute advice and should not be relied upon in making (or refraining from making) any decision. Any specific advice or replies to queries in any part of the magazine is/are the person opinion of such experts/consultants/persons and are not subscribed to by The PCLinuxOS Magazine. The information in The PCLinuxOS Magazine is provided on an "AS IS" basis, and all warranties, expressed or implied of any kind, regarding any matter pertaining to any information, advice or replies are disclaimed and excluded. The PCLinuxOS Magazine and its associates shall not be liable, at any time, for damages (including, but not limited to, without limitation, damages of any kind) arising in contract, rot or otherwise, from the use of or inability to use the magazine, or any of its contents, or from any action taken (or refrained from being taken) as a result of using the magazine or any such contents or for any failure of performance, error, omission, interruption, deletion, defect, delay in operation or transmission, computer virus, communications line failure, theft or destruction or unauthorized access to, alteration of, or use of information contained on the magazine. No representations, warranties or guarantees whatsoever are made as to the accuracy, adequacy, reliability, completeness, suitability, or applicability of the information to a particular situation. All trademarks are the property of their respective owners. Certain links on the magazine lead to resources located on servers maintained by third parties over whom The PCLinuxOS Magazine has no control or connection, business or otherwise. These sites are external to The PCLinuxOS Magazine and by visiting these, you are doing so of your own accord and assume all responsibility and liability for such action.
2.
3.
4.
5.
Material Submitted by Users A majority of sections in the magazine contain materials submitted by users. The PCLinuxOS Magazine accepts no responsibility for the content, accuracy, conformity to applicable laws of such material. Entire Agreement These terms constitute the entire agreement between the parties with respect to the subject matter hereof and supersedes and replaces all prior or contemporaneous understandings or agreements, written or oral, regarding such subject matter.
PCLinuxOS Magazine
Page 2
The PCLinuxOS Magazine is released under the Creative Commons AttributionNonCommercialShareAlike 3.0 Unported license. Some rights are reserved. Copyright 2013.
PCLinuxOS Magazine
Page 3
I named the desktop computer desktop, and I named the laptop computer laptop. You can name them whatever you want.
You can select how often you receive notifications. I left this as is and clicked next on both computers.
On my desktop computer, a box appeared called Select Machine. I right clicked on it, selected the laptop, and clicked OK. I did the same thing on my laptop computer, and selected desktop.
PCLinuxOS Magazine
Page 4
A second box appeared on my desktop computer called laptop. The same happened on my laptop computer, but it was called desktop.
Now, if I want to copy a file from my desktop computer to my laptop computer, I simply open a file manager (such as Dolphin), then drag and drop the file on the laptop box!
PCLinuxOS Magazine
Page 5
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
Edit As Root Sometimes, you simply need to edit a file on your system as the root user. For example, someone thought it would be cute to name GIMP as Gnu Image Manipulation Program in GIMPs *.desktop file. While the longer form is the full name of GIMP, my mind is looking for GIMP when selecting it to open a graphics file. To change the name in the *.desktop file (stored at /usr/share/applications), you need root privileges. The easiest way to do this is to travel to the directory where the GNU Image Manipulation Program *.desktop file is stored (/usr/share/applications), and edit the file where it sits. (Hint: simply change the Name: line in the desktop file from GNU Image
Last month, we took a look at a solitary file utility, and discussed why it should be a necessary part of every Xfce user s arsenal of tools. This month, well look at a collection of file utilities that make your life under Xfce easy and simple, and without having to remember a small collection of command line commands. It only stands to reason that since Thunar is a file manager, there are a lot of file utilities that can make your interaction and work with files easier. As such, Im going to break up the Xfce Power User Tips, Tricks & Tweaks: File Utilities article into three parts, just because of the sheer volume of useful file utilities that are available for use. Well wrap up the discussion of file utilities that you can use from Thunar Custom Actions in next months Xfce Power User Tips, Tricks & Tweaks column. Open Root Terminal How many times have you been poking around in Thunar, only to discover that you need to elevate your privileges to root to accomplish what you need to do? If youre anything like me, it happens on a fairly regular basis. Thanks to this Thunar Custom Action, a root terminal is only two quick clicks of the mouse away. Give your new Thunar Custom Action a name and description. Enter Open Root Terminal as the name, and Open root terminal window here as the description. On the third line, enter the following command: gksu terminal Select an icon for your new custom action. Under the Appearance Conditions tab, leave the File Pattern set to the default * value, and place a checkmark in front of Directories. Now, simply right click your mouse on an empty space in Thunar (e.g., not on a file). Select Open Root Terminal from Thunar s right click context menu. You will then be prompted to enter the root password. Once you do, you will be presented with a terminal opened up on your desktop, opened to the directory that you were in when you selected the option in Thunar, as the root user.
PCLinuxOS Magazine
Page 6
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
Manipulation Program to GIMP). This Thunar Custom Action allows you the opportunity to edit any text file on your system that needs root privileges to edit or change. Enter a name and description for your new custom action. On the first line, enter Edit As Root as the name, and Edit selected file as the root user as the description on the second line. Enter the following command on the third line: gksu l mousepad %f Select an icon for your new custom action. Under the Appearance Conditions tab, keep the File Pattern set to the * default value, and place a checkmark in front of Text files and Other files. Now, selecting a file, then selecting Edit As Root from Thunar s right click context menu will prompt you for the root password. Once supplied, Mousepad will open with root privileges, allowing you to edit the contents of the selected text file. This custom action is useful for any text file you might need to edit on your system that requires root privileges. There are plenty around, since Linuxs configuration files are typically text files of one kind or another. Copy To and Move To Two of the installed Thunar Custom Actions that came preinstalled on the old Phoenix Live CD (the former PCLinuxOS version of Xfce) are called Copy To and Move To. These two custom actions allow you to copy or move selected files and/or directories to new locations on your computer s hard drive. With both custom actions, a Zenity file selection dialog box is displayed to give you (the user) the chance to choose the destination folder where to copy or move the selection of files. The command for the Copy To... custom action is as follows: cp r %F $(zenity fileselection directory) Ive slightly modified the original command from the Phoenix Live CD to include the r command line switch, which tells the copy command (cp) to recurse any selected directories. The command for the Move To... custom action is as follows: mv %F $(zenity fileselection directory) Under the Appearance Conditions tab, leave the File Pattern set to the default * value, and place a check in front of every file type. Now, whenever you want to copy or move a single file or directory or a group of files or directories simply select the file(s) and/or directory(ies) you want to act upon, and select the appropriate custom action to carry out your desired activity. Copy To with a pulsating progress bar One of the problems with the original Copy To... and Move To... Thunar Custom Actions is that there is no indication for when the actions have been completed. One way to improve on this is to add a pulsating progress bar to the command. Using the copy (cp) command as our example, enter the following on the command line of the Thunar Custom Action Edit Action dialog box: (for I in $(seq 2) do echo $I sleep 1 done cp r %F "$(zenity fileselection directory)") | zenity progress pulsate autoclose You can do the same for the move (mv) command simply by replacing the cp r part of the command with mv.
PCLinuxOS Magazine
Page 7
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
Copy Move There is another way for us to copy or move a selection of files and/or directories using a real progress bar to indicate the progress of our selected action. First, copy/enter the following in a simple text editor (such as Xfces Mousepad), and save it to the /Scripts directory in your /home directory. I call my copy of this script copymove.sh. Dont forget to make the script file executable.
#! /bin/sh n=1 corm=$(zenity list radiolist column="Select" column="Action" title="Copy Or Move" width=200 height=175 text="Select which activity you\nwould like to perform:" TRUE Copy FALSE Move) if [ $? == 1 ] then exit fi for file in "$@" do if [ ! e "$file" ] then continue fi mv "$file" "$dest" echo $(($n * 100 / $#)) echo "# Moving file: $file" let "n = n+1" done | (zenity progress title "Moving Files..." percentage=0 auto close autokill) fi exit 0
Set up the Appearance Conditions tab of the Edit Action dialog box the same as we did previously, with the File Pattern set to the default value of * and a checkmark in front of every file type.
dest="$(zenity fileselection directory)" if [ $corm == "Copy" ] then for file in "$@" do if [ ! e "$file" ] then continue fi cp r "$file" "$dest" echo $(($n * 100 / $#)) echo "# Copying file: $file" let "n = n+1" done | (zenity progress title "Copying Files..." percentage=0 auto close autokill) elif [ $corm == "Move" ] then
Now, you will have a visual indicator that looks like the dialog box above to indicate when the copy or move action has completed.
Enter $HOME/Scripts/copymove.sh on the command line for this Thunar Custom Action, provided that you saved the copymove.sh bash file in the /Scripts folder, within your /home folder. Otherwise, be sure to provide the appropriate path
PCLinuxOS Magazine
Page 8
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
information to where you stored your copy of the copymove.sh bash file. Under the Appearance Conditions tab, leave the File Pattern set to the default value of *, and place a checkmark in front of every file type. computer, rather than making a second copy of the file. You could do this rather easily from the command line, but why drop out to a command line terminal when we can create the soft link from within Thunar even more easily? Copy Filename & Path Lets see a show of hands how many of you have wanted or needed to copy the full path information for a specific file into a document? I would be surprised if everyones hand didnt go up. At some time in their computing history, everyone has had the need to do this. With this Thunar Custom Action, copying the full path and filename to the clipboard is only a two step process. To accomplish this, you will need to install xclip from the PCLinuxOS repository, if you dont already have it installed.
When you select this custom action, you will see a dialog box similar to the one displayed above. Select whether you want to copy or move the selected file(s) or directory(ies), then select the OK button. You will then be displayed a Zenity file selection dialog box to allow you to decide upon the destination directory. Enter ln s %f $(zenity fileselection directory) as the command in the Edit Action dialog box. (Thats a small L, small N). In the Appearance Conditions tab, leave the File Pattern set to the default value of *, and place a checkmark in front of every file type. Now, select the file you want to create a soft link for. When you select this custom action from Thunar s rightclick context menu, a Zenity file selection dialog box will open, allowing you to dictate where the new soft link is created.
Once youve decided upon and selected the destination directory, a dialog box similar to the one above will be displayed, with a fully qualified progress bar to indicate the actual progress through the file copy or move action. Create Soft Link Sometimes, you might want to simply create a soft link to another file located somewhere on your
Enter echo n %f | xclip selection c on the command line of the Edit Action dialog box. Under the Appearance Conditions tab, keep the File Pattern set to the default value of *, and place a checkmark in front of every file type. Now, when you right click on a file and select Copy Filename and Path from Thunar s rightclick context menu, the full path and filename of the selected file will be copied to the clipboard.
PCLinuxOS Magazine
Page 9
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
We can very easily add a confirmation dialog box to this custom action, if you so choose. Just alter the command to include a Zenity information dialog box, as such: zenity info title="Filename & Path Copied" text="Filename and path copied to clipboard:\n\n%f" echo n %f | xclip selection c. If you wish to replace the word and with an ampersand (&) in the text field, you will need to enter it as & or it will cause an error in the Zenity dialog output. And yes, all five characters are necessary. Strip Spaces From Filenames Youve heard it before over and over. Its bad form to include spaces in your filenames under Linux. It isnt that the Linux file systems cant handle spaces. Most every Linux file system handles spaces in filenames quite well. Its that spaces in filenames pose special problems when working with files using command line utilities. Typically, a space in a command line is a delimiter that signifies another command line switch is coming up. I can attest to the difficulties that spaces in filenames pose. In writing the scripts that Ive shared here in this article series, handling filenames with spaces in them has been especially problematic. If youre like me, you avoid the use of spaces in filenames altogether. Id rather avoid any unnecessary hassles in having to deal with the pesky spaces. Since filenames under Linux are case sensitive, I prefer to separate words in filenames by capitalizing the first letter of each word. When that doesnt work, I prefer to use a dash as separator between words. Even as much as I might try to avoid having files with spaces in the filenames, invariably someone will send me a file whose filename is riddled with spaces. Until now, my sole option has been to manually edit the filename to eliminate those Enter for file in %N do mv "$file" `echo $file | sed e 's/ *//g' e 's/__//g'` done in the command line of the Edit Action dialog box. Under the Appearance Conditions tab, leave the File Pattern set to the default value of *, and check every file type. When you select a file or a group of files and select Strip Spaces From Filenames from the Thunar rightclick context menu, any spaces in the filename(s) will be converted to dashes. Thus, a file named this is a sample file.txt will be renamed to be thisisasamplefile.txt. Make File Executable There are times like when you are entering/copying the bash files Ive included in this article series when you need to make a file Enter chmod +x %f as the command in the Edit Action dialog box. Under the Appearance Conditions tab, set the File Pattern to *.sh*.py*.pl and place a checkmark in front of Text Files and Other Files. If you have other types of files that you would like to make executable (e.g., files from other scripting languages), add them to the File Pattern list, separating each with a semicolon. Now, whenever you right click on an eligible file, you will be given the chance to make the file executable by selecting Make File Executable from Thunar s rightclick context menu.
Advertisement
spaces. That is, until this Thunar Custom Action came along.
executable. Fortunately, this Thunar Custom Action makes it easy as two clicks of the mouse.
PCLinuxOS Magazine
Page 10
Xfce Power User Tips, Tricks & Tweaks: File Utilities (Part Two)
Disk Usage Utility Sometimes its not enough to simply know the size of a file, directory, group of files, or group of directories. Sometimes, you need or want to know how much disk space they consume which is usually more than the actual size of the files. With this Thunar Custom Action, you can easily see how much space a file, group of files, directory, or group of directories is taking up on your hard drive.
Now, when you select a file, group of files, directory, or group of directories, a listing of each file or directory selected will appear, with the amount of disk space each file or directory occupies on your hard drive. Make Backup Copy Whenever you are editing a file, its a smart move to always make a backup copy of the original file. Its great added insurance if things should head south at the speed of light. This Thunar Custom Action makes the creation of a backup file a simple, two click process. Enter cp backup=t %f %f.backup into the Command field of the Edit Action dialog box. Under the Appearance Conditions tab, leave the File Pattern set to the default value of *, and place a checkmark in front of every file type. This custom action will make a copy of a single file or directory, and append .backup to the end of the filename, placing it in the same directory as the original.
Summary As you can see, there are a lot of file utility tasks that can be handled via Thunar s Custom Actions. Next month, well look at a special set of file utilities that help deal with ISO, IMG and md5sum files. Looking for an old article? Can't find what you want? Try the
Enter du chs apparentsize %N | yad title="Disk Usage Utility" textinfo width=300 height=200 windowicon="applicationvnd oasis.opendocument. chart" button="gtkok" in the Command field of the Edit Action dialog box. Under the Appearance Conditions tab, leave the File Pattern set to the default value of *, and make sure theres a checkmark in front of every file type.
PCLinuxOS Magazine
Page 11
Enlightenment e17
PCLinuxOS Magazine
Page 12
Tux Scrappler
Follow the rules of Scrabble. You can view them here. You have seven (7) letter tiles with which to make as long of a word as you possibly can. Words are based on the English language. NonEnglish language words are NOT allowed. Red letters are scored double points. Green letters are scored triple points. Add up the score of all the letters that you used. Unused letters are not scored. For red or green letters, apply the multiplier when tallying up your score. Next, apply any additional scoring multipliers, such as double or triple word score. An additional 50 points is added for using all seven (7) of your tiles in a set to make your word. You will not necessarily be able to use all seven (7) of the letters in your set to form a legal word.
Sudoku Rules: There is only one valid solution to each Sudoku In case you are having difficulty seeing the point puzzle. The only way the puzzle can be considered solved correctly value on the letter tiles, here is list of how they are scored: is when all 81 boxes contain numbers and the other Sudoku rules have been followed. 0 points: 2 blank tiles When you start a game of Sudoku, some blocks will be prefilled for you. You cannot change these numbers in the course of the game.
1 point: E, A, I, O, N, R, T, L, S, U 2 points: D, G 3 points: B, C, M, P 4 points: F, H, V, W, Y 5 points: K 8 points: J, X 10 points: Q, Z
Each column must contain all of the numbers 1 through 9 and no two numbers in the same column of a Sudoku puzzle can be the same. Each row must contain all of the numbers 1 through 9 and no two numbers in the same row of a Sudoku puzzle can be the same. Optionally, a time limit of 60 minutes should Each block must contain all of the numbers 1 through 9 and no two letter tile set. numbers in the same block of a Sudoku puzzle can be the same.
PCLinuxOS Magazine
Page 13
Page 14
Blur Gaussian Sharpen Emboss Mosaic Sparkle Artistic Weave Decor Border Map Render Clouds Nature Fractal Waves Jigsaw Chrome Neon Textured
PCLinuxOS Magazine
Page 15
Almost every reaction Ive read about these enhancements has been negative. And its not as if Google really cares what its users think, anyway. Now, instead of just receiving your email into one simple inbox and allowing the filters that you have set up handle the sorting of the email, someone at Google it would be a good idea for you to have to search through multiple tabs to find your email. Click on the + at the far right to bring up the settings dialog box.
To revert your Gmail appearance back to the old, single Inbox look, deselect every message category, except for Primary. Voila! Now you have your old Gmail Inbox back.[a] Also, so that these funky tab labels dont show up in your list of Gmail labels, go into the settings for Gmail and set the labels for Social, Promotions, Updates and Forums to Hide. Even after turning off the tabs, Gmail will still try to apply the labels, unless you turn them off (hide them), too.
LinPC.us
PCLinuxOS Magazine Page 16
by daiashi
The first installment of the game, called "Steel Storm: Episode 1," was released in September 2010 as a shareware game. The game became fairly popular, reaching 310,000+ downloads worldwide, and taking a spot in the Top 100 of the Indie of the Year 2010 competition and IndieDB Video Spotlight September 2010. On May 11th of 2011, KotinAction Creative Artel released the continuation of the series, titled "Steel Storm: Burning Retribution", which was released simultaneously on Steam, Desura and Ubuntu Software Center, and has received overall positive reviews. After Clay "daemon" Cameron parted his ways with KotinAction, the company put together more experienced team to pursue Steel Storm 2, a spinoff first installment of the game, using the idTech 4 engine which powered such hits as Doom 3(R), Quake 4(R), Prey(R), ETQW(R) and Wolfenstein(R). System Requirements: OS: Windows XP SP2 / Windows Vista / Windows 7 / Linux / Mac OS X 10.5.8+ Processor: 2.0+ GHz Single Core Processor (Dual Core Processor recommended) Memory: 1 Gb RAM (2 Gb or greater recommended) Graphics: NVIDIA GeForce 7600GT+ or ATI Radeon 2400+ HD with 256 Mb of VRAM (512 Mb of VRAM recommended) Hard Drive: 900 Mb Sound: Standard Sound Card Input: Keyboard + mouse or gamepad (XB360 or Logitech Rumblepad 2 recommended) Steam from the PCLinuxOS repository
About the Game: Steel Storm: Burning Retribution is a top down action shooter with old school spirit. It marks the return of topdown shooters with new twists. The game has score oriented competitive gameplay, and is designed for people who like fast paced action, hordes of smart enemies, destructible worlds and ground shaking explosions. The events take place in an alternative universe where you control an advanced hovertank, packed with the most advanced and sophisticated weapons. Your task is simple, but nevertheless not trivial. In the fight against extraterrestrial invaders, you must prevail! Key features: 20+ hours of singleplayer experience Pave your way to victory with the burning remains
KotinAction Creative Artel is a small video game developer, a privately owned entity dedicated to creating and producing fun to play and challenging video games. They are a very small team. Headquarters of the company are located in Del Rio, TX, USA and the current operation office is located in Austin, TX. Before the company shaped up, most of the team members were modders of ID Software's games Quake and Doom 3, with various degrees of expertise. In 2008, Alexander "motorsep" Zubov, inspired by the indie movement in the video game development industry, decided to make his own game, entitled "The Prophecy." Teaming up with gifted game logic coder, Clay "daemon" Cameron, Alexander was able to prototype "The Prophecy" within a month and present it at QuakeExpo 2008. After successful presentation of the game, Kotin Action Creative Artel was born and the duo began working on their first commercial title called "Steel Storm," which was planned as an episodic series.
PCLinuxOS Magazine
Page 17
Getting it to run: This is my first review of a game that runs natively in Linux, through Steam for Linux. There is not much to it. No Wine needed here. You will need to fully update your system, including your graphics drivers. After your update, search for steamlauncher from your PCLinuxOS package manager.
PCLinuxOS Magazine
Page 18
Ingredients:
2 cups vanilla ice cream, softened 1 1/2 cups selfrising flour 1/2 cup mini chocolate chips Sprinkles * substitute for selfrising flour 1 cups AP flour 2 tsp baking powder tsp salt Mix to combine.
It's easier than E=mc2 It's elemental It's light years ahead It's a wise choice It's Radically Simple It's ...
PCLinuxOS Magazine
Page 19
With the right photo and a little imagination, you can make a very dramatic image! Lets try something else. I loaded this photo into Gimp:
One thing we havent tried is using a shade of gray. If you paint on a layer mask with 50% gray, then that portion of your layer will be 50% transparent. In the example below, I chose a 65% gray and painted the leaves above and to the left of the rose. You can see that there is color there, but it is not as bright as the
PCLinuxOS Magazine
Page 20
Experiment with your photo to get the effect you want. To prevent overwriting and possibly losing the only copy of your photo its best to always work on a copy of your original image.
Connect
Launch your favorite IRC Chat Client software (xchat, pidgin, kopete, etc.) Go to freenode.net Type "/join #pclosmag" (without the quotes)
Visit Us On IRC
PCLinuxOS
PCLinuxOS Magazine
Page 21
Netherlands
Turkey Denmark
Czechoslovakia
Italy
Poland
Brazil
Page 22
PCLinuxOS Magazine
When you are lonely and need something to do you can always go on line When life is boring and you need something new you can always go on line Log into the forum where all your friends will greet you Log into the forum new users will meet you You will see Neal posting the latest scoop And Joble cleaning up the poop So log in you'll always win Log in do it again and again Log in you wont be lonely then on line You have '09 but there's no waiting now to get '10 on line Tex and the Gang are all our brothers you will be just fine on line Just save your data and everything that matters If you dont want your /home to be all in tatters Come on now join the group Be part of the loop And log in you'll always win Log in do it again and again Log in you wont be lonely then on line
ms_meme
MP3
PCLinuxOS Magazine
OGG
Page 23
There may be times, when you are working in a terminal session or writing a bash script that you want to execute multiple commands. Fortunately, and as you might expect, Linux gives us multiple ways to do this. command1 command2 command3 When separated by a semicolon, all of your commands will be executed, regardless if they return an error code or not. This situation will probably satisfy a lot of your needs. In the illustrative image above, Ive executed the ls command (to list the directory conents of my /home directory), followed by the cal command (to display a calendar of the current month), and then pinged google.com three times with the ping command. Each were separated by a semicolon, and each executed in the order listed. While it may not be a very practical example, it does illustrate the concept fairly well. But, what if you wanted the subsequent commands to be executed only if the previous command successfully completed, without an error code (other than zero)? Linux has us covered for that eventuality. command1 && command2 && command3 Using a && (two ampersands) to separate your commands will allow the second command to execute only if the first command successfully completes without an error, and the third command to execute only if the second command successfully completes without an error. Taking a slightly different path, we can also chain commands together to execute only if the previous command failed or returned an error code (other than zero). Instead of using the &&, we use two pipe characters (||), which is the same as saying or. While this can be a bit complex to wrap your mind around, Ill try to explain. command1 || command2 || command3 With this syntax, if the first command returns an error code, then and only then will the second command be executed. If the first command and second command return an error, then and only then will the third command be executed. If the first command successfully completes, then neither the second or third commands will be executed. If the first command is unsuccessful but the second command successfully completes, then the third command will be ignored.
PCLinuxOS Magazine
Page 24
Does your computer run slow? Are you tired of all the "Blue Screens of Death" computer crashes?
Are viruses, adware, malware & spyware slowing you down? Get your PC back to good health TODAY! Get
Posted by Agust, on July 26, running e17.
Download your copy today! FREE!
PCLinuxOS Magazine
Page 25
Friendship Day
by Meemaw Having a good friend with whom we can share our feelings and problems will make our world happy and worth living. Understanding, compassion and love are some of the qualities a friend shows. They are the people who say silently, through their words or actions, that we are special and important. We should thank all our dear friends and tell them how much their support and friendship means to us. Most of the time, we dont find or take advantage of an opportunity to express our gratitude, or to tell them how important they are. Friendship Day is the celebration of this wonderful bonding between two hearts and a very good chance to say, Hey, I value your friendship and wouldnt be the person I am without it. Every year, the first Sunday in the month of August is celebrated for the beautiful bond between two people friendship. The idea of honoring friendship and friends began in the year 1935 in the United States. As the popularity and the true reason behind the celebration spread, Friendship Day became an international observation, and more and more countries started observing this day. The first Sunday of August is celebrated in most countries as a dedication of this day to friends all over the world. Each person has many other friends, so Friendship Day is a celebration for everyone on earth. This year, Friendship Day will be celebrated on the 4th. To all my PCLinuxOS Forum Friends, I value your friendship! Want to keep up on the latest that's going on with PCLinuxOS? Follow PCLinuxOS on Twitter! http://twitter.com/iluvpclinuxos
PCLinuxOS Magazine
Page 26
Make a Table of Contents If you have correctly formatted your document, LO can take your text marked as Headings and construct a table of contents from them. I experimented with a text file I keep from some of the magazine subjects parnote and I discuss. I have it sorted by date, which doesnt help me find anything
PCLinuxOS Magazine
Page 27
you are taken to that spot in the document. If I add more discussions to my document, I can always update it again. Always make sure you save your work! Different ways to move text We all know that we can highlight text and click <CTRL> + X (cut), and then <CTRL> + V (paste). You can also click <CTRL> + Drag or just Drag the highlighted text to move it just as easily. Another thing I have wanted to do recently is to make a list of some information that comes to me in a spreadsheet. In an organization I belong to, the members are in a huge database that includes loads of information, but I just want to make a list of certain names and numbers. I searched the database to get the list I wanted, but it came in a spreadsheet, so I downloaded and saved it. However, I have only three columns (First Name, Last Name, Phone Number) that I want to save in a text document, just as a handy reference. I highlighted the cells I wanted in the spreadsheet and pressed <CTRL> + C (for Copy) and then went to my text document and chose Edit > Paste Special (or you can click <CTRL> + <Shift> + V). A window popped up and asked what special thing I wanted. The choices will be different depending on what you copy, but one of the choices for me was Unformatted text which was what I wanted. The information was pasted into my text document without the table that usually appears when you copy from a spreadsheet, so now I have a simple list of names and numbers that I can use for reference.
The list will have spaces, so you may want to edit it a bit, but it was much easier for me. Fonts I insert dates into many of my documents. In the date options, I set it to update when I open the document. That way when I want to send it out, the letter has the current date. However, I kept seeing that the font in the date wasnt the same as the font on the rest of the letter. to remedy that, I checked the Default fonts in Tools > Options, and set them all the same. If you have a certain font you use all the time, you might consider reviewing the settings. Change the Icons Bidder in our forum found an article about changing the icons in LO, which included another icon set called images_flat. You can get the icon set here https://github.com/hotice/myfiles/raw/master/images _flat.zip and they look like the example above. Using Dolphin in superuser mode, he copied the file (intact no need to unzip) to this directory: /opt/libreoffice4.0/share/config/ He tried choosing the icons from within LibreOffice (Options > View) but they did not show up. So, he went back to /opt/libreoffice4.0/share/config/
Still not very descriptive, huh? Then, I went back and reviewed the topics and placed a descriptive word with each date, so I can see whats there. So, now to update the table of contents, I do it by clicking Tools > Update > All Indexes And Tables.
The other good thing is that each entry in the TOC is a link, and by doing a <CTRL> + click on an entry,
PCLinuxOS Magazine
Page 28
Then he renamed images_flat.zip to images_tango.zip (but you can choose the font you like the least and rename that one.) I like the Tango icons, so I backed up the icons called High Contrast and renamed the new ones as High Contrast. Its your system, so do what you want. Starting up LibreOffice, he chose Tools > Options, then under LibreOffice > View > Icon size and style, set the icon theme to "Tango". Summary I hope this installment has helped you to become more organized and efficient! Part 3 will focus on LibreOffice Calc.
PCLinuxOS Magazine
Page 29
PCLinuxOS Magazine
Page 30
PCLinuxOS Magazine
Page 31
PCLinuxOS Magazine
Page 32