This site is now 100% read-only, and retired.

XML Logo

Posted by Grimnar on Sat 28 Feb 2009 at 00:08
Tags: none.
Hi again everyone!:) A few weeks ago my ethernet card started acting up. Im getting a lot of dropouts. In ifconfig eth1 this is showing up:
eth1      Link encap:Ethernet  HWaddr 00:0c:46:28:18:18  
          inet addr:my.ip  Bcast:other.ip  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61017346 errors:54844 dropped:0 overruns:0 frame:54844
          TX packets:10923860 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3164354708 (2.9 GiB)  TX bytes:1693136419 (1.5 GiB)
Now this is the ethernet card that gives me the internets. And its very noticeble during streaming and gaming. Very frustrating. This is a 6000/4000 DSL service so I should be able to stream small internett videos without any problems. And according to lspci, this is the hardware installed:
Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)
So what is wrong here? Is it the network cable? The modem? Or is it some driver problems? How can I check the driver / Update it? (Linux 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux @ Intel P4 2.8 HT, do I even have the correct kernel???)

 

Posted by Grimnar on Tue 16 Sep 2008 at 20:21
Tags: , ,
Ok. So I bought my self a raid controller. I'm not quite sure if it's hw or sw controller but this is what lspci tells me;
02:00.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)

Anyways. I've got 2 disk connected /dev/sdb(1) and /dev/sdc(1) and currently I have ext3 fs on them. Last time I booted I did play with some settings during boot, but I'm not really sure it that really is working.

But the thing I'm really interested in, is to how do I use the mdadm command to build a raid 1 array. The disks are meant to be one huge partition, not divided up into small partitions. (so the howtos on this site really got me confused).

So to sum it up. How do I make /dev/sdb1 and /dev/sdc1 into /dev/md0? (?) and do I need some sort of swap on the disks?

I'm scared and confused with this raid stuff!:)

(Some of you might have seen some post on other forums by me regarding this issue)

Edit: google says this controller is software based.

 

Posted by Grimnar on Sun 30 Mar 2008 at 16:29
Tags: , ,
So my current free dns provider is telling me it`s time to find a new provider. Cause he is giving up providing. So now I`m on a quest to find a new provider. Google gives me a lot of help, but I still not sure what to use. I signed up with freedns.afraid.org to check out what they can do for free. But I still need some more input.
Anyone know of any good providers?
Does not have to be free, but as close to free as possible is good. I have a server at home wich I can use for secondary dns providing, but I suspect my ISP dont accept that:)
-Andreas.

 

Posted by Grimnar on Wed 19 Dec 2007 at 22:16
Tags: none.
So, Im at a friends house and trying to install a wlan desktop card. This is a D-link DWA-547 desktop adapter. Just installed the madwifi package using apt-get and module-assistant. Followed the instructions on http://madwifi.org/wiki/UserDocs/Distro/Debian/MadWifi But it just does not work. So I will paste some interesting details: lspci:
02:02.0 Network controller: Atheros Communications, Inc. Unknown device 0023 (rev 01)
dmesg:
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.3.2)
ath_pci: 0.9.4.5 (0.9.3.2)
ath_pci: driver unloaded

ath_pci: no version for "struct_module" found: kernel tainted.
ath_pci: no version magic, tainting kernel.
ath_pci: 0.9.4.5 (0.9.3.2)
iwconfig:
lo        no wireless extensions.

eth0      no wireless extensions.
uname -a
Linux debian 2.6.22-3-686 #1 SMP Mon Nov 12 08:32:57 UTC 2007 i686 GNU/Linu
Now, what can I do about this? We tried a few weeks ago using a Broadcom card using ndiswrapper and hopefully we will never try that again, that was a real pain to configure, and finally not work anyway. So we re-installed debian and bought a new card in hope of a better solution. And so far that has not happend:/ -Andreas

 

Posted by Grimnar on Fri 16 Nov 2007 at 11:58
After two months of hell with some hardware supplier I finally got my server back up and running.

