Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, now I know why it is bad practice to write code while logged in as root =) I'm learning SDL and after running one of the programs I had written I started getting "Segmentation Error" when trying to use 'ls' and 'tar'. I restarted my computer and got a nasty error saying /dev/hda2 could not be mounted.
Well, at least I've learned enough in the last couple of days to be able to reinstall linux and get my internet connection working (first try this time!).
So, I have now learned my lesson and will not develop code while logged in as root =)
Thanks for posting that -- it's a lesson that every Linux users ought to take to heart (only use the priviliges you need, particularly when trying out new, possibly buggy software, whether it's written by you or somebody else). Let this be a lesson for those people who come in here asking "Why can't I just do everything as root?"
N.B. sometimes it's impossible to avoid running new code as root, for instance when developing system programs (or even kernel programs, which run with kernel priviliges). In these cases, it's a good idea to test the code on a separate machine that you would not mind reinstalling if something goes wrong.
Originally posted by btmiller
N.B. sometimes it's impossible to avoid running new code as root, for instance when developing system programs (or even kernel programs, which run with kernel priviliges). In these cases, it's a good idea to test the code on a separate machine that you would not mind reinstalling if something goes wrong.
In this context :)
qemu is starting to look quite promising,
specially for linux as both host and guest OS ;)
Create a 3 GB disk-img, install a minimal dev-system,
grab a tgz copy of it and - voila! :)
My qemulated Slack (to a command-line login) boots
in only 15s more than the real thing on the same box.
Quite impressive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.