LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Implementation of server/client socket under kernel environment

Posted 04-11-2018 at 03:15 AM by 915086731

Tested successfully on kernel 4.
Server:
Code:
#include<linux/in.h>  
#include<linux/inet.h>  
#include<linux/socket.h>  
#include<net/sock.h>  
  
#include<linux/init.h>  
#include<linux/module.h>  

#define BUFFSIZE 1024

void jiang_debug( void )
{
    printk("just debug");
}

int myserver(void)
{  
  
    struct socket
...
Member
Posted in Uncategorized
Views 2887 Comments 0 915086731 is offline
Old

Command-line control of network activation and deactivation

Posted 12-12-2016 at 12:33 PM by flshope

It took me a while to find this, so I thought I would post it. After searching through various sources, I finally took the time to read all of the hundred or so lines you get from 'apropos network'.

A terminal command to activate or deactive networking is

Code:
nmcli networking on
nmcli networking off
Under Ubuntu I usually depend on a networking control icon that appears on the tool bar of the indicator applet, but sometimes the icon is missing. I...
Member
Posted in Uncategorized
Views 1328 Comments 0 flshope is offline
Old

Network Firewall Auditor and Checker for Linux

Posted 12-07-2011 at 11:54 AM by sudhagud

On a day to day work load, starting one with simple task to complex multiple tasks, IT System Administrators and all other personnel who look after the IT Data Centre and IT Infrastructure, sometimes find that they have to run a multiple command set, that to for simple information. In recent times the Desktop GUI and the relative backend tools that make the Linux System have advanced well, but for remote system administration, unlike Windows where RDT can be used, Sysadmin's prefer a shell and a...
LQ Newbie
Views 1537 Comments 0 sudhagud is offline
Old

Configuring the Ethernet NIC in CentOS 6 (RHEL 6, Scientific Linux 6)

Posted 09-06-2011 at 12:39 PM by gearge
Updated 11-26-2011 at 02:23 PM by gearge (reader comment)

Take a look at your ifcfg-ethX configuration file under /etc/sysconfig/network-scripts directory (substitute ethX with your network interface, e.g. eth0). In my case, "Minimal" install of CentOS 6 configured the ethernet interface not to start automatically (line ONBOOT="no") and to rely on NetworkManager (NM_Controlled="yes"). This is odd, as NetworkManager is not installed by default. Thus, even though the system is in runlevel 3 and you should have networking (if...
LQ Newbie
Posted in Uncategorized
Views 8130 Comments 2 gearge is offline
Old

Puppy Wins the Printing Lottery

Posted 11-22-2009 at 07:51 PM by SrDorothy

The last time I posted about printing I thought my problems were solved with 2 Puppy boxes telling the Mepis box where the printer was...

But shortly after that, Mepis decided the printer was attached to a Puppy box, and of course couldn't print...again!

So now we have 3 Puppy boxes...and they all know where the printer is, woof!
LQ Newbie
Posted in Uncategorized
Views 2045 Comments 0 SrDorothy is offline

  



All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration