Category: Server

  • newcs install

    In Ubuntu you need sudo apt-get install libssl-dev libssl0.9.8

  • DVB drivers for USB

    git clone git://linuxtv.org/media_build.git cd media_build ./build make make install

  • TapeWare in Ububtu

    To install TapeWare v7.0 Master and Server Enterprise (SP5C) you need to install xterm sudo apt-get install xterm sudo apt-get install ncurses-term start xming server on Windows start sudo xterm start the install of TapeWare   SUN DLT7000 drive in TapeWare in file twtapdev.ini add “SUN     DLT7000=DLT 7000” in my case there was 5 spaces.…

  • Diff directories in Linux

    diff –recursive –brief /tmp/dir1 /tmp/dir2 |grep Only

  • Convert an Addon Domain to its Own cPanel and Vice Versa

    These steps assume that the domain will remain on the same server. Addon domain turned into a separate cPanel Download the content of your addon domain to your local PC. Backup any associated database(s). Go into the original cPanel and remove the addon domain from under the Addon Domains icon. (You do not need to…

  • Dump mysql tables with mysqldump

    Here is a script for dumping tables from all databases in MySql. #!/bin/bash # ************************************************************* # file: mysqldump.sh # date: 2011-12-22 00:22 # author: (c) by Mats Ahlbom – mats@ahlbom.nu # description: Get a mysqldump-file for eath table in all databases # ************************************************************* # name of database user ( must have LOCK_TABLES rights )… dbUsername=”mythtv”…

  • Mythubuntu not open port 6543

    After upgrade of MythBuntu the system do not open port 6543. After running: sudo dpkg-reconfigure mythtv-common sudo dpkg-reconfigure mythtv-database the port is open and MythBuntu are working!

  • Find string and remove file

    You can use this to find a string in a file and remove the file. find . | xargs grep -l youemail@email.com | awk ‘{print “rm “$1}’ > doit.sh Look in file doit.sh for errors. Execute the file: bash doit.sh

  • Copy partition table using dd

    dd if=/dev/source of=/dev/dest bs=512 count=1

  • mdadmin

    Rescan md-device mdadm –assemble –scan Stop md-device Stop all service using device, samba, nfs mdadm –manage –stop /dev/md0 Readd md-device mdadm –manage –add /dev/md0 /dev/sdc2 Force Assemble sudo mdadm –assemble –run –force /dev/md127 /dev/sd[abdc]3