Cauwenbergh.be weblog

Disable ping on linux

By Robin | juli 19, 2007

Almost all people starting with linux want to know after a while how to stop ping to prevent floods, well here is the solutions:

echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

Only one thing left to do, you also want to get this after a reboot, so put in /etc/sysctl.conf.:

net.ipv4.conf.icmp_echo_ignore_all = 1

Topics: Linux | No Comments »

Fedora Core 2 repository

By Robin | juli 8, 2007

Today i found that the mirrors in usa not working for some reason on a fedora core 2 system of a customer, so i searched and found a newone and placed in /etc/yum.conf:

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=ftp://alviss.et.tudelft.nl/pub/fedora/core/$releasever/$basearch/os
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever – $basearch – Released Updates
baseurl=ftp://alviss.et.tudelft.nl/pub/fedora/core/updates/$releasever/$basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
Hopefull someone could use this!

Topics: Linux | No Comments »

Backup mysql with many tables >1000

By Robin | juli 7, 2007

When your mysql has many tables you could get an error of LOCK TABLES to solve this you can try two things:

1) use the option –skip-lock-tables in mysqldump

2) edit /etc/my.cfg and add following line under category [mysqld]: open_files_limit=16384

After 2 restart mysql!

Topics: Linux | No Comments »

Could not bind 0.0.0.0:443

By Robin | juli 5, 2007

login su in server

#fuser 443/tcp
443/tcp: xxxx yyyy zzzz <- proceses using 443

#kill -9 xxxx yyyy xxxx
#service httpd start

Topics: Linux | No Comments »

Final: backupserver is running!

By Robin | juni 29, 2007

supermicro 2U S826The beginning was not so good, 3-ware card was not recognized by CentOS 5 neither 4! So after searching a couple of hours and found the right device drivers we could start the install! So far so good, we have a system with 6 x SATA 320GB in raid 5 so we have 1,45TB of diskspace available for backup on six disks! The system: a supermicro server with 12 bays for hardisks…

Now installing quota and ftp so the system could work as meant!

Topics: Dutchzone, Linux, No Category | No Comments »

Thinking Debian or CentOS?

By Robin | juni 24, 2007

centosAt this moment there are some huge changes waiting by Dutchzone, our Windowsserver is running and tested so one of the new things is our new windowshostingproject, not my idea, but sometimes you have to let it come over you :ddebian

An other great change will be the migration of our new linuxserver, so we will get 2GB of RAM (it could be 4GB later!), for the raid we have choose to take a 3ware card so our CPU is not to much loaded! On this linuxserver we sure setup Plesk 8.x (swsoft normal bring 8.2 out later this summer 2007) the only thing i’m not sure of is take debian or CentOS, debian is a high supported platform, on the other hand CentOS is a RHEL-alike and more stable, after years of Fedora one thing is sure, Fedora is not good for a productionserver because it give many problems updating thing outside of Plesk, Fedora OS is only supported for 2 years and CentOS/debian is supported for 5 years! So after this all at this moment it would be CentOS for some reasons: other servers i manage for a company mostly running CentOS, so that system i know the best, other thing is Fedora and CentOS is not such a difference! So i think CentOS is the right solution!

New is our brand new backupsystem, a Supermicro 2U server with 8 disks (3,2TB), 2 x Gbit NIC, after 4 years working and taking backup from one server to the other and visa versa we found it was time to get a sepperated system taking care of our backups and most of all for performance it will be a relieve! Customers will get a new advantage, they can choose to get their backups on their own space (same server and counted as used webspace, but not save we think!) or pay some EUR for external backup (the amount to pay is less if you can think what could happen when a server is failling, so starting from 10 EUR/year we think it is not much for your data!

Almost forgot, never think someone else did solve a problem he could solve himselve! Yesterday a friend of mine had an e-mailproblem so huge he gave up to search, but if he had just thinking twice, sending mail from server A to server B was not working because he tested the domain which was on server B now the day before on server A and did not removing it! So after two hours of searching with two persons we found the solution :p Remove the domain from server A!!! So if you report a problem give as much information you know from the last days… Maybe you get the solution yourselve at that moment :p

PS: my birthday on 16th of june was perfect, yeah allright i’m 30 years old now but kicking and alive :d so 30 is a strange fealing, the number but for all the other things i’m feeling me as good then i was 29 :d My English is still bad, i’m still having fun working in *nix systems, i’m still happy with wife and kids! So let’s go and take it as it comes for an other year!

Topics: Dutchzone, Linux | No Comments »

Backup and dutchzone.eu

By Robin | juni 4, 2007

After years everything went like it has to go, so since a few days dutchzone.eu is registred at my name, an old supplier had registred the name and would not give it to us, but since a few days it is where it belong, by Dutchzone!

An other thing i have solved today is the backupsystem in Plesk 7.5 Reloaded, this was so bad nobody could use it, after a self test with a domain (this one) with 7,6 GB we could tell you everything works like it has to work!

Topics: Dutchzone, Linux | No Comments »

How stupid can i be?

By Robin | juni 1, 2007

robinLast night i get a message to reboot a cetain server, so after a litle chat that person says: ok it’s the only solution so reboot that server now.

On that moment there are 3 persons logged in on the server, none of them know what the other does, but each person logged in as root.

So good believing Robin reboots the server, after 30 minutes still no answer from that server, asking how normal the other person would find this, he says no panic, i had one for 40 minutes last time… After 60 minutes i have discided to reboot the thing by APC, but still an hour after that no response from that server. At this piont someone called me to hear what was wrong, give me some other solutions, but all without any result, but after that i would see it with my own eyes and going to the datacenter. One problem at this point, i’m not on the permanent accesslist so I could not get inside the f*cking building… At this point i’m stuck and getting in my bed…

After hours of thinking i have made a descision: never believe someone even if it is one of your best friends, never trust someone, when there is shit you can solve the problem alone…

So i’m thinking at this point if you’re on a server and working on it, before you start or getting rootaccess, check first what the other person is working on, don’t believe someone unless you have heart each person logged in on the system how hard it would be! Those who know the story think twice, never run away from a problem, at that moment you help until it is solved! So thank you my friends!

Topics: No Category | No Comments »

Add many users on linuxsystem by script

By Robin | mei 31, 2007

Let us take 3 users as an example (niels, bart, robin), so create a file setusers.sh and put the following in it:
(use your favorite editor – nano – vi – pico or whatever you like) #nano setusers.sh

#!/bin/sh
####################
# first we create the users #
###################
adduser niels -m -G users,wheel -s /bin/bash
adduser bart -m -G users,wheel -s /bin/bash
adduser robin -m -G users,wheel -s /bin/bash
#####################
#now set passwords per user#
####################
echo “letnielsinpasswd” | passwd –stdin niels
echo “letbartinpasswd” | passwd –stdin bart
echo “letrobininpasswd” | passwd –stdin robin

(in nano you press CTRL-O to save your file)
When this is done be sure you are root at this point and run your bashscript as follow:

#sh setusers.sh

and you are done, users are added and passwords are set!

Topics: Linux | No Comments »

Funny boys

By Robin | mei 31, 2007

When you are you you think of everything…

[youtube]http://www.youtube.com/watch?v=EnPvUrieH80[/youtube]

Topics: No Category | No Comments »

« Previous Entries Next Entries »