Skip to content

u/terari

In this archive from Jul 2012 to Jun 2013

0
posts
57
comments
0
media
138
score

You probably should release them with a license that clearly state its terms of use (like CC-BY, which require only attribution. See the "use this license for your own work" link). No serious developer would use your work without a proper copyright license, relying only on word of mouth.

1 points

My advice is, do not boot from any install media, but instead install from your existing Linux. Install arch on a chroot and use this installation. That way, you don't need to leave Ubuntu in order to install Arch, and can continue doing your business (and also check docs, ask for help, etc). If you installed in a directory, make your partitions and copy the installation over (with cp -a); but perhaps you should make the partitions first and chroot into it. It doesn't matter.

I have never used an installation media since I moved to Debian (from Ubuntu). I used debootstrap to install Debian; that was my system was broken and had no way to boot from installation media. I then moved to Gentoo (in which chroot installations are actually normal), then to Arch.

The only limitation of this method is that you can't chroot into a 64-bits system with a 32-bits kernel; but you can use a 64-bits kernel even if you system is 32-bits, and thus migrate from 32 bits to 64 bits without installation media.

Now, about using Arch, I don't have any specific advice. There is hardly any special configuration or trick to perform. Read the docs and perhaps hang out in #archlinux at irc.freenode.org and you'll be fine.

edit: oh, of course you should bring your /home folder over. if it's in the same partition than your Ubuntu's /, now it's time to create a separate partition for /home and copy your stuff there (with cp -a). But just take notice of your uid and gid: it should match the new user you create at Archlinux (quite easy to do). Since the default uid for the first user you create is "1000" you will hardly have any problems.

3 points

That's good. With which frequency do you do backups? Do you discard your previous backup when making a new one?

Sometimes people lose data by deleting them. People also lose data due to software bugs higher in the software stack (that can go for a quite time unnoticed - perhaps until you need the data). Backups can prevent those kinds of data loss too, by retrieving an earlier version, but if you delete the previous backup when making a new one you may lose data pretty quick. Doing rigorous backups usually require much more storage capacity than the system itself.

Those considerations are usually more relevant for a server setup than home usage, but if you really care about your data it may be worth investigating better backup options (in addition, not as a substitute, to your external hard drive). Tarsnap is surprisingly cheap, but there are some free services like Dropbox.

Indeed a cron service that periodically copies some of your stuff to Dropbox (using the native Linux client) could be a nice addition to your effort to avoid data loss.

1 points

If you have raid and is dealing with a small amount of data, you probably don't have much to worry about the data integrity of your setup. Just monitor the hard drives for failure (with SMART) and replace any driver after failure asap.

By "backup drive", do you mean that you do regular backups to an offline disk? Make sure you know very well the recover procedure (i.e. what to do when you need the backups) and that you have tested recovery at least once.

There's also the question of the integrity of the backup itself. It may be hard to protect against all failure cases (such as mechanical failures, a fire, etc) specially if you want to keep your data for a long time. One option is to use an online service like tarsnap.

2 points

He probably means this

One major feature that distinguishes ZFS from other file systems is that ZFS is designed from the ground up with a focus on data integrity. That is, it is designed to protect the user's data on disk against silent data corruption caused by bit rot, current spikes, bugs in disk firmware, ghost writes, etc.

with the ZFS mechanism for data integrity being:

For ZFS, data integrity is achieved by using a (Fletcher-based) checksum or a (SHA-256) hash throughout the file system tree.[35] Each block of data is checksummed and the checksum value is then saved in the pointer to that block—rather than at the actual block itself. Next, the block pointer is checksummed, with the value being saved at its pointer. This checksumming continues all the way up the file system's data hierarchy to the root node, which is also checksummed, thus creating a Merkle tree.

3 points

What about BTRFS? It provides many of the features of ZFS such as data integrity (through checksums).

Do you have periodic, predictable and reliable backup system in place? This is much more important than having data integrity built-in in the filesystem.

edit: You should also consider that a stable & well supported filesystem is also very important factor for preserving the integrity of your data. Specially if you don't have backups, it's perhaps better to stick with rock solid implementations like ext4. (ZFS is rock solid, but on Solaris. Lack of widespread support on Linux means that implementations aren't likely to be well tested there)

1 points

If you have a friend that uses Linux, install whatever he uses. It's great for getting help and not feel too lonely about Linux. Failing that, I think you should install Ubuntu.

One point of Linux is customization. One thing you can choose is your desktop environment (Both Windows and Mac OS X officially have only one, so people aren't used to customize this). Ubuntu comes with a desktop environment called Unity. I prefer XFCE. XFCE works mostly like Windows.

You will be able to access the Windows partition (the "C:") and create, change or delete files there, so if you dual boot you don't need to move your files (there used to be limitations with NTFS but they are mostly gone). But Windows won't usually be able to see the files at the Linux partition (unless you install a driver).

If you want to do more serious tinkering you should probably learn a bit of the command line. /r/commandline is waiting for your questions.

Programs are installed from centralized repositories, much like Android or iOS, not from websites at the internet, and by keeping your OS up-to-date all your programs will be updated. In Ubuntu, you install and uninstall with the Ubuntu software center, and you can add unofficial repositories (they are called PPAs).

You can see some list of applications to cover your needs. Here are some recommendations of mine. You can install them in Windows too.

PS: while I referred to Ubuntu, I myself use Arch. Which one you use mostly don't matter, but it's easier to find online help for Ubuntu because more people use it.

5 points

Well, it is using a swap, so this could be the culprit (but with that much ram this is not likely), you could deactivate the swap and seeing if the problem persist, with

swapoff -a

If you want to see from which disk this swap belongs (before deactivating it), you can do

cat /proc/swaps

And anyway. another thing you can do is see the output of dmesg and/or syslog during/after freezing. And actually, top, at least to find if some program is to be blamed (a guess could be Firefox or Chrome..)

1 points

Maybe it is activating swap when none should be activated? (free -mt also tells that)

A test could be: remove all hard disks; activate "copy to ram"; remove usb drive (it ought be possible if it copied everything to RAM)

It could also be a driver issue, a hardware issue or some other thing. :(

PS: my computer right now kind of freezes randomly, I think it happens when it is overheated (because, after hanging, when I turn off it doesn't want to turn on - unless I wait some time for it to cool down), but I don't know if it makes sense either

1 points

If you are using a systemd distribution (like arch or fedora), it can automount encrypted disks and monitor lvm volumes inside encrypted disks. See this (it supposes you are using dm-crypt. I think that dm-crypt/luks is a sound alternative to truecrypt, and it is on mainline kernel)

3 points

Btw, I'm on arch and my startx works (I don't have a login manager, startx basically starts x and run ~/.xinitrc, which opens my WM). I decided to ignore the systemd-specific things for now and just use what I was using on my rc.local.

So I put this on /etc/systemd/system/multi-user.target.wants/my-service.service

Description=My own thing

[Service]
Type=oneshot
ExecStart=/bin/su - myuser /usr/bin/startx

[Install]
WantedBy=multi-user.target

It now starts on tty2, but other than that it's identical than what I had before.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.