Linux: Tricks of the Trade -- tips from our members

Chat about anything related to Linux Mint
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
vrkalak

Re: Linux 'tricks of the trade' -- tips from our members

Post by vrkalak »

Great find !!!

An Alphabetic list of ALL Terminal/CLI Man Pages:

http://www.kernel.org/doc/man-pages/onl ... betic.html

These Man Pages have come in very useful, and are great reading, if you really want to familiarize yourself with Linux.

You might add this link to your bookmarks :mrgreen:
User avatar
Oscar799
Level 20
Level 20
Posts: 10393
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Linux 'tricks of the trade' -- tips from our members

Post by Oscar799 »

Very useful link vrkalak,
Bookmarked :D
Image
User avatar
Oscar799
Level 20
Level 20
Posts: 10393
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Linux 'tricks of the trade' -- tips from our members

Post by Oscar799 »

I've made this thread sticky so it doesn't get lost.
Image
viking777

Re: Linux 'tricks of the trade' -- tips from our members

Post by viking777 »

This is the tip that I find most useful:

If you use it regularly then have two of it (at least).

Two computers (if you can afford it), two operating systems (on each computer - not counting windows), two backup destinations (one online, one offline), two backup programs (eg. dropbox and unison - although I would always include clonezilla as well) two browsers, two window managers, two text editors, two accounts packages, two mail programs, etc. etc. I am sure you get the idea by now, it is fully explained by the words in red.

Sooner or later when one of these items fails (even temporarily) the other will allow you to carry on as normal until you sort out why the first one has failed.

The beauty of Linux is that it allows you to do this with virtually no cost (except the two computers bit!) - try that with Microsoft.
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: Linux 'tricks of the trade' -- tips from our members

Post by tdockery97 »

- try that with Microsoft.
You got that right. Microsoft won't let you run 2 of anything unless you pay for another license.
Mint Cinnamon 20.1
vrkalak

Re: Linux 'tricks of the trade' -- tips from our members

Post by vrkalak »

.
More Linux Tutorials, that I have found.

Some for Beginners and some for more experienced Linux users.

http://beginnerlinuxtutorial.com/about- ... -tutorial/
http://www.linux.com/learn/tutorials
http://www.linux-tutorial.info/
http://www.yolinux.com/
vrkalak

Re: Linux 'tricks of the trade' -- tips from our members

Post by vrkalak »

Everything you want to know about the Openbox Window Manager, but was afraid to ask.

Remember, Openbox is only a Window Manager and not a full Desktop Environment.

Openbox site >> http://openbox.org/wiki/Openbox:Community_portal
Openbox Wiki/FAQ >> http://openbox.org/wiki/Help:FAQ
Openbox Planet >> http://planetob.openmonkey.com/

Best tutorial for using Openbox >> http://urukrama.wordpress.com/openbox-guide/
Arch/Wiki on Ob >> http://wiki.archlinux.org/index.php/Openbox
Ubuntu Ob Wiki >> https://help.ubuntu.com/community/Openbox
Customizing themes in Ob >> http://box-look.org/index.php?xcontentmode=7402

Crunchbang/Linux OS is based with Openbox and they have a great Openbox section in their Forum ... So does, Arch/Linux Forum. Even the Ubuntu Forum has an Openbox section.

Crunchbang Forum >> http://crunchbanglinux.org/forums/forum/9/wmde-talk/
Arch Forum >> https://bbs.archlinux.org/search.php?se ... 1328436418
Ubuntu Forum >> http://ubuntuforums.org/search.php?searchid=75347007

On my main PC, I use Debian 6 with Sid and > Openbox WM with no Desktop Environment. Extremely easy to use and configure. Super-fast.
libssd
Level 4
Level 4
Posts: 288
Joined: Tue Jun 22, 2010 11:26 am

Re: Linux 'tricks of the trade' -- tips from our members

Post by libssd »

Here is a very tiny tip that I stumbled on while paging through Ubuntu Kung Fu, by Keir Thomas: To rename a file/folder in Nautilus, click on it, then press the F2 key. Much simpler than right-click, then scroll through a menu to pick out the Rename choice. So simple!
vrkalak

Re: Linux 'tricks of the trade' -- tips from our members

Post by vrkalak »

A Command Line Primer for Beginners

What Is the Command Line?
The command-line interface, sometimes referred to as the CLI, is a tool into which you can type text commands to perform specific tasks—in contrast to the mouse's pointing and clicking on menus and buttons. Since you can directly control the computer by typing, many tasks can be performed more quickly, and some tasks can be automated with special commands that loop through and perform the same action on many files—saving you, potentially, loads of time in the process.

