Category Archives: Ubuntu

Force a logout shortcut, in Ubuntu

If everything is blocked / freezed, you can try this: CTRL + ALT + F2 After this, you will be asked for your username and password to login. Type them then type this: $ killall -u [your-username] gnome-session That’s it. Of course all your unsaved data is lost !

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Restart Ubuntu 12.04 sound system if pulseaudio/ALSA don’t work

If suddenly you have no sound on your ubuntu system, you should try this: $ pulseaudio -k && sudo alsa force-reload Also this should work: $ killall pulseaudio

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Nginx – upstream sent too big header while reading response header – solution

If you get this kind of error in your nginx logs: ERROR: *1754 upstream sent too big header while reading response header from upstream, client: X.X.X.X, server: XXXX One solution that worked for me, was to set the fastcgi_buffers and fastcgi_buffers_size in nginx configuration file: $ vim /etc/nginx/nginx.conf Add the following params to your nginx read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Installing Redis + Php Redis Extension + igbinary in Ubuntu 12.04

This is a quick example of how to install Redis server, Redis PHP extension + Igbinary in Ubuntu 12.04. All steps requires sudo access. 1. Install Redis server Because the official Ubuntu PPA is not updated with the latest version of Redis, we need to add another repository: $ sudo add-apt-repository ppa:chris-lea/redis-server $ sudo apt-get read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Port forwarding with iptables

If you ever want to try port forwarding with iptables, here is a quick example of forwarding a public port (45000) – public network to a private port (22) – ssh – private network: $ iptables -t nat -A PREROUTING -p tcp –dport 45000 -j DNAT –to-destination 192.168.1.200:22 $ iptables -t nat -A POSTROUTING -j read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Ubuntu server network problems – network down after reboot

I’ve experimented a strange situations a few days ago. After a few updates, my VPS became unreachable. Ifup command was throwing me errors – directory “/var/run/network” does not exists. After a few hours of researches, it seems that this is a problem that was solved back in 2008. Unfortunately, for some reasons – most probably read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS