Go Premium for a chance to win a PS4. Enter to Win

x

Linux Networking

17K

Solutions

14K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

how to search both zip  files and regular files same time

zgrep  "ram" *

grep  "ram" *

i like to combine above two

just use pipe?how to get result count as well on both files or on each file separately

how to create zip file here to test it?
https://www.tutorialspoint.com/unix_terminal_online.php
please advise
0
Concerto's Cloud Advisory Services
LVL 5
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

I am getting this error message, when I was trying to run rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm on Red Hat Linux 7.4 (Kernel version: 3.10.0-693.1.1.el7.x86_64). Can some one let me know what is problem and what should be the proper procedure to fix it. Here is the output mentioned below,

#rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm
Installing lin_tape-3.0.23-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sCvFVM
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.23
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.23.tgz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.23
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KGligF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.23
++ echo x86_64-redhat-linux-gnu
++ cut -f 1 -d -
+ p=x86_64
+ '[' x86_64 == i386 ']'
+ '[' x86_64 == i586 ']'
+ '[' x86_64 == i686 ']'
+ '[' x86_64 == ppc64 ']'
+ '[' x86_64 == powerpc ']'
+ '[' x86_64 == powerpc64 ']'
+ '[' x86_64 == s390 ']'
+ '[' x86_64 == s390x ']'
+ '[' x86_64 == ia64 ']'
+ '[' x86_64 == x86_64 ']'
+ proc=AMD
+ make KERNEL=3.10.0-693.1.1.el7.x86_64 PROC=x86_64 SFMP=0 driver
make: Nothing to be done for `driver'.
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hQeoFx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64 '!=' / ']'
+ rm -rf …
0
I'm trying to run x11vnc with the --passwdfile option. This option sends a challenge string to the VNC client. The client opens a dialog on the user's screen asking for a password. The client then sends the response string back to the VNC server. The VNC server calls the program referenced by the --passwdfile parameter with this string in the following format:

A two-byte length (in this case 16), followed by the challenge string (16 bytes), followed by the response string (16 bytes). What I get back, in hex is:
 0: 0A 6E 65 78 74 0A 31 36 0A 23 36 F4 E1 03 EE 30    .next.16.#6....0
10: 16 85 FC E9 4C F1 F5 16 5C 2C D5 5C 93 C2 21 29    ....L...\,.\..!)
20: 3A DF C2 A2 7C E9 1F 1A D7                         :...|....

Open in new window

The <newline>next<newline> can be ignored as this is debug stuff from my script. The strings are:
Challenge:
23 36 F4 E1 03 EE 30 16 85 FC E9 4C F1 F5 16 5C

Response:
2C D5 5C 93 C2 21 29 3A DF C2 A2 7C E9 1F 1A D7

Open in new window

The manpage defines the response string as, "client's response (i.e. the challenge string encrypted via DES with the user password in the standard situation)." I have no further information or documentation. I assume one must use the challenge string to decode the response string and get the user-entered password, but I've no idea how to do that.
0
hi

How to Make The Text Cursor Automatically when i'm on console text ?
I use directly on boot the tty console and desactivate graphical mode.

Thanks for your reply,

someone talk me about : /etc/inittab, or /etc/fstab
But i don't think it's good idea to modify 2 by 5
0
i need two passive finger printing programs.

i've tried p0f, but the results i am getting are not consistent --maybe just wrong ...

i load up p0f, and use the line p0f -f p0f.fp log1.log

then i either use netcat to try and open a connection or a browser to open a connection, but, i get all sorts of results, but not the ip of the target i'm shooting for

i need to identify the target(yahoo, google, microsoft, whatever) operating system through a passive program

so, i dig the domain name or ping the site and retreive an ip address, and then wait for it to populate in p0f, but
i never actually see a packet come back from that site identifying an OS

this is for an ethical hacking class

thanks

-dave.j
0
I am confused about when and why to run many contianers in a single task? or should be one task and one container ?

what is the logic for this?
0
So we have Linux 6.5 Server and when ever I SSH into it from a workstation to view the audit logs my UID is attached to someone else that is logged in (SSH) AUID.

I understand that the AUID is the Audited User ID and UID is the user ID.  So if I login as MikeP my AUID and UID should be MikeP and if I, from that log  in should ssh to a different machine using different credentials that the AUID stays the same but the UD changes to the new credentials.

So if MIkeP ssh to another workstation as Mike-local then the AUID should stay MikeP and the UID now becomes Mike-local.  

However, for us that is not happening.  The AUID is selecting who ever is attached to the system when we SSH or login locally.

Has anyone experienced this before and what could be causing it?

Thanks,
john
0
I am using rubinus 3.86 and CentOS7(x86_64).
The installation directory is / var / home / ap / rubinius.

I attempted to install nio4r using the gem command and it failed.
The log at that time is as follows.

It is described as "method_missing", but what does it mean?

cat /var/home/ap/rubinius/gems/extensions/x86_64-linux/2.3/nio4r-2.1.0/gem_make.out

current directory: /var/home/ap/rubinius/gems/gems/nio4r-2.1.0/ext/nio4r
/ var / home / ap / rubinius / bin / rbx -r ./siteconf20171112-15122-n0ryc2.rb extconf.rb --with-ldflags = - L / var / home / lib / gcc5 / lib64
checking for unistd.h ... yes
checking for sys / select.h ... yes
checking for poll.h ... yes
checking for sys / epoll.h ... yes
checking for sys / event.h ... no
checking for port.h ... no
checking for sys / resource.h ... yes
                  main # Rubinius :: Loader at core / loader.rb: 861
                script # Rubinius :: Loader at core / loader.rb: 679
           load_script. Rubinius :: Code Loader at core / code_loader.rb: 590
           load_script # Rubinius :: Code Loader at core / code_loader.rb: 505
            __script__ # Object at extconf.rb: 21
   << (method_missing) # Kernel (NilClass) at core / zed.rb: 1413

undefined method `<< 'on nil: NilClass. (NoMethodError)

