Click here to Skip to main content
15,567,448 members
Home / Discussions / Linux Programming
   

Linux Programming

 
AnswerRe: execute multiple commands assigned to a single variable - bash Pin
k505417-Oct-22 5:38
mvek505417-Oct-22 5:38 
GeneralRe: execute multiple commands assigned to a single variable - bash Pin
Richard MacCutchan17-Oct-22 6:10
mveRichard MacCutchan17-Oct-22 6:10 
QuestionBlueZ / bluetoothctl - where to look for specific ( mouse events? ) source code? Pin
Member 1496877113-Oct-22 9:04
Member 1496877113-Oct-22 9:04 
AnswerRe: BlueZ / bluetoothctl - where to look for specific ( mouse events? ) source code? Pin
Richard MacCutchan13-Oct-22 23:06
mveRichard MacCutchan13-Oct-22 23:06 
Questionphp that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676013-Oct-22 5:52
Member 1579676013-Oct-22 5:52 
AnswerRe: php that runs on Debian 11 and connects to another machine on the network. Pin
k505413-Oct-22 6:07
mvek505413-Oct-22 6:07 
GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676013-Oct-22 8:03
Member 1579676013-Oct-22 8:03 
GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
k505413-Oct-22 8:35
mvek505413-Oct-22 8:35 
Since you're using http then that would be port 80. If you've installed a web server on PC2, then you may already have port 80 open. You can check to make sure that the port is open using nc
Shell
nc -z -w 1 IpPC2 80; echo $?
$? is the return value of the last command, so if it's 0 then the connection was successful. Anything other than 0, and the connection failed. Make sure you've got a web server running on PC2. You can do that using netstat
Terminal
[k5054@localhost: ~$ sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/init
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      623/sshd: /usr/sbin
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      659/cupsd
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      664/postgres
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1001/exim4
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      1422/sshd: k5054@pt
tcp6       0      0 :::111                  :::*                    LISTEN      1/init 
tcp6       0      0 :::22                   :::*                    LISTEN      623/sshd: /usr/sbin
tcp6       0      0 ::1:631                 :::*                    LISTEN      659/cupsd
tcp6       0      0 ::1:5432                :::*                    LISTEN      664/postgres
tcp6       0      0 ::1:25                  :::*                    LISTEN      1001/exim4
tcp6       0      0 ::1:6010                :::*                    LISTEN      1422/sshd: k5054@pt
You want to look for something listening on port 80 - which I do not have running in the above screen grab
Keep Calm and Carry On

GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676014-Oct-22 2:53
Member 1579676014-Oct-22 2:53 
QuestionRemoving unneeded OS partitions Pin
Member 149687716-Oct-22 8:31
Member 149687716-Oct-22 8:31 
AnswerRe: Removing unneeded OS partitions Pin
Jeremy Falcon2-Nov-22 15:10
professionalJeremy Falcon2-Nov-22 15:10 
Questiongrub-rescue flashes then grub menu Pin
tumuxoyu6-Jul-22 0:52
tumuxoyu6-Jul-22 0:52 
QuestionBasic on shell ,Git and vagrant Pin
Ezikiel Odutola22-Jun-22 23:24
Ezikiel Odutola22-Jun-22 23:24 
AnswerRe: Basic on shell ,Git and vagrant Pin
Richard Deeming23-Jun-22 0:57
mveRichard Deeming23-Jun-22 0:57 
QuestionMutiboot grub - run last OS option - all Linux Pin
Member 1496877126-May-22 6:35
Member 1496877126-May-22 6:35 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan26-May-22 22:46
mveRichard MacCutchan26-May-22 22:46 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877127-May-22 7:50
Member 1496877127-May-22 7:50 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan27-May-22 22:53
mveRichard MacCutchan27-May-22 22:53 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz27-May-22 9:06
mveGerry Schmitz27-May-22 9:06 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877128-May-22 7:46
Member 1496877128-May-22 7:46 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz28-May-22 8:47
mveGerry Schmitz28-May-22 8:47 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877129-May-22 8:44
Member 1496877129-May-22 8:44 
QuestionRunning file properties... Pin
Member 1496877130-Apr-22 5:25
Member 1496877130-Apr-22 5:25 
AnswerRe: Running file properties... Pin
Richard MacCutchan30-Apr-22 6:07
mveRichard MacCutchan30-Apr-22 6:07 
AnswerRe: Running file properties... Pin
trønderen30-Apr-22 9:30
trønderen30-Apr-22 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.