mathz.nu Asterisk Blacklist Hobby webbhotell

2012/11/13

Config file

Filed under: Server — Tags: , , — Mathz @ 10:16

To find active rows.

egrep -v ^# /etc/test.cfg

FreeNX

Filed under: Server — Mathz @ 09:37
  1. 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.

  2. Add the public key of FreeNX PPA run:
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F3A662B57D580D3A2E98E5152A8E3034D018A4CE
  3. Then Update Apt
    sudo apt-get update
  4. After you add the repository, then install the freenxpackage (using Aptitude to install extra needed packages).
    sudo aptitude install freenx
  5. Now use nxsetup to install necessary files and create the special user “nx”
    sudo /usr/lib/nx/nxsetup --install

Unity 2D?

If your computer comes without 3D graphics support, the ubuntu will fall into unity 2D automatically, in this case, the nx session should work fine with unity 2D
If your computer comes with 3D graphics support, by default, the ubuntu will try to use Unity (3D) as its desktop session. However, the nx server does not support Unity (3D) so far. In this case the nx session will fail to work. To solve it, you have to change the nx server configuration to use Unity 2D or Gnome classic specificly.
The following commands will configure the NX server to unity 2D(Tested on Ubuntu 12.04):

  • To configure NX server to use unity 2D:
    • Edit /usr/NX/etc/node.conffile as root, and enable the following line:
      COMMAND_START_GNOME="gnome-session --session=ubuntu-2d" 
    • Restart freenx server:
      sudo /etc/init.d/freenx restart 
  • To configure NX server to use gnome-shell:
    • Install gnome-shell:
      sudo apt-get install gnome-shell 
    • Edit /usr/NX/etc/node.conffile as root, and enable the following line:
      COMMAND_START_GNOME="gnome-session --session=gnome" 
    • Restart freenx server:
      sudo /etc/init.d/freenx restart 
  • To configure NX server to use gnome-session-fallback:
    • Install gnome-session-fallback:
      sudo apt-get install gnome-session-fallback 
    • Edit /usr/NX/etc/node.conffile as root, and enable the following line:
      COMMAND_START_GNOME="gnome-session --session=gnome-fallback" 
    • Restart freenx server:
      sudo /etc/init.d/freenx restart 

2012/11/04

TVHeadend, Continuity counter error

Filed under: Uncategorized — Mathz @ 19:24
sudo vim /etc/sysctl.conf # Net net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 Run: sudo sysctl -p 

Disable IPV6 in Ubuntu

Filed under: Uncategorized — Mathz @ 19:22
sudo vim /etc/sysctl.conf

# IPv6 
net.ipv6.conf.all.disable_ipv6 = 1 
net.ipv6.conf.default.disable_ipv6 = 1 
net.ipv6.conf.lo.disable_ipv6 = 1

sudo sysctl -p

Powered by WordPress