748 reputation
720
bio website beatgammit.com
location Provo, UT
age 25
visits member for 2 years, 10 months
seen Apr 10 at 17:48

I am studying Computer Science at Brigham Young University. I been interested in computers and computer programming since I was a teenager.


Nov
24
comment Bash- detect init system
@naxa - Short answer, no. Long answer, you can get pretty far with ps -p 1 -o command (prints the path to the current init). On Arch Linux and Fedora (IIRC), it's a symlink to the systemd binary (probably same on all systemd systems). On upstart, init --help will print usage information, and on my box, upstart is mentioned where it says who to email. On FreeBSD (sysV), this will return an error. There may be similar clues on other systems, but since asking this question, I've decided to just create them for all platforms and make separate packages for each one.
Mar
25
comment How can I switch window managers in Gnome 3?
@ZanLynx - You can create a .desktop file for whatever you use. I use xmonad fine with GDM.
Nov
25
comment Accidentally set /lib permissions to 644
+1 for reinstalling from scratch
Nov
25
comment Partioning free space for manual install
What will you use it for? For example, a server (small /home, big /srv) would be much different from a desktop (big /home).
Nov
14
comment View stdout/stderr of systemd service
@peterph - It was a problem with my service, which is why I wanted to look at the output. The problem is now solved though.
Jul
31
comment vim on FreeBSD does not react on arrow keys correctly and other vi-like behaviours
Thanks for this. It fixed a lot of things for me. It's got a lot of extra stuff, of course, but it's a good starting point.
Jul
18
comment Find filesystem of an unmounted partition from a script
@PetrUzel - Awesome! That's exactly what I was looking for!
Jul
18
comment Find filesystem of an unmounted partition from a script
Is there a way to reliably filter out the filesystem type from a script?
Apr
27
comment Disable autoscrolling in gnome 3.4
I have the same problem. It works sometimes though (very rarely)...
Feb
16
comment What is the max number of x-clients?
Wow, I had almost given up on this. Thanks so much!
Sep
18
comment How can I find the number of files on a filesystem?
Does df understand most filesystems (ext2-4, ntfs, fat, reiserfs, etc)?
Sep
18
comment How can I find the number of files on a filesystem?
I think this is what I'm looking for. Is there any way to find out how many of each type of file there is? This isn't directly needed by my application, but could be useful knowledge.
Sep
10
comment View stdout/stderr of systemd service
@sbtkd85 - Well, I don't have /var/log/syslog, but /var/log/messages does the trick. The problem is, according to the logs, my daemon crashes on start, yet I can tell that it is still running because it has an HTTP server, and I can query it. It seems the rest of the logs are getting lost...
Sep
9
comment Adjusting Screen Size on Ubuntu Virtualbox
Do you find @Anton's answer insufficient? If so, please comment on what else you're looking for. If it solved your problem, please accept it as an answer.
Aug
10
comment Efficiency of lots of inotify watches or stat calls
@Gilles- Thanks. I assumed it would be a FUSE-based fs. I'll probably end up needing more features than it has, and it looks a little too young, but definitely an interesting read.
Aug
10
comment Efficiency of lots of inotify watches or stat calls
I would be very interested. The only thing I can think of is an NFS filesystem, which isn't exactly what I'm looking for.
Aug
9
comment Efficiency of lots of inotify watches or stat calls
So, is there any gain to adding a listener to individual files?
Aug
7
comment Bash- detect init system
@Caleb- Yeah, I already have that logic in there, but good catch. I was hoping for a way to sniff the init system to use an intelligent guess than a sane default.
Aug
7
comment Bash- detect init system
Hmph, so it's looking like I can't have a 'one script to rule them all' solution. I've seen a lot of programs that use autoconf or similar to handle cross-platform stuff, but it doesn't seem like it's the right tool for my application. Is maintaining versions for each platform really the only reliable solution?
Aug
7
comment Bash- detect init system
Cool, thanks for all your help. You definitely have pointed me in the right direction.