DKMS systemd startup service has been removed, modules building is now handled by alpm hooks at install time. Startup modules loading must be done via modules-load.d.

su

mcedit /usr/share/libalpm/hooks/rebuild.hook

Paste this in using [shift] + [insert] keys:

[Trigger]
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = Upgrade trigger
When = PostTransaction
Depends = coreutils
Exec = /bin/echo ‘Checking if any package needs rebuilding.’

Save using [F2] key and close using [F10].

For more info run man libalpm or visit here.

Cheers.

Andrzej

Racuchy…

Racuchy… What is it? Ask Wikipedia ;)…

Please look at the images below for reference.

Ingredients:

1 litre of milk
1 kg of flour
1 egg
4 tablespoons of sugar
4 packs (28 grams total) of dry yeast (7 grams each pack)
1 pinch of salt
Oil
Few apples
Raisins

Take a BIG bowl and sieve all the flour, sugar and salt into it.

In the same time heat up HALF of the milk to a 37ºC / 98.6ºF (its a perfect temperature – use thermometer). Once the milk reaches the desired temperature take it of the stove and dissolve the yeast in it. Stir it well for a while.

Take the egg and beat it (like for scrambled eggs) in a little bowl.

To the bowl with the flour, sugar and salt add the milk with the yeast, the rest of the milk and the egg.

Mix it very well using a electric mixer.

Now at this stage there are couple of methods of “growing” the batter.

Method number one. Take a bowl with the batter, cover it with clean kitchen cloth and put it in a warm place. Wait 60 – 90 minutes.

Method number two. Take a bowl with the batter, cover it with clean kitchen cloth and put it on the kitchen worktop. Take small electric fan heater, set it to low temperature and make it blow the warm air on the bowl with the batter. Make sure that you use common sense when using electric heater. Do not set it to high temperature, do not put it to close to the bowl, do not stand it on a wet counter etc. Wait 60 – 90 minutes.

Method number three. Take a big pot, pour hot water into it, put something around the edges of the pot, put the bowl with the batter on top of the pot and cover it with a clean kitchen cloth. With this method you need to be aware of WHY do you do it and HOW does it work.

The yeast needs temperature to start farting into the mix :-). To much heat will kill the yeast so make sure that the water is hot but not to hot. It takes a bit of finesse but once you will understand the technique it will be like bipity bopity boop and you’re done.

So you pour the hot water into the pot. You know why. Now why do I want you to put something on the edges of the pot? What do I mean by something? By something I mean like 3 long wooden spoons or spatulas. They need to meet somewhere in the middle of the bottom of the pot and then the other ends of the spatulas rest on 3 points around the edges of the pot. Imagine a tripod for the camera. Upside down :-). Now for the why? Because if you put the bowl directly on top of the pot filled with hot water it will create a seal around the pot, the heat inside the bowl will create suction and what’s even worse – it will heat the batter to much and kill it. I know – it SEEMS complicated but its not.

So – big pot with hot but not too hot water, 3 wooden spatulas creating a support for the bowl, bowl with batter covered with clean kitchen cloth. Leave it for 60 to 90 minutes.

There are other techniques but most of the time you will be using one of those three. Its up to you which one you chose for yourself.

Now – you waited for at least 60 minutes and the batter is growing very very well. That’s good.

Start prepping the fruits.

Peel the apples, cut out the seeds thingy in the middle, chop apples into nice size slices. Put the sliced apples into the fridge until you’re ready to mix the fruit in.

Raisins. Throw them into a heat-resistant dish (bowl) and pour hot water on top of them. Leave them in the hot water for 2 – 3 minutes. Pour the hot water with the raisins out from the bowl into the sieve. Pour cold tap water on top of them to rinse and cool off the raisins. Throw the raisins on the paper towel to let them dry out.

Now…

Your batter has grown? Check
Your apples are sliced? Check
Your raisins are blanched? Check

Take the bowl with the batter and gently throw the apples and raisins on top of the batter. Using wooden or silicone (not metal) spoon / spatula mix the fruit into the batter. Stir clockwise only.

You are ready to start frying racuchy.

Heat up the oil on the pan. Oil cannot be too hot. You don’t want to burn the racuchy. You want to make them golden brown on the outside and fully cooked through on the inside. If oil is too hot it will burn the racuchy on the outside while they are still raw inside.

Be aware. Batter should be sticky.

