Cauwenbergh.be weblog

Archive for mei, 2007

Add many users on linuxsystem by script

donderdag, mei 31st, 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 […]

Funny boys

donderdag, mei 31st, 2007

When you are you you think of everything…

mail attachment on commandline (bash)

dinsdag, mei 29th, 2007

Many 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

Ubuntu vs. Vista

maandag, mei 28th, 2007

Why not try Ubuntu?

Tricky?

maandag, mei 28th, 2007

How is this possible?

Double mail

maandag, mei 28th, 2007

When 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, 2007

For 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 […]

backup mysql by ssh

zondag, mei 27th, 2007

Most 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 […]

Hello you all!

zondag, mei 27th, 2007

Welcome at my blogsite, this site will contain usefull information for people handling with linux, webhosting, and much more. So if some nasty problems need to be solved and i found a solution i will post it somewhere on this blog! If you think you can bring that little more to this blog and want […]