Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-29-2004, 07:41 AM
|
#1
|
Member
Registered: Jun 2003
Location: New Zealand
Posts: 74
Rep:
|
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
|
|
|
04-29-2004, 07:48 AM
|
#2
|
Member
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161
Rep:
|
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.
|
|
|
04-29-2004, 05:33 PM
|
#3
|
Member
Registered: Jun 2003
Location: New Zealand
Posts: 74
Original Poster
Rep:
|
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 04:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|