DISQUS

The Linuxologist: The 7 Habits of Highly Effective Linux Users

  • Pliggs · 1 year ago
    STUMBLED!

    Great list.


    VOTED for you at:
    http://www.newsdots.com/tutorials/the-7-habits-...
  • pongscript · 1 year ago
    I like linux, but ofcource there is one think i dont like about it. it changes too often in short period of time. once i installed a distro. a newer version of distro will come up. and sometimes changes were ok. but too much was bad idea.
  • daniel · 1 year ago
    I hear ya, pongscript. Why can't those pesky developers just let things stagnate once in a while? All those forced upgrades all the time piss me off. Amirite?! Idiot.

    Great article. Dugg.
  • chon · 1 year ago
    Daniel......nobody forces you to upgrade.
    I have pclos .93 on one of my partitions.
    It isn't upgraded for a year, and runs just fine.

    Pongscript. if a new one comes out, do you really have to install it?
    Who is standing behind you with a gun to your head ?
    I never upgraded to XP, just because it was there. I still run win98 without any problems.
  • Ridgeland · 1 year ago
    I agree very much your views. But I don't move /home rather I created a partition /Data that has all the NFS stuff like /Data/Images and /Data/Music shared by OS to OS and PC to PC. /home has settings that can be OS dependent + package version dependent. I have another partition /UserHome to have bookmarks for Firefox, all of Thunderbird, .bashrc. Several things but far short of all of /home. Links or copy is easy to do for so few items. Bookmarks link to a common file so all adds and edits are shared OS to OS. Firefox 3 breaks this though :(
    I found SuSE handled my webcam better than Ubuntu then I found Mandriva did better than SuSE. Don't be afraid to multi-boot and you can have the best available.
  • L815 · 1 year ago
    pongscript, why not go with a LTS(long term support) version?
  • Morten Juhl-Johansen Zölde-Fej · 1 year ago
    I disagree with the concept of recycling /home. The thing is, if you use varying systems, they are bound to use different versions of software; and if they do, there will be problems with the dotfiles with settings.
    Now, I usually have a dual- or triple-boot system, and I have made a storage partition, which goes into /mnt/storage.
    After that, I have a script with:
    ln -s /mnt/storage/documents ~
    ln -s /mnt/storage/library ~

    - and a couple of more folders which get symlinked in the home folder.
  • noada · 1 year ago
    make a tips file full of command line tips for yourself. Who can remember all the particulars. But Hardy Heron is so gui friendly that your grandma could use it.
  • Saumil · 1 year ago
    digg bait stuff, utterly shallow on information content.
  • yifan · 1 year ago
    Thanks, this is great!

    But I cant get the skinny elephant work...all I did is press Alt+SysRq+i, there would be nothing happen but a normal screenshot dialogbox popping up. Don't know much about this:)
  • scott · 1 year ago
    "distro without loosing your data" - um, is your data loose? or do you mean "losing"?

    (but hey, good article)
  • yifan · 1 year ago
    And the above issue is on SLED10.
  • Soandso · 1 year ago
    What's up
  • RameTux · 1 year ago
    Woow.. It's so me.. I always tell everybody to do so but they just don't get it. They just don't understand the meaning of effectiveness.
    Nice article..
  • gwelch925 · 1 year ago
    Forget partitions, with exception to the boot partition, put everything into Logical Volume Groups. I would say all distributions support them, but ironically the Ubuntu Live Install CD requires finagling. At home I use them to replace partitions, for those that don't know you can only have 4 primary partitions per harddrive. So one for swap, one boot, one home/storage, and one root. What to do if you want to double, triple, dodeca boot? Use an LVM setup. I am currently triple booting Fedora, OpenSuse, and I plan on rotating the third. At work we use LVMs for everything. Snapshotting every hour and daily gives use intermittent backups, add weekly tape backups and the SCSI Raid we are fairly well covered. One server is running Xen and uses a VolumeGroup to run, currently, 3 Virtual Machines at once. Pretty powerful stuff.
  • kgrube · 1 year ago
    "Why did the guide as you to do thi..."
    should be
    "Why did the guide ask you to do thi..."
  • bhagwat · 1 year ago
    useful tips. thanks
  • Wayne · 1 year ago
    Please don't use Creative Commons licensed content and not properly attribute the authors.

    http://www.fsckin.com/2007/10/02/amazing-anime-...
  • Sean Penn No Relation · 1 year ago
    Yes, symlinking folders (like Documents) in your home directory is definitely the way to go. Just keep in mind that if for some reason you decide to share your home directory via Samba or NFS those directories may be inaccessible on some clients.
  • Frank · 1 year ago
    I have been logging in as root since SuSe 6.3,
    that is 9 years. Nothing happened. But everytime
    I log in as a simple user, I get a fit.

    As for crash recovery, read the kernel documentation
    file SAK.txt by A. Morton and hurry up: assign the
    SAK key to .
  • Sachin · 1 year ago
    Nothing new :(
  • avl · 1 year ago
    Sachin is right....
    these are age old tricks
  • Bish · 1 year ago
    Had to stop reading once you stopped writing English. Argh! What a terrible way to represent some great pointers. Can't recommend this article until it's been proofed.
  • Avatar · 1 year ago
    There is also one more thing about recovering from system halt

    when Ctrl+Alt+Del doesn't seem to work (or even you are unable to go to Terminal1 with Ctrl+Alt+F1) you naturally think about "cold rebot". There is much more civil way: Punch Ctrl+Alt+SysRq+(S, U, B). The sequence is important: first one Synces disks, second Unmounts the drives and third reBoots the system. The outcome is that most probably no data will be lost. This option however could be disabled in older kernels. to check if it works, go to terminal 1 and punch Ctrl+Alt+SysRq+H - it will display all available options.
  • John · 1 year ago
    I love dogs.
    I got a wallet.
  • peej · 1 year ago
    I am looking for an easy text editor program that will ftp up my changes at the press of a button. I am comming from a windows background and use a program called "crimson editor". As yet (strangely enough) I have not decided upon the distr' of linux I want to use. Any suggestions out there, thanx peej.
  • FreeBSD · 1 year ago
    Linux is a piece of sh*t. Use FreeBSD!
  • Nick · 1 year ago
    NIce write-up. One nice thing to add, on section 4 - Proper Crash Management, between steps 4 and 5 or 5 and 6, depending on the nature of the 'crash', add remote login to the system to attempt to kill the process. I am sure every true Linux geek out there has more than one PC and more than one means to connect remotely to that PC :)
  • C.D. · 1 year ago
    Just a simple tip for all new, and maybe some "seasoned" Linux users: keep a journal. Writing down the commands used and why, you can refer back at anytime.
  • Samuel T · 1 year ago
    "handling files with spaces in the terminal is kind of awkward."

    I see your point, that backslash key is hard to reach, and double-quoting filenames is such a drag.
  • kewlhacker · 1 year ago
    English?
    Stay on topic please, Bish

    Nice.
    By the way, pidof will show you proccess id of an application.

    [QUOTE]If that doesn’t work, you might want to restart your GUI using the CTRL-ALT-Backspace combo. Beware, that this will kill all your GUI apps currently running[/QUOTE]

    This will happen unless you programmed gnome to save your session.

    ...zzzzzzzzCiao
  • Rami Taibah · 1 year ago
    @kewlhacker, never thought one can do that, I better look it up.

    Thanks to everybody who commented and liked the article.

    Thanks to the ones who fixed my spelling and/or mistakes

    And as for the detractors, all I say, getting 100% approval rate is unheard of. Luckily it's a minority, I am sure there are other stuff on this blog you would appreciate :)
  • tablet · 1 year ago
    You mentioned linux on a business card cd/dvd. Where do you find a blank one to burn the iso? I have
  • Rami Taibah · 1 year ago
    @tablet: The link to DSL version seems to be down (the one provided in the article), however here are some other resources:

    http://librenix.com/?inode=3223
    http://en.wikipedia.org/wiki/Bootable_business_...
  • deep · 1 year ago
    I'm a highly-effective Linux (and Unix) user, and I've been logging in as root for as long as I can remember, on both personal & production systems, and I have yet to make a mistake that wasn't immediately correctable (i.e., no need to restore from backups, no downtime, etc).

    It's a silly piece of advice, really, for two reasons:

    - it promotes carelessness, because sudo is perceived as a safety net.
    - people typically just give themselves access to *everything* via sudo.

    Personally, I would recommend learning Linux on a machine that you can afford to screw up, and *really* learn how to use Linux (i.e., login as root, don't use sudo). When you're forced to think about every command you type, you'll eventually reach a point where you simply don't make mistakes (assuming you proofread all CLI input beforehand).
  • Jim · 1 year ago
    You're so right! Especially with 1, 3 and 5.

    1:
    Nobody needs permanent root access. At least, if you aren't constantly configuring your system. Which you shouldn't be, being a highly effective Linux user. It's all about self control. Being root should be a rare, impressive experience. Not something you don't care about any more. It's this carelessness which leads to mistakes.

    3:
    I created an extra partition, mounted in /Data/. There I put /home/ and /usr/local/, pointing symlinks to them from the original positions.
    This is just because, over time, I had many self-compiled stuff in /usr/local/ (distros normally don't install something there), which I'd also like to keep on upgrades. Maybe I'll put this /Data/ partition on an NFS-server. I can only recommend such an extra partition!

    5:
    My first distro was SUSE - man, I'm glad I switched to Slackware! Yeah, I know what they say: No package management and such... (which isn't even true - there's just no automatic dependency checking). But everyone just try it, before mocking around!
    It's so damn sexy. No stupid scripts sitting everywhere, no being forced to use graphical config tools. And, @pongscript: No automatic upgrades ;-)
    Perfect for learning how Linux works.

    For testing other distros, I use QEMU. I don't really like Vmware.
  • Jim · 1 year ago
    Ah, and about /usr/local/:
    stow/xstow is an excellent tool to organize your /usr/local/. Absolutely transparent and easy to use.
  • Karl O. Pinc · 1 year ago
    I like point 6.

    But you need a point 8. Install only the software provided by your Linux distro. The Linux distro does all the system's integration for you, making sure every installed program works with every other installed program no matter what's installed. Violate this rule if you're an expert, but otherwise you'll eventually experience Microsoft-like version incompatibilities and breakages, especially at upgrade time.

    One of LInux's best features is that it just keeps working, even as you continually stay up to date with the latest software. The distros work hard to make this happen, if you get in the way be careful not to get run over.
  • Oshu · 1 year ago
    Nice tips.

    Personally, I think number 1 should be "Never login to a graphical environment as root." It is ok to login on the console as root, just not graphically. One reason you don't mention for not logging in to a graphical desktop as root is that every single application on your desktop is now capable of trashing your machine. For example, if you run firefox and some page uses an exploit to run code on your machine, you are giving them a free pass to run it as root.

    Also, I take issue with number 5. It seems to me that distro hopping is huge among those new to linux. I've known people to keep trying different distros until all their hardware "just worked" after install. I always tell them they would have learned a lot more if they had taken some time to get their first distro working. Fact is, you learn a lot more when things are not working and you have to fix them. I say, pick a distro and learn everything you can about it before trying another one. Sometimes, the best distro to choose when you are beginning is the one used by your local linux expert friend. That way you can learn a lot and get help from your friend.
  • Rami Taibah · 1 year ago
    @Karl: Point taken, will add it under "Our readers habits" or something, let me just aggregate them. Will be added in a few days :)

    @Oshu It's nice to see you drop by again :) As for your first point, yes maybe I should add it in the title, but that can be understood from the context of the paragraph.

    As for the second point I did not mean by anyway to keep on going until you find the "just work" system. If you notice I encouraged using virtualization, a separate partition, or a whole different machine, all under the assumption that there is a base system to work on.
  • Oshu · 1 year ago
    @Rami

    "As for the second point I did not mean by anyway to keep on going until you find the “just work” system. "

    Oh, I'm sure you didn't mean it that way, but I think a lot of new users might see it that way.

    Here is another tip: Buy a lot of books. Every crafty linux system administrator I know has a shelf or two of linux and related books. Best place to start if you ask me is Classic Shell Scripting (which will teach one all about the power of the command line as well as shell scripting).
  • deep · 1 year ago
    "Here is another tip: Buy a lot of books. Every crafty linux system administrator I know has a shelf or two of linux and related books. Best place to start if you ask me is Classic Shell Scripting (which will teach one all about the power of the command line as well as shell scripting)."

    Who's got time for books? Every crafty *nix SysAdmin I know uses a combination of Google, online eBook subscriptions (e.g., O'Reilly Safari), man pages, and their own PDF/CHM collection of whitepapers/books/technical documentation..
  • honest ape · 1 year ago
    Well written article, as usual.
  • Linux Blog Aggregator · 1 year ago
    Your blog has been added to Linux Blog Aggregator @ http://blogs.linux.org.bd :)
  • dajomu · 1 year ago
    If you are running kde you can ctrl+ESC or maybe it was ctrl+alt+esc and you will be able to click on the program you want to kill.
  • Andy · 1 year ago
    One think you may want to mention about SysRq (esp. to those who are having problems with it now): it has to be supported by your kernel to actually work. Many distros have disabled it by default.

    @deep:
    While the internet is one of the best resources for learning Linux, when you break networking and you don't have a spare machine, nothing will save you quite like a Linux guide for dummies type of book. Just my $0.02 (plus it helps with learning the CLI, since you CAN'T copy/paste from a book!)
  • crb3 · 1 year ago
    Another way to fix a frozen-X crash: if you can shell into the machine from another machine (which means: the two machines are networked together, you have ssh-server running on the problem machine, you have its firewall set to allow ssh connections from the second machine, and, finally, the problem machine's system has enough resources free that it can process your ssh login) you can su, ps -aux and kill or killall. Worst-case, if the program won't even -KILL (nfs-connected programs can be stinkers like that), you can even shutdown -r NOW to avoid a dirty reboot.

    @peej: Write yourself up a script (bash, tcl, perl, python, whatever you're comfy with) that, first, runs your favorite editor, then runs your choice of ftp tool to get that file uploaded. That's how we do it around here: connect the dots, by piping together small programs, each of which does one thing and does it well, to get the functionality you want.
  • NoName · 1 year ago
    ...and when an X app hangs, first hit Ctrl-Alt-Esc so the pointer changes into a little skull-and-bons icon, then click the window you want to kill.
  • John Griffiths · 1 year ago
    good article, made me think how to best setup my system. totally agree with the keeping a journal idea, the amount of commands you need daily can be a nightmare to remember; i bung it all on my website. keep up the good work and well done to this!
  • maxi · 1 year ago
    nice summary,

    sudo uninstall vista.....

    lol
  • Debian User · 1 year ago
    Some good points, I found myself using all of them lol.

    I used to use QEMU for my virtual OS'es, but have found VirtualBox instead (which is also free btw) and it's MUCH faster, has a nice (corporate-like) gui-setup to use etc.
  • chocbar31 · 1 year ago
    Alternate homes, alternate Distro's, effective habits. I have been using Ubuntu since '04. Even without effective gaming, I have not been able to look back on M$ products. I am a NetPanzer fool now anyway! Linux is clean and lets you utilize the I-net without lockups, and you can even kill all failed apps without having to reboot. Yeah, I'd say Linux is addictive!
  • Joe · 1 year ago
    When I hit ctrl+alt+esc my cursor turns into a little cross hair and kills whatever I click with it. Is this the same as Force Quit?

    -using PCLinuxOS and loving it!
  • Rami Taibah · 1 year ago
    @Joe I am assuming your KDE right? Well yes that's pretty much what force quit is :)
  • Quiz · 1 year ago
    I agree with never using root with your GUI. Welcome the rootkits to your front yard if you do
  • gareth · 1 year ago
    I love the article. However, I'm a grammar stickler, and you should change your "it's" to "its" where it is possessive:

    "Move /home to it’s own partition" should be "Move /home to its own partition"
  • peter · 1 year ago
    4-Proper Crash Management.
    Rami, thx for your education there. For me there is one logical step missing in your list. When applying step 4, and subsequently 2&3, how does one return to the original GUI session?
    /peter
  • Rami Taibah · 1 year ago
    Dear Peter, thanks for your dropping by. You can return to the GUI session by hitting ctrl-alt-f7 :)
  • Mitchell · 1 year ago
    Good article! I am just starting with Ubuntu myself, I can definitely see a lot of the things you've mentioned helping me a lot.