1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux Questions

Discussion in 'Entertainment and Technology' started by Pret Allez, May 24, 2013.

  1. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    I know this is kind of odd for being an LGBT forum, but this is the technology subforum, so I get to do this. I know that we also have a fair number of GNU/Linux or BSD users here as well as people who might be wanting to get their feet wet with this sort of thing. In the interest of helping everybody out and getting to learn more myself, please post your Linux questions. I feel like computing knowledge is a wonderful gift we can all give to others, no matter where we're at in our experience.

    Perhaps some of our veteran users would be excited to answer your questions too.

    As a disclaimer, I guess I want to say that I'm pretty hesitant to make recommendations about things I haven't tried, so if you mention a distribution or program I haven't used before, I'll try to install it in a VirtualBox environment and see if I can learn enough to help.

    Warmth,

    Adrian.
     
  2. SimplyJay

    Regular Member

    Joined:
    Apr 21, 2012
    Messages:
    829
    Likes Received:
    10
    Location:
    Colorado
    Gender:
    Male
    Gender Pronoun:
    He
    Sexual Orientation:
    Bisexual
    Out Status:
    Not out at all
    I recently setup Ubuntu Linux (not such an easy thing to get working decently LOL I'm glad I feel comfortable typing stuff @ a command line / terminal window :slight_smile: )
    There are some questions I do have (that I was gonna ask about on another forum/site), but need to look at some stuff 1st / then figure out what to say/ask LOL
     
  3. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    Don't be worried, ask away. I recall that you have some techiness. :slight_smile:

    Part of what confuses people (including me) about Linuxes is that the application names are different. Often, we know what we want, just not what it's called and how to get it. Those of us who are formerly or currently Windows users are also used to configuring our computers with Control Panel, but sometimes, that's multiple tools depending on what you're doing.

    Ubuntu does require some setup, because there are a few things that really should work out of the box and don't (like Flash for YouTube, etc). They might have changed things, but you used to have to use a package called ubuntu-restricted-extras.

    I just tested out Linux Mint for myself (which is a whole lot like Ubuntu), and Flash/YouTube worked out of the box without me having to install a single package.
     
  4. Stridenttube

    Stridenttube Guest

    Here's my question: why would anyone use Linux? I don't understand why anyone would use it as their main OS. Then again, Linux holds less than 1% of the market share.
     
  5. BMC77

    Full Member

    Joined:
    Feb 27, 2013
    Messages:
    3,267
    Likes Received:
    107
    Location:
    USA
    Gender:
    Male
    Gender Pronoun:
    He
    Sexual Orientation:
    Gay
    Out Status:
    A few people
    Some of my reasons:
    • Historically better security. Part of this, of course, is due to low numbers of users. But Microsoft made bad decisions, like letting users run in root/Administrator mode all the time.
    • No licensing headaches
    • The price cannot be beat
    • There is more flexibility to configure the system to do what I want
    • I am not interested in supporting Microsoft, which was a monopoly. That situation may be changing now with the drift towards phone/tablets...but they still have too much of the desktop market for my comfort.
     
  6. Just Jess

    Full Member

    Joined:
    Jan 19, 2013
    Messages:
    1,237
    Likes Received:
    0
    Location:
    Denver
    In GNU/Linux communities, the question I'm used to is "why on Earth would anyone use Windows". So I'll answer that one first so you know I'm not just talking out of personal bias. I'm a developer, and as a developer, I strive to be OS agnostic. My fave OS is the one I built like legos :wink:

    Windows machines work as soon as you plug them in the way they're expected to by everyone on Earth. You don't have to teach people how to use a Windows computer. So if you're setting up a generic workstation computer, you'd be dumb not to use windows. We're talking no configuration, no downloading anything, no installing anything, just plug it in and it works, and it works with all your hardware. And maybe you have some network configuration, but you know what? Once you configure a single computer, you can just copy that config in to the rest.

    So why use Linux? Windows computers don't do anything basically. What I mean is, yes they finally offer development tools for free. They never used to. But mostly, they're geared for what most people do with computers - browsing the internet, checking your e-mail, listening to your pandora, etc.

    Okay here's some jargon sorry.

    The development environment is optimized for Windows. If you want to develop for something that isn't windows, the traditional choices are eclipse + Java, cygwin, and mingw/msys. Or you could limit yourself to a scripting language like python or perl and try very hard to keep your code cross platform. If you're writing desktop application code, you're going to have to learn something like autotools so your code works everywhere. If you're using Java, you have to put up with basically everything being in a sandbox and not being able to make any assumptions about the host outside the VM. And if you're like me and you like making your own hardware, it's way way easier to write drivers if you have access to the kernel source. I've only been able even to test plain RS-232 serial stuff (e.g. Bluetooth) work on Windows through cygwin (or high level libraries that make a lot of assumptions through VC++) since Windows doesn't give me any pseudo-terminals and tty terminals... well I guess there's PuTTY but then what about the pty. Most of the stuff you'll find on Windows is "enterprise" development, which means it A) costs money, and B) restricts you to the enterprise sub-os as far as their way of doing things, and most annoying, C) requires you to learn the enterprise development environment in ADDITION to the language you're learning. In fact, item C) is actually harmful to you as a developer, since when you're learning the language, you're learning it in terms of the environment, meaning you can't use what you know outside the enterprise environment.

    The difference with Linux is obvious immediately. Everything is configurable. If you're computer is doing something, it's because you told it to, it gives you a full report, and you can change the way it does it. Period. Everything. If you didn't give it permission in advance, it just doesn't happen. All your development tools are free, and any tool can be used to change the way your computer works. You don't have huge monolithic enterprise environments you have to re-learn every time your boss buys a new one. You have billions of tiny tools that do on thing and one thing only, most of them have existed in the same form with only stability and security updates since the '70s, and you just pick and choose the ones you're comfortable with.

    So basically, your OS adapts to you, rather than you adapting to your OS. And if hardware does work in Linux, you get to see the guts and exactly HOW it works. Even if there's a rare proprietary driver that wins over the free stuff, the free stuff is still there and still educational. In a nutshell, you can sit down at any linux computer in the world, and it's already set up and personalized to you.

    And the cloud? Nerd listen. POSIX has had "the cloud" since before our parents were in diapers. Some of the technology names have been changed - secure shell replaced telnet for instance. But if you've configured your workstation properly and use some version control in your projects, everything you do on any workstation is going to be on every computer you own, always. The difference? YOU own the cloud. Dropbox is basically crude stone age tools.

    Couple that with the fact that Linux will run on computers older than I am just fine, and basically, you can smash a linux computer with a hammer and never ever lose anything of value, hardware or software side.

    So tl;dr, what I mean by "windows doesn't do anything" is really "the things that windows does out of the box for no more money than what you paid for your computer already the same way on every computer, aren't all that useful to developers"

    Or tl;dr, tl;dr, windows doesn't do anything.

    Except on tablets. I've got to say I'm a huge fan of the way Windows 8 has a full fledged, load up your development tools OS on a tablet. Kinda sad that Android OS is so kiosk honestly.

    Why do I use linux? Because between 1985 and 1999 the only languages I knew how to use proficiently were BASIC, Python, and Visual C++ using MFC. If my computer didn't do something I wanted it to do, I bought a new program.

    Now? Now I have a decent shot at writing anything, anywhere, and if my computer doesn't do something I want it to, I write a quick script and it does now.
     
    #6 Just Jess, May 25, 2013
    Last edited: May 25, 2013
  7. Stridenttube

    Stridenttube Guest

    I see these as pretty lame reasons. Please explain these "licensing headaches." Also, I wouldn't go as far as say Linux has better security, it doesn't. It just has a very small market share in the same way Mac has very little market share.

    Microsoft just has better support in every way.
     
  8. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    My intent of this thread was more for people using or wanting to use GNU/Linux to post their technical questions. It's not really for debating the merits of proprietary software versus free software.

    The only reason proprietary software is being seen as "better" right now is network effects. They command a high degree of the market share because they command a high degree of the market share. Depending on your use case, GNU/Linux can work fine for you: my use case is gaming, and development. As always, my development tools are top-notch. With Wine, my gaming is also brilliant. I am able to play fairly new and recently maintained games just fine, like Skyrim, and League of Legends. It suits my purposes, which is good, because my system is for me. It's not for anyone else.

    If Windows is for you, that's fine too. I still look forward to the commercial failure of Microsoft over time...
     
  9. Just Jess

    Full Member

    Joined:
    Jan 19, 2013
    Messages:
    1,237
    Likes Received:
    0
    Location:
    Denver
    You know actually I have a question.

    I'm trying to get into virtualization because I'm tired of dual booting. Forever ago I used coLinux. I know most people nowadays use VirtualBox or VMWare.

    I was wondering if anyone had any success using qemu or xen. Any distro except SUSE.

    Also, since windows is tying more security stuff into the bios, are there any computers I could buy in a brick-and-mortar store that I should avoid if I want linux as my "bare metal" OS?
     
  10. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    1) I don't know, as I haven't used Qemu or Xen. I'll try at least one of them just for you. I use VirtualBox, and I have no complaints yet. Is there a particular reason you don't want to use VirtualBox?

    2) Are you talking about secure boot, i.e. TPMs and the idea of the bios refusing to boot payload not cryptographically signed as trusted? I don't know, but I think that you should probably go ahead use a motherboard that you know is compatible with Coreboot. That way, you can be sure that you can boot the software you want.
     
  11. Just Jess

    Full Member

    Joined:
    Jan 19, 2013
    Messages:
    1,237
    Likes Received:
    0
    Location:
    Denver
    Virtualbox is working pretty great, it's just that it was kind of a pain when I wanted to make windows my guest last time I tried. I think I had to use a tool from VMware and even then I had to muck with the registry because Windows complained it wasn't on the same hard disk any more. I'm using windows as my top level right now.

    Ideally I guess I'd like to just be able to swap out my OS like any other part. Which leads into the second question, which you got.
     
  12. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    I'm on Arch Linux, with KDE on top of that.
    Code:
    uname -a
    Linux Analysis 3.9.3-1-ARCH #1 SMP PREEMPT Sun May 19 22:50:29 CEST 2013 x86_64 GNU/Linux
    I am trying to get QEMU working with Parabola GNU, but I am having trouble getting the network functioning. Sorry. :frowning2:

    Also, it looks like QEMU is probably a better technical direction. Also, it seems like they can emulate MIPS and ARM, which I'm not sure if VirtualBox can do...
     
  13. kem

    kem
    Full Member

    Joined:
    May 24, 2010
    Messages:
    1,936
    Likes Received:
    0
    Location:
    Kerava, Finland
    I am a casual Ubuntu user. It has everything I need except Netflix and Spotify It has everything I need, I like the interface and having 4 desktops is immensely useful. I have to admit that I need to look at tutorials if I want anything done because although I'm interested in the tech world I'm a bit baffled by it. I'm glad you made this thread because I feel awkward asking help on unknown fora, now there's a place I can turn to when in need of help.
     
    #13 kem, May 25, 2013
    Last edited: May 25, 2013
  14. someguy

    Regular Member

    Joined:
    Aug 31, 2011
    Messages:
    199
    Likes Received:
    0
    Location:
    The Twilight Zone
    Gender:
    Male
    Gender Pronoun:
    He
    Sexual Orientation:
    Gay
    Out Status:
    Some people
    I can't comment on xen, never used it. However I am using qemu with kvm support, it's really great I am yet to have a guest OS act of all funky like they have done so with Virtualbox and all the guests have been compatible with the virtualised hardware. Most distributions should be compatible right out of the box with qemu and better yet qemu with kvm support, where the kernel becomes the hypervisor. Qemu doesn't include a GUI, that you'd need to go third-party for. I can't comment on any of the GUIs because I prefer to launch it from CLI.

    For your viewing pleasure:
    Code:
    ----------@------------ ~ $ uname -a
    Linux -------------- 3.9.4 #1 SMP Sat May 25 09:04:31 EST 2013 x86_64 GNU/Linux
    I am running a vanilla kernel on Gentoo.
     
  15. Just Jess

    Full Member

    Joined:
    Jan 19, 2013
    Messages:
    1,237
    Likes Received:
    0
    Location:
    Denver
    Well hey thanks Pret and Someguy!

    Someguy, as far as networking qemu using a tap and a tunnel, a) how hard is that and b) any good web sources?
     
  16. Pret Allez

    Full Member

    Joined:
    Apr 19, 2012
    Messages:
    6,785
    Likes Received:
    67
    Location:
    Seattle, WA
    Gender:
    Female (trans*)
    Gender Pronoun:
    She
    Sexual Orientation:
    Bisexual
    Out Status:
    Some people
    Whatever, I can't figure out this network thing, and it's making me sad. Anyway, I was able to get a basic test going pretty easily:

    Code:
    qemu-img create -f qcow2 parabola.qcow2 4G
    qemu-system-x86_64 -cdrom parabola-2013.04.27-dual.iso -boot d parabola.qcow2
    
    QEMU can start virtual machines using other architectures:

    Code:
    ls /usr/bin | grep qemu-system
    qemu-system-alpha
    qemu-system-arm
    qemu-system-cris
    qemu-system-i386
    qemu-system-lm32
    qemu-system-m68k
    qemu-system-microblaze
    qemu-system-microblazeel
    qemu-system-mips
    qemu-system-mips64
    qemu-system-mips64el
    qemu-system-mipsel
    qemu-system-or32
    qemu-system-ppc
    qemu-system-ppc64
    qemu-system-ppcemb
    qemu-system-s390x
    qemu-system-sh4
    qemu-system-sh4eb
    qemu-system-sparc
    qemu-system-sparc64
    qemu-system-unicore32
    qemu-system-x86_64
    qemu-system-xtensa
    qemu-system-xtensaeb
    
     
  17. BMC77

    Full Member

    Joined:
    Feb 27, 2013
    Messages:
    3,267
    Likes Received:
    107
    Location:
    USA
    Gender:
    Male
    Gender Pronoun:
    He
    Sexual Orientation:
    Gay
    Out Status:
    A few people
    Sorry! Didn't mean to derail your intentions.

    I'll go now and crawl back under my rock...
     
  18. I build my 4 year old a computer using a Linux distro called Kimo. It was designed with kids in mind. It has a lot of educational stuff on it. I put it on a SUPER old computer and it runs like a champ.

    Things like that are impossible with Windows. It would have cost a lot to put together a computer for him, but because Linux is free and it runs well on older computers, he is a 4 year old with his own computer.

    edit: Sorry. I responded before I saw that you didn't want to debate.

    ---------- Post added 25th May 2013 at 10:54 PM ----------

    I am a new Linux lover. I would love to be able to personalize my own OS. I am not sure where to start.

    I have dabbled in programming. Objective-C ( I have a mac ) and Java mostly. I am going to start working on Python.

    In our home we have Win8, Win7, Linux, & Mac

    Where should I start?
     
    #18 hawaiianflower, May 25, 2013
    Last edited by a moderator: May 25, 2013
  19. Just Jess

    Full Member

    Joined:
    Jan 19, 2013
    Messages:
    1,237
    Likes Received:
    0
    Location:
    Denver
    Well hey, since you've used Objective C, you know MVC (Model-View-Controller). That's gonna help you everywhere as a developer.

    You can go really far with Java these days, and it's a c-style language, so you can apply what you learn in Java to a lot of things.

    Sorry gonna get jargony but just this paragraph. The only thing that holds it back is, functions aren't 1st class objects. But you can work around that with anonymous inner classes. Also you have single inheritance working against you, but you have interfaces for that. And most frameworks like the Android SDK work around Java's limitations anyway, so you can do message-passing style programming even in Java.

    You did things the right way though. Objective C and Python really teach you how to code, and once you know how, you can apply what you know in Java pretty much everywhere.

    If you wanna personalize your OS itself though you might also want to learn GTK+ or QT. Those are frameworks your window manager in Linux will use. Think of those as the "view" part of MVC. Or to put it another way, if you design the look and feel of something in XCode, then all the non-code layout stuff, you can do in GTK+ or QT.

    And if you want a good "model" you should learn a database. SQLite is good for programmers, and MySQL is good if you wanna make money coding for the web.

    Controller wise, in addition to python, you might want to pick up PHP or Perl, again, so you can make money web designing.

    And if you already know Linux, Mysql, and PHP, then you can make the big bucks and install an apache server or lighttpd. That combination is called the LAMP stack (Linux, Apache, MySQL, PHP), and lamp stack developers get good paying jobs with no college education.
     
  20. Awesome. I started looking at MySQL a few years back. I need to reacquaint myself. Learning the LAMP stack sounds exactly what I am looking for.

    Do you have any suggestions for resources? Learning tools? I am a self learning so books are great.

    Thank you! :thumbsup: