Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all 23300 articles
Browse latest View live

[ubuntu] Ubuntu16.04 no network

$
0
0
Hello,

I just installed the ubuntu 16.04 on my machine but without network.
I tried to reinstall the Realtek PCI GBE Family Controllers r8168/r8169 drivers(both separately) but failed both.
Here is the screenshot when I make install the r8169 driver.

Code:

sudo make install
make -C /lib/modules/4.4.0-21-generic/build  SUDIRS=/home/louisegan/r8159-6.022.00/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install
make[1]:Entering directory 'usr/src/linux-headers-4.4.0-21-generic'
INSTALL /home/louisegan/r8169-6.022.00/src/r8169.ko
At main.c:222:
SSL error: 02001002:system library:fopen:No such file or directory: bss_file.c:175
SSL error: 2006D080:BIO routines: BIO_new_file:no such file: bss_file.c:178:sign-file:certs/signing_key.pem: No such file or directory
DEPMOD 4.4.0-21-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'

Here is the screenshot when I tried to install r8168 driver.
Code:

cd ./r8168-8.040.00/
sudo ./autorun.sh

Check old driver and unload it.
rmmod r8169
Build the module and install
make[2]: *** No rule to make target 'kernel/drivers/net/wireless/realtek'
make[1]: *** [install] Error 2
make: [install] Error 2

Can anyone figure this out for me? I cannot access any network from ubuntu for now.

Ubuntu 16.04 Cannot find webpages DNS problem?

$
0
0
On a desktop that dual-boots Windows-10 and Ubuntu 16.04, the Ubuntu system cannot resolve any urls.
i.e. if I type google.ca into a browser address bar, I get
"Server not found" from Firefox.
"This site cannot be reached" from Chromium.

On my laptop (this one) connected to the same router, I have no problem with Ubuntu 16.04

Presumably somewhere the nameservers are messed up.
When I boot into Windows I have no problem. As well, I have no problem with Skype on Ubuntu, and pings work OK.

What is the best way to proceed here? I've searched for several solutions and tried a couple of things, but most of these solutions seem to refer to Ubuntu 13.10 or earlier, or a caveat appears "The networking has changed since Ubuntu 14.04" or some such warning.

Is there a CLEAR AND SIMPLE SET of sudo edits, commands and queries that I can type in on UBUNTU 16.04 that will get my DNS working properly?
Thanx.

[ubuntu] Upgrading security of hotspot to wpa2

$
0
0
hey,

I use my notebook as a hotspot(through a wired connection), but if i want to change te security setting. The only 2 options i get is WEP or WEP sentence. and thats not enough to connect a windows device. i have ubuntu 16.04.1(LTS), on my notebook.

So is there an way to upgrade my hotspot to WPA2, i think its possible because on windows i always had wpa2.

PS you may need some info of my notebook, please say how i can get that info.

With kind regards,

Aaron

no matter what we do, VPN and WiFi hotspot wouldn't work on Ubuntu 16.04

$
0
0
no matter what we do, VPN and WiFi hotspot wouldn't work on Ubuntu 16.04...

It keeps saying VPN service ain't working, although it worked so fine with windows 10.

Hotspot never worked..

Please help.

[ubuntu] L2TP/IPsec VPN on Ubuntu 16.10

$
0
0
What is the way to configure L2TP/IPsec VPN on ubuntu 16.10

14.04 - Cannot see AC network on some routers on XPS 13

$
0
0
I cannot connect to the ac network with a Dell XPS 13 (9343) . The ssid does not even show up.
However:
- I can connect without problems under Windows
- it worked, but a but flakey, with a different AC router (linksys EA6350). My router is a D-Link DIR 860L B1 with DD-WRT.
- The connection to the 2.4Ghz N-network works fine.

My guess is it's a driver issue with the Broadcom driver for the BCM 4352 wifi card. I'm using the bcmwl-kernel-source driver - I did not get any other driver to work.

Any ideas?

Wi-fi fails to connect on live USB

