Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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-23-2012, 01:04 AM
|
#1
|
Member
Registered: Apr 2012
Posts: 131
Rep: 
|
How to start wireshark at every time when I login
Assalam o Alaikum!
I am using fedora 14. I want to start wireshark at login time. For this I edit in /etc/rc.d/rc.local and add the command to start wireshark. But it is not working what is solution please guide me.
Thanks!
|
|
|
04-23-2012, 02:11 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,715
|
see the bash man page and look what's happening during login
|
|
|
04-23-2012, 06:53 AM
|
#3
|
Member
Registered: Jun 2011
Location: Tehran, Islamic Repulic of, Iran
Distribution: Ubuntu, Arch, Suse
Posts: 32
Rep:
|
use crontab or cron intead. It can be configured to start any program on proper time.
|
|
|
04-23-2012, 07:09 AM
|
#4
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep: 
|
Thanks for replies. How to see bash man page to see whats going on during login time? I mean normally we can see man page as --help or man mkdir? Please tell me how can i see bash man page thanks...
|
|
|
04-23-2012, 07:13 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
why would you want to start wireshark? What do you actually mean? you can't start a GUI program in rc.local, you would need to start it when a user logs in. It doesn't sound like a good think to actually want to do... worth backing up and describing what problem you're trying to solve, not how you wish to solve it.
|
|
1 members found this post helpful.
|
04-23-2012, 07:27 AM
|
#6
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep: 
|
Thanks. this is new info for me that we can't start GUI pgm at start via rc.local. Actually I am working on task to develop a script to turn on automatically 4 OSs systems, assign them interfaces, routes and turn on wireshark in two middle OSs. I hope you understand what I am trying to do. Currently I am doing this via /home/user/.bashrc and add wireshark command but problem is that it is not what I want. Via this It turns on wireshark very earlier and can't do any thing else with out closing wireshark. My task is completed but I want to make it as easier as possible. For this I need your helps...
|
|
|
04-23-2012, 07:29 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
I really don't think wireshark is the right tool for whatever you actually need to do... maybe tshark could be useful, or tcpdump, but a gui... I can't see it.
|
|
|
04-23-2012, 07:39 AM
|
#8
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep: 
|
Okay, good opinions. I really appreciate your helps. Actually tcpdump is also using but this is assigned some other members. Ok thank you so much. But I still want to know if some one needs to open GUI pgms at start then how can he do it?
|
|
|
04-23-2012, 07:44 AM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
under gnome there's a location like ~/.config/autostart where you can run code when gnome loads.
|
|
|
04-23-2012, 07:47 AM
|
#10
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep: 
|
Okay I will try it. Thanks
|
|
|
04-23-2012, 08:08 AM
|
#11
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
e.g.:
Code:
[schneidz@hyper ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#/home/schneidz/nfs-w/leaderboard.ksh &
echo \~ \"\" \$ \^ \&\& \( \) \{ \} \>\> \@ \: \| \_ >> /home/schneidz/.bash_history
alias grep='grep --color=auto'
nautilus &
|
|
|
04-23-2012, 08:09 AM
|
#12
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Quote:
Originally Posted by schneidz
e.g.:
Code:
[schneidz@hyper ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#/home/schneidz/nfs-w/leaderboard.ksh &
echo \~ \"\" \$ \^ \&\& \( \) \{ \} \>\> \@ \: \| \_ >> /home/schneidz/.bash_history
alias grep='grep --color=auto'
nautilus &
|
eww no.
|
|
|
04-23-2012, 09:20 AM
|
#13
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by acid_kewpie
eww no.
|
hey acid. why you no like ?
|
|
|
04-23-2012, 09:49 AM
|
#14
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
why would you run nautilus EVERY time you create a bash instance anywhere? there are proper mechanisms to do it, and they should be used. your way, I'm fairly sure you'd get a new instance of wireshark (without root access so only able to read capture files, not live network traffic) every time you opened a new terminal window etc.
Last edited by acid_kewpie; 04-23-2012 at 09:50 AM.
|
|
|
04-24-2012, 03:05 AM
|
#15
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep: 
|
Assalam o Alaikum!
I am still unable to start gui applications at login time. What I did:
[zohaib_shaikh@Zohaib ~]$ cd .config/
[zohaib_shaikh@Zohaib .config]$ cd autostart
[zohaib_shaikh@Zohaib autostart]$ ls
qstart.desktop wireshark.sh
I have made wireshark.sh executable script. containing command wireshark. but no result. plz help....
|
|
|
All times are GMT -5. The time now is 08:38 AM.
|
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
|
|