Mastodon

Cloudflare and ssh

If you are using Cloudflare as firewall for content delivery then please note that Cloudflare only proxies http/https traffic. i.e., it would be impossible to reach your server through any other service like ssh/ftp/sftp etc.

If you need to connect to your origin using another protocol (SSH, FTP, SMTP, etc.) you need to do so using a record that does not have Cloudflare enabled in the DNS settings (grey cloud) or by connecting directly to the origin server’s IP address.

For example, if your domain is example.com, connect to server using a grey url like

$ ssh user@ssh.example.com

where ssh.example.com is an A record pointing to same ip as example.com.

Letsencrypt – Generating certificate and deploy on production server

I had a situation where I do not wanted to install all the libs required by LetsEncrypt on a production server.  For the mere fear of breaking the running apps.

I went on exploring how to setup a server to generate SSL certs with letsencrypt and deploy the generated certs on the production server.  Below I describe the steps with some do’s and don’t.

Continue reading Letsencrypt – Generating certificate and deploy on production server

nmtui – a nice tool to tweek network settings in centos

If you ever ran into an issue of having two network card and wanted to make one as primary, nmtui can be a handy tool.

Ideally defining GATEWAY to one of the network interfaces would solve the problem but this situation is ideal when one has static and other has dynamic IP or both have static IPs.  My situation was even complex when I had both the interfaces get its config via dhcp.  In this case I really cannot control which interface should have the GATEWAY defined and which not.

With the help of nmtui command, i could tweek the network interface settings where I selected the below option for all the interfaces accept the primary one:

Never use this network for default route

And that was it.  Hope it helps someone needy.  [tweetthis]nmtui – to tweek your network settings. [/tweetthis]

Increase QDE Momentics’s heap size in Ubuntu

Ever wondered increasing the -Xmx values in qde.ini does not increase the maximum heap size while launching the Momentics ide from the launcher icon?  This is because, all settings from qde.ini are simply ignored when it is launched via the app icon.

To really make your changes reflect, edit the file ~/.local/share/applications/momentics.desktop and make your changes there.  A simple restart of the ide will reflect the changes made.

Adding lamp to kde menu

If you have installed xampp / lampp in linux then you must have observed that there is no launcher shortcut created under kde menu.  You need to launch it manually from command line.  To create a launcher shortcut, here is the procedure.

  1. Right click on kde launcher icon and select “Edit Application”
  2. In the left pane, select one of the category under which you wish to add the shortcut.  for example: Development
  3. Create a new item by selecting “New Item”
  4. In the right page, enter following details:
    • Name: lamp
    • Description: Linux Apache MySQL Php framework
    • Command: /opt/lampp/manager-linux-x64.run
    • Under advanced tab:
      • Run as different user: root
  5. Press ‘Save’ and you are done.

Now you will find the lampp shortcut under kde menu -> Developmenet -> lampp.

Eclipse crash in KDE 4.11

For those who have experienced Eclipse crashing with error “C [libgobject-2.0.so.0+0x19528] g_object_get_qdata+0x18” in KDE specially with version 13, here is a quick solution.

1) Open System Settings
2) Select Application Appearance
3) Select GTK
4) Change the GTK2 theme to anything but oxygen-gtk
5) Start eclipse and perform the required operation which caused the crash
6) Close eclipse
7) Revert settings back to use oxygen-gtk for GTK2 apps

The crash was observed specially when trying to close the find/replace window in eclipse.

Happy coding!!!