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


Reply
  Search this Thread
Old 04-23-2012, 01:04 AM   #1
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
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!
 
Old 04-23-2012, 02:11 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,715

Rep: Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827Reputation: 7827
see the bash man page and look what's happening during login
 
Old 04-23-2012, 06:53 AM   #3
Erfankam
Member
 
Registered: Jun 2011
Location: Tehran, Islamic Repulic of, Iran
Distribution: Ubuntu, Arch, Suse
Posts: 32

Rep: Reputation: 13
use crontab or cron intead. It can be configured to start any program on proper time.
 
Old 04-23-2012, 07:09 AM   #4
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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...
 
Old 04-23-2012, 07:13 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
Old 04-23-2012, 07:27 AM   #6
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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...
 
Old 04-23-2012, 07:29 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-23-2012, 07:39 AM   #8
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-23-2012, 07:44 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
under gnome there's a location like ~/.config/autostart where you can run code when gnome loads.
 
Old 04-23-2012, 07:47 AM   #10
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Okay I will try it. Thanks
 
Old 04-23-2012, 08:08 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
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 &
 
Old 04-23-2012, 08:09 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by schneidz View Post
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.
 
Old 04-23-2012, 09:20 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
Quote:
Originally Posted by acid_kewpie View Post
eww no.
hey acid. why you no like ?
 
Old 04-23-2012, 09:49 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-24-2012, 03:05 AM   #15
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

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


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
how to start wireshark Hewson Linux - General 5 09-13-2012 08:17 PM
failure in irc login, bad tcp / checksum errors in wireshark traces vlrk Linux - Networking 1 07-05-2010 01:55 AM
finding login time and idle time,..etc from a list of users knavramesh Linux - Newbie 2 10-02-2008 11:55 PM
start wireshark? andy851899 Linux - Networking 1 12-27-2007 12:22 PM
Ubuntu did not start after login, first time installing eagerlearner Linux - General 12 08-08-2007 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 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