$
0
0
EDIT 21pm: Alright guys, I've settled for another solution that doesn't involve Ubuntu. The mods can close this thread if they want to. Thanks to all those that read this, even thought you couldn't give a solution since I couldn't post any technical log for the reasons stated above.


Hi. I'm trying to use a live USB ubuntu to fix Windows. The hard drive is too full to install Ubuntu, so it must be a live CD/thumb drive. The problem is, there are some internet tools I need to do that and the wi-fi isn't working. Most solutions I found seem to only work on installed Ubuntu, not in a live-only setting.

The network manager finds the connections just fine, but fails every attempt to connect.

I made the live USB yesterday so it must be updated enough.

I can't transmit any text/data between this computer and the one with the problem for 2 reasons:
1) No working internet on the problem PC.
2) My only thumb-drive is the one I used to make the live USB.

EDIT: Now it apparently connects but cannot browse web pages. Not sure if other web functions are working or not.

[ubuntu] Alfa AWUS036NHR not working on Ubuntu 16.04 or Kali

$
0
0
I've been trying to setup my laptop for PenTesting. However the one problem is my Alfa wireless adapter is not co-operating. I have a dual boot with Ubuntu and Kali Linux. Ubuntu also has a Kali VM in Virtualbox. The extension pack is installed in Virtualbox. I can't get the Alfa to work the way I want. In Ubuntu I can see the adapter and connect to wifi APs. However in the Kali VM when I look at USB devices I don't see anything listed. I followed a Youtube video and created a new USB filter that didn't work either. When I boot to Kali and bring the adapter down to change the mode the light never turns back on when I try to bring it back up. Then when I try to do the wash command it says the adapter can't be used to get packets. I've searched all over and the information is either dated or it didn't work. I did find this thread https://ubuntuforums.org/showthread....1#post12350385 which I haven't tried yet. Here is all my info

Ubuntu 16.04 x64
Code:

cd ~/Desktop/backports-4.4.2-1
make defconfig-wifi
make
sudo make install

root@Savage:/home/br0k3n# modprobe rtl8187
root@Savage:/home/br0k3n# dmesg | grep rtl
[  21.674873] rtl8192cu: Chip version 0x10
[  22.138080] rtl8192cu: MAC address: 00:c0:ca:7b:ab:f1
[  22.138087] rtl8192cu: Board Type 1
[  22.139437] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[  22.139524] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[  22.139713] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[  22.139982] usbcore: registered new interface driver rtl8192cu
[  22.275688] rtl8192cu 2-3:1.0 wlx00c0ca7babf1: renamed from wlan0
[  33.363604] rtl8192cu: MAC auto ON okay!
[  33.591078] rtl8192cu: Tx queue select: 0x05
[ 1023.270605] usbcore: registered new interface driver rtl8187
root@Savage:/home/br0k3n#

lsusb
Bus 002 Device 004: ID 0bda:817f Realtek Semiconductor Corp. RTL8188RU 802.11n WLAN Adapter

