Reputation
292
Top tag
Next privilege 300 Rep.
Create new tags
Badges
1 11
Impact
~8k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
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.
Oct
15
comment Access data from a linux partition inside an image without root privileges
Wouldn't mounting over something be denied by the users access right? And whats wrong with an user mounting over folders he owns?
Oct
14
comment cpu load measure with hyperthreading on linux
The problems you mention is exactly what I encountered, however the question was, how to take a correct measurement then.
Sep
3
comment How to acquire a low latency realtime HD video image?
These devices won't work with a laptop. There may be USB3.0 capture cards I think?
Jul
23
comment How to acquire a low latency realtime HD video image?
Would be good to have a high quality USB 3.0 camera using the USB UVC class. It should be usable without drivers on Linux and OS X this way.
Jul
23
comment How to acquire a low latency realtime HD video image?
There also seem to bee some industrial vision cameras using USB 3.0. Expensive, usually proprietary SDK, usually Windows only. That is not what I look for...
Mar
3
comment How long does it usually take to format a 2TB external HD using ext4 and gparted?
ext4 can be formatted in a defered way, where most of formatting commences in background while the filesystem can already be used after a very short initalization period. Using mkfs.ext4, the option would be -E lazy_itable_init=1, and this even is a default setting it seems. I don't know how to make gparted using this option, but maybe it is possible. Using this feature, a 2GB partition gets available after about one minute.
Oct
17
comment rdiff-backup over existing backup
Sounds good! As I am not using rdiff-backup in daily procedure now, may I ask if you tried this successfully?
Sep
13
comment Is it possible to make the OOM killer intervent earlier?
I think this answer is a bit like 'don't do anything real bad to solve a problem' but in my opinion a system that can made unresponsive by a bunch of seemingly harmless user actions is worse than a system that kills them early.
Aug
28
comment How to store file attributes like permissions and timestamps and reapply them later on linux?
Yes, but I want to store the attributes alone. I use other tools to store the files, but they do not reliable store attributes. So I like to use something that is able to store attributes but don't neccessary the file contents.
Aug
25
comment How to sync file times from one directory tree to another
That seems to be a dead end. rsync works well if the trees are identical except the timestamps, but if there are any other changes, it gets too complicated to keep rsync from applying them either.
Aug
25
comment How to sync file times from one directory tree to another
This works well, except it is a little slow as you stated. Suprisingly, it does makes several hundred files per second, which is quite cool if you remember a new touch is run for every file.. however, I will try a Python script like you propose.