An exception occurred running extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and / or headers. Check the mkmf.log file for …
0
hi,
i wrote simple perl script and trying to run geting below error from


https://www.tutorialspoint.com/unix_terminal_online.php

sh-4.4$ vi hi.pl                                                                                                                                                                            
sh-4.4$ pwd                                                                                                                                                                                  
/home/cg/root                                                                                                                                                                                
sh-4.4$ /home/cg/root/hi.pl                                                                                                                                                                  
sh: /home/cg/root/hi.pl: Permission denied                                                                                                                                                  

i just wrote in hi.pl as
print "hii";


in command prompt of windows it ran fine once i install activevperl
https://www.activestate.com/activeperl/downloads

C:\Users\ss\perl\code>perl hello.pl
hii

please advise
0
winscp wht is difference between location profiles and bookmarks

/crm/home/xyz2abc/exp/net/ccfg/crm

i have above book mark
i have to give a name to it saying "server1 config property file path"
i see rename option under location profiles not under bookmarks
but location profile again shows local directory and remote directory
what that means?

i am confused
https://winscp.net/eng/docs/ui_locationprofile
also under book marks what is difference between site book marks and shared book marks

https://winscp.net/eng/docs/ui_opendir

please advise
0
How to Use the Help Bell
LVL 11
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

hi,
mputty session name how to rename says from server1 to server2

Please advise
0
I have followed this guide
https://wiki.opnsense.org/manual/how-tos/sslvpn_client.html
and I have successfully  connected to and passed Auth.
*yes i did add rule to allow vpn traffic access to local resources

When connected to VPN , I can not ping my vpn gateway (10.0.0.1), I can not ping any local resources (192.168.37.X)
Outside of the the VPN I am able to make a connection.

Any help would be appreciated
ty
0
what is difference between control D and exit commands.

please advise
0
hi,
my super user is crm and password is say pwd

sudo crm and sudo su means same or different

what is passwd comand, cut c ommand?
please advise
0
hi,

i created aaa file under gp foler under root of tutorialpoint