lsmod
Module                  Size  Used by
rfcomm                69632  0
pci_stub              16384  1
vboxpci                24576  0
vboxnetadp            28672  0
vboxnetflt            28672  0
vboxdrv              454656  3 vboxnetadp,vboxnetflt,vboxpci
ctr                    16384  3
ccm                    20480  3
bnep                  20480  2
drbg                  32768  1
ansi_cprng            16384  0
dm_crypt              28672  2
rtsx_usb_ms            20480  0
memstick              20480  1 rtsx_usb_ms
uvcvideo              90112  0
ath3k                  20480  0
btusb                  45056  0
btrtl                  16384  1 btusb
videobuf2_vmalloc      16384  1 uvcvideo
btbcm                  16384  1 btusb
btintel                16384  1 btusb
kvm_amd                65536  0
kvm                  540672  1 kvm_amd
irqbypass              16384  1 kvm
crct10dif_pclmul      16384  0
videobuf2_memops      16384  1 videobuf2_vmalloc
bluetooth            520192  30 bnep,ath3k,btbcm,btrtl,btusb,rfcomm,btintel
videobuf2_v4l2        28672  1 uvcvideo
crc32_pclmul          16384  0
videobuf2_core        36864  2 uvcvideo,videobuf2_v4l2
v4l2_common            16384  1 videobuf2_v4l2
videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
media                  24576  2 uvcvideo,videodev
aesni_intel          167936  2899
aes_x86_64            20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul              16384  1 lrw
glue_helper            16384  1 aesni_intel
arc4                  16384  2
ath9k                  94208  0
hid_multitouch        20480  0
dell_wmi              16384  0
dell_laptop            20480  0
sparse_keymap          16384  1 dell_wmi
ath9k_common          36864  1 ath9k
ablk_helper            16384  1 aesni_intel
ath9k_hw              450560  2 ath9k_common,ath9k
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
dcdbas                16384  1 dell_laptop
dell_led              16384  1
edac_mce_amd          24576  0
dell_smm_hwmon        16384  0
mac80211              647168  1 ath9k
cryptd                20480  1448 aesni_intel,ablk_helper
joydev                20480  0
input_leds            16384  0
cfg80211              565248  4 ath,ath9k_common,ath9k,mac80211
serio_raw              16384  0
compat                16384  4 cfg80211,ath9k_common,ath9k,mac80211
edac_core              53248  0
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
snd_hda_codec_hdmi    53248  1
snd_hda_intel          40960  5
fam15h_power          16384  0
i2c_piix4              24576  0
mac_hid                16384  0
k10temp                16384  0
snd_hda_codec        135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core          73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_pcm              106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_seq_midi          16384  0
snd_seq_midi_event    16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
dell_rbtn              16384  0
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
shpchp                36864  0
tpm_crb                16384  0
snd_seq_device        16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
i2c_designware_platform    16384  0
8250_dw                16384  0
snd                    81920  21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
i2c_designware_core    20480  1 i2c_designware_platform
soundcore              16384  1 snd
parport_pc            32768  0
ppdev                  20480  0
lp                    20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
rtsx_usb_sdmmc        28672  0
rtsx_usb              24576  2 rtsx_usb_sdmmc,rtsx_usb_ms
hid_generic            16384  0
usbhid                49152  0
amdkfd                131072  2
amd_iommu_v2          20480  1 amdkfd
amdgpu                987136  3
i2c_algo_bit          16384  1 amdgpu
ttm                    94208  1 amdgpu
psmouse              126976  0
drm_kms_helper        155648  1 amdgpu
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
ahci                  36864  3
fb_sys_fops            16384  1 drm_kms_helper
libahci                32768  1 ahci
drm                  364544  58 ttm,drm_kms_helper,amdgpu
r8169                  81920  0
mii                    16384  1 r8169
wmi                    20480  2 dell_led,dell_wmi
fjes                  28672  0
video                  40960  2 dell_wmi,dell_laptop
i2c_hid                20480  0
hid                  118784  4 i2c_hid,hid_multitouch,hid_generic,usbhid

root@Savage:/home/br0k3n# agi build-essential
Reading package lists... Done
Building dependency tree     
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


voyo v2 wifi+BT driver

$
0
0
Hello,

I've installed ubuntu 16.10 on my Voyo v2. It's a windows 10 TV box which i would like to use as a portable computer, i don t know what is the wifi chip on this hardware... Apparently it is not supported by ubuntu : i got this dmesg error message :
Quote:


[45.969880] gpio-keys gpio-keys.0.auto: unable to claim irq 8; error -16
[45.969910] gpio-keys: probe of gpio-keys.0.auto failed with error -16
[46.300624] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2.


so no wifi and bluetooth right now.

The problem is, while I've been using ubuntu for a couple years, I don't know anything about how to get a working wifi+BT driver to get the wifi+BT working. More to the point, I don't know enough to really be sure of what questions to ask, which really makes it harder to just google the information and research it.

