untitled System and Network Configuration * linuxconf – A GUI interactive interface available on Redhat 6.0 or later which includes netconf configuration. * netconf – A GUI interactive interface available on Redhat 6.0 and later. * kbdconf – A Redhat Linux tool which configures the /etc/sysconfig/keyboard file which specifies the location of the keyboard map… Continue reading Linux Configuration and Diagnostic Tools
Auto lock your Mac when you walk away
We geeks all have some sort of bluetooth device on us like your Nokia N80 or your new iPhone (which I will be getting and LOVE) so why not take advantage of one of these as a beacon to your computer. With a small application you can set your computer to detect the proximity of… Continue reading Auto lock your Mac when you walk away
Give me the most current file
I needed a quick way to maintain a current symlink to the most recent file by time stamp. Here’s one way to do it: ls -t1 *.jpg | head -1 | xargs -i ln -sf {} current.jpg
#!/bin/bash
I think the number one skill a sysadmin should have is a solid understanding of shells and shell scripting. The Advanced Bash-Scripting Guide is a good place to start or take a refresher. From the introduction: A working knowledge of shell scripting is essential to anyone wishing to become reasonably proficient at system administration, even… Continue reading #!/bin/bash
10 mental blocks keeping you from being a kick-ass sysadmin
Ok, it’s actually an article about 10 Mental Blocks to Creative Thinking but isn’t creative thinking a huge part of being a kick-ass sysadmin? Here’s what I thought of when I read each point, but I highly recommend that you read the whole article and look for ways it applies to you. In terms of… Continue reading 10 mental blocks keeping you from being a kick-ass sysadmin
List all mysql databases on server
List all mysql databases on server root@srv1 [~]# mysql -bse “show databases”
Repairing MySQL tables that will not open.
This should be handled on a case by case basis, but if you are using the default MySQL table type of MyISAM (which is the default storage engine unless changed or specified differently) here are a few options: The myisamchk utility can be run from a command line to checks, repairs, or optimizes tables. It… Continue reading Repairing MySQL tables that will not open.
How to change the default port for Plesk
It is not recommended to change the default Plesk port because it can break Plesk integration with other programs (like Plesk Expand or DrWeb). Linux To change the port Plesk listens on you will need to edit /usr/local/psa/admin/conf/httpsd.conf file and change the following directives to list the port you want Plesk to listen on: Listen… Continue reading How to change the default port for Plesk
Restarting Mail Enable through Plesk (Windows)
In order to restart the Mail server [Mail Enable], please use these steps. 1) Login To Remote Desktop >> “Plesk Services Monitor” [ Right side in the task bar] >> Check the box “Mail Server” >> Click on Restart. OR 2) Login To Remote Desktop >> Start >> Run >> type ” services.msc ” From here, you have… Continue reading Restarting Mail Enable through Plesk (Windows)
Service/Daemon Management
restarting/stopping/starting a service On any init.d based linux distro you can restart a service with the following… /etc/init.d/serviceName restart You may replace ‘restart’ with ’stop’ or ’start’ (and in some cases ’status’). Forcefully stopping a service killall processName Killing on instance of a service kill pid The pid can be gathered by either top or… Continue reading Service/Daemon Management