Installing Debian went like a dream, all up to the point when I was about to install apache.
Which one to install? 1.3 og 2.2.3?
Of course, I installed both. The confusion was total. Wich php to go with this? php4 or php5?
I stopped the 1.3-server and figured I should take a step into the future and run apache 2.2.3 and learn how that works.
But holy sh** was I in for surprise. Now, I been working with apache 1.3 for about 4 years. But I cannot for the life of me get this to work. What the hell is up with this?
Why is there several folders such as sites-enabled and sites-available? Wich one should I edit to make them work? (yeah, I runned the a2ensite)

Perhaps apache2 is really made to run from a web based program?
I finally found the a2enmod php4/php5 - and thought that would make php work on my sites, but of course I was wrong. No I get a download popup asking me to download x-httpd-php. That makes it clear that php is not working.

I´ve been googling like a fanatic the last couple of days to find some starting guides and howto´s - but nothing.

1. I got a mainpage with no php on it right now, just index.html just to get it working. But I still get the php error. Even I checked everywhere and the DocumentRoot points to a folder wich have NO *.php in it.

2. Should I go back to apache 1.3? The sites I´m serving is really only galleries and light stuff like that. Is there a need for apache2? Or should I be prepared for the future and stick with apache2 and learn it once and for all?



 

Posted by Grimnar on Fri 28 Sep 2007 at 19:30
Tags: none.
For about 2-3 days ago my debian server starts acting wierd.
Every time I do reboot, a random disk goes away. I got 3 mounted pluss my /dev/hda wich has my system on. Yesterday /dev/hdb was gone and now /dev/hdf is gone. But /dev/hdb is back in buisness. My setup has worked great for about 4 years now. Of course I have done some reinstall and such but it has been working flawlessy.


Samba is strange, cannot log in. proftpd gives me the same. (All failed when trying to start during boot). When a local user is trying to use screen, all I/he/she gets is: Directory '/var/run/screen' must have mode 777.
uh? So, what the hell is going on?
In my /var/log/samba there is a bunch of logs wich I never seen before. Very strange.

log.59.95.174.72 log.85.220.29.22 log.smbd.7.gz
log.59.95.179.66 log.85.220.30.225 log.softs
log.59.95.25.148 log.85.220.32.100 log.solberg
log.59.95.28.63 log.85.220.33.163 log.spacemachine
log.59.96.155.103 log.85.220.33.53 log.srv2000
log.60.161.14.59 log.85.220.36.210 log.srvvb
log.60.21.34.158 log.85.220.36.223 log.station4
log.60.237.165.105 log.85.220.42.66 log.sten
log.60.41.152.68 log.85.220.44.68 log.stiga
log.60.50.63.182 log.85.220.47.155 log.stokkes




On my mac Im used to run a app called onyx, wich will fix all the permissions on the system. Is there any program that will do the same on debian?

 

Posted by Grimnar on Sun 9 Sep 2007 at 13:04
Tags: none.
So, we are doing some major upgrade on our webserver this week and I was wondering ,what are my options for installing some webhosting software? My old method was adding users through the system and making "room" for them, then I had to make a custom webalizer script and adding them in a cron schedule. Now this worked out just fine of course but it was a bit cumbersome. Are there any alternative method of this? And yeah, google shows me *only* how to rent webhosting service. Oh well. The server will be running Debian Etch on a Core 2 Duo cpu.

 