Anyone help me with what I should be looking up?

Samba AD DC host remains out of domain?

$
0
0
Hi, guys.

I recently setup a Samba-ad-dc server, smb.conf file is:

Code:

[global]
        workgroup = MYDOMAIN
        realm = MYDOMAIN.LOCAL
        netbios name = DC
        server role = active directory domain controller
        server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
        idmap_ldb:use rfc2307 = yes


        allow dns updates = nonsecure and secure
        dns forwarder = 172.16.0.1


        # Thanks to Lars for this fix, it stops the syslog
        # being spammed by the lack of a CUPS server.
        printing = CUPS
        printcap name = /dev/null


        log file = /var/log/samba/%m.log
        log level = 1


[netlogon]
        path = /var/lib/samba/sysvol/devops.local/scripts
        read only = No


[sysvol]
        path = /var/lib/samba/sysvol
        read only = No

This configuration works fine, I'm able to join new machine and user into this domain, but if I execute smbclient command on this DC, it returns:
Quote:

# smbclient -L dc.mydomain.local -U administrator
Enter administrator's password:
Domain=[MYDOMAIN] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]


Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.3.11-Ubuntu)
Domain=[MYDOMAIN] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]


Server Comment
--------- -------


Workgroup Master
--------- -------
WORKGROUP DC



As you can see DC remains itself out of "MYDOMAIN". I'm not sure is it a problem? And how to fix it?

[ubuntu] ubuntu 16.04 ping IPs problems

$
0
0
Hello,

I've got ubuntu 16.04 on my machine and the sign of network seems ready to work.
But I cannot receive any webpages when searching an address. I thought there existed a DNS problem, so I tried to ping something, ping 127.0.0.1 is fine.
But ping other IPs, it shows:
Code:

ping 216.58.212.110
PING 216.58.212.110 (216.58.212.110) 56(84) bytes of data.

--- 216.58.212.110 ping statistics ---
84 packets transmitted, 0 received, 100% packet loss, time 83632ms

And If I ping addresses, it shows cannot find the host.
Anyone can help me out?

[ubuntu] Samba shares accessible from Windows 10 machine but not Windows 7 ?

$
0
0
Hi,

I set up Samba shares on a machine running Ubuntu.

Created a folder /samba/group1 which is owned by group1. Set everything up in the conf file, created users and added them to group1.

All is good, individual logins from Windows 10 work fine, but from Windows 7, users only get read access (no write access).

I can't figure out what to do here, anyone have ideas where this could be coming from ?

Thanks,
Kevin

[ubuntu] Bond0 issue....

$
0
0
Hi...

I'd like to know if this is normal behavior for bonding interface.

Basically I wanted to test the bonded devices and I have the interfaces setup so thay are in the bounded group... eth0 and eth1:

root@somemachine:/var/log$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)


Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0 (primary_reselect always)
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200


Slave Interface: eth0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:36:9f:5e:6f:00
Slave queue ID: 0


Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:36:9f:5e:6f:02
Slave queue ID: 0


So I tested by taking down the eth0 interface with this command:
ifdown eth0

Then I brought it back up:
ifup eth0

But now with the interface restored my /proc/net/bonding/bond0 reads:
root@somemachine:~$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)


Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200


Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:36:9f:5e:6f:02
Slave queue ID: 0


eth0 didn't make it back into the list after it came back up.

Is this normal? If so what's the best way to test failover to make sure it fails back and forth?

[lubuntu] HP Stream 11 wireless card not enabled