Note: This article is meant for people who are either new to the command line or only have a couple of command-line tricks up their sleeve.
If you're already conversant with most basic commands, you can send this article to others that still aren't up to your skill level and spread the good word about how great the command line really is.

The command line isn't just for wise Linux gurus. It's actually an awesome tool with almost limitless functionality. Here's a primer on how it works, and how you can do almost anything with it.

>> http://lifehacker.com/5633909/who-needs ... t-anything <<
vrkalak

Re: Linux 'tricks of the trade' -- tips from our members

Post by vrkalak »

.
tips4linux.com is a place dedicated to the Linux user.

Not only for the advanced but also for novice users who wish to learn how easy life with Linux can be and how customizable the operating system is.

http://tips4linux.com/
User avatar
MALsPa
Level 8
Level 8
Posts: 2040
Joined: Mon Nov 19, 2007 10:17 pm
Location: albuquerque

free linux command line pdf books

Post by MALsPa »

Not sure if these have been mentioned here (a quick search didn't turn up anything), but here are links to a couple of free books in .pdf format for folks interested in learning about the command line in Linux:

http://www.lulu.com/product/ebook/intro ... )/12665426

http://linuxcommand.org/tlcl.php

These were mentioned earlier at the Debian User Forums; though I'd pass the info along to folks here.
cra1g321

Re: Linux 'tricks of the trade' -- tips from our members

Post by cra1g321 »

REMOVING WINDOWS 7 FROM A DUAL-BOOT SETUP (LINUX MINT & WINDOWS 7)

This small how-to will explain some steps on how to remove Windows 7 from your computer, and resize Linux Mint so that it uses the space that Windows 7 used to use. To do this we will use a excellent partitioning program called Gparted.

Note
You will need a LiveCD of Linux Mint for this tutorial.
Remember to backup any files you want to keep from Windows 7. I recommend backing up to a usb pen drive or external hard drive.
I refer to screenshots during the how-to, which can be found at the bottom of the how-to.
My partitons may be different than yours so just adapt this how-to to apply to your partitons.

Now to get started
:twisted:

**STEP 1 -
Boot up into the Livecd of Linux Mint, after it has loaded enter Gparted into the filter textbox of the Mint Menu. Then click on Gparted from the menu.
After Gparted has loaded, you will see a list of all the partitons on your computer.
Look at the 1st screenshot, it is a screenshot of the partitions on my computer. I currently have LM9 (sda6 & sda5) in its own partition (sda1) then I have two partitions Windows 7 created (sda2 & sda3). For this how-to i have based it on my own partitions, note that the names/sizes and layout of your partitions may be different.


**STEP 2 (Deleting Windows 7) -
To delete windows 7 right click on its partitions and click delete. The windows 7 partitons will be the NTFS partitons if your not sure. You should now see 2 operations listed at the bottom of Gparted. Look at the 2nd screenshot to see how mine looks after I have told Gparted I want it to delete the Windows 7 partitions.
Note that Gparted wont actually perform these operations until we tell it to. It may look like on Gparted that the Windows 7 partitions have now gone but there still there.


**STEP 3 (Resizing Linux Mint and moving swap partition) -
If you look at the 1st screenshot I have Linux Mint's partition(sda6) and its swap partition(sda5) within a partition(sda1). This means that both these partitions are limited by the overall size of the partiton their in(sda1). So I will need to resize the sda1 partition to use all of the remaining free space.
If you dont have the Linux mint partition and swap in a partition then you wont need to do. If so skip down to the sentence that starts with ##
To resize the partition right click on it and click 'resize/move'. Drag the right arrow of the partition all the way to the right.
Once you have done this click the 'resize/move' partition.
## Now we have to move the swap partition over to the end of the partition or hard drive. Right click on the swap partition and click 'resize/move' now drag and move the coloured box with the two arrows all the way to the right. Just like i have done in screenshot 3. Then click the 'resize/move' button.
Now we can resize the Linux Mint partition, right click it and click 'resize/move' then drag the right arrow to the right as far as you can then click the 'resize/move' button. Just like i have done in screenshot 4.
If you look at the 5th screenshot you can see that the partitions are all setup completely now and the operations are ready to be started (ignore the unallocated 2mb space in my screenshot)


**STEP 4 (Checking & Applying Operations) -
Check now that you are satisfied with how the partitions are now setup and the operations that Gparted will perform. We can now tell Gparted to perform the operations by clicking the green arrow within Gparted.
Note it may take 5 or 10mins or even longer for the operations to be completed, depending on how you have chosen to setup the partitions.
You will know that Gparted has finished becuase it will display 'All operations finished'.
Now we can Exit gparted and reboot the computer.
You should now have successfully removed Windows 7 from your computer and Linux Mint is now able to use all the space you have giving it.
Job done :D

Below is a additional step on removing the Windows 7 entries from the grub menu. Note that it isnt necessary.
If you want to remove the Windows 7 entries from the grub menu, just login into Linux Mint, open the terminal and enter sudo update-grub
Enter your password if you are asked for it. Note that you wont see your password while you entering it.
Hit enter then you should see all the remaining entries listed in the terminal.
You can now close terminal because were done :D

SCREENSHOTS -
1 - Image 2 - Image 3Image 4 - Image 5 - Image
Last edited by cra1g321 on Sat Oct 16, 2010 8:37 am, edited 1 time in total.
User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Linux 'tricks of the trade' -- tips from our members

Post by mzsade »

Hi, i am the lazy spoiled member who has been piggybacking on the shoulders of Mint gurus for more than a year now, here's a little tip from me, always keep in reserve a kernel upgrade option in Synaptic. When there's a problem that just cannot be nailed as i had here; http://forums.linuxmint.com/viewtopic.php?f=49&t=53531, you will find that a kernel upgrade will most likely fix it.

PS: If this is bad advice please feel free to flag this post and remove it. :wink:
Linux User #481272 Reg: 15th Sept., 2008
Lumenary

About LaunchPad.net PPAs (Personal Package Archives)

Post by Lumenary »

Howdy...



Just thought I'd chime-in with my US $0.02:

  • PPAs (LaunchPad.net Personal Package Archives) Can be Your Friend:


    You've read about an enhancement (or fix for an especially annoying bug) for an application, and you just have to get it. So what do you do?


    Well, if you're particularly adventurous, you can always go to the application's web site, download the source, and try to compile it. Unfortunately, this often leads you down a path of seemingly never-ending build dependencies that must be handled before the code will compile to completion.


    However, someone else has probably gone to the trouble of compiling the new version, wrapping it up in an easy-to-install Debian (APT) package, and posting it to a Personal Package Archive on LaunchPad.net.


    Installing a package from a PPA is pretty easy; just follow these general steps:
    • 1. Using a web browser, search LaunchPad.net for the PPA with the app or update you need.

      2. Once the PPA's page has loaded, expand the "Technical details about this PPA" section, and copy the appropriate "deb http://ppa.launchpad.net/..." line to the clipboard. Make sure the Ubuntu distribution version identifier matches up to your version of Linux Mint ("karmic" = Helena, "lucid" = Isadora, "maverick" = Julia, etc.).

      3. Start "Synaptic", go to Settings --> Repositories, click the Other Software tab, then click the Add... button. Paste the contents of the clipboard into the APT line field with Control-V, then click the Add Source button.

      4. Switch back to the PPA web page, and click the "Signing key" link. In the "Search results" page that appears, click the 8-digit hex number in the "keyID" column. This will take you to the page containing the actual PGP Public Key for the PPA.

      5. Select all of the text in the PGP Public Key page with Control-A, then copy the text to the clipboard.

      6. Start "gEdit"/"MousePad"/"Kate"/whatever, and paste the contents of the clipboard into a new, blank text file. Save this text file as "ppa-name.key" (or some other descriptive name). Close the text editor.

      7. Go back to the Synaptic "Software Sources" dialog box. Click the Authentication tab, then click the Import Key File... button. Find and select the "ppa-name.key" file you saved in Step 6, above.

      8. Once you've verified that the key has been added to the Trusted software providers list, click the Close button. Synaptic may throw up an alert indicating that the Repositories have changed; that is to be expected.

      9. Click the Reload button in Synaptic, then click the Status button. The new/updated application should now appear in either the "Installed (Upgradeable)" or "New in Repository" section.

      10. Mark the new or updated software for installation, then click the Apply button to install it.
    I should note that there are other ways of installing software from PPAs; the ten steps listed above can be condensed into three or four shell commands (mostly consisting of "sudo apt-key ...", "sudo apt-add-repository ...", and "sudo apt-get install ..."). However, I believe that going through the steps presented above can provide a deeper insight into how Debian/APT package management works behind-the-scenes.
  • PPAs (LaunchPad.net Personal Package Archives) Can be Your Enemy:


    While the distribution of potentially malicious software on LaunchPad.net is (or has been, to this point) a very rare occurrence, it can happen. The best way to protect your system (and your personal and private data) from malicious packages is to be vigilant:
    • 1. Be wary of PPAs that offer binary packages without links to the corresponding source code and patches. The key to F/LOSS (Free/Libre` Open Source Software) is that the source code is available for examination and scrutiny. If the PPA maintainer isn't providing access to the source code and patches used to build the package, then what is the maintainer hiding?

      2. Check LaunchPad.net for bugs posted against a package. If a lot of bugs have been filed, but the PPA maintainer hasn't answered, avoid the package.

      3. Search UbuntuForums.org and other well-regarded web sites for references to the PPA you're interested in. If discussion threads seem to have a low opinion of a certain PPA (or a significant portion of its packages), avoid it.

      4. Try the package on a non-production or "data clean" system first. This way, if the package does something you don't like, or you suspect that the package is up to something nefarious, you're limiting your risk to a system you can afford to wipe clean. A good way to do this without investing in new hardware is to use virtualisation software, like Linux-KVM or VirtualBox.
Just like any other technological innovation, PPAs can be (and are) a double-edged sword. They can make your life easier through the provision of enhanced features and/or timely updates, but they can also be used to compromise systems and steal data. A little self-education can go a long way toward protecting your system and information from malicious packages while enhancing your system's functionality.



Best Regards,

Lumenary
US-OH-Newton Falls
TZ=EST/EDT
dawgdoc

Re: Linux: Tricks of the Trade -- tips from our members

Post by dawgdoc »

A few potentially helpful links:

10 Essential UNIX/Linux Command Cheat Sheets -(Downloadable & Printable)
http://www.junauza.com/2009/08/10-essen ... cheat.html

Overcoming the Fear of Linux Terminal -- (Essential Commands and Keyboard Shortcuts)
http://www.junauza.com/2007/11/overcomi ... li_01.html

8 Most Useful Commands and Keyboard Shortcuts Linux Newbies Should Know
http://www.junauza.com/2008/06/8-most-u ... board.html

Each of the above has links to other useful sites.
gizmodo

Re: Linux: Tricks of the Trade -- tips from our members

Post by gizmodo »

TIP 1:
join the community,
hang out on IRC or the forums.
talk to people, help people with issues, share ideas (or code/artwork for that matter ;) ). this will get you a lot further than being a ass whining for help in #linuxmint-help channel or forums

TIP 2:
learn from linux

really, learning about linux or general computing is gonna help you a lot. fiddle with it, try things out, if u break things (which u will, thats just a FACT) learn from it. but remember keep enjoy learning from it. it shoud be fun remember? :D

that are just my 2 cents for now.. maybe i will put more on this.
Habitual

Re: Linux: Tricks of the Trade -- tips from our members

Post by Habitual »

a couple of nuggets:

http://askubuntu.com
http://ss64.com/bash/

.bashrc nuggets
Leave man pages on the screen when you exit them.
echo "export LESS='FiX'" >> ~/.bashrc

Re-bash and type man bash and scroll a page or 2 then Q for exit.
It stays on the screen. Sweet.

Colorized man pages:
Stick this in your ~/.bashrc

### Colorized man pages
export LESS_TERMCAP_mb=$'E[01;31m'
export LESS_TERMCAP_md=$'E[01;37m'
export LESS_TERMCAP_me=$'E[0m'
export LESS_TERMCAP_se=$'E[0m'
export LESS_TERMCAP_so=$'E[01;44;33m'
export LESS_TERMCAP_ue=$'E[0m'
export LESS_TERMCAP_us=$'E[01;32m'

exit shell and fire up terminal type man something

export GREP_OPTIONS='--color=auto' GREP_COLOR='7;31'
This will highlight your grep search word/term in a "Big Red Flag" literally.

I have a whole site dedicated to nuggets, so it's hard to pick the best ones and stick them here...
jesica

Re: Linux: Tricks of the Trade -- tips from our members

Post by jesica »

lol

here is alot of reading
vrkalak

Re: Linux: Tricks of the Trade -- tips from our members

Post by vrkalak »

Found a good site with these:

Many good FLOSS Manuals (Free Linux Open Source Software)

http://en.flossmanuals.net/

Some are quite interesting . . . check 'em out.
richyrich

Re: Linux: Tricks of the Trade -- tips from our members

Post by richyrich »

Most members know that the terminal command : aplay -l (small case L) will show them their detected audio hardware . . . now run that same command, but this time use an upper case L : aplay -L . . now it shows their detected audio hardware's capabilities !
Locked

Return to “Chat about Linux Mint”