Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by uudruid74

  1. Someone has done it! Awesome. Wish it was the default rather than an odd on, like if you don't have the variable specified, emerge would just look at the flags and go, but... we don't always get what we want! Thanks for mentioning that package though. Trying it now
  2. And what I was confused about is WHY I should have to make such a change. This should be set up one way or the other, not have packages tell me to change my directory structure back and forth. Its not making any sense.
  3. I have an SDK update manager on my desktop, but it mainly installs Java libs and its a GUI tool. I just want the cross compiler, not a dull Android ask, and must be able to install it from a shell. There is no GUI on the devel box. I'd prefer not to break the package manager, but if I have to I will. Do have a URL for the download? I was thinking of using a deb or rpm package and just manually installing it.
  4. There should be some option that peeks at /proc/cpuinfo for all the flags to see what your CPU supports and uses -march=native for the usual architecture build. No good if building for another host, but most people are building on their own box.
  5. What's the status of crossdev? I'm getting a message to convert /etc/portage/package.mask to a directory. My magic wand is broken. WTF am I supposed to do to the file? And IRC is saying crossdev is broken permanently. I just want to cross-compile 1 stinking package (need not be an ebuild, I can build from source tarball) so I can stick it on my phone (its rooted). Whats the fastest way to get a cross-compiler installed? I can build it manually. I did it about 15 years ago but I can't remember how the F&^% I did it!
  6. Or -j1 to run 1 at a time, and if the BIOS lets you underclock, do it. Also try to set your CPU governor to something slow and boring like powersave. The slower it runs the cooler. If you don't have a tool to set the governor, and you have support for cpu frequency scaling in your kernel,let me know and I can paste you a small script to set it that doesn't need any special tools.
  7. If Linux is randomly shutting down its a hardware problem. Also, I can tell you came from a Windows platform. Linux guys generally won't recommend things like rebooting (it doesn't fix things just hides the problem), or reinstalling. Reinstalling it again is redundant unless you changed something, and even then, maybe not.
  8. All good advice, the only thing I would add is to limit how much you tackle at once. Some of that perl stuff you could emerge separately so that you have a smaller chunk to deal with. Also, I would tackle getting X and getting it working before you worry about nvidia-drivers. I'm guessing thats the binary? That will avoid a lot of hassles you could likely defer to later, such as having 32-bit compatible binaries. I still don't understand why the game companies complain about Linux not being advanced enough for them, but all the games and drivers require 32 bit libraries. Linux was the f
  9. OK ... here's a question for you. How do you detect if a user is using a handheld? In most cases, you don't need to know. But what if you actually needed to know to hide certain elements, such as instructions to press a particular key combination or something that made no sense on a handheld. CSS defines @media handheld for this purpose, but browsers don't support it! I ended up making 2 CSS files, one I dropped into my /m folder using the above. This lets nginx do the browser detection and return which CSS sheet to give to the user. 99% of the CSS is a different file which is symli
  10. Here's another stupid admin trick ... How often do you have about a dozen shell windows open? Let's add two capabilities to make that easier. These are controlled with a line that looks like this in the script: export PROMPT_COMMAND="shareHistory; testWindow" You can simply remove the feature you don't want from your PROMPT_COMMAND, or change it on a window-by-window basis if you like. shareHistory - Consolidate the bash history so that it is available through any bash that your username controls. The history will sync after every command. The only drawback is that it's AFTER ev
  11. Oh, it wasn't the point to do a whole website. That's what /joomla was for. Yes, I could make the whole site in joomla, but that still leaves little details like custom error pages. I wanted a method that was simple, no javascript, no external frameworks to learn, that would handle the static /index.html and error pages and anything else that I felt I wanted to add outside the joomla framework. Yes, if designing a large website, its better to use dynamic content rather than colorful webserver tricks (hence why the title is "tricks" and not "best practices"). However, I hope people will m
  12. You had the boot order right the first time! Never doubt yourself. Bootloader loads kernel and initrd, a temporary root filesystem with more drivers/modules so that it can autodetect the root filesystem (which could means raid drivers filesystem drivers, nfs, etc) The kernel loads initd and initd runs OpenRc scripts and anything else needed to start up the system.
  13. If you use a content management system for your site, it probably already deals with mobile systems. But, what if you have parts of your site that aren't in a CMS, or you do your site by hand? Well, it would be nice to either redirect from www.example.com to m.example.com, or (my preference), to redirect to a subdirectory. I like the subdirectory approach because I can easily share content with the main site via symlinks (such as the content management system). Normally, this isn't a nice thing to do to your caches since any caches along the way won't know that the symlinked files aren't t
  14. Most of that is simple (dunno about Xen). Build a test system and then generate the binary packages, either from the running system or a subsequent rebuild with -e -B. You can then install it all to the new USB drive with -g --root . Not sure if I missed a step. You might also want to look at the pentoo project. Its a similar tool based on gentoo for penetration testing. For rescuing a system, I highly recommend safecopy instead of dd. Its very smart about avoiding sections of a failing disk that have physical errors. It will come back and read them later, even using low-level acc
  15. Anyone look into Android's init daemon? Its actually kind of interesting.
  16. OK, you've got your SSL certificate and you have tengine or nginx setup, but you need it secure. After all, you've heard of all the recent DH attacks, BEAST, CRIME, FREAK, Heartbleed and others, right? Is your system already secure? Test it! Check out The SSL Labs Test Site. I'm getting an A+ rating! The following assumes tengine, but nginx is exactly the same, just s/tengine/nginx/g; Need a certificate? OK - I highly recommend StartSSL. It's FREE! These guys will step you through the process by following the instructions on their site. If you have problems, the tech support via email is
  17. In general, you wont be adding kernel level drivers. You can go into the kernel source and do a make menuconfig, select some additional modules and then do a make modules and make modules_install. This wont build modules that are already built or the kernel. However, most people just build all the modules they might need and don't mess with it anymore. When it comes to binary video drivers, they are built against the existing kernel sources so that they can build a module If you update your kernel, you will need to update those modules at the same time or you lose your GUI. I don't
  18. <-- likes Gnome 3. Takes a min to get used to, but I'm enjoying it. And I have a touchscreen, so that makes a difference.
  19. Time for another STUPID Admin Trick ... running a CGI on Nginx / Tengine ! There are plenty of ways to do it, most involve installing a wrapper around the fastCGI interface. However, I already have FPM installed, and figured that PHP could execute a program, so why not wrap a PHP wrapper? I would NOT recommend this for production use as there is probably more than one security issue, compatibility issue, or whatever. Then again, you aren't using CGI for production system's anyway, right? First a bit of magic in your server { } section of your web server config file : location ~ ^
  20. I would, but its not there. Its nearly empty. Ah ... its in /var/src/distfiles!! Here you go: navi distfiles # md5sum tengine-2.1.0.tar.gz fb60c57c2610c6a356153613c485e4af tengine-2.1.0.tar.gz
  21. Courier is fixed via new imap release ... unicode lib update broke the reinstall. Passenger I am giving up on. I don't use Ruby anyway and it was just going to be a toy to try out.
  22. It works, but you are getting a 'B' rating on ssllabs.com. Weak DH key exchange parameters and support of older RC4. I recently set this up (tengine/nginx) so if you want a copy of the config file, lemme know (I get an A+, and that's with the free certificate from startssl). Took me awhile to find all the tweaks for tengine/nginx to lock everything down. Time to update the HOWTOs. In fact, getting Joomla to work with Tengine requires some magic regex that was incredibly hard to find! I added some extras to detect mobile browsers and redirect (to another domain or a directory via U
  23. GLXVBlank probably should be on. I think this tells the driver to wait for vblank to do updates, which will stop tearing. Tearing is a result of changing the display while the hardware is reading it, so you get half of one frame and half of another. The ATI binary drivers have all sorts of anti-tearing settings in the control panel, but I have not been able to get them to work with Gnome. Mutter uses some new Xrandr call that isn't supported by the ATI drivers. I have a couple really STRANGE problems with the radeon drivers so I'm always tempted to try the binary ones, but as long as I
  24. I didn't recommend Ubuntu because I'm boycotting them. Their GUI doesn't give you a way to display the apps you have installed so that you will use the search feature ... which sends your search results to Amazon! Not only does Amazon get to track you, but you get "product recommendations" on your desktop. Linux is now more commercialized than Windows! Arch may be too complicated for him. Mint could be okay - but I've not used it. Sabayon is pretty damn easy, and you can play with "emerge" after its installed. I need to get back to my Funtoo-based binary-distro-for-noobs idea someda
  25. Step 1 : Learn how to find your log files Step 2 : Learn how to redirect the output of a command to a file Step 3 : Learn to follow the steps people are giving you and only post what is being asked for! Don't flood the forum with useless crap like the Xorg log from the system rescue cd! Why would we need that? Once again, I think you need to go back to basics and learn basic Linux. Try Fedora or Sabayon.
  • Create New...