You will need a fork and a spoon.

Take some batter onto a spoon and try putting it onto a frying pan. Use the fork to make the task easier. Don’t use huge amount of batter. You should fit like 5 – 7 racuchy on one frying pan – depending on the size of your pan but be aware that racuchy grow when the batter is thrown onto the oil.

Once racuchy are ready you can sprinkle them with icing sugar or serve them with jam or whipped cream.

Nasze_Racuchy_24_April_2015_040

Nasze_Racuchy_24_April_2015_039

Nasze_Racuchy_24_April_2015_038

Nasze_Racuchy_24_April_2015_037

Nasze_Racuchy_24_April_2015_036

Nasze_Racuchy_24_April_2015_035

Nasze_Racuchy_24_April_2015_034

Nasze_Racuchy_24_April_2015_033

Nasze_Racuchy_24_April_2015_032

Nasze_Racuchy_24_April_2015_031

Nasze_Racuchy_24_April_2015_030

Nasze_Racuchy_24_April_2015_029

Nasze_Racuchy_24_April_2015_028

Nasze_Racuchy_24_April_2015_027

Nasze_Racuchy_24_April_2015_026

Nasze_Racuchy_24_April_2015_025

Nasze_Racuchy_24_April_2015_024

Nasze_Racuchy_24_April_2015_023

Nasze_Racuchy_24_April_2015_022

Nasze_Racuchy_24_April_2015_021

Nasze_Racuchy_24_April_2015_020

Nasze_Racuchy_24_April_2015_019

Nasze_Racuchy_24_April_2015_018

Nasze_Racuchy_24_April_2015_017

Nasze_Racuchy_24_April_2015_016

Nasze_Racuchy_24_April_2015_015

Nasze_Racuchy_24_April_2015_014

Nasze_Racuchy_24_April_2015_013

Nasze_Racuchy_24_April_2015_012

Nasze_Racuchy_24_April_2015_011

Nasze_Racuchy_24_April_2015_010

Nasze_Racuchy_24_April_2015_009

Nasze_Racuchy_24_April_2015_008

Nasze_Racuchy_24_April_2015_007

Nasze_Racuchy_24_April_2015_006

Nasze_Racuchy_24_April_2015_005

Nasze_Racuchy_24_April_2015_004

Nasze_Racuchy_24_April_2015_003

Nasze_Racuchy_24_April_2015_002

Nasze_Racuchy_24_April_2015_001

Cheers.

Andrzej

[SOLVED] Enable word wrap (and soft word wrap) in nano text editor…

Hi all.

I have noticed this ages ago and it annoyed the BeeGeeses out of me. When You enter a long line of text in nano editor it “wraps” the lines. It “wraps” them like other text editors do – fine. The problem occurs when You try to save the file… all of the sudden long line of text becomes 3 or 4 lines of text… Now imagine using nano on Your /boot/grub/grub.cfg file. Edit the line – even just change the vga=xxx mode and when You reboot Your grub is going into “YOU MESSED UP DUDE!” mode.

By now – most of the distro’s devs have implemented this solution by default but just in case they didn’t – here is what needs to be done.

Run this command from the terminal:

su -c "sed -i 's/# set nowrap/set nowrap/' /etc/nanorc"

and give it a root password when asked for it.

This will turn off the word wrap completely.

However if You are like me and You like the word wrap option BUT You want to keep one line as one line You may want to use this command as well:

su -c "sed -i 's/# set softwrap/set softwrap/' /etc/nanorc"

This will cause the nano editor to softly wrap the lines and when You will save the file – the lines won’t break. In other words if You will type a long line it will be shown as many rows of text BUT when You will save the file it will still be a one long line. Both commands have to be used in order for the soft wrap to work.

Nano_text_editor_enable_word_wrap_and_soft_word_wrap

Cheers.

Andrzej

[SOLVED] Since 1.6.0-2 the conf.d file is no longer in use. We have enabled systemd support and providing upstream systemd units. You will need to use the systemd way (overriding in /etc/systemd/system/dnscrypt-proxy.{service,socket}.d) to apply your customization.

Edit 01: I’ve filed a bug report… FS#45970 - dnscrypt-proxy 1.6.0-2 sometimes it starts sometimes it fails + weird boot messages…

Edit 02: Its a fully functional HOW-TO now again ;)… Thanks FerikD!

