
I’m setting up a database server running Debian. Debian was chosen because it’s quite stable, fast, and lots of Indymedia techs like it.
Here’s the system specs:
– Dual AMD Opteron 244 Processors (1.8GHz)
– 8GB Low Profile PC2700 ECC DDR (4 x 2GB)
– 120GB, EIDE, 7200RPM (8MB cache)
– Slimline 2/2/8 16/8/24 IDE DVD-RW
– 1.44MB Floppy Drive
It was purchased from Penguin Computing and came with SuSE installed.
AMD64 is not an official Debian port yet. Uh, I hope it’s stable enough for MySQL & Postgres…
Debian on AMD64 Links:
Debian AMD64 HOWTO
Installing Debian on Opteron
- Get & burn the CD for a net install:
wget http://debian-amd64.alioth.debian.org/debian-installer/current/netboot/mini.isocdrecord speed=4 -v -data dev=cdrom mini.iso- Boot CD & Do install
- Hit enter at Debian logo.
EnglishUnited StatesAmerican English- Primary Network Interface (there are 2):
eth0(it goes and gets network info via DHCP) - Hostname:
ahimsa-db1 - Domain Name:
indymedia.org - Debian archive mirror country:
enter information manually(at top of list–AMD64 port isn’t in the mirrors yet) - Debian archive mirror hostname:
debian-amd64.alioth.debian.org - Debian archive mirror directory:
/pure64/ - Proxy info: hit
enter(blank) - Partitioning method:
Manually edit partition table - The partitions were set up thusly (all ext3):
/boot 100 meg (bootable)
swap 0 gig
/ 3 gig
/home 4 gig (0% reserved blocks)
/tmp 500 meg (noexec)
/var 2 gig
/var/lib 60 gig (2% reserved blocks)
/usr 4 gig
/var/backups 46.4 gig (remaining, 0% reserved, for backupninja) Finish partitioning and write changes to disk- Write the changes to disks?
Yes– then it goes and formats. There is no option for checking for bad blocks, which I would have liked. It also proceeds to download & install the packages. - Install the GRUB boot loader to the master boot record?
Yes - Installation is complete…
Continue - Eject CD
- First boot of Fresh Install
- Hit enter or wait for grub to boot kernel
- Welcome to your new Debian System! …
OK - Is the hardware clock set to GMT?
NO - Select your time zone:
Mountain - Root password:
password& re-enter it - Enter full name for new user & username & password
- Archive access method for apt:
edit sources list by hand - In the pico/nano(?) text editor remove the #, ctrl-x, &
Y - Choose software to install: Leave all blank and hit
OK. It grabs some necessary packages & installs them - General type of mail configuration:
local delivery only; not on a network - Root and postmaster mail recipient:
me - Thank you for choosing Debian!
OKYou can re-run setup by runningbase-config - Now it’s at a
login:prompt. - Initial configuration
- remove unneeded packages:
apt-get remove biff bin86 cpp cpp-3.3 delo gdb ibritish ipchains ipmasqadmin lpr manpages-dev mtr-tiny mutt pidentd ppp procmail vacation vgrind w3m xfree86-common xlibs-dataI’m not sure why all that crap was installed, as I tried to add no extra packages. Perhaps just some rough edges in the installer. - Install MySQL:
apt-get install mysql-server - Should MySQL start on boot?
YESThenOK - Turn off unneeded things that are coming up on boot:
update-rc.d -f inetd remove update-rc.d -f portmap removeupdate-rc.d rpc.statd remove- set up network…It was initially configured to use DHCP, but I want to set the info statically and put in the configuration for when the box is at the co-location facility.
vi /etc/network/interfaces -
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.1.2.1
netmask 255.255.255.0
gateway 10.1.2.254
auto eth1
iface eth1 inet static
address 10.1.1.1
netmask 255.255.255.0 apt-get install vim….- Useful commands
dpkg -l– list installed packagesdpkg -L [packagename]– show you the files that package installsapt-cache show [package-name]– shows you all the packages that this package depends on and have to be installed in order for this package to work
Geez, that was a helluva lot of steps. With BLAG, just type “serverblag” at the “boot:” prompt of the CD. ;)
I found a link to this post at http://lwn.net/Articles/113527/ … In your post related to the lwn.net article you mentioned some problems with this machine’s NFS connections to some NFS server. Now, I’ve never tried to configure either NFS or a debian system, but from this blog post I got the feeling that there might be an issue with the update-rc.d -f portmap remove and update-rc.d rpc.statd remove commands. This is because, IIRC, NFS uses RPC for some stuff. It just might be that rpc.statd and maybe even the rpc portmapper should be running on both the NFS client and the server. Of course running these daemons might bring some security issues too.
Ya, the portmapper stuff is running. :) And yes, it introduces security holes, no doubt. It’s all running behind an OpenBSD firewall, which in theory should make it a bit more secure….
the commands to disable rpc.statd are:
# /etc/init.d/nfs-common stop
# update-rc.d -f nfs-common remove
I got screwed after a dist-upgrade. This fixed things:
/lib/ld-linux-x86-64.so.2 ln -s /lib64 /lib
Types Of Computer Viruses…
I couldn’t understand some parts of this article, but it sounds interesting…
World Wide Web Resources…
I couldn’t understand some parts of this article, but it sounds interesting…
Consumer Electronics Reviews…
I couldn’t understand some parts of this article, but it sounds interesting…
Computer Security Tips…
I couldn’t understand some parts of this article, but it sounds interesting…
Cheap Custom Built Computers…
I couldn’t understand some parts of this article, but it sounds interesting…
Shared Hosting Resources…
I couldn’t understand some parts of this article, but it sounds interesting…
Computer Network Security…
I couldn’t understand some parts of this article, but it sounds interesting…
New Movie Reviews…
I couldn’t understand some parts of this article, but it sounds interesting…
Création site internet bretagne…
Merci pour cet article intéressant. Bien à vous…….
# remove unneeded packages: apt-get remove biff bin86 cpp cpp-3.3 delo gdb ibritish ipchains ipmasqadmin lpr manpages-dev mtr-tiny mutt pidentd ppp procmail vacation vgrind w3m xfree86-common xlibs-data I’m not sure why all that crap was installed, as I tried to add no extra packages. Perhaps just some rough edges in the installer.
I couldn’t understand some parts of this article, but it sounds interesting…