Category: Linux stuff

  • no sound debian wheezy

    SCENARIO: System: Debian Wheezy Kernel: 3.2.0-3-amd64 Desktop: Xmonad Sound: PulseAudio, Alsa PROBLEM: no sound at all SOLUTION: install pavucontrol and configure appropriately # aptitude install pavucontrol

  • secure ftp server on centos

    Prerequisites: 1. open external firewall (cisco, linksys,…) ports 20, 21, 990 and port range 49500:50000 to the local FTP server 192.168.xx.yy * port range ports can be random ports higher than 49151 and lower than 65535 2. open firewall for port 20,21,990  and port range 49500:50000 on ftp server # vim /etc/sysconfig/iptables -A RH-Firewall-1-INPUT -p…

  • debian updating perl locale error

    If you have errors like —> PROBLEM (ERRORS): perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = “UTF-8”, LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”). locale: Cannot set LC_CTYPE to default…

  • Create bootable linux usb key

    1. Find live linux cd image (Ubuntu, Fedora, Debian,…) and download it to your computer 2. Create bootable usb key with dd; # dd if=/path/to/linux-live.iso of=/dev/sdX X – usb key drive (use root not partition), example: # dd if=/home/username/Downloads/Ubuntu-11.04-amd64.iso of=/dev/sdb   3. Boot from usb-key (while booting your computer press F12 and choose usb key…

  • Linux on macbook …

    Problems: 1. Bootup delay (20-30 sec) SOLUTION: Insert OSX disc, boot from it, open terminal and enter following: bless –device /dev/disk0s2 –setBoot –legacy –verbose where /dev/disk0s2 is the partition you installed grub (do ‘diskutil list’ to find out correct partition). Of course, ‘–verbose’ is optional. This makes Macbook EFI firmware boot your Linux installation in…

  • Upgrade to Zimbra 7.*

    Platform Centos 5.5 32bit Previous version of Zimbra 6.0.12 1. Download zcs 7 with wget; [root@server ~]# wget http://files.zimbra.com/downloads/7.0.1_GA/zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz 2. Unpack zcs 7 in current directory; [root@server ~]# tar xvzf zcs-7.0.1* 3. Change directory to zsc-7.0.1*; [root@server ~]# cd zcs-7.0.1* 4. Install zcs 7 on Centos 5.5 with –platform-override ; [root@server zcs*]#./install.sh -s –platform-override 5.…

  • Zimbra – change user COS (Class of Service )

    zimbra@servername:~$zmprov sac name.surname@domain.ltd cosname

  • md raid not rebulding — resync=pending

    You have problems with automatic rebuilding raid 1 (md) on debian (resync=PENDING)? mdX : active (auto-read-only) raid1 sdaY[0] sdbY[1] 2000000 blocks [2/2] [UU] resync=PENDING do; mdadm –readwrite /dev/mdX and the process of rebuilding starts [===>…]  resync = 16.2% (324736/2000000) finish=0.6min speed=46390K/sec

  • Remove corrupt Rhythmbox database – Ubuntu 10.04

    What to do: username@computername:~$ rm .local/share/rhythmbox/rhythmdb.xml I need to downgrade Rhythmbox (Ubuntu downgrade 10.10 –> 10.04) and the new database didnt work with old rhythmbox (Version: 0.12.8-0ubuntu7)