Edit 03: Since Cisco now owns OpenDNS I moved away from it. Thanks for the config / idea MrRee!

I chose opennic.

ExecStart=/usr/bin/dnscrypt-proxy
--provider-name=2.dnscrypt-cert.resolver2.dnscrypt.eu
--resolver-address=77.66.84.233:443
--provider-key=3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955
--user=nobody

Reason?

[…] Opennic has a “round-robin dns server randomizer” in beta testing, which actually spits your dns lookups securely between 19 different dns servers […]

So…

After the latest upgrade dnscrypt-proxy no longer plays nice… I saw this message when after the upgrade:

Since 1.6.0-2 the conf.d file is no longer in use. We have enabled systemd support and providing upstream systemd units.
You will need to use the systemd way (overriding in /etc/systemd/system/dnscrypt-proxy.{service,socket}.d) to apply your customization

Here is how to fix it:

Stop dnscrypt-proxy

systemctl stop dnscrypt-proxy

Warning: Stopping dnscrypt-proxy.service, but it can still be activated by:
dnscrypt-proxy.socket

systemctl stop dnscrypt-proxy.socket

Disable dnscrypt-proxy

systemctl disable dnscrypt-proxy

Removed symlink /etc/systemd/system/multi-user.target.wants/dnscrypt-proxy.service.
Removed symlink /etc/systemd/system/sockets.target.wants/dnscrypt-proxy.socket.

systemctl disable dnscrypt-proxy.socket

Find the socket file:

updatedb

IF this fails:

pacman -S mlocate

and re-run updatedb command…

locate dnscrypt-proxy.socket

/usr/lib/systemd/system/dnscrypt-proxy.socket

Check its content:

cat /usr/lib/systemd/system/dnscrypt-proxy.socket

[Unit]
Description=dnscrypt-proxy listening socket

[Socket]
ListenStream=127.0.0.1:53
ListenDatagram=127.0.0.1:53

[Install]
WantedBy=sockets.target

Edit the socket file:

mcedit /usr/lib/systemd/system/dnscrypt-proxy.socket

by replacing:

After=network.target

with:

Before=network.target

It should now look like this:

cat /usr/lib/systemd/system/dnscrypt-proxy.socket

[Unit]
Description=dnscrypt-proxy listening socket
Before=network.target

[Socket]
ListenStream=127.0.0.1:53
ListenDatagram=127.0.0.1:53

[Install]
WantedBy=sockets.target

Find the service file:

locate dnscrypt-proxy.service

/usr/lib/systemd/system/dnscrypt-proxy.service

Edit the service file using your DNS provider details:

mcedit /usr/lib/systemd/system/dnscrypt-proxy.service

Here is what *my service file* looks like:

cat /usr/lib/systemd/system/dnscrypt-proxy.service

[Unit]
Description=DNSCrypt client proxy
Requires=dnscrypt-proxy.socket

[Install]
Also=dnscrypt-proxy.socket
WantedBy=multi-user.target

[Service]
Type=simple
NonBlocking=true
ExecStart=/usr/bin/dnscrypt-proxy
--provider-name=2.dnscrypt-cert.opendns.com
--resolver-address=208.67.220.220:443
--provider-key=B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79
--user=nobody

To avoid service file being overwritten by upgrades copy /usr/lib/systemd/system/dnscrypt-proxy.service to the /etc/systemd/system/ as explained here at MrRee’s blog:

cp /usr/lib/systemd/system/dnscrypt-proxy.service /etc/systemd/system/

Enable, restart service file and check if DNSCrypt is working:

systemctl enable dnscrypt-proxy

Created symlink from /etc/systemd/system/multi-user.target.wants/dnscrypt-proxy.service to /etc/systemd/system/dnscrypt-proxy.service.
Created symlink from /etc/systemd/system/sockets.target.wants/dnscrypt-proxy.socket to /usr/lib/systemd/system/dnscrypt-proxy.socket.

systemctl daemon-reload && systemctl restart dnscrypt-proxy && systemctl status -l dnscrypt-proxy && nslookup -type=txt debug.opendns.com && dig debug.opendns.com txt

Status:

