Archive for March 2012

Start, Stop & Restart OpenSSH Server 04.03.12

  • Ubuntu Server
  • Comments Off on Start, Stop & Restart OpenSSH Server
  • 0
  • $ sudo /etc/init.d/ssh start
    $ sudo /etc/init.d/ssh stop
    $ sudo /etc/init.d/ssh restart

    $ sudo service ssh start
    $ sudo service ssh stop
    $ sudo service ssh restart

    warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) 04.03.12

    I was getting the following message when loggin through SSH :

    warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

    It complain about the locale variables not being set.

    To fix this, simply add the following to ~/.bash_profile:

    export LC_CTYPE=”en_US.UTF-8″

    [emerg] unknown “https” variable 04.03.12

  • Nginx
  • Comments Off on [emerg] unknown “https” variable
  • 0
  • Error :

    Starting nginx: nginx: [emerg] unknown “https” variable
    nginx: configuration file /etc/nginx/nginx.conf test failed

    Solution :

    Edit this file /etc/nginx/fastcgi_params

    Comment out this line

    # fastcgi_param HTTPS $server_https;

    How to Change the root Password in Ubuntu 03.03.12

  • Ubuntu Server
  • Comments Off on How to Change the root Password in Ubuntu
  • 0
  • As default Ubuntu has no password set for the root user. To gain root access you have to type in your own user password. This is the password you set for the first user while installing Ubuntu.

    To manually set a password for the root user, type in the following in the shell :
    sudo passwd

    After that you are asked to type in the new root password twice. Finally, your root user has its own password.