Ubuntu is awesome. Arch is too.
Ubuntu is stable and easy. In my experiences, I have never had a problem with upgrading to the next new version or anything. Arch is great too, but it can be hard to get everything set up just as you like. Debian is VERY STABLE and features, alongside Arch but apart from Ubuntu, a rolling-release cycle. |
Quote:
|
Quote:
Quote:
@dor Speaking of, if the external drive is something you plan to always have mounted, I would simply create an entry for it in /etc/fstab, rather than dynamically mounting it in /media with HAL. The mount point can be pretty much where you like or makes sense for you. You could just create a mount point /DATA, if you want. |
Quote:
So /media is the directory for the mount points. Quote:
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
Can't you archive your normal files and config files seperately, using these simple bash globs? Code:
.* # Get config (hidden) files |
Quote:
Code:
[^.]* # Get non-hidden files Code:
[^\.]{1}.* # Get non-hidden files [^\.]{1} - matches a dot in the first character of the filename. .* - matches 0 or more characters (doesn't matter if these are dots or not) (unless a filename like '.' is forbidden) That's what I think from my PHP's REGEX experience. :) |
@reed9 said @dor Speaking of, if the external drive is something you plan to always have mounted, I would simply create an entry for it in /etc/fstab, rather than dynamically mounting it in /media with HAL. The mount point can be pretty much where you like or makes sense for you. You could just create a mount point /DATA, if you want.
Exactly what I was meaning. When I partitioned my HDD, I created an extra ext3 partition with the bulk of the space and put a Label on it of DATA. Now, it just shows up in the file tree under /media/DATA. I didn't need to do anything except make myself the owner with chown command as root. It 'just works'. It is especially useful when switching distros. Like I went from Ubuntu to Kubuntu to PCLinuxOS to Mepis to sidux to Debian Testing KDE to Arch to Mandriva to sidux. If my personal files had been in /home, I would have needed a much better back up system than I currently have. It is nearly required to format and reinstall /home with these kinds of changes. |
@dor:
They aren't regular expressions, they're BASH globs. Try this: Code:
$ echo .* Code:
$ mkdir hiddenfiles |
Quote:
So, for example, if you'd want a script to work on startup, you would append a line at the end of the startup script that's in /etc/inittab. That line tells to execute a script that's in /media/DATA (assuming /media/DATA is the access point to the partition). Quote:
|
/etc/inittab has information such as which runlevel to boot into, and then points to scripts associated with that runlevel in /etc/rc.d.
http://www.linux.com/news/enterprise...nd-rcd-scripts So in Arch for example I have Code:
id:3:initdefault: If you want a script to run at startup, you generally put it in /etc/rc.local. Specifics might vary by distro. Installed binaries can be in a couple of locations. Usually in /usr/bin, /bin, and /sbin. EDIT: Type echo $PATH to see where your system is looking for executables. I'm not really following what you mean by that directory contains anything. Your external drive? It contains whatever files you store on it... |
Quote:
This way, even if you'll re-install the same version that you already have - it will not matter, since every config file or script is located in /media/DATA. You'll just have, for example, to append a line to the startup script in /etc/rc.local that asks to execute another script file that's located somewhere in /media/DATA. (Although by re-installing the system, you delete the software that you installed. Which is actually a good thing if you install another version/distro) :) |
All times are GMT -5. The time now is 04:21 AM. |