Kategoriarkiv: Linux

Shared Deb archive (Ubuntu)

Using Samba shares. Add to /etc/fstab //server/folder /opt/archives smbfs uid=root,gid=users,credentials=/path/file 0 0 /* credentials syntax: username = smb_username password = smb_password */ apt-get install smbfs Edit /etc/apt/apt.conf.d/20archive Add to bottom Dir::Cache::Archives “/opt/archives”; NB: Due to limitations in apt, we can … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Installing mailserver on Debian

### Install packages needed: apt-get install apache2 mysql-server libapache2-mod-php5 php5-mysql postfix postfix-mysql courier-authlib-mysql courier-imap courier-pop ### Answers: Create Web Based Configuration: NO General type of configuration: Internet Site Mail name: mail02.ar.mcn.dk ### Run this to edit /etc/postfix/main.cf: postconf -e myhostname=mail02.ar.mcn.dk … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

SSH Mount in Ubuntu

I did the following, you might not need to do it all: Create mount dir and chown it to the user who needs to access it. Add the following line to fstab: sshfs#USERNAME@SERVER:/PATH /mnt/MOUNTPOINT fuse defaults,noauto,user,uid=mike,gid=mike,allow_other,reconnect,transform_symlinks 0 0 For automated … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Installing webserver on Debian

apt-get install apache2 mysql-server php5-mysql

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

PCI Bus limitations

backup ~ # hdparm -tT /dev/md1 /dev/md1: Timing cached reads: 2232 MB in 2.00 seconds = 1115.98 MB/sec Timing buffered disk reads: 404 MB in 3.02 seconds = 133.93 MB/sec backup ~ # df -H | grep md1 /dev/md1 2,0T … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

MCN Net V 1.0

vlan database vlan 2 name SKNET vlan 21 name MCN-DMZ vlan 22 name MCN exit conf t in fa0/1 switchport mode trunk switchport trunk encapsulation dot1q switchport trunk allowed vlan all exit in fa0/2 switchport mode trunk switchport trunk encapsulation … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Recovering a partition table or masterblock after weird crashes

If your boss accidently overwrites the first few megabytes of you harddrive, both the partition table, and the superblock, all is lost. Or is it? Boot the machine in any way you can, and if it’s not already there, get … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

APC UPS Deamon for Linux

how to install APC UPS CS500 on linux Install APCUPS Deamon: Debian: # apt-get install apcupsd Gentoo: emerge -av apcupsd Edit /etc/apcupsd/apcupsd.conf: 1: If running on USB, set UPSTYPE to usb (default is apcsmart) 2: If running on USB, set … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Nagios module: check MD Arrays

#!/usr/bin/perl -w # vim:ts=4 # # Check RAID status. Look for any known types # of RAID configurations, and check them all. # Return CRITICAL if in a DEGRADED state, since # if the whole array has failed you’ll have … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

vlan for linux

recompile your kernel if needed, or load module ‘8021q’ install vconfig: emerge -av vconfig apt-get install vlan yum install vconfig After install and reboot, the dmesg should show this: 802.1Q VLAN Support v0.10 Ben Greear <greearb@candelatech.com> vlan Initialization complete. Now, … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar