Category: Server
-
WHM domain owner
Please run the following command in root SSH: /scripts/whoowns domain.com Where domain.com is the domain name in question. If it doesn’t show any ownership, then move the following files: cd /etc mv userdomains userdomains.bak mv trueuserdomains trueuserdomains.bak mv domainusers domainusers.bak At that point, run the following script and recheck ownership for the domain: /scripts/updateuserdomains /scripts/whoowns domain.com If…
-
Check if latest Kernel is running on Ubuntu, with Zabbix
First a created a bash script that return 0 – error, 1 – OK, 2 – Old Kernel is running. The script is called /usr/local/bin/last-kernel-check.sh #!/bin/bash name=”`uname -a | cut -d ‘ ‘ -f3`” new=”0″ for files in `ls /boot/config* | xargs -n 1 basename | cut -d ‘-‘ -f2-` do if [ “$files” == “$name”…
-
Dåligt med utrymme på en Ubuntuinstallation
Om man har kört en installation av en Ubuntu maskin under några år har det det blivit en del uppdatering. Det finns flera ställen där man kan leta efter “onödiga” filer. /usr/src /lib/modules /var/cache/apt/archives
-
WinSCP sessions backup
Normaly you can use regedit. In case the source system is not online anymore, but you have an access to its data, you need to use 3rd party tool to open your registry file. You can try MiTeC Windows Registry File Viewer. Follow these steps: Go to File > Open. Locate registry hive file of…
-
Zabbix Template for Netgear GS716T
Here is a Zabbix export of my Template for Netgear GS716T. zabix_template_netgear_gs716t
-
Readd disk with mdadm
The mdadm command allows you to re-add new hard drives after one has failed. The command is simply: mdadm – -add /dev/md* /dev/hda*
-
FreeNX
sudo bash -c “echo ‘deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main’ >> /etc/apt/sources.list.d/freenx.list” where VERSION can be: dapper, hardy, intrepid or jaunty. More information can be found at FreeNX Team PPA. Add the public key of FreeNX PPA run: sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com F3A662B57D580D3A2E98E5152A8E3034D018A4CE Then Update Apt sudo apt-get update After you…
-
Backup and Restore a Subversion Repository
Sometimes, you just have to do serious maintenance to a server, like install a new instance of your operating system from scratch with a new partition layout. If this server happens to be your Subversion server, you need to backup your repository and restore it once you’re done with the maintenance. Or maybe you just…
-
How to Tweak Your SSD in Ubuntu for Better Performance
How to Tweak Your SSD in Ubuntu for Better Performance There are lots of tips out there for tweaking your SSD in Linux and lots of anecdotal reports on what works and what doesn’t. We ran our own benchmarks with a few specific tweaks to show you the real difference. Benchmarks To benchmark our disk,…