Search found 14 matches

by Piglou
2016-03-03 10:17
Forum: System and Network configuration
Topic: Bad bandwidth management behind SSH tunnel
Replies: 3
Views: 728

Re: Bad bandwidth management behind SSH tunnel

Hi, In fact I'm not using any special interface for now, just eth0 connected to a simple xDSL modem/router. I can use a software like Wondershaper to make sure that the server (running Debian) is never trying to send more than 100kB/s on eth0 (as the xDSL modem will not be able to send more over Int...
by Piglou
2016-03-02 14:19
Forum: System and Network configuration
Topic: Bad bandwidth management behind SSH tunnel
Replies: 3
Views: 728

Bad bandwidth management behind SSH tunnel

Hi everybody, We have an Apache Subversion (http) server for hosting our codes, and, for the 3 next month, we are behind a DSL connection (max upload 100 kB/s). When a remote co-worker try to download a new fresh copy of our projects on his computer directly over http, the transfer goes fine : with ...
by Piglou
2015-08-18 11:19
Forum: Programming
Topic: Cross-compilation needed between 2 "amd64" systems ?
Replies: 7
Views: 5162

Re: Cross-compilation needed between 2 "amd64" systems ?

After some tests it's becoming clear that it doesn't work well currently because CPU are different. How to build a simple executable and set CPU flags that should/should not be used ? Like "gcc main.c o Program" EDIT : I saw that : https://gcc.gnu.org/onlinedocs/gcc-4.5.4/gcc/i386-and-x86_...
by Piglou
2015-08-18 10:52
Forum: Programming
Topic: Cross-compilation needed between 2 "amd64" systems ?
Replies: 7
Views: 5162

Cross-compilation needed between 2 "amd64" systems ?

The question seems to be "too easy" to be asked here, but some people told me it was not necessary, some people told me it's not always the case. I'm using the same OS on both side. I would like to know if CPU flag available on the "building machine" (FX9590) becomes necessary fl...
by Piglou
2015-08-11 21:39
Forum: Programming
Topic: Equivalent to /dev/fb0 working from inside X session
Replies: 2
Views: 2764

Re: Equivalent to /dev/fb0 working from inside X session

I finally successfully had my Qt function working in tty1 (ctrl + alt + f1) and using the linux Frame Buffer to display what I want. Problem : it isn't more faster ! So I'm back to the Qt "repaint" function in full screen. But I finally found a solution for my problem ! In case somebody is...
by Piglou
2015-08-10 17:40
Forum: Programming
Topic: Equivalent to /dev/fb0 working from inside X session
Replies: 2
Views: 2764

Equivalent to /dev/fb0 working from inside X session

Hi, I'm looking for a way to paint in a instantaneous way what is displayed on the screen. I was initially using Qt and repaint() functions in order to perform direct changes of pictures on the screen/projector (into a loop) and snapping these pictures without stopping the working function (if not, ...
by Piglou
2015-07-29 23:25
Forum: Desktop & Multimedia
Topic: [SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave
Replies: 6
Views: 30073

Re: ALSA (snd_pcm_dmix_open) unable to open slave

That's awesome :D Thank you ! But how did you know that ? I'm reading debian wikis, I try to simplify and separate things in order to handle the complexity, forgetting others complicated advices to understand and play things myself, but for inventing such solutions using files I saw nowhere (well in...
by Piglou
2015-07-29 18:12
Forum: Desktop & Multimedia
Topic: [SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave
Replies: 6
Views: 30073

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Hi, I tried to start my computer with a TV on the HDMI socket but even if I had the picture, the sound problem was the same. For the link you described, I didn't know what to put as name instead of "snd-trident" and "snd-usb-audio" : /etc/modprobe.d/sound: options snd-trident ind...
by Piglou
2015-07-29 17:27
Forum: Desktop & Multimedia
Topic: [SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave
Replies: 6
Views: 30073

[SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave

Hi, After a fresh install with lxde-core, lightdm, alsa-utils, alsactl init (alsactl init 0, alsactl init 1) and settings with alsamixer (volume and unmute), here I am. No sound anymore, and hidden error messages on aplay command lines. It was working with the complete task-lxde-desktop package : It...
by Piglou
2015-07-28 00:29
Forum: Desktop & Multimedia
Topic: /var/run/lightdm/root/:0 sometimes accessible by users
Replies: 1
Views: 743

Re: /var/run/lightdm/root/:0 sometimes accessible by users

I checked that it wasn't because of the log file : if created by root first, an user cannot write/delete/replace it so it can probably avoid x11vnc to run as user. But I checked that ! It's not the cause of my problem. I found something else interesting : into my working machines, viewing the log, i...
by Piglou
2015-07-27 23:51
Forum: Desktop & Multimedia
Topic: /var/run/lightdm/root/:0 sometimes accessible by users
Replies: 1
Views: 743

/var/run/lightdm/root/:0 sometimes accessible by users

/var/run/lightdm/root/:0 sometimes accessible by x11vnc launched as simple user. Sometimes not. I don't understand why it's not always the same. After having created, as root, a folder /var/vnc (that can be read and written by anybody) After having typed the following command as root : x11vnc -store...
by Piglou
2015-07-26 10:41
Forum: Programming
Topic: C++ function call for manual SSD-TRIM commands
Replies: 3
Views: 3204

Re: C++ function call for manual SSD-TRIM commands

I wasn't aware of the existence of this command, thank you ! RETURN CODES 0 success 1 failure 32 all failed 64 some filesystem discards have succeeded, some failed Here it can be used on a mounted file system so it's interesting too. I will also look after the ATA_Secure_Erase in order to see if it'...
by Piglou
2015-07-25 13:11
Forum: Programming
Topic: C++ function call for manual SSD-TRIM commands
Replies: 3
Views: 3204

Re: C++ function call for manual SSD-TRIM commands

I began to search about GLibC which is GNU C Library : http://www.gnu.org/software/libc/manual/ But searching for TRIM did not give me what I was looking for ! Another thing here : https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase By looking at hdparm source code may be I have a chance to find ...
by Piglou
2015-07-25 12:24
Forum: Programming
Topic: C++ function call for manual SSD-TRIM commands
Replies: 3
Views: 3204

C++ function call for manual SSD-TRIM commands

Hi everybody, I'm looking for a way to launch "TRIM" commands to a SSD drive myself , from a c++ code I'm going to write, for flash erasing an SSD drive (and not to wait for others things that "should do it automatically in some circumstances if this or this, this and this have been e...