$
0
0
I have deployed HP Stream 11 netbooks in a dozen school labs in Liberia running Lubuntu 15.10. Originally they were equipped with either Realtek rtl8723be or Broadcom bcm43142 OEM wireless network adapters. We've battled the ubiquitous intermittent network connection/lost packet problems on these laptops even though I followed suggestions on this forum for disabling power saving, changing buffer size, changing default drivers, etc. I was able to slightly improve the RTL cards but BCM still have problems, often requiring disabling of network or reboot to restore connections. I've also tried Lubuntu 14.04LTS and Lubunto 16.04LTS (even worse). They still drop connections after a few minutes and long PINGS show up to 50% packet loss at times, but sometimes will run clean for 5 minutes then suddenly drop out (note this is in jungle of Liberia far from any other RF sources except for our battery access point server!).
In an attempt to find an alternate solution, I researched other wireless adapters and selected Intel Centrino Wireless N + WiMax 6150 half-mini PCI adapter card due to good reviews and supposedly superior processing power and buffer than the Broadcom and RTL units. I installed the new card in my test notebook that formerly had a bcm card, and Lubuntu shows it is installed, but the Network Manager does not even show "Enable Wireless" checkbox and it doesn't show any available wireless networks. (and no, there is not a hardware WiFi on/off switch. I have read that some manufacturers "white list" certain wireless adapters in BIOS, but since Lubuntu lspci and other utilities does "see" and properly ID the card, I hope that is not the case here).
I'm attaching the wireless-info.txt output in the hopes that someone can spot what may be preventing this card from working. Thanks.
wireless-info.txt
Attached Files

[ubuntu] Managing routes with VPN and Network Manager

$
0
0
I have an OpenVPN server which I'm very satisfied of.
I usually connect the clients to the server simply opening a terminal and running "openvpn" followed by the ovpn file with appropriate configuration, certificates and key. Everything works fine this way.


Anyway, there is something I don't understand and I require some little help about it.


I never got the VPN to work from Network Manager (with VPN plugin already installed).
Once the client is configured in Network Manager, the connexion between client and server will go up but it seems as there isn't any traffic going through the VPN. I can't even ping the client from the server.
I suspect it's a routing problem, but I'm not comfortable enough with network management to fix it on my own.


This is the client configuration contained in my conf.ovpn file which works 100% fine:

Code:

    client
    proto udp
    remote myown.domain.com
    port 1194
    dev tun
    nobind
    comp-lzo yes
    push "comp-lzo yes"
    redirect-gateway def1
    verb 3
    key-direction 1



This is my routing table, VPN disconnected:

HTML Code:

Kernel IP routing table
    Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
    0.0.0.0        192.168.1.1    0.0.0.0        UG        0 0          0 wlan5
    192.168.1.0    0.0.0.0        255.255.255.0  U        0 0          0 wlan5


My routing table with OpenVpn client started from terminal and "conf.ovpn" file:

Code:

Kernel IP routing table
    Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
    0.0.0.0        10.8.0.13      128.0.0.0      UG        0 0          0 tun0
    0.0.0.0        192.168.1.1    0.0.0.0        UG        0 0          0 wlan5
    10.8.0.1        10.8.0.13      255.255.255.255 UGH      0 0          0 tun0
    10.8.0.13      0.0.0.0        255.255.255.255 UH        0 0          0 tun0
    95.110.xxx.xxx  192.168.1.1    255.255.255.255 UGH      0 0          0 wlan5
    128.0.0.0      10.8.0.13      128.0.0.0      UG        0 0          0 tun0
    192.168.1.0    0.0.0.0        255.255.255.0  U        0 0          0 wlan5


And finally my routing table with VPN client configured in Network Manager:

Code:

Kernel IP routing table
    Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
    0.0.0.0        10.8.0.13      0.0.0.0        UG        0 0          0 tun0
    10.8.0.13      0.0.0.0        255.255.255.255 UH        0 0          0 tun0
    95.110.xxx.xxx  192.168.1.1    255.255.255.255 UGH      0 0          0 wlan5
    192.168.1.0    0.0.0.0        255.255.255.0  U        0 0          0 wlan5




Did anyone can help me understand what I should change in Network Manager to get VPN client working the same way as when I start Openvpn in CLI?
Tx!

issue with samba server second hdd on ubuntu 16.04 being accessible to an el capitan

