Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

2016-09-01

Running Sky from tel.red on Fedora25

 
On Fedora 25, sky crash up on start in QT.
 
Program received signal SIGABRT, Aborted.
0x00007ffff112692f in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff112692f in raise () at /lib64/libc.so.6
#1  0x00007ffff112852a in abort () at /lib64/libc.so.6
#2  0x00007ffff200dcb1 in  () at /usr/lib/sky/lib/libQt5Core.so.5
#3  0x00007ffff24ee835 in QGuiApplicationPrivate::createPlatformIntegration() () at /usr/lib/sky/lib/libQt5Gui.so.5
#4  0x00007ffff24ee955 in QGuiApplicationPrivate::createEventDispatcher() () at /usr/lib/sky/lib/libQt5Gui.so.5
#5  0x00007ffff21cea64 in QCoreApplicationPrivate::init() () at /usr/lib/sky/lib/libQt5Core.so.5
#6  0x00007ffff24f2340 in QGuiApplicationPrivate::init() () at /usr/lib/sky/lib/libQt5Gui.so.5
#7  0x00007ffff2be62b9 in QApplicationPrivate::init() () at /usr/lib/sky/lib/libQt5Widgets.so.5
#8  0x0000000000434e41 in main ()
(gdb) quit
A debugging session is active.
 
 
Once workaround, is to let sky use the system provided qt5 libraries. 
$ rpm -q sky
sky-2.1.6327-1.fc24.x86_64
$ cd /usr/lib/sky
$ sudo mkdir old
$ sudo mv libQt5* old
$ sky


Would be nicer, if sky could use system libraries by default.



$ rpm -Uvh sky-system-qt ( meta package,installs sky and qt deps)
$ cat sky.sh
 
if shibboleet and ~/config/sky/.version is older than install
  use system library and start sky
  if start failed, disable shibboleet
else
  ld library jazz
  sky
fi

2016-08-07

installing splunkforwarder using ansible

The vars
---
  splunk_home: /opt/splunkforwarder
  splunk_exec: "{{ splunk_home }}/bin/splunk"


The playbook
---

- name: install splunk forwarder
  yum: name=splunkforwarder
       state=latest
  become: yes

# check for first time run
- stat:
    path: "{{ splunk_home }}/ftr"
  register: result_splunk_ftr_stat

- block:
    - name: setup splunk for first time run
      shell: |
        ps aux|grep splunkd && pkill -9 splunkd || true
        {{ splunk_exec }} start --accept-license --answer-yes --no-prompt
        {{ splunk_exec }} enable boot-start
  when: result_splunk_ftr_stat.stat.exists
  become: yes


# Only add servers which are not in list
# shell: /opt/splunkforwarder/bin/splunk list forward-server -auth user:pass
# register: current_fwd_list
#- block:
#    shell: "{{ splunk_exec }} add forward-server {{ splunk_server }}:{{ splunk_server_port }} -auth user:pass"
# when: item not in current_fwd_list
#  become: yes
# with_items: splunk_fwd_server

# same logic for adding logs
#    - shell: "{{ splunk_exec }} add monitor {{ item.path }} -index {{ item.idx }} -sourcetype {{ item.path }} || true"
#  with_items:  "{{ splunk_log_files }}"

and profit !

2016-05-07

zabbix 3.0.2 for RHEL6 is built

A follow up on using zabbix30 on el6 . zabbix 3.0.2 packages for RHEL6.x64 has been pushed out.

I have switched to IUS repository, over webtatic.

phpipam behind a load balancer which handles ssl offloading