● dnscrypt-proxy.service - DNSCrypt client proxy
Loaded: loaded (/usr/lib/systemd/system/dnscrypt-proxy.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2015-08-12 19:09:07 IST; 386ms ago
Main PID: 1589 (dnscrypt-proxy)
CGroup: /system.slice/dnscrypt-proxy.service
└─1589 /usr/bin/dnscrypt-proxy --provider-name=2.dnscrypt-cert.opendns.com --resolver-address=208.67.220.220:443 --provider-key=B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79 --user=nobody

Aug 12 19:09:07 wishmasdell.loc systemd[1]: Started DNSCrypt client proxy.
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [NOTICE] Starting dnscrypt-proxy 1.6.0
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] Generating a new session key pair
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] Done
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] Server certificate #1435874751 received
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] This certificate looks valid
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] Chosen certificate #1435874751 is valid from [2015-07-03] to [2016-07-02]
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [INFO] Server key fingerprint is ED19:BFBA:FAFC:9257:DFDC:68C7:69BF:AC24:94CD:743F:3C1D:4966:134D:FE2C:4BDC:F315
Aug 12 19:09:08 wishmasdell.loc dnscrypt-proxy[1589]: [NOTICE] Proxying from 127.0.0.1:53 to 208.67.220.220:443

nslookup test:

Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
debug.opendns.com text = “server 3.lon”
debug.opendns.com text = “flags 20 0 70 5950800000000000000”
debug.opendns.com text = “originid 0”
debug.opendns.com text = “actype 0”
debug.opendns.com text = “source 86.44.169.14:55427”
debug.opendns.com text = “dnscrypt enabled (717744506545635A)”

Authoritative answers can be found from:

dig test:

; <<>> DiG 9.10.2-P3 <<>> debug.opendns.com txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER< ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;debug.opendns.com. IN TXT

;; ANSWER SECTION:
debug.opendns.com. 0 IN TXT “server 3.lon”
debug.opendns.com. 0 IN TXT “flags 20 0 70 5950800000000000000”
debug.opendns.com. 0 IN TXT “originid 0”
debug.opendns.com. 0 IN TXT “actype 0”
debug.opendns.com. 0 IN TXT “source 86.44.169.14:55427”
debug.opendns.com. 0 IN TXT “dnscrypt enabled (717744506545635A)”

;; Query time: 41 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 12 19:09:08 IST 2015
;; MSG SIZE rcvd: 247

OR if you chose to use opennic:

systemctl daemon-reload && systemctl restart dnscrypt-proxy && systemctl status -l dnscrypt-proxy && nslookup -type=txt 2.dnscrypt-cert.resolver2.dnscrypt.eu && dig 2.dnscrypt-cert.resolver2.dnscrypt.eu txt

Cheers.

Andrzej

P.S. *OpenDNS is only one of many available options…* Hint:

cat /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv

Adding ‘Play content of this folder as DVD video in SMPlayer.’ entry to the right click menu in Thunar.

Hi folks.

I assume You have a fully upgraded system.

Run this:

su

Now give it root’s password.

Now run this:

pacman -S smplayer libdvdcss libdvdnav libdvdread

and agree to install all the packages and their dependencies.

Now run this:

mcedit /etc/udev/rules.d/82-cdrom.rules

and paste this as a content:

SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom cdrw dvd dvdrw"

Big thank You to sudokode for helping me with the udev rule.

Now save the file and close editor

F2

to save,

F10

to exit. You can use any other text editor like vi, nano etc.

I have a bunch of folders on my hard drive containing a DVD videos. Family videos from Christmas, Weddings, Baptisms and other occasions recorded with my Camcorder in DVD format and then backed up to my HDD. I could rip them into .avi files just to make it easier to play them but then I am risking loosing the quality. It would be pointless really – recording in DVD quality just to encode it to avi… If not the waste of quality then definitely a waste of time and cpu power / electric energy.

Anyway as You probably know DVD video content is a whole structure. It’s not just one file so it’s not as easy as going into the file’s folder and clicking on it to make it playable. There are .vob files inside that could be played one after another… sure but it’s a waste of time again plus each DVD has at least 2 – 4 of those .vob files you would have to click on each of them to watch the entire video and sometimes the rewinding or fast forwarding won’t work when You do that… Nah… That won’t work for me.

When You right click on something in Thunar You get right click menu. I have decided to add ‘Play content of this folder as DVD video in SMPlayer.’ entry to this menu in my Arch Linux. It took me a while but I have succeeded. Here is how:

Open terminal and run:

mkdir -p ~/.bin