$
0
0
Hi everyone. Having issue with samba server second hdd on ubuntu 16.04 being accessible to an el capitan osx client machine. The ubuntu primary ssd folders are able to have read/write access but when I added the second hdd I am getting an error from osx saying you dont have permissions to access this server. My folder is called Shared and the second hdd is located at sdb using ext4. Thanks in advance for any help

my etc/samba/smb.conf settings:
[global]

## Browsing/Identification ###

# usershare owner only = false

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no
issue with samba server second hdd on ubuntu 16.04 being accessible to an el capitan osx client machine
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes


issue with samba server second hdd on ubuntu 16.04 being accessible to an el capitan osx client machine
#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam

obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
; logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
# logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
; logon drive = H:
# logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
; logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
; usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
; read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of th# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=d4b91cd3-9a54-4108-be5e-a24625a3c5ee / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E0C2-4F8E /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=95976ead-fd52-470a-b4c8-38e9fd9403a0 none swap sw 0 0
/dev/sdb /Shared ext4 defaults 0 0
e group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin


settings in etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=d4b91cd3-9a54-4108-be5e-a24625a3c5ee / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E0C2-4F8E /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=95976ead-fd52-470a-b4c8-38e9fd9403a0 none swap sw 0 0
/dev/sdb /Shared ext4 defaults 0 0

[ubuntu] raspberry pi "router" / firewall, keep loosing public connection

$
0
0
Hi all

I have configured a RaspberryPi V1 to be a super simple "router" and firewall (shorewall) as test.

It all works as expected, execpt that every 10 minutes or so the connectivity from the LAN to the WAN just dies and i need to shutdown the
public interface and restore it
Code:

ifdown eth0
ifup eth0

So far i am tailing /var/log/syslog but havnt seen anything interesting yet, anyone with some advice as to where i should look?

I dont think its because the Raspberry is over worked, since its always responsive for ssh and local pings.
its only the public route that "dies".

EDIT.
Just before the connection died (again) syslog printed
Code:

Oct 20 20:17:21 firewall01 dhcpcd[760]: eth0: deleting default route via X
Oct 20 20:17:37 firewall01 dhcpcd[760]: eth0: Router Advertisement from X
Oct 20 20:17:37 firewall01 dhcpcd[760]: eth0: adding default route via X

Than in my routing table i get placed a link scope address.
Code:

169.254.0.0/16 dev eth1  proto kernel  scope link  src 169.254.240.49  metric 203
As i understand the 169.254.0.0/16 address appear when the DHCP offer is to slow to get to the client after the DHCP request has been made.
I have tried to get rid of this behavior by changing

from
AVAHI_DAEMON_DETECT_LOCAL=1
to
AVAHI_DAEMON_DETECT_LOCAL=0

apparently didnt help.

Thanks on advance
Kind regards

[ubuntu] No wi-fi network after install

$
0
0
i just installed ubuntu 16:10 on my Xiaomi Air 13 "uncommon device i know" but i'm not able to see any wifi connection. This problem occurred right after the install, since before "during the try ubuntu and all the installation" i was able to see and connect w/out any problem.
If i go to All Settings -> Network i'm not able to turn on the wifi "it switch back to off as soon as i turn it on".
Nothing also in Software and update -> more driver.
What should i do ? :C

No WiFi - Intel Wireless-AC 8265 - Undetected

$
0
0
Hi all,

I'm relatively new to Linux and this is my first post here. I just purchased the new HP Spectre x360 today and installed Ubuntu with no issues except for the lack of internet connectivity. The laptop has a new model network card (Intel wireless-ac 8265) with no Ethernet port. I tried searching this forum and others and I can't find it mentioned anywhere - there's hardly even any information on Google.

I tested 4 different distros all of which were unable to detect the wireless card.

Any help would be greatly appreciated. Thanks!

Netgear WNA3100 Help

$
0
0
I am new to using Linux/Ubuntu and i cant connect to the wifi but i can connect using a ethernet cable but i want to use wifi and its not picking up my WNA3100 netgear so i cant connect to the wifi and when i go to additional drivers theres nothing there pls help
Viewing all 23300 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>