You are not logged in.
Hey guys i just need help with configuring the way things are organized.
I already know how to mv *.jpg, *.png etc,..
but i need a way to monitore my root folder so that anything i dont want to be in there gets moved to the correct folder.
Last edited by pojo87 (2010-05-10 03:04:31)
Offline
You'll need to be a bit more specific, and you will also receive more help here if you post what you've tried (ie a script).
I dont know about real-time monitoring, but if it is something like maintenance you could setup a cron job for a frequently as you need.
Offline
How do you define "don't want". The computer cannot read minds.
Offline
Offline
I havent written a script but i suppose i could write a script to run something like
mv *.jpg *.png pictures
or something like that to run at startup time but i need something to monitor my files and organize them accordingly.
I'll checkout inotify but if theres anoy other solution please send them my way.
Offline
inotify is not only the best solution, but The Solution.
And it's such a pleasure working with. There's bindings for virtually any
language.
Offline
A cron job would be enough.
You can safely move all your goat porn to that special hidden dir ~/foo/bar/baz/x2jksdflad/nothing_to_see_here
Offline
Thanks for the suggestions.
I haven't actually had time on my archbook but I'll just mark this as solved anyways seeing as inotify is probably the way to go.
thanks again guys
Offline
i need a way to monitore my root folder so that anything i dont want to be in there gets moved to the correct folder.
No doubt you'll solve this some way, but I'd suggest taking a step back, and asking how this unwanted stuff gets in to your root folder in the first place? A regular user on a linux system has write permissions in $HOME only.
Offline
When i setup arch i forgot to add another regular user and just kept using root as my main user.
It's a problem i plan to fix when I stop being so lazy
Offline
When i setup arch i forgot to add another regular user and just kept using root as my main user.
It's a problem i plan to fix when I stop being so lazy
I still don't understand this mentality. There is no reason to use root day to day. Its convenience is minor in fact if anything, it will cause more problems for you.
Offline
When i setup arch i forgot to add another regular user and just kept using root as my main user.
It's a problem i plan to fix when I stop being so lazy
So you're going to hack together some workaround in a script using inotify, instead of just setting up a user?
Offline
its more then that.
I tried adding a new user awhile ago but all my X settings and pretty much everything didn't work.
So when i get the time to reconfigure tint2, X, and anything else im using, Or find a way to copy all my root settings to that user then I'll go ahead and do that.
I tried copying my X settings and tint2rc but i kept getting an error so i gave up and just went with being root for a lil while longer.
Offline
Uhmm... X configuration is in /etc/X11 which means it's system-wide, not per-user.
Offline
> so i gave up and just went with being root for a lil while longer
O_o
It's a bit like playing tag w/ a crocodile ...
Hope you do backups often.
Offline
I don't know then whenever i would startx i would get an error
Offline
If you don't like facing the problem that you have (which to me sounds more like a generic user configuration problem than an X problem), then it's safer to go back to using the distro you used before. I'm sure on that one you could run as a regular user.
I suspect there is something wrong with the way you try to launch X as a user; if X runs for the root user, it will run for any user. As tomk said it uses a systemwide configuration.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I'm trying to fix it now, I'm pretty sure it has to do with openbox being on my root and not on my regular user.
Something along the lines of that I suppose.
Unfortunately my regular user has insufficient permissions to run pacman so i gotta figure out what it needs.
Honestly i could never go back to another distro, I've learned way to much from arch to go back now.
I learned more from simply installing it then i have with any other distro.
I love arch so far despite the issues that i have here and there, but honestly the fact that it's me fixing them and not some automated program
is fulfilling i guess i could say.
Offline
You can use sudo to run pacman as root. Or use su to switch to root then run pacman.
Offline
Yess i just setup my sudoers file and did this, but i can't seem to get X to work right.
It works fine on root but on my regular user it refuses to use openbox and instead goes to the default wm.
Offline
Nevermind i forgot i had to create a new xinitrc
So now all thats left is to copy my conky config and wallpaper over
cheers
Offline