Linux

Change timezone in linux centos from IDT to IST

i want to Change timezone in linux centos from IDT to IST. read all the links and all posts. my date is: Thu Sep 3 11:04:33 IDT 2015 and i want to change to Thu Sep 3 11:04:33 IST 2015 So wrote: mv /etc/localtime /etc/localtime.bak ln -s /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime it doesn’t move from IDT to IST nothing is changing… …
Read more

exiting bash shell when ssh connection drop

On two different laptop with Linux installed I have two different behaviours when an ssh connection (to the same machine, an atmel micro device) drops. The device is connected through an USB to which is assigned its IP address I open the ssh connection with the usual ssh root@mydeviceip On the 1st laptop, when I unplug the device, the shell…
Read more

Openalpr directory error

I tried python code with openalpr library to identify number plate. When I try to get plate number I got following error. Warning: You are running an unsupported version of Tesseract. Expecting at least 3.03, your version is: 3.02.02 Error opening data file /usr/local/share/tessdata/lus.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your “tessdata”…
Read more

Correct getch() for Linux

I’m writing some chat in C++ under ubuntu 15.04, and need to use getch() method in my class Chat. I found this getch() for linux: int Chat::getch() { struct termios oldt, newt; int ch; tcgetattr( STDIN_FILENO, &oldt ); newt = oldt; newt.c_lflag &= ~( ICANON | ECHO ); tcsetattr( STDIN_FILENO, TCSANOW, &newt ); ch = getchar(); tcsetattr( STDIN_FILENO, TCSANOW, &oldt…
Read more

Having trouble installing new theme (Ubuntu 14.04)

I’m attempting to install the ‘Iris Dark’ theme on my Ubuntu 14.04 machine. I’m using gnome-3, and the gnome tweak tool. I’ve downloaded, extracted and then moved the theme into my theme folder like so. unzip /home/admin/Desktop/IrisDark.zip /home/admin/Desktop/IrisDark sudo cp -r /home/admin/Desktop/IrisDark /usr/share/themes When I check the gnome tweak tool, it doesn’t show up as a theme for either ‘Windows’…
Read more

libssh: ssh_userauth_none always returning SSH_AUTH_ERROR.

In my ssh client I am using “ssh_userauth_none” before calling “ssh_userauth_list”. But it always returns SSH_AUTH_ERROR. When I try to find out the reason for error using “ssh_get_error()” it says “Socket error: disconnected”. I have used the same code on other linux machine(UBUNTU), it works fine. But when I try it on an embedded machine which is based on centos…
Read more

Fingerprint device for integration in Qt application (Linux and Windows)

Experts Fingerprint external devices, please advise what kind of external usb device Fingerprint can be used for integration in Qt application for Linux (Ubuntu 14.04) -64bit and Windows-64bit. My choice stopped on the device Futronic FS-80, but I can not know whether the device is supported by the project Fingerprint GUI, because I do not know his ID (which gives…
Read more

Embedded linux, filename appers like ( ????? ) instead of the actual name

I hope you’re happy 🙂 I’m working on a small project, using SAMA5D4 .. I download linux OS kernel 3.18 into SAMA5D4, after I did many changes in recipes and kernel to support g_mass_storage, besides other modules. Anyway, the problem is that: when I wrote a file with ARABIC filename (UTF-8) to my flash drive then move it to SAMA5D4…
Read more