As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

The [Linux] Thread - Turn your three yard elf into a powerhouse!

1464749515263

Posts

  • VistiVisti Registered User regular
    edited March 2010
    So, hey guys. I can't remember when it started, but my poweroff button on my laptop doesn't do anything in singlepress in awesome.. No shutdown, no suspend, no anything. How do I get around this? I can bind something to it easily, but I don't know what. A third-party shutdown program?

    Visti on
    [SIGPIC][/SIGPIC]
  • SeeksSeeks Registered User regular
    edited March 2010
    Hmm. On the one hand, I dislike how DWM uses "alt" instead of the Windows key for its Mod1 button.

    On the other hand, by default, it lets me hide the panel with mod1+b.

    Now to decide whether it's a bigger pain to make Awesome do that, or to recompile DWM with the winkey as mod1.

    Choices choices choices.
    So, hey guys. I can't remember when it started, but my poweroff button on my laptop doesn't do anything in singlepress in awesome.. No shutdown, no suspend, no anything. How do I get around this? I can bind something to it easily, but I don't know what. A third-party shutdown program?

    You can always bind it to "sudo halt", or "gksudo halt" or whatever. If, you know, you want it to shut all the way down with one press.

    I am quick and decisive with my power button presses. 8-)

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • HounHoun Registered User regular
    edited March 2010
    Psst... you can change dwm's keybindings. Mine's controlled with the winkey.

    Houn on
  • SeeksSeeks Registered User regular
    edited March 2010
    !

    How?

    And for that matter, I assume config.h is part of the source tarball that you fuck with before compiling and install DWM. Otherwise, everyone is a silly goose for not ever saying where the fuck it is.

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • VistiVisti Registered User regular
    edited March 2010
    On the other hand, I'm pretty sure it's one line to make Awesome do that.

    edit:
    keybinding.new({ modkey }, "b", function ()
         if mystatusbar[mouse.screen].screen == nil then
            mystatusbar[mouse.screen].screen = mouse.screen
        else
            mystatusbar[mouse.screen].screen = nil
        end
    end):add()
    

    also, what I would REALLY like is to have a graphical menu to ask me what I want to do. I tried installing kshutdown, but it apparently doesn't have the privileges to shut down.. which is .. odd.

    Visti on
    [SIGPIC][/SIGPIC]
  • HounHoun Registered User regular
    edited March 2010
    Yes, the proper way to run with dwm is to keep the source on-hand and recompile it when you alter the config. config.h is a c header file that's referenced by the main c file. Altering the mod key is one line:
    #define MODKEY Mod4Mask
    

    It's really not that hard, there are plenty of guides.

    Houn on
  • VistiVisti Registered User regular
    edited March 2010
    Actually, scratch that. I have this working on the latest version and it is cleaner:
    awful.key({ modkey            }, "b",      function ()
           mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
            end),
    

    hides statusbar with modkey+b. Works really well.

    Visti on
    [SIGPIC][/SIGPIC]
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    Visti wrote: »
    also, what I would REALLY like is to have a graphical menu to ask me what I want to do. I tried installing kshutdown, but it apparently doesn't have the privileges to shut down.. which is .. odd.
    Of course it doesn't. That's reserved for root. This or this might be helpful.
    There are no animations as there is no reason to hide slowness. Windows can simply pop-up instead of ssssllllliiiiddding into view.

    User interfaces should not just be pretty, they should be elegant and even graceful, which is a much harder thing to achieve.

    Animations aren't there to hide slowness. They are mostly there for the shiny.

    I like the minimize animations that Compiz/Kwin supports because it serves as a little hint to where on the taskbar the application you minimized went to. I'll also go so far as to say that I hope they rip off Win7 with the progress bar on the taskbar entry.

    And if you want fast why are you bothering with XFCE? Clearly you should be using Awesome.

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • SeeksSeeks Registered User regular
    edited March 2010
    Yesssssssssss

    It works.

    Muchos gracias.

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • VistiVisti Registered User regular
    edited March 2010
    Barrakketh wrote: »
    Visti wrote: »
    also, what I would REALLY like is to have a graphical menu to ask me what I want to do. I tried installing kshutdown, but it apparently doesn't have the privileges to shut down.. which is .. odd.
    Of course it doesn't. That's reserved for root. This or this might be helpful.

    Yeah, I realize that it is reserved for root, but it is a program specifically for shutting down the computer, available in an Arch package, that does not in fact have the power to shut down my computer. I wish it was easier. I was looking at the first link earlier, but didn't find anything.. Must have missed the second one. Looks promising, thanks!

    fake-edit: also, it's not even complaining about priviliges, it's complaining that I don't have a session manager running, now that I look at it.

    Barrakketh wrote: »
    There are no animations as there is no reason to hide slowness. Windows can simply pop-up instead of ssssllllliiiiddding into view.

    User interfaces should not just be pretty, they should be elegant and even graceful, which is a much harder thing to achieve.

    Animations aren't there to hide slowness. They are mostly there for the shiny.

    I like the minimize animations that Compiz/Kwin supports because it serves as a little hint to where on the taskbar the application you minimized went to. I'll also go so far as to say that I hope they rip off Win7 with the progress bar on the taskbar entry.

    And if you want fast why are you bothering with XFCE? Clearly you should be using Awesome.

    Clearly.

    Which reminds me, I would love to see a distro use Awesome as default, but have it set up like a more regular DE: floating windows, titlebars, startmenu.. It's very doable and would make for quite an awesome package. Pun intended.

    Visti on
    [SIGPIC][/SIGPIC]
  • Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    edited March 2010
    Currently using Fuppes. It's sort of sketchy when it comes to dynamically updating content, and I can't get it to serve thumbnails, but that could be a function that I dreamed up. Of course, I am only using .640, while .660 is the current version so I might be way behind the times.

    Any recommendations for a UPnP media server for the future?

    Apothe0sis on
  • SeeksSeeks Registered User regular
    edited March 2010
    There's a thread for that:

    http://forums.penny-arcade.com/showthread.php?t=114305

    tl,dr; MediaTomb.

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • HounHoun Registered User regular
    edited March 2010
    Warning: Transcoding with Mediatomb is a bitch and a half.

    Houn on
  • Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    edited March 2010
    Transcoding will not be required, I think.

    On the plus side, mediatomb just made it into debian.

    Apothe0sis on
  • ImprovoloneImprovolone Registered User regular
    edited March 2010
    I'm getting sick of Eeebuntu on my Eee 901 (despite it being so great). Any suggestions? I've done Awesome and just couldn't get into it. I don't like those special netbook GUIs, I like it to feel like a "real" computer and not a smart phone. I'll expand here because maybe I'm doing it wrong. I never felt like I was able to use more than one program very well on those special OSs.
    What's Chrome looking like? I mostly stream video (this flash thing is killing me) and chat on-line. Nothing really heavy.

    Keep in mind that my SSD keep my OS on is 4gb. :cry:

    Improvolone on
    Voice actor for hire. My time is free if your project is!
  • ÄlphämönkëyÄlphämönkëy Registered User regular
    edited March 2010
    Hey Guys,

    Any recommendations for doing video screen capture of a video-game in Linux?

    I built an RTS interface for controlling robots and I'd like to make a screencast. I have it all rendered using the Panda3D game engine, but pictures don't really do it justice :P

    Thanks!

    Älphämönkëy on
  • SeeksSeeks Registered User regular
    edited March 2010
    I'm getting sick of Eeebuntu on my Eee 901 (despite it being so great). Any suggestions? I've done Awesome and just couldn't get into it. I don't like those special netbook GUIs, I like it to feel like a "real" computer and not a smart phone. I'll expand here because maybe I'm doing it wrong. I never felt like I was able to use more than one program very well on those special OSs.
    What's Chrome looking like? I mostly stream video (this flash thing is killing me) and chat on-line. Nothing really heavy.

    I don't think Jolicloud will fix your "real computer" complaint, but... might be nice, just as a change of scenery.

    Edit: alpha, you might try recordMyDesktop. It's a screencast client, and for basic... uh, screencasts, it works pretty well. There's straight "recordMyDesktop", which is command-line, gtk-recordMyDesktop which is for Gnome, or ....I think it's qt-recordMyDesktop for KDE.

    A note, though... unless you're running a very manly system, I doubt it's going to do so well with 3d. Honestly, I've never had any luck with 3d and greater than 3 fps performance. I am lazy and don't like to tweak things, however.

    You might also whip out google and see if mencoder can do anything for you in this department.

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • ImprovoloneImprovolone Registered User regular
    edited March 2010
    I regularly run Pidgin and Firefox, sometimes I'll have office software open. Can I easily switch between multiple programs in Jolicloud?

    Improvolone on
    Voice actor for hire. My time is free if your project is!
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    mencoder can't help alpha, and the alternative will likely be a lot more work than he is interested in since no screen recording app I'm aware of handles 3D well.

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • ÄlphämönkëyÄlphämönkëy Registered User regular
    edited March 2010
    That's what I was afraid of. I was just about to use ffmpeg command line and attach it to the video device directly, but I figured thar be dragons.

    recordMyDesktop dropped the FPS down to ~9 while recording. Definitely CPU bound :\

    I'm down to two options:
    * record the video uncompressed and stream it over the network to another computer for recompression
    * see if I can't find a really manly computer to stomach the whole thing itself

    Thanks for the help guys!

    Älphämönkëy on
  • HounHoun Registered User regular
    edited March 2010
    Sweet, got my volume keys working thanks to the magic of xbindkeys.

    Houn on
  • MKRMKR Registered User regular
    edited March 2010
    Hey Guys,

    Any recommendations for doing video screen capture of a video-game in Linux?

    I built an RTS interface for controlling robots and I'd like to make a screencast. I have it all rendered using the Panda3D game engine, but pictures don't really do it justice :P

    Thanks!

    O:

    I thought you were a BSD guy.

    MKR on
  • ImpersonatorImpersonator Registered User regular
    edited March 2010
    Visti wrote: »
    Joe Chemo wrote: »
    I LIKE KDE GUYS.

    There I said it.

    I really like it too, but I just noticed that I barely use the framework, so I just boot straight awesome now. Still have all my KDE4 apps, but I don't use them very often.

    I am a huge fan of Xfce because of its configurablity and speed. Everything down to how your clock displays time is easily customizible (and 99.9% of time you don't have to edit a text file, though there is always that option). Most of all though, it is designed to be fast and to stay out of your way. There are no animations as there is no reason to hide slowness. Windows can simply pop-up instead of ssssllllliiiiddding into view.

    User interfaces should not just be pretty, they should be elegant and even graceful, which is a much harder thing to achieve.

    I once read an article that stated that XFCE was as slow as GNOME just because it depends on a few GNOME components.

    When I want a lightweight DE though, I prefer LXDE. It's really fast, although nothing beats a *box DE.

    Impersonator on
  • ImpersonatorImpersonator Registered User regular
    edited March 2010
    I regularly run Pidgin and Firefox, sometimes I'll have office software open. Can I easily switch between multiple programs in Jolicloud?

    Of course, it's basically UNR tailored for netbooks. Furthermore, they stopped using Firefox for web apps and have now started using Chrome which is like a million times faster. :D

    You should definitely try it.

    Impersonator on
  • ImprovoloneImprovolone Registered User regular
    edited March 2010
    Hah, I was really hoping you'd respond other Imp.

    Improvolone on
    Voice actor for hire. My time is free if your project is!
  • ImpersonatorImpersonator Registered User regular
    edited March 2010
    We got each others' backs. 8-)

    Impersonator on
  • VistiVisti Registered User regular
    edited March 2010
    I'm tempted to reinstall Arch or Chakra.. Are there any other lightweight tasty distros out there? Preferable Debian-based, if not Arch. Or maybe I should take the plunge and do some Slack or something..


    Ah.. choices.

    Visti on
    [SIGPIC][/SIGPIC]
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    If you already have Arch installed, why bother reinstalling? You could probably just remove everything not in [core] and save some time if you're just worried about accumulated packages.

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • SeeksSeeks Registered User regular
    edited March 2010
    Slack is pretty awesome. I quit it because I've become very particular about what programs I use, so when things are slightly difficult to install, I tend to just cry and run back to Ubuntu.

    Shit... I might reinstall it. Thanks a lot Visti.

    Edit: Or I might get crazy and go with "straight" Arch.

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    "Straight" Arch? I used Chakra to install it and then nuked all the non-Arch repositories. I'm lazy and that got me up and running the fastest :lol:

    I find that packaging for Arch is a good bit simpler than making Debian packages. For some of those packages that I'm particular about it was easy to get things sorted out:
    pkgname=x264-git
    pkgver=`date "+%Y%m%d"`
    pkgrel=1
    pkgdesc="free library for encoding H264/AVC video streams"
    arch=('i686' 'x86_64')
    url="http://www.videolan.org/developers/x264.html"
    license=('GPL')
    depends=('glibc')
    makedepends=('yasm' 'git' 'gettext')
    source=()
    md5sums=()
    provides=("x264=$pkgver")
    conflicts=('x264')
    
    _gitroot="git://git.videolan.org/x264.git"
    _gitname="x264"
    _gitrev="11446152ba7c79774d65f8556f2282ad838942d7"
    
    build() {
    
    cd $srcdir
      msg "Connecting to the GIT server...."
      
      if [[ -d $srcdir/$_gitname ]] ; then
        cd $_gitname
        git pull origin
        msg "The local files are updated."
      else
        git clone $_gitroot
      fi
      
      msg "Pulled upstream files"
      git checkout $_gitrev
      msg "Checked out revision $_gitrev"
      msg "Starting make..."
      
      rm -rf $srcdir/$_gitname-build
      git clone $srcdir/$_gitname $srcdir/$_gitname-build
      
      cd $srcdir/$_gitname-build
    
      ./configure --prefix=/usr --enable-shared || return 1
      
      make || return 1
      make DESTDIR="$pkgdir" \
        bindir=/usr/bin \
        libdir=/usr/lib \
        includedir=/usr/include \
        install || return 1
      
      rm -rf $srcdir/$_gitname-build
    }
    

    It's practically the same thing as what I would do from the terminal, except you have "make install" toss the files in $pkgdir. I've ran into some weird issues with .debs since the rules file and some other bits are actually make files and are anal-retentive about some things that I didn't understand, but on the other hand dpatch and the like are things that PKGBUILD files don't support.

    Then again, at least the stock packages don't already come with several patches to be applied and I don't have to worry about upstream changes breaking my packages :-)

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • VistiVisti Registered User regular
    edited March 2010
    Go straight Arch at least twice (assuming you give up at least once). It has taught me a lot.


    Barrakketh -> Hm, how would I go about doing that? Is there an opposite wildcard for everything except *?

    Visti on
    [SIGPIC][/SIGPIC]
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    Visti wrote: »
    Go straight Arch at least twice (assuming you give up at least once). It has taught me a lot.
    I installed Gentoo the hard way long ago. I don't think installing Arch the long way is going to teach me anything I didn't already know. Well, maybe using wpa_supplicant by hand but that's something I'd do so infrequently that I would forget it again.
    Barrakketh -> Hm, how would I go about doing that? Is there an opposite wildcard for everything except *?

    What's "*" supposed to represent? If you wanted to remove everything but the base group you can do:
    pacman -R $(pacman -Qq | grep -v "$(pacman -Qqg base)")
    

    If you just wanted to strip things down to packages from core:
    pacman -R $(pacman -Qq | grep -v "$(pacman -Slq core)")
    

    should work.

    If you want everything but some specific list of packages you could look at the comm utility. Here's one use to make a backup of all installed packages that aren't installed from local (that is, one that you downloaded and install with -U or from AUR):
    comm -13 <(pacman -Qmq | sort) <(pacman -Qqe | sort) > pkglist
    

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • VistiVisti Registered User regular
    edited March 2010
    Barrakketh wrote: »
    Visti wrote: »
    Go straight Arch at least twice (assuming you give up at least once). It has taught me a lot.
    I installed Gentoo the hard way long ago. I don't think installing Arch the long way is going to teach me anything I didn't already know. Well, maybe using wpa_supplicant by hand but that's something I'd do so infrequently that I would forget it again.
    Oh, I wasn't talking to you, I was talking to Seeks about him wanting to try Arch the original way. Gentoo would do the same thing. Basically configuring stuff by hand to see how stuff works.
    Barrakketh wrote: »
    Barrakketh -> Hm, how would I go about doing that? Is there an opposite wildcard for everything except *?

    What's "*" supposed to represent? If you wanted to remove everything but the base group you can do:
    pacman -R $(pacman -Qq | grep -v "$(pacman -Qqg base)")
    

    If you just wanted to strip things down to packages from core:
    pacman -R $(pacman -Qq | grep -v "$(pacman -Slq core)")
    

    should work.

    If you want everything but some specific list of packages you could look at the comm utility. Here's one use to make a backup of all installed packages that aren't installed from local (that is, one that you downloaded and install with -U or from AUR):
    comm -13 <(pacman -Qmq | sort) <(pacman -Qqe | sort) > pkglist
    

    Ah, that's very helpful. Would save me from burning an ISO every time I get bored.

    Visti on
    [SIGPIC][/SIGPIC]
  • SeeksSeeks Registered User regular
    edited March 2010
    Yeah, I've done the Gentoo thing a couple times. Don't remember much of it though.

    HMMMMMM.

    How is Gentoo these days?

    Seeks on
    userbar.jpg
    desura_Userbar.png
  • ÄlphämönkëyÄlphämönkëy Registered User regular
    edited March 2010
    MKR wrote: »
    Hey Guys,

    Any recommendations for doing video screen capture of a video-game in Linux?

    I built an RTS interface for controlling robots and I'd like to make a screencast. I have it all rendered using the Panda3D game engine, but pictures don't really do it justice :P

    Thanks!

    O:

    I thought you were a BSD guy.
    I use whatever tool best fits the job.

    Linux is the most tested path for robotics. This is doubly true with my robotic middleware of choice.

    Älphämönkëy on
  • VistiVisti Registered User regular
    edited March 2010
    Man, robotics sound so cool. I just wouldn't know where to start. I guess something like the Arduino board?

    Visti on
    [SIGPIC][/SIGPIC]
  • elliotw2elliotw2 Registered User regular
    edited March 2010
    MKR wrote: »
    Hey Guys,

    Any recommendations for doing video screen capture of a video-game in Linux?

    I built an RTS interface for controlling robots and I'd like to make a screencast. I have it all rendered using the Panda3D game engine, but pictures don't really do it justice :P

    Thanks!

    O:

    I thought you were a BSD guy.
    I use whatever tool best fits the job.

    Linux is the most tested path for robotics. This is doubly true with my robotic middleware of choice.

    I've tried RecordMyDesktop, and it was fairly decent

    elliotw2 on
    camo_sig2.pngXBL:Elliotw3|PSN:elliotw2
  • HounHoun Registered User regular
    edited March 2010
    I posted over on teh Arch forums: http://bbs.archlinux.org/viewtopic.php?id=93293

    My CPU idles at 30%, and I can't figure out why. If anyone has any ideas, let me know. Rather confusing...

    Houn on
  • templewulftemplewulf The Team Chump USARegistered User regular
    edited March 2010
    I've finally borrowed, inherited and purchased enough extra parts to slap together a Linux LAMP stack after some spectacular hardware failures.

    Unfortunately, it's been so long since I've done Linux-anything, that I'm a bit behind the times. I'm a big fan of Vista/7's start text field, but I can't find anything quite the same in Ubuntu. Deskbar seems to be it, but it won't pick up partial program names.

    For instance, I just installed synergy, and it won't pull up synergyc when I type in syn. Any ideas for better workflow?

    templewulf on
    Twitch.tv/FiercePunchStudios | PSN | Steam | Discord | SFV CFN: templewulf
  • BarrakkethBarrakketh Registered User regular
    edited March 2010
    Houn wrote: »
    I posted over on teh Arch forums: http://bbs.archlinux.org/viewtopic.php?id=93293

    My CPU idles at 30%, and I can't figure out why. If anyone has any ideas, let me know. Rather confusing...
    Did you try watching it with atop?

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
This discussion has been closed.