Flash videos sometimes are cached in /tmp/Flash...
youtube-dl can also work for some
Monday, October 04, 2010
Monday, August 23, 2010
Saturday, August 21, 2010
postgresql database backed up
a live backup of the postgresql database has been set up, ready to try to repair server on Monday
need to modify pg_hba.conf for connections
modify postgresql.conf to listen on * for incoming connections
setup forwarding from server to the dedicated machine
need to modify pg_hba.conf for connections
modify postgresql.conf to listen on * for incoming connections
setup forwarding from server to the dedicated machine
Friday, August 20, 2010
migrating svn / media wiki
server is having memory problems, so I am migrating services off of it.
Moving svn to its own machine.
1. stop apache from serving it
2. dump it
3. copy the dump
4. create the new repos
5. load the dump
6. setup apache
a. install modules and get config files migrated
At this point I would need to work on ssl certificates, but since server is one
of the few machines that can be accessed from the outside, and it could get messy. So the current plan is to try to repair server, and if it fails to migrate svn, to the backup and rename the backup. It is basically ready to go.
The mediawiki transfer to www went well, followed their instructions and with only minor problems it transferred.
Moving svn to its own machine.
1. stop apache from serving it
2. dump it
3. copy the dump
4. create the new repos
5. load the dump
6. setup apache
a. install modules and get config files migrated
At this point I would need to work on ssl certificates, but since server is one
of the few machines that can be accessed from the outside, and it could get messy. So the current plan is to try to repair server, and if it fails to migrate svn, to the backup and rename the backup. It is basically ready to go.
The mediawiki transfer to www went well, followed their instructions and with only minor problems it transferred.
Wednesday, March 24, 2010
port forwarding
Currently I'm forwarding a port, one neat way to do it is
ssh -L *:7500:a.b.c.d:8008 a.b.c.d -f sleep 365d
which sets up the forward and throws the ssh in the background for a year.
ssh -L *:7500:a.b.c.d:8008 a.b.c.d -f sleep 365d
which sets up the forward and throws the ssh in the background for a year.
Tuesday, February 02, 2010
Thursday, January 21, 2010
Hawkins update
Mostly ok.
wake on lan is not working
This link seemed useful https://www.wiki.ed.ac.uk/display/DSwikiPower+Management+on+Linux
although the network card is not staying powered on. the bios is set, I've spent a couple of hours on this, will need to defer fixing it until later.
working:
sound
printer
logins
usb
gnome
attendance
in progress:
custom menus
not working:
wake on lan
wake on lan is not working
This link seemed useful https://www.wiki.ed.ac.uk/display/DSwikiPower+Management+on+Linux
although the network card is not staying powered on. the bios is set, I've spent a couple of hours on this, will need to defer fixing it until later.
working:
sound
printer
logins
usb
gnome
attendance
in progress:
custom menus
not working:
wake on lan
Tuesday, January 19, 2010
Redcay setup
Working:
usb is working for regular users
mathematica
TMCM_Labs
new account directory defaults
attendance accounting
scratch
Not working:
remote booting is not working, unclear why, need to check later
jes - crashing when it does not find a file
argouml - not sure if it is working
Not sure:
need to setup additional software, like eclipse, etc
Changed:
vi to vim
checked java is sun-java
editor to nano
updated set_identity.pl script to take into account new settings
usb is working for regular users
mathematica
TMCM_Labs
new account directory defaults
attendance accounting
scratch
Not working:
remote booting is not working, unclear why, need to check later
jes - crashing when it does not find a file
argouml - not sure if it is working
Not sure:
need to setup additional software, like eclipse, etc
Changed:
vi to vim
checked java is sun-java
editor to nano
updated set_identity.pl script to take into account new settings
Friday, January 15, 2010
imaging instructions
The first thing to do is to make what we are going to copy smaller.
The way to do this is to fill the disk with zeroes so that it will
compress well.
We'll do this by booting up the machine using a cd, any cd will work
we want to run off of the cd though and not the hard drive.
You'll need to set up the networking. How will depend a bit on which
cd you use. You'll want to use a static address
address: X.Y.Z.150
netmask: 255.255.255.0
network: X.Y.Z.0
gateway: X.Y.Z.254
nameserver: X.Y.0.1
After booting up, then mount each partition, and create an empty file.
Do this with something like:
dd if=/dev/zero of=/PATH/zero.txt
where PATH is a path to put the file on the right partition.
After the transfer we'll need to delete these files.
After the partitions are full of zeroes then we'll run
dd if=/dev/sda bs=4k | gzip -c | nc -q 1 X.Y.Z.ABC 3333
ABC is the machine number of where we are sending it. Wait though
to hit return on this until we set up the destination.
To set up the destination, boot it up with another CD, it doesn't
matter which, again the goal is to run it from the cd and not the
hard drive.
Again, you'll need to set up the networking. See above, the only
difference is to give it a different last number. Something like
X.Y.Z.151
Once you have a terminal run
nc -l -p 3333 | gunzip | dd of=/dev/sda bs=4k
Then hit return on the sending machines
Now check that the hard drive lights on both machines. This will probably
run for a while.
After it is done, then on the destination machine remove the zero.txt files,
and you are mostly done. It should be possible to boot the machine up and
test it.
We should do one transfer first and then test it.
The way to do this is to fill the disk with zeroes so that it will
compress well.
We'll do this by booting up the machine using a cd, any cd will work
we want to run off of the cd though and not the hard drive.
You'll need to set up the networking. How will depend a bit on which
cd you use. You'll want to use a static address
address: X.Y.Z.150
netmask: 255.255.255.0
network: X.Y.Z.0
gateway: X.Y.Z.254
nameserver: X.Y.0.1
After booting up, then mount each partition, and create an empty file.
Do this with something like:
dd if=/dev/zero of=/PATH/zero.txt
where PATH is a path to put the file on the right partition.
After the transfer we'll need to delete these files.
After the partitions are full of zeroes then we'll run
dd if=/dev/sda bs=4k | gzip -c | nc -q 1 X.Y.Z.ABC 3333
ABC is the machine number of where we are sending it. Wait though
to hit return on this until we set up the destination.
To set up the destination, boot it up with another CD, it doesn't
matter which, again the goal is to run it from the cd and not the
hard drive.
Again, you'll need to set up the networking. See above, the only
difference is to give it a different last number. Something like
X.Y.Z.151
Once you have a terminal run
nc -l -p 3333 | gunzip | dd of=/dev/sda bs=4k
Then hit return on the sending machines
Now check that the hard drive lights on both machines. This will probably
run for a while.
After it is done, then on the destination machine remove the zero.txt files,
and you are mostly done. It should be possible to boot the machine up and
test it.
We should do one transfer first and then test it.
Subscribe to:
Posts (Atom)