phpipam has support for ssl offloading, via X-Forwarded-For header .
  public function createURL () {
                # reset url for base
                if($_SERVER['SERVER_PORT'] == "443")            { $url = "https://$_SERVER[HTTP_HOST]"; }
                // reverse proxy doing SSL offloading
                elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')      { $url = "https://$_SERVER[SERVER_NAME]"; }
                elseif(isset($_SERVER['HTTP_X_SECURE_REQUEST'])  && $_SERVER['HTTP_X_SECURE_REQUEST'] == 'true')        { $url = "https://$_SERVER[SERVER_NAME]"; }
                // custom port
                elseif($_SERVER['SERVER_PORT']!="80")           { $url = "http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]"; }
                // normal http

Unfortunately, some don't follow this or have been configured for this, which results in phpipam loading incorrectly. To workaround this issue, edit config.php

$_SERVER['HTTP_X_FORWARDED_PROTO'] = "https";


And now, back to life.


2016-03-31

python : disabling SSL verification on pyvmomi on python


  • self signed certificate ? 
  • RHEL6 ? python 2.6 and 2.7.10 mixed environment ?
  • pyvmomi 5.5+ ?

Looking for a quick fix ?
...
File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 447, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

[root@fb7a3cd8c69d ~]# vim my_script.pyt
...
    context = None
    try:
        # Disabling SSL certificate verification       
        context = ssl.SSLContext(ssl.PROTOCOL_SSLv3)
        context.verify_mode = ssl.CERT_NONE
    except AttributeError:
        rget = requests.get
        requests.get = lambda obj, *args,**kwargs: rget(obj,verify=False)
        requests.packages.urllib3.disable_warnings()

    si = SmartConnect(host=args.host,
            user=user,
            pwd=args.password,
            port=int(args.port), sslContext=context)


And you are good to go. This will resolve the issue, and allow you to focus on your life

PS: You would still need to fix this to use basic auth.

2016-03-28

BSNL redirecting to “http://domain-error.com”

To work around this ISP spam, I have forced NM to use google dns .

cat  /etc/NetworkManager/system-connections/Auto\ Ethernet 
...
[ipv4]
dns=8.8.8.8;8.8.4.4;
dns-search=
method=auto
ignore-auto-dns=true
...


Alternatively, install and use nmtui


refence: 
https://developers.google.com/speed/public-dns/ 
https://askubuntu.com/questions/708762/redirecting-to-http-domain-error-com 
https://www.hogarthuk.com/?q=node/8 

2016-03-13

Using C++ REST on Fedora Linux

Microsoft has release Casablanca ( C++ REST) to github. I have pushed Fedora packages for these to copr .

Happy -lcpprest




2015-07-13

Lync on Linux

If you are looking to run Lync, aka Skype on Business on Linux you are in luck. Fisil has a client for Linux hosted at http://tel.red/ .

Unfortunately, this came with a bit of a hitch. The application failed to run on Fedora 23 (rawhide). Sky is bundling its own libraries !
$ sky
/opt/sky_linux/sky: symbol lookup error: /lib64/libXxf86vm.so.1: undefined symbol: _XEatDataWords

The solution, would be to load system library
$ LD_PRELOAD=/lib64/libX11.so sky

reference:

_XEatDataWords was add to fix an issue - http://cgit.freedesktop.org/xorg/lib/libXxf86vm/commit/id=284a88e21fc05a63466115b33efa411c60d988c9


Edit: Fixed with 381 ( http://tel.red/beta/sky_redhat64_v2.0.381.rpm ) and above.

2011-12-25

Closing apps in "window pickermode " in gnome-shell

One of the problems when working with touch screen is closing apps in window picker mode. I say,  add a "trash can" to the dock where I can drag and drop applications to close. This would only be visible in window picker mode.

Thoughts?


2011-12-24

Tablets : Unity and gnome-shell


I have thinking about writing this down for quite a while, my experiences with WeTab running Unity and gnome-shell.


Unity seems a good interface for a netbook ( I have not used this on 396.2mm laptop yet). The chink being, poor Tablet support. On install, I had setup auto-login, and was presented with the desktop and launcher. Opening up an app, and maximizing it hides the launcher, which I found really hard to find again. The scroll bar is something I was unable to find in applications, and Touch gesture has not been implemented yet for scrolling. Otherwise, a good deal.


gnome-shell is one the best interface I have seen ( I have limited exposure to KDE ) , when it comes to touchscreen devices. The toggle buttons are huge and easy target to access. The application switch is trivial, as "Activies" is always visible. Switching workspace is easy, not that it is not completely hidden off during "Window Picker mode. The notification is one thing, which I easily miss out on and consequently every action which needs my attention. I would be really happy, if I could show/hide notification from system menu's notification toggle switch.


The good about both, Tiling and "auto-maximization" of Windows works good. We could try working with a Tiling window manager on Tablet, with multiple desktop. What we would need is Thumb keybord, or a keyboard which can stick to one corner assuming we use a single hand to type.


The bad about both, we need bigger fonts and target area. X still lacks a sound multi-touch foundation in most distribution. Scrolling is still a bit painful on touch devices, without gestures such as two finger scroll. Will everyone have a multitouch device ?  gnome-settings-daemon xrandr plugin should also probably rotate the Touchscreen input.



reference:
https://desktopsummit.org/program/sessions/towards-multitouch-gnome-shell
http://live.gnome.org/GnomeShell/Design
http://unity.ubuntu.com/projects/
http://who-t.blogspot.com/2011/12/multitouch-patches-posted.html
https://wiki.ubuntu.com/Multitouch
https://bugzilla.gnome.org/show_bug.cgi?id=652247
https://bugzilla.gnome.org/show_bug.cgi?id=659498


2011-11-01

FudCon 2011 : here I come

 

I am heading to fudcon this year, and hopefully will present a talk to elp people starting to working with open source, specifically GNOME. 

Do vote for me, here - http://fudcon.in/sessions/contributing-opensource

2011-09-07

changing brightness from gnome shell

gnome-power-manager has been rewritten for GNOME 3.2, and is now merged into gnome-settings-daemon as a plugin and this manages policy. The power management is done by UPower for most parts, except backlight.This is managed at Session level by g-s-d via power plugin using XRandR or plain old sysfs depending upon driver support.


To manages screen brightness settings, one would do so via dbus, such as shown below 
$ gdbus call --session --dest org.gnome.SettingsDaemon --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.GetPercentage


Now the question being, why bother at all with this aspect. On a tablet, this settings needs to be digged out and non-trivial to access. With gnome-shell-extension brightness ( http://people.redhat.com/rkhadgar/personal/gnome3-tablet/brightness.tar.xz ), you can manage the brightness from your desktop. This requires g-s-d to be patched to support "Changed" signal ( https://bugzilla.gnome.org/show_bug.cgi?id=658493 ).


On a side note, devs at gnome-shell are very helpful and felt good talking to them, along with rhughsie.



ToDO
  • display brightness symbolic icon needs different levels, and one for auto setting.
  • Ambient Light Sensor support on linux seems spotty, and needs to be fixed.

2011-06-14

Y2038 !

Why should one move to x86_64 over 32bit ?
http://en.wikipedia.org/wiki/Year_2038_problem aint a nice thing to hit. Do your part, ensure your app works on x86_64 and move to x86_64 .


ಠ_ಠ flash and skype

flash i686 on fedora linux x86_64 with chrome x86_64

Download the yum package from http://get.adobe.com/flashplayer/ , and install adobe-release package.

Once done, install flash plugin from the repository

$ yum install flash-plugin
$ yum install alsa-plugins-pulseaudio.i686 nspluginwrapper.i686 nspluginwrapper.x86_64

$ cd /usr/lib64/mozilla/plugins
$ ln -s ../plugins-wrapped/nswrapper_32_64.libflashplayer.so .


and you are done !

Dell ST2220T on linux

and it works on Fedora linux with evdev on Xorg.

From Gnome



Thanks to Gopal for tracing this one out. Information posted at https://bugzilla.redhat.com/703118 .

2011-04-15

Pushing for xchat-gnome 0.26.3

xchat-gnome 0.26.2 has been tagged, and not yet been pushed into ftp.gnome.org . I am instead trying to push xchat-0.26.3, ( hopefully) the last release for gtk2.x series, followed by xchat-gnome 0.3.0 for gnome3.

2011-02-25

gnome legacy and gnome 3

For all the folks, who like to stick with "gnome legacy", instead of gnome 3 with bling and gnome-shell, setup the default gnome session accordingly

$ cd /usr/share/gnome-session/sessions
$ mv gnome.session gnome-new.session
$ mv gnome-fallback.session gnome.session

2010-11-23

Evolution evovled

New features expected with Evolution 3.0

* Migrate the local store from mbox to maildir format
* Remove duplicates
* Memory fixes

2010-11-15

RHEL6 is out

RHEL6 is out, and brings out a whole lot of feature over RHEL5 for
desktop users. A small set of feature, I find useful on a EL6 desktop

  • Evolution 2.28, support for MS Exchange 2007+ via
    OpenChange - http://fedoraproject.org/wiki/Features/OpenChange

  • OpenOffice3 - Support for MSXML ? ( docx format ) - From
    http://www.openoffice.org/dev_docs/features/3.2/ to
    http://www.openoffice.org/dev_docs/features/3.0/
  • NetworkManager System wide settings - http://fedoraproject.org/wiki/Features/NetworkManagerSystemConnections

  • Desktop stack upgrade
    • GNOME 2.28 - From
      http://library.gnome.org/misc/release-notes/2.28/ to
      http://library.gnome.org/misc/release-notes/2.18 ( release are even
      numbers )
    • KDE 4.3 - From http://www.kde.org/announcements/4.3/ to
      http://www.kde.org/announcements/4.0/
    • XFCE in EPEL
    • SPICE support

press release - http://www.redhat.com/about/news/prarchive/2010/flexibility-and-portability.html
Product link - http://www.redhat.com/rhel/desktop/

GitLab runner on Windows with bash shell on windows contianer on Docker

As part of your pipeline, you may need to perform browser testing across different platforms/environments. To minimize testing time, it'...