Restart freeNAS gui from CLI

login to freeNAS via ssh and enter commands:

/usr/local/etc/rc.d/nginx restart
/usr/local/etc/rc.d/django restart



Posted in freeNAS, FreePBX | Leave a comment

Install ATI drivers to Linux Mint Debian Edition LMDE

apt clean

apt update

apt reinstall build-essential module-assistant fglrx-driver fglrx-modules-dkms libgl1-fglrx-glx glx-alternative-fglrx fglrx-control fglrx-glx

sudo aticonfig –initial -f

Posted in Debian, Mint | Leave a comment

Using rsysc over SSH with custom ssh port

Using rsync over SSH connection with custom ssh port

# rsync -avz -e "ssh -p portNumber" user@server:/path_to/files/ /local_path/


Posted in Debian, Linux tips, Mint, Ubuntu | Tagged , , | Leave a comment

Change debian keyboard layot

How to change debian keyboard configuration, just use following command:

dpkg-reconfigure keyboard-configuration
Posted in Debian, ISPConfig 3, Linux tips, Mint, Ubuntu | Tagged , , | Leave a comment

DebianMint netboot install

1) in the “APPEND” line of the “/tftpboot/pxelinux.cfg/default” file the statement “boot=casper” must be replaced with “boot=live”.

2) make soft link: ln -s casper live  must be created:

cd /tftpboot/images/linuxmint
ln -s caspar live


Posted in Debian, Mint | Tagged , , , | Leave a comment

Add firmware to PXE netboot debian

mkdir pxe 
cd pxe/ 
tar -xzvf netboot.tar.gz cd debian-installer/amd64/ cp initrd.gz initrd.gz.orig mkdir temp wget 
dpkg -x firmware-bnx2_0.16_all.deb bnx2 
cd temp zcat ../initrd.gz | cpio -iv 
cp -a ../bnx2/lib ./ rm -rf lib/modules/2.6.26-2-amd64/kernel/drivers/usb/storage 
find . -print0 | cpio -0 -H newc -ov | gzip -c > ../initrd.gz
Posted in Uncategorized | Leave a comment

How to enable Skype Icon on Unity Notification Panel on Ubuntu 12.04 LTS

just run:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Skype']"

and then restart skype or restart ubuntu…

Posted in Linux tips, Ubuntu | Tagged , | Leave a comment

Ubuntu 12.04 – java run as in menu

The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java Web Start, which deploys standalone applications over a network.

If you are running the latest version of Ubuntu 12.04 LTS:

sudo apt-get purge openjdk-7-jre icedtea-7-plugin
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer
Posted in Linux tips | Tagged , , | Leave a comment

Squid stats

How to check squid statistics on debian linux?

install application squidclient

apt-get install squidclient

and then execute aplilaction:

squidclient -p 3128 mgr:counters

for all options execute:

squidclient -p 3128 mgr:

Posted in Linux tips | Leave a comment

Apache self-signet certificate

Step 1: Generate a Private Key

openssl genrsa -des3 -out server.key 1024

Step 2: Generate a CSR (Certificate Signing Request)

openssl req -new -key server.key -out server.csr

Step 3: Remove Passphrase from Key

cp server.key

openssl rsa -in -out server.key

Step 4: Generating a Self-Signed Certificate

openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

Step 5: Installing the Private Key and Certificate

cp server.crt /etc/apache2/ssl/
cp server.key /etc/apache2/ssl/

Step 6: Configuring SSL Enabled Virtual Hosts

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl//server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

Step 7: Restart Apache and Test

/etc/init.d/apache2 stop
/etc/init.d/apache2 stop

Posted in ISPConfig 3, Linux tips | Tagged , , | Leave a comment