|
If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...
|
|
|
|
|
You might be able to use nmap to find out. You can use the -Pn option to tell nmap to skip the ping scan to determine if the host is up. Be aware that nmap will try to connect to a wide range of known ports, which might trigger watchdogs on the target network. In general, using nmap on networks that you are not a valid user of is considered bad manners, so discuss with the network owner before using.
Your success will depend on how the firewall is configured. If it is set up to block all access from WAN for that host (e.g. drop all inbound/outbound packets to/from the host you are interested in), you will never get any response from the host. Your only hope may be that you can access a different host on the target network and be able to try to ping or connect to the host from there.
Keep Calm and Carry On
|
|
|
|
|
|
If the target is behind a firewall, and that firewall is configured to quash inbound ICMP, you have no way of pinging the machine.
|
|
|
|
|
Exception - references to RTFM pertinent to subject are welcome.
Please do not clutter the issue with BIOS "stuff".
I am looking for old fashioned flow chart describing Linux ( Ubuntu) UEFI booting process.
I can RTFM for grub, UEFI - however I just do not understand how the entire process works,
I can start with
1. Install Linux using ISO
2. Select GPT partition format
3. Let installer build EFI (boot) partititon etc.
4. After install - on power -up - setup UEFI
5. Then setup "grub/grub2 "
....
6. After initial setup - what files are actually used during NEXT boot process?
/default/grub ?? grub.cfg ??
|
|
|
|
|
|
try complete automated bootup
|
|
|
|
|
I have a single USB drive (RAID5 partitioned ) which was build using mdadm in another OS.
I can identify it using blkid
/dev/sdk1: UUID="fbe4babd-b3c2-8449-66d4-881d46391ff4" UUID_SUB="3f38abb1-3b6a-6663-0829-4241ab1355a6" LABEL="a-SATA:42" TYPE="linux_raid_member" PARTLABEL="MD42_1" PARTUUID="544f03a0-ffff-4255-b0a9-4ff76dbb09b9"
/dev/sdk2: UUID="fbe4babd-b3c2-8449-66d4-881d46391ff4" UUID_SUB="e6552375-0dba-dd6b-1d13-46d885edfff9" LABEL="a-SATA:42" TYPE="linux_raid_member" PARTUUID="5b73b607-39f2-40ca-a028-e599dc5f3756"
/dev/sdk3: UUID="fbe4babd-b3c2-8449-66d4-881d46391ff4" UUID_SUB="bf6527e4-f485-b485-e9a3-eab63fd4c21e" LABEL="a-SATA:42" TYPE="linux_raid_member" PARTUUID="c1fa94cf-572b-47e5-bff4-15122407ff85"
/dev/sdk4: UUID="fbe4babd-b3c2-8449-66d4-881d46391ff4" UUID_SUB="1bbf32d5-eb1b-2805-0057-27bddff7e27f" LABEL="a-SATA:42" TYPE="linux_raid_member" PARTUUID="553743fe-880c-4618-91cb-14692e939062"
/dev/sdk5: UUID="e024cedd-e0e9-4f44-806a-567129fe1a8a" TYPE="ext4" PARTUUID="f94d16e0-d7e0-4ac9-852d-3ef820e523c8"
My current OS gparted obviously does not see md device associated with the array, but it sees the USB /dev/sdx (and all the partitions) , and it does not exist in mdadm.conf file. Also mdadm --detail --scan --verbose cannot see it either - no surprise here.
Is there a SAFE way to recreate RAID5 md device in my current OS?
Can I use mdadm --create ..... to keep current data intact?
|
|
|
|
|
A search for "<your distro> RAID" should lead you to some useful documents.
There is one I can't quickly find that discusses rearranging RAID partitions, changing RAID levels and so on.
That would give you a starting point.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
So far I have found tools to recover Linux.
I am after restoring specific , already data containing RAID5 array.
Looks as I could used mdadm --assemble
I cannot find anything stating it will keep exciting data intact.
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
You can use --fake or -f to get mount to test your fstab.
What you put in /etc/fstab depends on what your raid is like. If you're using a hardware raid controller, then the RAID cluster is probably presented to the OS as /dev/sdx, but if you're using software raid, the I think the cluster is presented as /dev/mdn.
After creating your RAID, you'll need to partition and format, just like a normal Hard drive. Once you've done that, you can use blkid to get the UUID of the partition for fstab.
Keep Calm and Carry On
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
You've got several options. Lets assume that you wan to mount the ext4 partition on /data
You can use the physical partition device path, the UUID, LABEL, PARTLABEL or PARTUUID in fstab
The following are all equivalent. Use only ONE.
# by device path:
/dev/md42p1 /data ext4 defaults 1 2
# by UUID:
UUID=b4f937f3-8d8d-4d1b-a9e6-4eaffb72a077 /data ext4 defaults 1 2
# by LABEL
LABEL=MD42_RAID_LABEL /data ext4 defaults 1 2
# by PARTLABEL
PARTLABEL=MD42_RAID_NAME /data ext4 defaults 1 2
# by PARTUUID
PARTUUID=49fce049-084f-48e8-aa79-f6e22d809879 /data ext4 defaults 1 2
depending on your requirements, you may want to change the defaults , to add perhaps noatime , for example.
Note that we mount the partition not the RAID drive.
Keep Calm and Carry On
|
|
|
|
|
so, i was doing some programming with eclipse and stuff. But then i noticed that all of my .JAR files suddenly looked like a pinguin with some painting stuff on his hands. i need help, cause im not sure what is going on!! I use windows.
[SOLVED] I had to right click a JAR file, and "press open in application" then select Java JDK. For some reason i had two of those...
modified 1-Sep-20 4:02am.
|
|
|
|
|
O M G.
For someone who doesn't want spam, you sure made it really easy for spammers to pick up your email address by posting it in public forums.
YES, they have crawlers that will scan public forums (like these) for an email addresses.
So, if you want to minimize the spam you get, NEVER post your email address in a public forum.
So you don't want spam, but yet you spammed the forums here yourself?!?! Go back and delete your other posts, except for the one in the Java forum.
|
|
|
|
|
So, you are smart enough to guess that the ".JAR files" look something like a Linux, but you want people to connect with you on email threads; won't work man.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
We already have Crystal Reports built for Asp.net. We are studying the possibility to move the Crystal Reports coded in Asp.net to LInux through Mono, does anyone has experience of this?
|
|
|
|
|
.NET Framework on Linux works through Mono; even the updated .NET Core uses a lot of components and structures from the Mono project.
Quote: move the Crystal Reports coded in Asp.net to LInux through Mono It should build just fine as long as you have Mono SDK setup. There might be some minor changes (such as file system, permissions, etc.) other elements would be okay.
.NET Source Code Integration | Mono
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Facts:
0) I'm writing a .Net Core 3.1 command line app (using C#) to read text files on some Raspberry Pi machines on the network. This app will be able to run on either Windows or Linux.
1) The files in question are in the /etc , /proc and /sys folders.
2) I don't want to create shares of these folders.
3) I'd prefer not to have to install/configure anything on the remote boxes (if at all possible).
4) I know the user ids and passwords for the remote boxes, and am aware that I have to somehow use these credentials in order to "connect" to the remote boxes).
5) I don't want to use another language. I mean, doNet Core is supposed to be cross-platform, right?
Problem:
How do I go about reading a file on a remote linux box? I've tried a number of ways to do this, but I keep getting the following exception:
"The network name cannot be found. : '\\\\192.168.1.10\\sys\\class\\thermal\\thermal_zone0\\temp'"
(BTW, when running in Windows, the exception is presented with backslashes. I'm actually using forward slashes.)
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
They don't mention anything about .Net Core...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
It supports .NET Standard 1.3 and 2.0, so it should just work in Core.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
I added SshNet with Nuget, and it workds great.
using SshNet;
using (var client = new SshClient("192.168.1.10", "userid", "password"))
{
client.Connect();
string data = string.Empty;
using (SshCommand cmd = client.CreateCommand("cat /proc/cpuinfo"))
{
data = cmd.Execute();
}
}
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|