Editing User:Jebba/Espejo

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 96: Line 96:
* I added group "rsync" as Debian doesn't come stock with a group nobody. Don't think it matters "too" much.
* I added group "rsync" as Debian doesn't come stock with a group nobody. Don't think it matters "too" much.
-
 
-
 
-
==Guest inital setup==
 
-
This is quite crude, but gives you an idea:
 
-
 
-
After install, log in as root via VNC
 
-
 
-
apt-get install git-core
 
-
apt-get install openssh-server openssh-client
 
-
 
-
then ssh in remotely as jebba
 
-
 
-
# faster way to do this but wtf
 
-
jebba@espejo:~$ ssh localhost
 
-
jebba@espejo:~$ logout
 
-
 
-
jebba@donald:~$ scp -p .ssh/id_rsa.pub espejo.freemoe.org:.ssh/authorized_keys
 
-
 
-
jebba@donald:~$ ssh jebba@espejo.freemoe.org
 
-
 
-
topo:~$ cat /etc/.gitignore
 
-
ld.so.cache
 
-
prelink.cache
 
-
*.swp
 
-
ld.so.cache
 
-
adjtime
 
-
blkid.tab
 
-
blkid.tab.old
 
-
mtab
 
-
adjtime
 
-
sv/dnscache/log
 
-
sv/dnscache/seed
 
-
ld.so.cache
 
-
 
-
 
-
espejo:~# cd /etc/
 
-
espejo:/etc# git init
 
-
Initialized empty Git repository in /etc/.git/
 
-
espejo:/etc# chmod og-rwx .git
 
-
espejo:/etc# git add .
 
-
espejo:/etc# EDITOR=vim git commit -a
 
-
 
-
blow out unwanted apache shit, just reinstall to get rid of too much crap
 
-
espejo:/etc# /etc/init.d/apache2 stop
 
-
 
-
espejo:/etc# apt-get remove libapache2-mod-perl2 libapache2-mod-php5 libapache2-mod-python ; apt-get autoremove
 
-
 
-
espejo:/etc# apt-get remove apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common
 
-
 
-
gah, it installs mysql shit too. Should have started with a bare install
 
-
apt-get autoremove
 
-
 
-
gah, clean up poo
 
-
dpkg -l|grep ^rc
 
-
 
-
espejo:/etc# dpkg --purge apache2-doc apache2.2-common libapache2-mod-perl2 libapache2-mod-php5 libapache2-mod-python libapr1 libaprutil1 libmysqlclient15off libpq5 mysql-common php5-common
 
-
 
-
rm -rf /etc/php5
 
-
 
-
update-rc.d -f exim4  remove
 
-
update-rc.d -f rsync remove
 
-
update-rc.d -f nfs-common remove
 
-
update-rc.d -f openbsd-inetd remove
 
-
 
-
apt-get install apache2
 
-
gah, drags in libmysqlclient15off libpq5 mysql-common
 
-
reboot
 
-
 
-
 
-
espejo:~# cd /etc/
 
-
espejo:/etc# git add .
 
-
espejo:/etc# git c
 
-
espejo:/etc# EDITOR=vim git commit -a
 
-
 
-
apt-get install sudo
 
-
 
-
# shoulda set up gitconfig earlier
 
-
$ cat ~/.gitconfig
 
-
[user]
 
-
name = Jeff Moe
 
-
email = moe@blagblagblag.org
 
-
[color]
 
-
  branch = auto
 
-
  diff = auto
 
-
  status = auto
 
-
 
-
 
-
mkdir /var/www/repository.maemo.org
 
-
 
-
 
-
setup  new drives in startup script and POWEROFF (not reboot--need to restart script to read in new drives)
 
-
 
-
 
-
sudo fdisk /dev/vdb
 
-
sudo fdisk /dev/vdc
 
-
sudo fdisk /dev/vdd
 
-
 
-
and give them one fat partition
 
-
# format
 
-
sudo /sbin/mkfs.ext3 -j -m0 /dev/vdb1
 
-
sudo /sbin/mkfs.ext3 -j -m0 /dev/vdc1
 
-
sudo /sbin/mkfs.ext3 -j -m0 /dev/vdd1
 
-
 
-
mkdir -p /var/www/repository.maemo.org/extras /var/www/repository.maemo.org/extras-testing /var/www/repository.maemo.org/extras-devel
 
-
 
-
add them to fstab
 
-
sudo mount -a
 
-
 
-
chown them to jebba:jebba
 
-
sudo chown jebba:jebba /var/www/repository.maemo.org/extras /var/www/repository.maemo.org/extras-testing /var/www/repository.maemo.org/extras-deveel
 
-
 
-
rsync over from topo what you already downloaded:
 
-
rsync -ault --rsh=ssh /HUGE/mirrors/repository.maemo.org/ espejo.freemoe.org:/var/www/repository.maemo.org/
 
-
 
-
 
-
sudo apt-get install reprepro
 
-
 
-
add rsyncd conf
 
-
turn of fucking portmap ? why that starting.
 
-
sudo /usr/sbin/update-rc.d -f portmap remove
 
-
sudo /usr/sbin/update-rc.d -f mountnfs.sh remove
 
-
sudo /usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove
 
-
sudo /usr/sbin/update-rc.d -f x11-common remove
 
-
 
-
 
-
turn on rsyncd
 
-
 
-
set up vsftpd
 
-
 
-
sudo apt-get install reprepro gpgsm inoticoming
 
-
 
-
  reprepro -vv --basedir=/var/www/repository.maemo.org/
 
Line 238: Line 106:
Example:
Example:
  qemu-img create -f qcow2 -o cluster_size=2097152,preallocation=metadata /HUGE/kvm/espejo/espejo-FOO.qcow2 50G
  qemu-img create -f qcow2 -o cluster_size=2097152,preallocation=metadata /HUGE/kvm/espejo/espejo-FOO.qcow2 50G
-
 
+
....
-
 
+
===Daily Use===
===Daily Use===

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)