LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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


Reply
  Search this Thread
Old 04-29-2004, 08:41 AM   #1
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Rep: Reputation: 15
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
 
Old 04-29-2004, 08:48 AM   #2
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
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.
 
Old 04-29-2004, 06:33 PM   #3
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replicating files between servers. cpgeorge Linux - Networking 6 12-10-2004 11:07 AM
linux lycoris in reviews!? ungua LQ Suggestions & Feedback 6 10-03-2004 03:27 PM
Lycoris Linux Mannyakatheman Linux - Distributions 1 12-22-2003 08:30 AM
System wont start lycoris Help please william10 Linux - Software 0 07-20-2003 05:17 AM
Lycoris Linux looks like XP. chrisknight Linux - Distributions 14 07-15-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration