LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   replicating the lycoris 'my linux system'? (https://www.linuxquestions.org/questions/linux-distributions-5/replicating-the-lycoris-my-linux-system-175897/)

aesahaettr 04-29-2004 07:41 AM

replicating the lycoris 'my linux system'?
 
Hi there,
rather simple-seeming task, I want to replicate the lycoris 'my linux system' in [insert linux distribution name here].
In case you are not familiar, when you plug in a usb storage device, it refreshes itself, showing the name of the device, auto-mounting it. does the same thing with cdroms, partitions, showing vendor of cdrom etc. i havent tested it with scanners but anyway...
I have done abit of detective work:
these processes are running (excluding a few that are to do with kde, samba etc...

PID TTY STAT TIME COMMAND
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:02 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [kjournald]
75 ? SW 0:00 [khubd]
2356 ? S 0:00 klogd -k /boot/System.map-2.4.22
2411 ? SW 0:00 [kapmd]
2544 ? S 0:00 rpc.portmap
2553 ? S 0:00 inetd -D /etc/inet.d
3874 ? S 0:00 cron
3897 ? S 0:00 atd
3987 ? S 0:00 sh -c sleep 5; clear > /dev/tty1; /sbin/getty tty1 VC linux
4551 ? S 0:01 alarmd
4552 pts/0 S 0:00 /bin/cat
4554 ? S 0:00 rlbattery --autoexit
7185 pts/1 S 0:00 /bin/bash
13055 ? SW 0:00 [usb-storage-0]
13056 ? SW 0:00 [scsi_eh_1]
14228 ? S 0:00 amd -F /etc/am.d/conf
14232 ? SW 0:00 [rpciod]
14233 ? SW 0:00 [lockd]
14260 pts/2 R 0:00 ps ax
(and hotplug was running, but i killed it in an experiment - see below)

these files are altered after plugging in my usb-storage device:

/
/etc
/etc/am.d
/etc/am.d/localdev
/etc/mtab
/var/log/hotplug
/var/log/messages
/var/log/secure
/var/lock/subsys
/var/lock/subsys/amd
/var/run
/var/run/amd.pid
/usr/share/RedmondLinux/Desktop/My Linux System
/usr/share/RedmondLinux/Desktop/My Linux System/Floppy drive [fd0]
/usr/share/RedmondLinux/Desktop/My Linux System/Linux partition [hdb6]
/usr/share/RedmondLinux/Desktop/My Linux System/ASUS cdrom drive [sr0]
/usr/share/RedmondLinux/Desktop/My Linux System/SAMSUNG DIGIMAX V4 [sda1]
/mnt
/mnt/fd0
/mnt/floppy
/mnt/floppy1
/mnt/cdrom1
/mnt/cdrom
/mnt/sr0
/mnt/usb-storage1
/mnt/usb-storage
/mnt/sda
/tmp
/opt/kde2/share/config/kautorunrc
/opt/kde2/share/config/kscdrc
/dev
/dev/ptmx
/dev/pts
/dev/pts/1
/dev/pts/2
/dev/floppy1
/dev/floppy
/dev/cdrom1
/dev/cdrom
/dev/usb-storage1
/dev/usb-storage
/reg/local/hw/floppy/0/status
/reg/local/hw/floppy/0/name
/reg/local/hw/floppy/0/device
/reg/local/hw/floppy/0/full_name
/reg/local/hw/cdrom/0/status
/reg/local/hw/cdrom/0/name
/reg/local/hw/cdrom/0/device
/reg/local/hw/cdrom/0/vendor
/reg/local/hw/cdrom/0/model
/reg/local/hw/cdrom/0/scsi_id
/reg/local/hw/cdrom/0/type
/reg/local/hw/cdrom/0/full_name
/reg/local/hw/cdrom/0/options
/reg/local/hw/fixedpart/0/status
/reg/local/hw/fixedpart/0/name
/reg/local/hw/fixedpart/0/mount_point
/reg/local/hw/fixedpart/0/device
/reg/local/hw/fixedpart/0/type
/reg/local/hw/fixedpart/0/hr_type
/reg/local/hw/fixedpart/0/full_name
/reg/local/hw/usb-storage/0/status
/reg/local/hw/usb-storage/0/scsi_host
/reg/local/hw/usb-storage/0/type
/reg/local/hw/usb-storage/0/device
/reg/local/hw/usb-storage/0/name
/reg/local/hw/usb-storage/0/full_name
/auto
/auto/sda1

and to top it off:
killing hotplug does not stop the updating - in fact, the module still gets loaded if hotplug is not running!
killing amd does not stop it - amd seems to get restarted every time a device gets plugged in / unplugged
/usr/share/RedmondLinux/Desktop/My Linux System/ contains some *.desktop files that refer to the devices, and is the directory that gets updated with links when devices change - this is what i ultimately want to achieve.

Does anyone have any idea as to which process is doing all this changing? i don't really know what the other processes are, so i don't want to go killing them to see what happens.

Thanks

profjohn 04-29-2004 07:48 AM

Lycoris is built on Debian (I think), so you could get a copy and see what is changing there, or look at Lycoris source?? Just a thought.

aesahaettr 04-29-2004 05:33 PM

hmm. I think lycoris has been heavily modified since it split from whatever distro it started from. I think it is most likely that they have written a daemon to do this updating, i just need to figure out which one it is.


All times are GMT -5. The time now is 10:07 AM.