Posted by Grimnar on Sun 6 May 2007 at 05:26
Tags: none.
So after a few weeks with painfully slow ftp/samba speeds I finally gave up. I downloaded debian netinst iso and booted away. Erased /dev/hda1 to really get rid of the ooooold system. Was very satisfied when I discovered all my other disks and files where untouched. And this time my third netcard was discovered during the install and I figured I might as well could try that one. So I configured that eth2 to 192.168.0.1 NAT and it worked like a charm. For about 3 hours. God damn, I'm still having problems with the speeds!! What the hell can this be? I been googling the last 4 hours and I'm soon going to break something! Now, some facts before my gf wakes up (It's 06:18 in the moring here)
boot up script.
ifconfig eth2 192.168.0.1
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -F -t nat
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
mii-tool -F 100baseTx-FD eth2                                         

uname -a
Linux gwdebian 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i686 GNU/Linux
ifconfig eth2
gwdebian:/etc/proftpd# ifconfig eth2
eth2      Link encap:Ethernet  HWaddr 00:04:61:61:2A:35  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::204:61ff:fe61:2a35/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2429482 errors:0 dropped:27 overruns:0 frame:7665
          TX packets:1863736 errors:1 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:227068955 (216.5 MiB)  TX bytes:2527109377 (2.3 GiB)
          Interrupt:201 Base address:0xec00
Top
    1 root      15   0  1940  644  548 S  0.0  0.1   0:01.46 init                                                                                            
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                                                                     
    3 root      10  -5     0    0    0 S  0.0  0.0   0:03.03 events/0                                                                                        
    4 root      19  -5     0    0    0 S  0.0  0.0   0:00.00 khelper                                                                                         
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread                                                                                         
    8 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kblockd/0                                                                                       
    9 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid                                                                                          
   93 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod                                                                                         
  135 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pdflush 
Firewall: None; Other limiters: none; This is really a fresh install. Only Gnome 2.18 installed as the culprit, but all gnome* as been stopped. No dns-issues in proftpd.conf, and the "speed hack" in samba.conf is in use. Passive/active transfers both been tried out in my ftp client. Still no dice. Please help me solve this. Someone. (formated in html text, preview showed ok format)

 

Posted by Grimnar on Tue 24 Apr 2007 at 18:34
Tags: none.


Just having a strange problem. This week I have to reboot my server once a day to
get my normal speeds. I transfer a lot of images from my laptop to my server. This usually goes with the speed of about 3000kbs (wireless). But hours after reboot this goes down to 30 kbs. What the hell? Both samba and proftpd gives me these speeds. What can cause this problems?

 

Posted by Grimnar on Mon 22 Jan 2007 at 14:04
While I was working on this I found out I had a broken courier-webadmin package. So I figured updating that package would not cause any damage. And was I wrong. No all the sudden no one can connect to my mail server. The server can recieve mail. But no one can login.

So I figured my MTA is working, but my imap/pop3 server are screwed up. IE Courier is damaged. Now I use vexim to add users and vexim comes with some changes to /etc/courier/imapd - pop3d. All been detailed at the homepage.

Now im pretty sure I done the right modifications to imapd and pop3d. But I still cannot login and get mail. What could be wrong? /var/log/mail.log

Jan 22 14:47:34 servar couriertcpd: LOGIN: ip=[::ffff:82.221.100.31], command=LOGIN
Jan 22 14:47:34 servar couriertcpd: LOGIN: ip=[::ffff:82.221.100.31], username=postmaster@spbk.no
Jan 22 14:47:34 servar couriertcpd: LOGIN: ip=[::ffff:82.221.100.31], password=somepasswd
Jan 22 14:47:34 servar courierpop3login: LOGIN FAILED, user=user@domain.net, ip=[::ffff:82.221.100.31]
/etc/courier/pop3d
IDFILE=/var/run/courier/pop3d.pid
MAXDAEMONS=40
MAXPERIP=4
#AUTHMODULES="authdaemon"
AUTHMODULES="authmysql"
AUTHMODULES_ORIG=""
DEBUG_LOGIN=2
#POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1 MD5"
POP3AUTH="md5"
POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"
POP3AUTH_TLS=""
POP3AUTH_TLS_ORIG="LOGIN PLAIN"
PORT=110
ADDRESS=0
TCPDOPTS="-nodnslookup -noidentlookup"
POP3DSTART=YES
MAILDIRPATH=Maildir
vexim uses mysql to authenticate users. pop3d is altered to do this. What can be wrong? I tried the vexim maillists but no response. :/