ok -- i've got the main install done, but when it goes to set up apt, i can't get to an http or ftp server to get the packages. seems my dns isn't working. problem is -- i have no way, or at least don't know a way, to get into any sort of gui, in which i think i could get it going myself. i'm stuck... (1 Reply)
ok i installed DEBIAN, and i cant get online.. so suppp. i ahve cable and it uses DHCP.
so i ahd red hat :eek: and i jsut type modprobe 8139too, dhcpcd eth0 and... i think thats it.. im pretty sure thats it. but NOW. i install DEBIAN type out my modprobe it works yah yah. then i type out 'dhcpcd... (1 Reply)
It says that these files should be written to a floppy: Studenten Net Twente - Index of /debian/dists/etch/main/installer-i386/current/images/floppy/
How would all of those fit onto a floppy? Could I write a CD instead? (8 Replies)
Hi Guys,
I'm new to Linux and Debian (Solaris is by bag). Anybody know where I can download a set of installation cd's/dvd's for Debian from (latest stable release please).
Thanks in advance
Marty (3 Replies)
I'm trying to install Debian to a partition on my hard drive. I have my computer booted into Knoppix from a CD and I'm using it to download the necessary files to create an install disk that I can boot from (on a USB memory stick).
Here is what someone on another forum told me to do:
Are... (0 Replies)
Hi All,
I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified.
Do I need to single quote the directory paths ??
Many thanks for your help.
The relevant code excerpt from the script is:
cd /var/www/${SITE}
... (7 Replies)
Hello,
I need to upgrade my Debian system 7.8 to 8.5 but by default via apt-get It moves to 8.6 version(latest stable version). I'm new to Debian so didn't figure out the solution.
I've checked few suggestions over internet like editing apt source list file using snapshot archive.
Please... (2 Replies)
Discussion started by: Mannu2525
2 Replies
LEARN ABOUT LINUX
get_avphys_pages
GET_PHYS_PAGES(3) Linux Programmer's Manual GET_PHYS_PAGES(3)NAME
get_phys_pages, get_avphys_pages - get total and available physical page counts
SYNOPSIS
#include <sys/sysinfo.h>
long int get_phys_pages(void);
long int get_avphys_pages(void);
DESCRIPTION
The function get_phys_pages() returns the total number of physical pages of memory available on the system.
The function get_avphys_pages() returns the number of currently available physical pages of memory on the system.
RETURN VALUE
On success, these functions return a nonnegative value as given in DESCRIPTION. On failure, they return -1 and set errno to indicate the
cause of the error.
ERRORS
ENOSYS The system could not provide the required information (possibly because the /proc filesystem was not mounted).
CONFORMING TO
These functions are GNU extensions.
NOTES
These functions obtain the required information by scanning the MemTotal and MemFree fields of /proc/meminfo.
The following sysconf(3) calls provide a portable means of obtaining the same information as the functions described on this page.
total_pages = sysconf(_SC_PHYS_PAGES); /* total pages */
avl_pages = sysconf(_SC_AVPHYS_PAGES); /* available pages */
EXAMPLE
The following example shows how get_phys_pages() and get_avphys_pages() can be used.
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
int
main(int argc, char *argv[])
{
printf("This system has %ld pages of physical memory and "
"%ld pages of physical memory available.
",
get_phys_pages(), get_avphys_pages());
exit(EXIT_SUCCESS);
}
SEE ALSO sysconf(3)GNU 2019-03-06 GET_PHYS_PAGES(3)