Linux
Next Entries »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 will [...]
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 backupsystem [...]
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
adduser bart -m -G users,wheel -s [...]
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
Restore (LARGE) MySQL by ssh
maandag, mei 28th, 2007For those people who have LARGE mysql databases and want to restore those, they know they have to cut it in little parts to work by phpmyadmin because the size limit…
But now here is the solution for your large sql file:
First upload your file to your webspace and login by ssh:
# mysql -u USER -p [...]
backup mysql by ssh
zondag, mei 27th, 2007Most of you people don’t have ssh access on your webhostingaccount, but for those who have and know why they having it here you find the command to backup your (LARGE) mysql database:
# mysqldump -u USER -p DATABASE > NAME.sql
(press ENTER and give your password)
where USER = your database username – DATABASE = your databasename [...]
