How stupid can i be?
By Robin | juni 1, 2007
Last 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 »
mail attachment on commandline (bash)
By Robin | mei 29, 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
Topics: Linux | No Comments »
Ubuntu vs. Vista
By Robin | mei 28, 2007
Why not try Ubuntu?
[youtube]http://www.youtube.com/watch?v=nPecBxM2f6c[/youtube]
Topics: No Category | No Comments »
Tricky?
By Robin | mei 28, 2007
How is this possible?
[youtube]http://www.youtube.com/watch?v=_snBMLwnWcM[/youtube]
Topics: No Category | No Comments »
Double mail
By Robin | mei 28, 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
Topics: Ensim | No Comments »
Restore (LARGE) MySQL by ssh
By Robin | mei 28, 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 -u USER -p DATABASE < NAME.sql
press ENTER and give your database password
USER = your username for the database – DATABASE = the databasename – NAME = the filename you have uploaded
Topics: Linux | No Comments »
backup mysql by ssh
By Robin | mei 27, 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 = your databasename and NAME = you can choose this
Topics: Linux | No Comments »
Hello you all!
By Robin | mei 27, 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 to assist me, well, just ask me and maybe you can post as well on this blog! So help to solve some problems!
Topics: No Category | No Comments »
