
Packet Analyzer: 15 TCPDUMP Command Examples tcpdump command is also called as packet analyzer. tcpdump command will work on most flavors of unix operating system. tcpdump allows us to save the packets that are captured, so that we can use it for future analysis. The saved file can be viewed by the same tcpdump command. We can also use open source software like wireshark to read the tcpdump pcap files. In this tcpdump tutorial, let us discuss some practical examples on how to use the tcpdump command. 1. When you execute tcpdump command without any option, it will capture all the packets flowing through all the interfaces. $ tcpdump -i eth1 14:59:26.608728 IP xx.domain.netbcp.net.52497 > valh4.lell.net.ssh: . ack 540 win 16554 14:59:26.610602 IP resolver.lell.net.domain > valh4.lell.net.24151: 4278 1/0/0 (73) 14:59:26.611262 IP valh4.lell.net.38527 > resolver.lell.net.domain: 26364+ PTR? In this example, tcpdump captured all the packets flows in the interface eth1 and displays in the standard output. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
mycli Unix LS Command: 15 Practical Examples ls – Unix users and sysadmins cannot live without this two letter command. Whether you use it 10 times a day or 100 times a day, knowing the power of ls command can make your command line journey enjoyable. In this article, let us review 15 practical examples of the mighty ls command. 1. To open the last edited file in the current directory use the combination of ls, head and vi commands as shown below. ls -t sorts the file by modification time, showing the last edited file first. head -1 picks up this first file. $ vi first-long-file.txt $ vi second-long-file.txt $ vi `ls -t | head -1` [Note: This will open the last file you edited (i.e second-long-file.txt)] 2. To show single entry per line, use -1 option as shown below. $ ls -1 bin boot cdrom dev etc home initrd initrd.img lib 3. To show long listing information about the file/directory. $ ls -l -rw-r----- 1 ramesh team-dev 9275204 Jun 13 15:27 mthesaur.txt.gz 1st Character – File Type: First character specifies the type of the file. 4. 5.
python-keepassx — keepassx 0.1.0 documentation KeePassX is a cross platform password manager. However, KeePassX is a desktop GUI application. That's where python-keepassx comes in. By using python-keepassx, you can access your passwords using a command line interface to KeePassX. You can also use the python library directly in your own python applications. Python-keepassx: simple, command line interface to your passwords. $ kp get github Password: title: GitHub username: jamesls url: notes: Password has been copied to clipboard. See the Getting Started Guide to start using python-keepassx now. What is this project and why should I care? Keepassx is a great password manager. What's a Password Manager? We use things that require passwords. If you're following password best practices, you should not be using the same password for more than one site. That's where a password manager comes into play. I've never hard of KeePassx, what is it? KeePassX is a password manager. FreeCross platformOpen source Yes.
15 Examples To Master Linux Command Line History When you are using Linux command line frequently, using the history effectively can be a major productivity boost. In fact, once you have mastered the 15 examples that I’ve provided here, you’ll find using command line more enjoyable and fun. 1. Display timestamp using HISTTIMEFORMAT Typically when you type history from command line, it displays the command# and the command. # export HISTTIMEFORMAT='%F %T ' # history | more 1 2008-08-05 19:02:39 service network restart 2 2008-08-05 19:02:39 exit 3 2008-08-05 19:02:39 id 4 2008-08-05 19:02:39 cat /etc/redhat-release 2. I strongly believe, this may be your most frequently used feature of history. # [Press Ctrl+R from the command prompt, which will display the reverse-i-search prompt] (reverse-i-search)`red': cat /etc/redhat-release [Note: Press enter when you see your command, which will execute the command from the history] # cat /etc/redhat-release Fedora release 9 (Sulphur) 3. 4. 5. Type ! # ! 6. 7. 8. 9. 10. 11. # history -c 12. 13. 14.
SSH Can Do That? Productivity Tips for Working with Remote Servers | Smylers SSH has many features which are helpful when working regularly with files on remote servers; together they can give a vast increase in productivity over the bare use of SSH. If you regularly use SSH, it’s worth spending a little time learning about these and configuring your environment to make your life easier. This has been presented at presented at Yapc Europe 2011 in Riga and the Floss UK Spring 2012 Conference in Edinburgh. If you’d like me to come and talk about this at your user group or workplace, please get in touch. Multiple Connections Often it’s useful to have multiple connections to the same server, for example to edit a file, run some file-system commands, and view a log file all in different terminal windows. Fortunately OpenSSH has a feature which makes it much snappier to get another terminal on a server you’re already connected to: connection sharing. ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r What About Windows Users? Copying Files Repeated Connections $ ssh www2
Linux Directory Structure (File System Structure) Explained with Examples by Ramesh Natarajan on September 8, 2010 Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin? For example, less command is located under /usr/bin directory. Why not /bin, or /sbin, or /usr/sbin? What is the different between all these directories? In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories. 1. / – Root Every single file and directory starts from the root directory.Only root user has write privilege under this directory.Please note that /root is root user’s home directory, which is not same as /. 2. Contains binary executables.Common linux commands you need to use in single-user modes are located under this directory.Commands used by all the users of the system are located here.For example: ps, ls, ping, grep, cp. 3. 4. 5. Contains device files.These include terminal devices, usb, or any device attached to the system.For example: /dev/tty1, /dev/usbmon0 6. 7. 8. 9.
MySQL SSH Tunnel mit autossh » Debian Root MySQL SSH Tunnel mit autossh Warum ein SSH Tunnel eine gute Wahl ist um von einem Remote Client auf einen MySQL Server zuzugreifen habe ich in diesem Artikel beschrieben. Jetzt möchte ich zeigen wir man einen dauerhaften SSH Tunnel erstellt und ihn aufrecht erhält. MySQL Server (Bob) Dieser MySQL Server soll unter dem Port 3307 von Alice aus dauerhaft erreichbar sein. MySQL Server auf Bob Auf Bob wird ein neuer User angelegt und der sshd so konfiguriert das dieser User sich per PublicKey Authentication anmelden kann. Webserver auf Alice Als erstes wird autossh installiert, dann wird ein neue User angelegt. Jetzt loggt man sich als tunnel User ein und testet die Verbindung. Der autossh Aufruf endet nach dem -M 20009 (setzt den Monitoring Port auf 20009). Nun kümmern wir uns um den PublicKey zum anmelden ohne Passwort. Der Public Key von Alice muss jetzt in die authorized_keys Datei auf Bob eingetragen werden. Jetzt noch einmal die Verbindung per PublicKey testen. Entfernen eines SSH Tunnels
Linux on the Samsung Series 9 2012 (NP900X3B) | jtes.net On Wednesday I collected by brand new laptop – the latest Samsung Series 9 (model NP900X3B). Ordered through John Lewis and collected from my local Waitrose. This is the first time I have ever sent this much money (£1199) on an electrical item. The laptop is I’m a Linux user so this post is about getting Fedora 16 running on it. Update: 27 Jun 2012 added new post for running Fedora 17 on this laptop Updated: 28 Mar 2012 added mouse details and backlight adjustment Updated: 26 Mar 2012 with more details If you prefer to run another Linux distribution see these blog posts: Debian by Daniel Barlow and Ubuntu by Vaibhav Verma. Booting from USB First step of getting Linux installed is to boot from a USB stick. My Fedora 16 x86_64 live USB stick booted fine and everything seemed to work ok. Re-partitioning In order to make space for Linux I shrunk the main partition (originally 90GB in size) down to 50GB using the Windows Disk Management tool. Trackpad Backlit Keyboard Suspend External Monitors Wireless
The Debian Administrator's Handbook Debian 10 Edition 1 Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Raphaël Hertzog Copyright © 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Roland Mas Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Freexian SARL ISBN: 979-10-91414-19-7 (English paperback) ISBN: 979-10-91414-20-3 (English ebook) This book is available under the terms of two licenses compatible with the Debian Free Software Guidelines. Creative Commons License Notice: This book is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. GNU General Public License Notice: This book is free documentation: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This book is published under a free license because we want everybody to benefit from it. Abstract
How to Change GRUB Splash Image, Background, Font Color on Your Linux On Debian Lenny (and previous versions of Debian), you might have got tired of seeing a blue box with black background for GRUB when the Linux was booting up. But starting from Debian Squeeze, GRUB adds a background image which looks good (better than the boring background colors). This article explains how to change the GRUB background image. The steps mentioned below were tested on Debian Squeeze with grub-1.98. Choosing a GRUB Background Image GRUB 2 can use PNG, JPG/JPEG and TGA images for the background. JPG/JPEG images must be 8-bit (256 color)Images should be non-indexed, RGB By default, if desktop-base package is installed, images conforming to the above specification will be located in /usr/share/images/desktop-base/ directory. Order of Search for GRUB Splash Images In grub-1.98, the splash image to be displayed will be searched in the following order. So you can use any of the above in the order of priority to make GRUB display your own images. Change GRUB Front and Menu Colors
Cooking Infrastructure by Chef Chef is a configuration management and automation platform from Chef. Chef helps you describe your infrastructure with code. Because your infrastructure is managed with code, it can be automated, tested and reproduced with ease. [fig:cheflogo] Chef is a configuration management tool written in Ruby and Erlang. It uses a pure-Ruby, domain-specific language (DSL) for writing system configuration <<recipes>>. The user writes <<recipes>> that describe how Chef manages server applications (such as Apache, MySQL, or Hadoop) and how they are to be configured. Traditionally, Chef is used to manage GNU/Linux but later versions support running on Windows as well. What are the core principles? Idempotence A recipe can run multiple times on the same system and the results will always be identical. Thick Clients, Thin Server Chef does as much work as possible on the node and as little as possible on the server. Order Matters Why you should use Chef? There are several reasons for using Chef: Summary ! !. ! ...
Fogger in Launchpad Log in / Register Fogger Registered 2012-06-26 by Owais Lone Fogger turns your cloud apps into regular desktop apps Fogger acts as a bridge between web applications and the linux desktop. It exposes an easy to use JS API to webapps which can be used to interact with the host desktop environment. PPA: APPS: Project information Maintainer: Owais Lone Driver: Development focus: trunk series lp:fogger Browse the code Programming Languages: python, javascript Licences: GNU GPL v3 RDF metadata View full history Series and milestones Fogger trunk series is the current focus of development All FAQs FAQs for Fogger How to make flash work in Fogger All bugs Latest bugs reported More contributors Top contributors All questions Latest questions Get Involved Downloads Fogger does not have any download files registered with Launchpad. • Take the tour • Read the guide