[Ubuntu-eg] How to do these stuff in Ubuntu

Mohamed Nour eng.mohamed.nour.eldin at gmail.com
Mon May 21 18:16:06 UTC 2012


1- You can get the device file name by executing "dmesg", so I'm thinking
of some script of some app that executes "dmesg" & searches the last 2 or 3
lines for the pattern "ttyUSB" to know exactly if it's "ttyUSB0" or
"ttyUSB1" or ...

3- Try to add the execution command of your script at the end of
"/etc/init.d/rcS"
for example: you have "myScript.sh" in /home/user1/Desktop
so add this line at the end of
"/etc/init.d/rcS": /home/user1/Desktop/myScript.sh

On Fri, May 18, 2012 at 7:06 PM, Processing Qbits <processingqbits at gmail.com
> wrote:

>
>
>    1. If u put a serial / usb device it takes a device file name in /dev
>     ex:ttyUSB0 i want to automatically* know when i put the new device
>    its device file name*  i want to use that to connect a usb modem to
>    serial terminal to use AT commands .
>    2. i can remove apache and mysql servers from the running levels using
>    update-rc.d * hw can i add them back *
>    3. *where are the placess to place an application / script to make it
>    run on start up* . another place not the startup menu in ubuntu . i
>    mean if im using a server and i want it to run a script whnever it reboots
>    or sth.
>
> 1-You mean you want it to notify you? I didn't get the question
> 2-update-rc.d - install and remove System-V style init script links
> (always use the manuals before asking/searching)
> 3-Simply, make the file executable and put it in /etc/init.d (there is the
> new upstart-job http://www.linuxplanet.com/linuxplanet/tutorials/7033/1 )
>
>
> On Sun, May 13, 2012 at 1:53 PM, Abdallah Hodieb <
> abdallah.hodieb at gmail.com> wrote:
>
>> Thanx Joey , but i wanted a non GUI way . to work using ssh remotely .
>>
>>
>> On Sun, May 13, 2012 at 12:29 PM, Joey Hunt <joey.wagdy at gmail.com> wrote:
>>
>>> To answer your 3rd question about how to run an application on start up,
>>> That is usualy dependant on which distribution you use.. assuming it's
>>> +11.04 then it's simple just do the following:
>>>
>>>    -
>>>
>>>    Go to System > Preferences > Sessions (or Startup Applications)
>>>    - Select the "Startup Programs" tab
>>>    - Click add
>>>    - Enter a name to call the application (any name will do)
>>>    - In the "Startup command box," enter the command
>>>    - Click OK (You should see your new command)
>>>    - Click Close
>>>
>>> Test by restarting or logging out and back in.
>>>
>>> If you *no longer *want the application to start up when you logon:
>>>
>>>    -
>>>
>>>    Go to System > Preferences > Sessions
>>>    - Select the "Startup Programs" tab
>>>    - Select the application you want to remove
>>>    - Click Remove
>>>    - Click Close
>>>
>>> *OR*
>>> Un-check the box next to the name of the application
>>>
>>> On 13 May 2012 01:22, Ahmed Faissl <ahmedfaissl at gmail.com> wrote:
>>>
>>>> I can give a hand in the startup thing
>>>> If you run a server, it's a good practice that you give Webmin a try,
>>>> you can do anything with the system/server using it including startup
>>>> anything.
>>>> the location is probably anywhere in the system, but everybody use
>>>> /opt..
>>>>
>>>> 2012/5/13 Abdallah Hodieb <abdallah.hodieb at gmail.com>
>>>>
>>>>> Hi Ubuntu Geeks :D i needed some help . i need to get some better ways
>>>>> rather than just searching for dirty tricks to do the following stuff
>>>>>
>>>>>
>>>>>    1. If u put a serial / usb device it takes a device file name in
>>>>>    /dev  ex:ttyUSB0 i want to automatically* know when i put the new
>>>>>    device its device file name*  i want to use that to connect a usb
>>>>>    modem to serial terminal to use AT commands .
>>>>>    2. i can remove apache and mysql servers from the running levels
>>>>>    using update-rc.d * hw can i add them back *
>>>>>    3. *where are the placess to place an application / script to make
>>>>>    it run on start up* . another place not the startup menu in ubuntu
>>>>>    . i mean if im using a server and i want it to run a script whnever it
>>>>>    reboots or sth.
>>>>>
>>>>> sorry for the long list :D
>>>>>
>>>>> --
>>>>> Ubuntu-eg mailing list
>>>>> Ubuntu-eg at lists.ubuntu.com
>>>>> Modify settings or unsubscribe at:
>>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Ahmed Faissl
>>>> <http://facebook.com/faissl> <https://plus.google.com/113729684348889983101>
>>>>   <http://about.me/faissl>  <faissl at aldarweesh.org> <http://www.linkedin.com/profile/view?id=55099327>
>>>>   <http://twitter.com/faissl>  <http://blog.aldarweesh.org/>
>>>> Goes without saying..
>>>>
>>>>
>>>> --
>>>> Ubuntu-eg mailing list
>>>> Ubuntu-eg at lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg
>>>>
>>>>
>>>
>>> --
>>> Ubuntu-eg mailing list
>>> Ubuntu-eg at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg
>>>
>>>
>>
>> --
>> Ubuntu-eg mailing list
>> Ubuntu-eg at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg
>>
>>
>
> --
> Ubuntu-eg mailing list
> Ubuntu-eg at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-eg/attachments/20120521/3a28c04b/attachment.html>


More information about the Ubuntu-eg mailing list