How do I create a local user on a NIS slave server?
location: linuxquestions.com - date: June 9, 2007
Even though my Gentoo box is a NIS slave, 'adduser' will create new users in /etc/passwd (I'm happy with that), but it won't create the new local user if that user already exists in NIS. How can I get around this problem?
Many thanks,
Steve
how can i add a local Folder on local Hard Disk as Yum Repository ??
location: linuxquestions.com - date: February 19, 2007
hi frinds ,
i have FC6 and for installing new package with yum , it get this package from internet .
i create a Folder in /root/Desktop/CD and copy all files in it .
how can i add this folder to yum repository , because i want yum install new package from this location not intarnet .
Vary Thanks
Disable IPV6 in Debian Lenny?
location: linux.com - date: April 21, 2009
I have tried various ways of disabling IPv6 on my primary workstation running Debian Lenny but it still sticks. Any ideas?
:laugh:
how to determine network link speed through proc systen
location: linuxquestions.com - date: July 8, 2004
i thought i had seen this before in the threads but I can't seem to find it now. how can i determine the link speed my network card is attached too. i writing a library to monitor a node's link and well need to determine the link
How to compile dynamic library for a JNI application on linux?
location:
linuxexchange.com - date:
October 17, 2010
I'm using Ubuntu 10.10
So that's what I did.
Hello.java:
class Hello {
public native void sayHello();
static { System.loadLibrary("hellolib"); }
public static void main(String[] args){
Hello h = new Hello();
h.sayHello();
}
}
Then I ran the follwing commands:
[email protected]:~/Scrivania/provajni$ javac Hello.java
[email protected]:~/Scrivania/provajni$ javah -jni Hello
I've obtained Hello.class and Hello.h.
Hello.h:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class Hello */
#ifndef _Included_Hello
#define _Included_Hello
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: Hello
* Method: sayHello
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_Hello_sayHello
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
Then I created Hello.cpp:
#include <jni.h>
#include "Hello.h"
#include <iostream>
using namespace std;
JNIEXPORT void JNICALL Java_H
I want to disable IPv6 to install Hadoop 2.7.1, but doesn't work
location: linuxexchange.com - date: July 25, 2015
I am installing hadoop 2.7.1 .
It was written there:
"Disable IPv6 with the command
sudo nano /etc/sysctl.conf
and copy the following lines at the end of the file:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Use the command cat /proc/sys/net/ipv6/conf/all/disable_ipv6 to check to make sure IPv6 is off:
it should say 1. If it says 0, you missed something."
After using cat /proc/sys/net/ipv6/conf/all/disable_ipv6 command I am getting "0". that means it don't get disable.
What i am doing wrong.
In shell script, how to transfer data between local and server connected through an intermediate server?
location: linuxexchange.com - date: August 20, 2015
On local PC, SSH -X servA, then on servA, SSH -X servB.
Currently, I scp files from local to servA, then from servA to servB.
Is it feasible to copy files from local to servB directly and vice versa?
===============
I edited it because my SO account is dead, dead thoughtly seemly....
How to create Symbolic link for linux web server
location: linuxexchange.com - date: July 28, 2014
How to create the symbolic link for the path on web server(linux).
Suppose I want to create link for request url
http://localhost:8059/layerslider/skins/fullwidth/skin.css
And the file is present on server at location
/home/users/assets/plugins/layerslider/skins/fullwidth/skin.css
Do anyone know about it????
Thanks
How to setup a simple local linux proxy that caches all HTTP requests for offline browsing
location: linuxexchange.com - date: April 22, 2015
is there a simple way to setup a local proxy on a linux pc that caches ALL HTTP requests in ANY case ('hard refresh' ..., after some time ...), if it has loaded the resource ONCE, configurable by URL/host patterns white list / black list? There should be a possibility to clear the cache for specific resources or at least to clear the complete cache by cli command or web interface.
Thanks in advance
AJ
How do I get the local IP address in Go?
location: linuxexchange.com - date: May 10, 2014
I want to get the computer's IP address. I used the code below, but it returns 127.0.0.1.
I want to get the IP address, such as 10.32.10.111, instead of the loopback address.
name, err := os.Hostname()
if err != nil {
fmt.Printf("Oops: %v\n", err)
return
}
addrs, err := net.LookupHost(name)
if err != nil {
fmt.Printf("Oops: %v\n", err)
return
}
for _, a := range addrs {
fmt.Println(a)
}
please wait...
Page: 1 2 3 4 5 6 7 8 9 10