Debian Configuration :: Getting NFS Server Working
Jul 20, 2015
Debian Jessie on a raspberry pi 2
I'm trying to get nfs server working at boot up and it isn't starting because it says portmapper isn't running. I've read through a bunch of documentation on this and have gotten to the point that if the documentation tells me to Code: Select all$ apt-get install nfs-kernel-server portmap I usually stop there as it is outdated. I cant find a process doc that utilizes rpcbind. So, here is what I've done on my own:
setup /etc/exports with a proper nfs dir and exportfs it
Code: Select all$ apt-get install nfs-common nfs-kernel-server
$ sysv-rc-conf
---│ nfs-kerne$ [ ]   [X]   [X]   [X]   [X]   [ ]   [ ]   [ ]    │
---│ rpcbind   [ ]   [X]   [X]   [X]   [X]   [ ]   [ ]   [ ]    │
$ service rpcbind start
[Code] ....
The errors however don't seem critical as I'm able to mount the exported directory. OK so it appears to me that nfs server is working. However through a boot, the nfs-kernel-server and the rpcbind services are not starting. The nfs-kernel-server didn't start because rpcbind wasn't running. So I start rpcbind and then nfs-kernel-server and then nfs server works. So what am I missing? Why will rpcbind not start at boot?
I'm in somewhat of a sticky situation. ssh has just randomly stopped working on my server after a power failure. Everything else that doesn't rely on ssh is still working fine though. It can still receive mail and everything, just no ssh.Background on the server, running debian etch on a PPC machine.ssh is (supposed to be) running on port 2000. Even if I am physically logged into the machine I can't log in with ssh -p 2000 user@127.0.0.1. I can ssh to and from any other machine on my network (the server can even ssh into another machine). So it isn't my network causing issues.It seems like the port 2000 is completely closed, if nmap the server's IP address I get PORT STATE SERVICE
25/tcp open smtp 80/tcp open http 110/tcp open pop3
My plex media server suddenly stopped working after years of no hassle use. This is the output of cat /proc/version = Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1+deb7u2
My problem is similar to this forum thread viewtopic.php?f=5&t=121945 where I can get it to start by running Code: Select all/usr/sbin/start_pms & but it's not my normal server configuration. I added a couple files to it and it seems to work except it doesn't start when I reboot. I have to run that command again.This is the init script I've been running for years...
Code: Select all---- #!/bin/sh ### BEGIN INIT INFO # Provides:Â Â Â Â Â plexmediaserver # Required-Start:Â Â $remote_fs $syslog $networking # Required-Stop:Â Â Â
[code]....
My Debian skills are lacking to know how to proceed with troubleshooting what could have happened. Everything else seems fine, I just can't seem to get this application to run at startup or get back my old configuration...
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
LDAP is endlessly not working, due to difficulties to simply configure it. I even cannot make the first steps of the installations ... It seems so difficult ... After many howto, wiki, reading, re-reading the errors are still there, always different, and not working.Is there an admin, coming from hell, that made running a LDAP server for sharing the basic configuratin files /var.. /etc... of a working LDAP Server in a tar.gz?
I will be relocating to a permanent residence sometime in the next year or two. I've recently begun thinking about the best way to implement a home-based network. It occurred to me that the most elegant solution might be the use of VM technology to eliminate as much hardware and wiring as possible.My thinking is this: Install a multi-core system and configure it to run several VMs, one each for a firewall, a caching proxy server, a mail server, a web server. Additionally, I would like to run 2-4 VMs as remote (RDP)workstations, using diskless workstations to boot the VMs over powerline ethernet.The latest powerline technology (available later this year) will allow multiple devices on a residential circuit operating at near gigabit speed, just like legacy wired networks.
In theory, the above would allow me to consolidate everything but the disklessworkstations on a single server and eliminate all wired (and wireless) connections except the broadband connection to the Internet and the cabling to the nearest power outlets. It appears technically possible, but I'm not sure about the various virtual connections among VMs. In theory, each VM should be able to communicate with the other as if it was on the same network via the server data bus, but what about setting up firewall zones? Any internal I/O bandwidth bottlenecks? Any other potential "gotchas", caveats, issues? (Other than the obvious requirement of having enough CPU and RAM).Any thoughts or observations welcome, especially if they are from real world experience in a VM environment. BTW--in case you're wondering why I'm posting here, it's because I run Debian on all my workstations/servers (running VirtualBox as a VM for Windows XP on one workstation).
I have install Debian 8.1.0 powerpc on a G5 2.0Ghz mac. It boots into a patchy square colour screen with no GUI. I am thinking there is a graphic driver problem so used (control +alt+f1) to enter the terminal and get the information below also tried to install nvidia-current but did not work. Have read that I need to blacklist nouveau drivers but don't know how this is done.
am not able to get internet working, am using debian testing. Dunno what is the issue. Here's the lowdown on /etc/network/interfaces :-
Code: Select all# This file describes the network interfaces available on your system# and how to activate them. For more information see interfaces (8)
#The loopback network interface auto lo iface lo inet loopback
auto eth0 allow-hotplug eth0 iface eth0 inet dhcp
I tried all the usual :- Code: Select all$ sudo dhclient (this usually worked/works) $ sudo ethtool eth0 $ sudo systemctl restart networking
I recently installed Debian 8 on my workstation , witch before ran ubuntu 15.04 , but after Debian 8 came, I have not succeeded running ssh with X11forwarding.
case is:
I have a server running ubuntu 14.04 , and when I login that server from my laptop ( also ubuntu 14.04 ), I have no problem getting x11forwarding working, but if I try login from my debian8 workstation, I'll get this error when trying to run xterm ( output is from ssh -X serverip )
connect /tmp/.X11-unix/X0: No such file or directory xterm: Xt error: Can't open display: localhost:12.0
a ls show that the file exsist
$ ls -la /tmp/.X11-unix/X0 srwxrwxrwx 1 root root 0 Aug 18 17:53 /tmp/.X11-unix/X0
In the servers sshd_config i have the following options enabled
X11Forwarding yes X11UseLocalhost yes ( i have tried both yes and no here ) X11DisplayOffset 12
and my ssh_config on my debian8 I have the following lines enabled
As I see it with a 'ssh -vv -X serverip' all x11 debug messeage i the same both on my working laptop , and nonworking are the same, and ~/.Xauthority get created on the server when i login
The following env variables are set when i log into the server from my laptop ( some var is omitted )
I am at a loss as to what to do to get Privoxy working. I have tried it using Ice Weasel and Konqueror and end up with the same problem: after I set the configuration in the browser, I cannot access anything on the internet.
i am running debian testing and the last few days i was trying to ssh to another pc on my network and i was getting an error like there was no machine with that ip! then i tried pinging to it with no luck! ARP was the only tool that returned the MAC address of the machine and that is strange i think. i realised then that i could only ping the gateway and localhost (127.0.0.1 not my ip). after editing my /etc/hosts, i could ping my ip as well. what is so wrong? here are some useful things:
my new /etc/hosts: jack@debian:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 debian.local debian
I work in a company and we have problems on our server so i decided to investigate. I found first that we don't have any ftp logs. We use vsftpd and i tried unsuccessfully to configure it to write the logs.
So here i am: - vsftpd doesn't have any logs (no vsftpd.log file in /var/log/)
I added the following lines in the vsftpd.conf : syslog_enable=YES log_ftp_protocol=YES xferlog_enable=YES vsftpd_log_file=/var/log/vsftpd.log
[Code]....
I also took a look at vsftpd process : it is owned by a user called "nobody" and a user called "www-data" when i upload or download files.
I would appear that I recently installed linux-image-2.6.32-5-amd64. Since then I have noted that my HP media bar up top doesn't work. This means I can't enable/disable wireless. From an lspci output, it still sees the hardware, and it's loaded, however, not functioning. Should I be looking at rolling the kernel back, or work on getting it working via some other means? Any liveCD I've tried doesn't seem to be able to get it going either. So I'm under the assumption here it is the kernel version, and not a hardware problem.
Also tried this to no avail: sudo apt-get install rfkill rmmod iwlagn rfkill block all rrfkill unblock all modprobe iwlagn rfkill unblock all ifconfig wlan0 up SIOCSIFFLAGS: Unknown error 132 rfkill list 2: phy2: Wireless LAN Soft blocked: no Hard blocked: yes
In a hp pavilion 15 Notebook PC with Debian 8.1.After two hours or so wifi stops working. Network-manager does not give any indication of failure but some times a yellow question mark.
rfkill list wifi gives: 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no ifconfig gives: eth0 Link encap:Ethernet HWaddr 8c:dc:d4:7b:c2:0e UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:3994 errors:0 dropped:0 overruns:0 frame:0 TX packets:3661 errors:0 dropped:0 overruns:0 carrier:0
I've installed macchanger and choosen the "run on boot" option. But it doesn't work.
Dump of /var/log/macchanger.log:
Code: Select alldisabled in /etc/default/macchanger disabled in /etc/default/macchanger disabled in /etc/default/macchanger disabled in /etc/default/macchanger disabled in /etc/default/macchanger
[Code] .....
If I change to ENABLE_ON_POST_UP_DOWN=true then I get this log-output after reboot:
Code: Select allIFACE = --all /usr/bin/macchanger: unrecognized option '--all' GNU MAC Changer Usage: macchanger [options] device
[Code] ....
Report bugs to [URL] ....
Guess its some bug about the interface, but how do I change it?
I am new to linux and decided to use Debian. I installed it on my laptop and have a few problems.First one is my WIFI.
Laptop type: HP Omen 15 Wifi adapter: Intel Wireless 7260n rfkill list output:0: hci0: Bluetooth Soft blocked: yes Hard blocked: no So wifi is not displaying Kernel: 3.16.0-4-amd64 Debian version: 8.4 gui: LXDE URL....
But they see in rfkill list the adapter.How to make this adapter work?I did this with no result:
nano /etc/modprobe.d/blacklist.conf in file add: #Fixing a bug that prevents wifi from working on HP Omen blacklist acer_wmi
I would like to learn more about Linux, but before experimenting I need a working system. The plan for me is to run this as my native machine with vms on top of it with other OS.
I don't print much, but tonight needed to print and found that none of the printers were listed in Okular or Openoffice, then when I tried to open Cups Administration http://localhost:631/ I got the error message Connection to Server Refused
I just did a regular install of debian lenny on a stand-alone machine. Now I want to add some new mp3-software. Debian doesn't like it if I install as root. A regular gets other negative results:
wlff@debian:~/My_Apps/mpg321-0.2.12-1$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... no checking for gawk... (cached) mawk checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. wlff@debian:~/My_Apps/mpg321-0.2.12-1$
I did find the GNU-compiler in /usr/lib/gcc. So what could be wrong with gcc, and what about gawk, cc and cl?
The computer networking works fine with a normal static setup, but adding a USB wireless device is not successful. It is my own network so the wpa-ssid and wpa-psk are known to work with Lenny and a previous wireless device.The device is recognized (lsusb) and the driver is confirmed to be in the kernel (lsmod). Here is the iwconfig output:
wlan0 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off
After typing: ifconfig wlan0 192.168.1.144 up I can ping that address, but it is not working. I have just done a fresh install of Sid so that I could get the 2.6.35 kernel which contains the ath9k_htc driver for the USB wireless device that I am using. The firmware is ar9271.fw but my source of that is questionable because it does not seem readily available. I am temporarily using a PCMCIA wired connection which is what I am using to connect to the computer via telnet. (This is just for convenience so as to avoid getting up all the time.) Here is the ifconfig output:
I am moving over to debian from ubuntu, and the latest install is to an acer aspire one netbook, the wireless card seems to be working and I can see available networks and even connect to mine (with WPA encryption) via the gnome network manager, however opening a browser or pinging both local and external machines all fail. its as if the OS does not not know to use the card. The wired works fine.
If memory serves the card is identified by lspci as Atheros AR5007.
There is no reference to wlan0 in etc/network/interfaces.
I do not have that system on now and have to leave for work, but I can post any further info from conf files etc as required when i get home tonight... Just thought I'd post a quick description in case I'm missing something obvious...
About an hour ago i did an update on my Debian Squeeze. After the update was completed my LAN connection stopped working.. now i have to connect my computer to my router with a usb cable instead with my ethernet cable.. also, on the network connection, on the wired network section it says that the device(ethernet) has not been managed..
I'm running Debian sid and currently have xfce 4.8.0 installed. I have the thunar-volman package and it is configured to automount everything (cdrom & usb). I have hal, udev, gamin and autofs installed as well.For some reason though, automount just isn't working. It's starting to annoy me.I can mount the devices manually.I looked around already but most posts just advise you to install hal or something.
my debian laptop this morning ,saw that the update manager had updates..97 of them??? then when tried to view them the package manager freezes and becomes unresponsive. needed to do a few things and found my root password is NOT working. this all happened at the same time, i wonder if its related? have i been hacked? is this something new? cant reset root password (tried two methodeds with no luck) and cant view the updates altho i question 97 new updates are needed.
Im running the latest Debian version, 6.0 on my Dell Mini 9.Webcam and sound work, but microphone is a no-go.In Alsamixer (1.0.23), I have Capture, Digital, and Mic settings all the way up. There are no options for adjusting "Front" mic settings. (May have been for older alsamixer versions?)In Sound Recorder, playback has loud noise/feedback? I'm not sure how to interpret the above, but I am just trying to offer as much relevant background information as I can.I've been scouring forums for the answer, but to no avail. Most questions/answers are from 2008, and couldn't find a solution. I'm not very handy with the Linux machine, but love to learn / am learning.
System is a Dell E7440, with Jessie, I recently upgraded to kernel 4.2.5 due to issues with wireless that are supposed to be fixed. (The same issue exists with jessie stock kernel 3.16 and BPO tough)
When I close the lid it often does not work and I get this in dmesg
Code: Select all[Â 567.104335] pci_bus 0000:01: Allocating resources [Â 567.104349] pci_bus 0000:02: Allocating resources [Â 567.104415] pci_bus 0000:03: Allocating resources [Â 567.104428] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment [Â 567.105515] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment [Â 567.105540] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment [Â 567.105585] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[Code] ....
I suppose the i915 stuff is something I can ignore, However
Code: Select all[Â 570.768020] acpi device:40: Cannot transition to power state D3hot for parent in (unknown)
seems to be the issue.. I don't even know what device:40 is.
The awkward thing is tough, software suspend by running "systemctl suspend" works perfectly and always.
Code: Select all [ 872.054627] PM: Syncing filesystems ... done. [ 872.091506] PM: Preparing system for sleep (mem) [ 872.092045] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 872.093377] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 872.094563] PM: Suspending system (mem) [ 872.094595] Suspending console(s) (use no_console_suspend to debug)
[Code] ....
So despite the mysterious issue with acpi device 40, how is real lid close different from "systemctl suspend"? And can I simply workaround the issue by making such a suspend when the lid closes?
atheros-firmware and firmware-realtek are installed from repo.
ifconfig does not show the network devices:
ifconfig -a does show them, i ran the commands ifconfig eth1 up and ifconfig wlan1 up, which resulted in them showing when typing ifconfig, however both still are not working.
(ifconfig)Also eth1 is only showing an inet6 address not an inet/ipv4 address and wlan1 doesn't show any.
Checked the bios and noticed that network devices were enabled so i don't think its my bios.
Also ran a SystemRescueCd which i got from here: [URL] .... With this live cd, the networking was working.