mcedit ~/.bin/Play_Folder_As_DVD_In_Smplayer.sh

Now paste this as a content

#!/bin/bash
MYPWD1=`pwd`
#mplayer dvd:// -dvd-device "$MYPWD1"
smplayer "dvd://1//$MYPWD1"

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 001

Now save the file and close editor

F2

to save,

F10

to exit. You can use any other text editor like vi, nano etc.

Now run:

chmod 700 ~/.bin/Play_Folder_As_DVD_In_Smplayer.sh

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 002

You can close the terminal.

Now open Thunar, click on Edit > Configure custom actions…

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 003

Now click on the green + button to add custom rule.

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 004

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 005

Use those details:

Name:

Play content of this folder as DVD video in SMPlayer

Description:

Play content of this folder as DVD video in SMPlayer

Command:

cd %n && ~/.bin/Play_Folder_As_DVD_In_Smplayer.sh

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 006

Now click on the “No icon” button and choose the SMPlayer icon from the “Application icons” set.

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 007

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 008

Now click on the “Appearance Conditions” tab. Un-tick the “Text files” box and tick the “Directories” box.

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 009

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 010

You can now “OK” this window.

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 011

and “Close” the “Custom actions” window.

Reboot Your machine for the udev rule to kick in.

Right click on any folder containing DVD structure and choose Play content of this folder as DVD video in SMPlayer from the menu. Smplayer will start and will start playing DVD from the folder that You have chosen.

Adding Play content of this folder as DVD video in SMPlayer entry to the right click menu in Thunar 012

Hope someone will find it useful.

Regards.

Andrzej

[SOLVED] Converting any video to the Nokia N73 playable container. Setting up / fixing WinFF presets.

Hi there.

In the past when I wanted to convert video so that it plays in my Nokia N73 I would use WinFF. The command that it would use looked like this:

For full screen videos in 4:3 aspect:

/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec libfaac -ab 160k -ar 44100 -ac 2 "./video.mp4"

For widescreen videos in 16:9 aspect:

/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec libfaac -ab 160k -ar 44100 -ac 2 "./video.mp4"

For quite a while now however it did not worked. I would receive this error.

Unknown encoder ‘libfaac’

I tried to google it and find out what is wrong and I’ve found out that libfaac is not a part of ffmpeg package by default due to some license problems. IT IS however possible to replace libfaac with aac and that it would work. It didn’t work for me because the command I’ve found was slightly borked. I’ve visited #ffmpeg IRC channel where user c_14 sorted me out in no time. Thank You very much.

The commands I am using now are:

For full screen videos in 4:3 aspect:

/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2 "./video.mp4"

For widescreen videos in 16:9 aspect:

/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2 "./video.mp4"

I have decided to fix my WinFF presets too. So I’ve edited this file:

/home/andrzejl/.winff/presets.xml

and amended this for full screen videos in 4:3 aspect:

<NokiaN73N81N95FS>
<label>Nokia Nxx Video FullScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec libfaac -ab 96k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95FS>

so now it looks like this:

<NokiaN73N81N95FS>
<label>Nokia Nxx Video FullScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95FS>

and amended this for widescreen videos in 16:9 aspect:

<NokiaN73N81N95WS>
<label>Nokia Nxx Video WideScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec libfaac -ab 96k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95WS>

so now it looks like this:

<NokiaN73N81N95WS>
<label>Nokia Nxx Video WideScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95WS>

[SOLVED] Finding network hosts / devices from Microsoft Windows CMD line.

Hi there.

So You are trying to find all the “active” devices / hosts in Your lan and the only thing You have accessible is a MS Windows command line?

Well…

Click on Menu Start > Run (or press [Windows_key] + [R] combo on Your keyboard. Type in:

cmd

and press [Enter].

IF You have set up the IP statically and / or You know the IP range of the network You are using You can skip this step.

Type in:

ipconfig

and press [Enter]. From here You will find out what IP has been assigned to Your machine by DHCP…

So lets say Your IP is 192.168.0.10. This means that _PROBABLY_ the rest of the devices in Your network will have 192.168.0.xxx IP addresses.

Knowing this use this command:

for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.0.%I | find "Reply"

IF Your IP range looks like 192.168.1.xxx

for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find "Reply"

and so on…

Unless the devices are set to drop ICMP requests You should be able to see ping replies from the active hosts.

Cheers.

Andrzej