sh-4.4$ /bin/bash                                                                                                                                                                            
bash-4.4$ [wd                                                                                                                                                                                
bash: [wd: command not found                                                                                                                                                                
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                                                                                                                                
bash-4.4$ mkdir gp                                                                                                                                                                          
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                          …
0
hi,

what is difference between mv vs cp

when we use which one. any advantage of using one over other

please advise
0
hi,

what is difderence between ls -R vs ls -r

please advise
0
I have a main office running OpenVPN on Untangle v9.4 (I know, but they don't want to spend the money to upgrade and reconnect all of the offices) The remote offices are all on different subnets, and I have no problem reaching the main office by IP address or hostname from the remote office computers. From the main office, I am unable to ping or communicate with any of the remote offices. There are no issues with the main office connecting to the internet, but I am unable to communicate with the connected networks. The OpenVPN connectivity at each office is using a Ubiquiti Edgerouter-X with the config file imported and I use my laptop to support the various offices via a software client OpenVPN connection. When I connect to the OpenVPN server at the main office using my laptop, I am able to ping, use RDP, whatever, I can even use NSLOOKUP from the DC in the main office as the server and get the IP Addresses for the systems in the remote offices. Trying to run a tracert from the cli on the DC server in the main office gives me a first hop that is the LAN address of the Untangle box, but times out on every other hop. This looks like a route issue to me, but I haven't been able to add a static route in any form that allows me to communicate with the remote networks. Help!
0
Between Squid Proxy and Apache Traffic Server (ATS) - which one is the better forward proxy server for 5000 concurrent connections to Social Media (non-video, no file downloads) sites (Linkedin, Quora, Facebook, Instagram, Pinterest, Twitter). Due to the personalized & unique nature of user's newsfeeds, I don't believe the caching feature will be that useful for acceleration for this scenario.

Do both solutions require the same resources? Will both solutions easily scale for future growth?

From most posts that I've read, or IT social circles, Squid appears to be more popular, however after seeing the benchmarks at the end of this presentation, my curiosity is open to ATS:

ATS vs Squid Proxy Benchmarks
0
Veeam Disaster Recovery in Microsoft Azure
LVL 1
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Hi there,

we want to choose the right NIC mode and configuration for having maximum performance, throughput and bandwidth over our 2x10 Gbit set up (and maybe 4x10Gbit in the near future). Ideally we d like stay close to 20Gbps throughput.

The question is what mode to use, NIC bonding or teaming? And we also need some easy set up guidance in order to set it up so please propose any valid tutorial or article you might know it is worth looking.
0
I have a Microsoft DNS environment and Im introducing BIND as secondary servers.

I have added the new BIND servers as Name Servers on one of the Forward and one of the Reverse Lookup Zones on one of the Master Microsoft DNS servers. By doing this the BIND servers should replicate through to all the other Microsoft DNS servers within the environment. I have 20 different Forward Lookup Zones, 15 different Reverse Lookup Zones and 10 different Conditional Forwarders.

My questions are:

1.   Do I need to add the BIND servers to ALL of the 35 zones that I have within the environment? As BIND are secondary servers they should have all the zones as Microsoft DNS servers do, correct?

2.   Do I need to enable Zone transfers on ALL of the 35 zones that I have within the environment or being that I added the servers as Named Servers, the BIND servers will get the zone info for all 35 zones that way?

2a.   If I need to enable Zone transfers on ALL of the 35 zones, should I configure it to go to ALL the Named Servers or just the Master servers that I have listed for BIND to get zone info from?

Thank you in advance!!


CONDITIONAL Forwarder
zone "lab.com" {
  type forward;
  forward only;
  forwarders { ip-of-server1; ip-of-server2; };
};

Open in new window



FORWARD Lookup Zone
zone "appsdr.com" {
  type slave;
  masters { ip-of-server1; ip-of-server2; };
  file "/var/named/named.appsdr.com";
  allow-notify { none; };
  allow-transfer { localhost; p-of-server1; p-of-server2; };
  request-ixfr yes;
  masterfile-format text;
};

Open in new window



REVERSE Lookup Zone
zone "10.in-addr.arpa" {
  type slave;
  masters { ip-of-server1; ip-of-server2; };
  file "/var/named/named.10.in-addr.arpa";
  allow-notify { none; };
  allow-transfer { localhost; ip-of-server1; ip-of-server2; };
  request-ixfr yes;
  masterfile-format text;
};

Open in new window

0
hi,

i got new server ip session. I need to add this to mputty/tabbed puty. How to add it. Please advise step by step procedure for it.
0
Syntax:
grep -o -b "pattern" file

$ cat temp-file.txt
12345
12345

$ grep -o -b "3" temp-file.txt
2:3
8:3
http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/
As above what is the  meaning of 2:3 and 8:3
what position it represents
please advise
0
7. Highlighting the search using GREP_OPTIONS

As grep prints out lines from the file by the pattern / string you had given, if you wanted it to highlight which part matches the line, then you need to follow the following way.

When you do the following export you will get the highlighting of the matched searches. In the following example, it will highlight all the this when you set the GREP_OPTIONS environment variable as shown below.

$ export GREP_OPTIONS='--color=auto' GREP_COLOR='100;8'

$ grep this demo_file
this line is the 1st lower case line in this file.
Two lines above this line is empty.
And this is the last line.
http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/

how to get different color when search match comes?
please advise
0
As below   recursive search not working for me
http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/

$ grep -r "ramesh" *

please advise
0

Linux Networking

17K

Solutions

14K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.