A sort of bookmark: Dragonhide and absolute beginners guide.
Page 23 of 52
This should find all manually installed packages on a Debian system:
aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4
Source. And a source for non-journalled quotas.
aptitude install quota
Edit fstab to make the proper entry look like this:
/dev/sda2 / ext3 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
I don’t know if errors=remount-ro is a default option that will be enabled anyway. I would guess so.
Do this:
touch /aquota.user /aquota.group chmod 600 /aquota.* mount -o remount /
Then:
quotacheck -avugm quotaon -avug
WIth this command, you can set a 1GB quota for a user:
setquota -u $user 0 1000000 0 0 /
Other tools of interest: edquota, repquota. See the seealso for any quata command, I guess.
I’ve just been struggling to get a xen console working for Ubuntu 8.04 (hardy). By default, xen-create-image uses hvc0, but that’s only since kernel 2.6.26 (don’t know if that’s only pv_ops or xen-patched). Hardy uses 2.6.24 and therefore it’s xvc0. The xen-create-image command or xen-tools.conf config file therefore need a parameter serial_device=xvc0.
This site provided a nice short c program to measure seek times. I would attach the file in case that site goes down, but this blog still has upload errors…
This post is even more of a memory aid than normal; it’s really only useful to me.
Source. I assume Ubuntu is similar.
To create an iSCSI target, first install the software:
aptitude install iscsitarget iscsitarget-modules-2.6-amd64
Edit /etc/default/iscsitarget and put in:
ISCSITARGET_ENABLE=true
Edit /etc/ietd.conf and put in something like this (do man ietd.conf for explanation of the parameters):
Target iqn.2010-12.com.example.host:storage.lun1 # no user based auth (user and pass empty) IncomingUser # no user based auth (user and pass empty) OutgoingUser # Path can be any file or block device, also /dev/sdb Lun 0 Path=/dev/sdb1,Type=blockio Alias LUN1
/etc/initiators.allow and /etc/initiators.deny should both be empty, and therefore allow all. Use iptables to restrict access to hosts.
Then can start /etc/init.d/iscsitarget start
As for the initiator:
aptitude install open-iscsi
Edit /etc/iscsi/iscsid.conf and change the line:
node.startup = automatic
Then tell it to look for volume groups after starting (because when booting, lvm is started before iscsi). Edit /etc/default/open-iscsi:
LVMGROUPS="vgname"
Then start the deamon (wasn’t it active already…?):
/etc/init.d/open-iscsi restart
Then discover and build the node database (in /etc/iscsi/nodes) for your target (when you do that again, it overwrites, so I don’t know what you should do when you’ve added a target on the server):
iscsiadm -m discovery -t st -p ipaddress
Then login:
# You can logout again by using this line and replacing login with logout. iscsiadm -m node --targetname "iqn.2010-12.com.example.host:storage.lun1" --portal "192.168.0.102" --login
Disk is now available under a device node like /dev/sdb. I don’t know how I could fix this to a specific device, to prevent changes when you change the hard disk configuration. Perhaps I can configure a udev rule for the lun in question.
A year ago, my web host thoroughly explained how PHP include vulnerabilities can be exploited, hoping that better user education would leave less member-sites vulnerable to automated attacks by spammer scum.
From its inceptions, this blog has run on NearlyFreeSpeech.Net’s FreeBSD web hosting service. Because of very clever resource sharing (when not serving visitors, a site hardly takes up resources), their pricing has always been very competitive. That, combined with their technical flexibility, support and transparency has made me more of a fan with every year that I’ve used their service. Still, sometimes I’ve been wanting to use something else than CGI (they support many, many programming languages for CGI – even C/C++) or mod_php, like Rails or Django or mod_perl.
Since April, they offer this possibility, with Pools.
Tom Moertal’s has a simple stance on the complexities of web-font licensing:
When there are more than enough high-quality open-source fonts to meet almost every practical need, why suffer licensing hassles and the risks of non-compliance? Just pick an open font and get back to life.
Recent Comments