Reputation
324
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 11
Impact
~9k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Jul
23
comment Linux USB device won't work after power up without replugging
It seems the BIOS is messing up with the device. If it is plugged just when the BIOS runs the boodloader, it works.
Jul
21
comment Linux USB device won't work after power up without replugging
There is an option in the BIOS to keep it from initalising USB devices. It seem to fix the issue, but introducing a cruft of new ones.
Jul
21
comment Linux USB device won't work after power up without replugging
modprobe does not help, as all usb modules ehci, xhci and ohci are built into kernel on Ubuntu 14.04.
Jul
21
comment Linux USB device won't work after power up without replugging
dmesg says like [ 1.547635] usb 1-6: new low-speed USB device number 5 using xhci_hcd [ 1.549013] usb 1-6: Device not responding to setup address. [ 1.955468] usb 1-6: device not accepting address 5, error -71
Jul
21
comment Linux USB device won't work after power up without replugging
This behaveour even holds when the device is connected by an USB hub.
Jun
29
comment Snapshot a frequently changing file on linux
It is possible to snapshot the file by mv, but that would lead to the problems mentioned above. Maybe the file used for reading and for writing can be two different ones, so the file just written may be copied while writing just fast enough to be repoened for reading the next round. If there would be a special kind of fifo, that would dissect read and write access, one could maybe use tee to capture the output to two files and cat to present the process the last written file for reading.
Jun
29
comment Snapshot a frequently changing file on linux
It is an image that is sequentially updated. So the app most likely reads the full file, and completely writes it afterwards. So if the file is taken away in the meantime, it would be recreated I guess. If however it would go away before reading, it would crash or recreate an empty image which would then replace the real one.
Jun
28
comment Create empty truecolor PNG with ImageMagick
Ah cool. So the internal color format is actually not used, but the selection is made by the output format. The png24: worked well for me. Thanks!
Jun
24
comment Show Octave plot from shell script
Ah I forgot to mention the scripts where non-interactive. Added that. I'm sorry!
Jun
24
comment How to rsync root files over non-root ssh?
Yes, the target should equal the source machine. If synching config files in /etc for example, they should keep root ownership.
Jun
2
comment Select gateway used for certain commands on Linux
Ugh, kinda laborious. Nevertheless, I will try it out these days.
May
16
comment Tell if a process is under systemd, init.d or Upstart control
Because systemd has PID 1 (the topmost one), which is the only allowed top level process. This behavior of systemd is often criticised. So any process released from it's parent is parented by systemd. If you use Upstart or init.d scripts on a systemd-free system, you see that most processes are just below init, despite the fact most of them where launched by Upstart or init.d scripts. On your system sporting systemd, you will see any process released by its parent below systemd, so you cannot tell who has launched the process in the first place that way.
May
16
comment Tell if a process is under systemd, init.d or Upstart control
I don't think so. Looking at pstree at my system, most of the processes seem to have detached from their parent. There are only a few processes started by my desktop session, so most of the processes in the topmost level must have been started by some init deamon I guess.
Apr
5
comment Remove file from git version control without deleting it from the filesystem
Ow... I heard of --cached before, but thought it would remove files from the index. Thanks!
Apr
5
comment Is there an easy way to do a host lookup by MAC address on a LAN?
Consider: I make some devices. Others make some devices. They all met, another one connects a router. All leave. Some day someone replaces the router. I cannot configure the router, neither the other devices. The owner of the whole mess likes it if it just works. So at day one, when I bring my device, I have to configure it to just work as long as possible, interoperating with some other of the devices. That's all. If all machines would serve zeroconf with smooth names and the router would relay it between LAN / WLAN etc. all would be fine. Of course this never happend.
Mar
28
comment Is there an easy way to do a host lookup by MAC address on a LAN?
Yes, I like that way to find out the IP adress, but I cannot use the MAC address in some software expecing an internet address / URL / hostname. So my question is about how to map the MAC address to some local host address that any software can look up.
Mar
28
comment Is there an easy way to do a host lookup by MAC address on a LAN?
I add some machines or software to existing machines on an existing network. This machines need to use services of already existing machines in the same network. I do not have the rights to install zeroconf to the existing machines, but my machines or software need to use services of those machines reliably. The networks may be modified, routers replaced etc. so I cannot rely on some router's features, nor on zeroconf deamons on the foreign machines. So the only sure way to always identify these machines are their MAC adresses as those won't change this often...
Mar
27
comment Is there an easy way to do a host lookup by MAC address on a LAN?
Some LAN routers does in fact show such behaviour by default, and assign stable IP adresses as long there are enough left. However, I cannot rely on a feature some routers have. Some other routers expose linux hostnames in their DNS, which is a cool feature, but again this is not for granted. So when working with foreign networks, I need a reliable name assignment. Which may be done by avahi, if all devices are delivered by me. But foreign devices may not have avahi services running, so the only way to find those devices reliable would be the MAC address.
Nov
1
comment Access data from a linux partition inside an image without root privileges
Maybe there is any way doing this via FUSE ?
Oct
15
comment How to merge a git repository once split off without history
Related, yes. But it lacks the continous history I need, as there the two projects that get to be merged are unrelated, while in my case, the second one is a ancestor of some commit in the master repo.