Linux
« Previous Entries Next Entries »Disable ping on linux
donderdag, juli 19th, 2007Almost 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
Fedora Core 2 repository
zondag, juli 8th, 2007Today 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 [...]
Backup mysql with many tables >1000
zaterdag, juli 7th, 2007When 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!
Could not bind 0.0.0.0:443
donderdag, juli 5th, 2007login su in server #fuser 443/tcp 443/tcp: xxxx yyyy zzzz <- proceses using 443 #kill -9 xxxx yyyy xxxx #service httpd start
Final: backupserver is running!
vrijdag, juni 29th, 2007The 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 [...]
Thinking Debian or CentOS?
zondag, juni 24th, 2007At 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 :d An other great change will be the migration of our new linuxserver, so we [...]
Backup and dutchzone.eu
maandag, juni 4th, 2007After 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 [...]
Add many users on linuxsystem by script
donderdag, mei 31st, 2007Let 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 [...]
mail attachment on commandline (bash)
dinsdag, mei 29th, 2007Many people working in bash would like to mail some files to an address so from now you can as follow: # uuencode file.ext file.ext | mail -s ‘place our subject’ youraddress@domain.com
Double mail
maandag, mei 28th, 2007When recieving double mails on Ensim servers you have to check that flock is replaced by posix! # nano /etc/MailScanner/MailScanner.conf change Lock Type = flock to Lock Type = posix and press CTRL-O # /etc/init.d/MailScanner restart # /etc/init.d/MailScanner_apt_init restart When this is done you won’t recieve double mails anymore
« Previous Entries Next Entries »
