|
I spent an hour earlier trying to figure out a way to do this. I need get my Unix books out of storage.
|
|
|
|
|
I am trying to identify source code processing "mouse events" in window created by bluez/bluetoothctl.
I do not know a tool to scan "BlueZ" for such code.
I could use some hint which source(s) files may hold the code I am looking for.
Thanks
|
|
|
|
|
|
I am developing a website that uses javascript, php and jQuery.
One of the screens executes a php that connects to the IP of another PC that
is on the same network as the PC with the web server.
However, this PHP fails because it doesn't have access to the other PC.
Both PCs have Debian 11 installed.
Seeing that in any of them to ping the other, it is necessary to do it with sudo, I thought that the problem may be in that it is necessary to add the web user (www-data) to the netdev group, like so I have executed the command:
$ sudo adduser www-data netdev
Adding user `www-data' to group `netdev' ...
Adding user www-data to group netdev
Done.
But the php is still unable to access the other PC.
Should I configure something else?
Any comment or suggestion is welcome.
|
|
|
|
|
Check the firewall settings on the destination PC. You may be blocking the port on the destination for incoming connections. There's an article that may help here: IBM Documentation
Member 15796760 wrote: Seeing that in any of them to ping the other, it is necessary to do it with sudo I'm not sure exactly what that means. You should be able to ping a (reachable) host without needing sudo. For example, assuming that you have your resolver and gateways correctly configured you should be able to
ping 8.8.8.8
ping google.com
ping 192.168.100.100
etc
Keep Calm and Carry On
|
|
|
|
|
This is a php that runs on PC1 and calls another php on PC2, where the IP of PC1 and PC2 are known.
The call made by the php on PC1 is as follows:
$file_headers = @get_headers(http:
How can I know which port would need to be opened on PC2?
|
|
|
|
|
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
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
[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
|
|
|
|
|
Thank you very much.
With your instructions I have been able to verify that port 80 is open on PC2 and that Apache is listening on port 80.
$ sudo netstat -tlnp
Activate Internet connections (only servers)
. . .
tcp6 0 0 :::80 :::* LISTEN 967/apache2
. . .
Later I was able to find an error in a configuration file of PC1, which was the cause of the error.
|
|
|
|
|
I like to clean-up my Ubuntu system and remove unused / unneeded / obsolete OS partitions.
I run "update-grub" and have identified such partitions. .
However, when I run "gparted" – there are NO such partitions.
How do I remove them manually from grub , what file ?
|
|
|
|
|
You probably deleted the partition but didn't update your grub configs. As far as how to update Grub... I bet Google knows.
Jeremy Falcon
|
|
|
|
|
Hi,
I am running Slackware current with a 5.18.7 kernel. The motherboard it was running on has been switched, and because I was presented with a grub-rescue prompt (only after the motherboard switch, worked perfect prior to this) I chose to reinstall. Now what is happening is the grub-rescue prompt it displayed on the screen for a second or 2 and then the normal grub menu shows up and boots properly. I can't figure out how to fix this for the main drive was formatted and partitioned during install. It has 2 partitions on it a 4GB swap and the remainder of the 2TB drive for /. The second drive is also a 2TB drive both same make and model and has 1 partition on it /home which was not formatted during install, so all the files and so forth remain intact after the user is re-added. I should mention I am using grub version 2.06. Any help on this would be greatly appreciated.
|
|
|
|
|
Example:
$ ./0-current_working_directory
/root/alx-system_engineering-devops/0x00-shell_basics
$
Repo:
GitHub repository: alx-system_engineering-devops
Directory: 0x00-shell_basics
File: 0-current_working_directory
|
|
|
|
|
You seem to have forgotten to ask a question.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am looking for someone who is very familiar with the subject.
Running Ubuntu 21.xx and I am unable to activate this feature ever since I switched to 21.xx.
My initial grub menu contains several OS , I managed to option " no flash " and get nice "progress report " during boot. I just cannot option "run last active OS" - no asterisk (*) in base grub menu..
When I do "update grub" the OS identified DO NOT match the main boot menu.
Please do not waste your time with "RTFM" or "it runs fine for me".
Ask for clarification instead if you do not get it.
Any real help would be greatly appreciated.
PS. This is boot problem, hence NO "cut / copy/ screen shot / paste " is not available - do not ask for photo.
|
|
|
|
|
|
I have checked the grub file many times - here is my current copy .
and this is my "save last used ' option
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
I have been checking the validity of my grub using this option
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
it works as expected.
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
#GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
|
|
|
|
|
According to my reading of the documentation that should work, so I am afraid I have no more ideas.
|
|
|
|
|
You may or may not have access to a GRUB environment block (of which you make no mention).
Quote: For safety reasons, this storage is only available when installed on a plain disk (no LVM or RAID), using a non-checksumming filesystem (no ZFS), and using BIOS or EFI functions (no ATA, USB or IEEE1275).
grub-mkconfig uses this facility to implement ‘GRUB_SAVEDEFAULT’ (see Simple configuration).
GNU GRUB Manual 2.06
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I have a copy of "dmesg" , presumably "boot process " log.
Is there a way to identify actual "grub" file used ?
I am still puzzled why I am receiving the boot messages AFTER I
uncommented "splash" option.
|
|
|
|
|
Quote: The environment block is a preallocated 1024-byte file, which normally lives in /boot/grub/grubenv (although you should not assume this). At boot time, the load_env command (see load_env) loads environment variables from it, and the save_env (see save_env) command saves environment variables to it. From a running system, the grub-editenv utility can be used to edit the environment block.
GNU GRUB Manual 2.06: Environment block
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
SOLVED?
The UEFI setup has an option "F11" - boot menu, it brings up grub menu. This menu, I call it "short version ", differs from what I have been using . And it matches output of "update-grub". After using it once I now have the " run last OS used" working. After boot I get this "short version" - with an asterisk indication of last OS used.
I did suspect UEFI from the start...which grub is actually used, optioned ???
BUT I have never updated UEFI and I am NOT going to risk more problems - so I'll leave it alone.
PS With "last OS used" working I no longer have "splash " disabled , no boot progress , - go figure...
|
|
|
|
|
For those who do not know - I am not welcomed to ask questions in Ubuntu forum...
( asked too many questions )
Using Ubuntu 21.10 and having this annoying problem
In "file manager" when asking for file "properties" I get two responses
1. Immediate display of current usage of hardware - that is what i wanted
2. File manager takes off and starts "scanning" all files, takes long time and really does not
provide simple information about how much (%) is in use on specific hardware...
Where is the resolution to this?
Is there an "properties" option I am missing ?
|
|
|
|
|
I just tried this and it works correctly. Whatever is happening on your system is unique to you, and may have something to do with previous questions which suggest that your installation is not very stable.
|
|
|
|
|
Isn't this something you can see from the source code?
That's the the great advantage of open source projects: If the system doesn't behave the way you want it to, you have the full freedom to go into the source code and modify it the way you want.
|
|
|
|
|
As a "user" why should I (have) to do that ?
It used to work just fine - giving a hardware usage in % ...
Now it ..... as posted.
Thanks for reply.
|
|
|
|