I can’t connect to samba after blocking SMB1 protocol. Early, I just click in Nautilus to “Connect to Server” and inputted smb://mySambaHost/. Now, I can get connected with this way. Unhandled error message: Failed to retrieve share list from server: Connection timed out I tried installing s…
Unix: List files with specific ending and show their size and date
I want to use ls -larth but I want to see only files that end with .dmp find . -name ‘*.dmp’ gives me the results of files, but I cannot see their dates and size. If possible, I would like to have them sorted by date. Thanks in advance. Regards, Danijel Answer
Why is /etc/profile.d only used at SSH login?
The use of /etc/profile.d is confusing to me. I can put a file in there for example with contents and when I logon the the machine using SSH MYVAR has a value. This machine is a Ubuntu desktop, when I logon using ordinary login and start a terminal MYVAR has no value. I don’t understand why this should …
Get disk type in QT
I want to get disk type (SSD or HDD) in QT. I’ve checked QStorageInfo but I could not find anything useful for my purpose. By the way I need a solution that’s work on both Windows and Linux. Answer For linux, you can tell whether the kernel has detected a SSD disk by reading special file For insta…
Modify config files with sed in bash
I am trying to set net.ipv4.ip_forward to 1 in /etc/sysctl.conf.The following works fine but it sure missing some edge cases For e.g if the sysctl.conf contain any one of the following it won’t match #net.ipv4.ip_forward=1 ##net.ipv4.ip_forward=1. Is there a more reliable way to modify settings in confi…
How do I grab console output from a program running in a screen session?
I’m currently in the process of hacking together a bit of bash and python3 to integrate my Minecraft server with my friends Discord. I managed to power through most of the planned features with nary a hitch, however now I’ve gotten myself stuck halfway into the chat integration. I can send message…
Android Emulator does not start at hardware acceleration, linux/ubuntu
i recently reninstalled ubuntu, now i have 17.04 version and android emulator with hardware graphic performance doesnt start. after starting there is a loading with “starting avd…” but nothing happens. when i switch graphic performance to software emulator run succesfully but is really slow.…
How to run linux command before starting up git bash terminal
I am working with Docker on my windows machine via git bash. Since git bash does not record the current status on closing, I need to set some environment variables related to Docker every time when I start a new terminal. The command I would like to run before start-up is: Or better yet, have a bash script in…
Helpp for install cstore_fdw
I’m actually trying to install sctore_fdw but I just have a little question for the installation. I follow a tutorial and it is asking to do this : you need to include the pg_config directory path in your make command This is my pg_config path: I have some difficulty with Linux and specifically with the…
Random mmaped memory access up to 16% slower than heap data access
Our software builds a data structure in memory that is about 80 gigabytes large. It can then either use this data structure directly to do its computation, or dump it to disk so it can be reused several times afterwards. A lot of random memory accesses happens in this data structure. For larger input this dat…