Debian Configuration :: Stop A Chosen App From Accessing The Internet?
May 20, 2010how do i stop a chosen app from accessing the internet ??
View 8 Replieshow do i stop a chosen app from accessing the internet ??
View 8 RepliesI have installed debian on my laptop and included during the installation the webserver version. Now I want to develop a page locally to test it before I put it on the web. I first had an old reflex, jumping straight away and installing xampp. But then I thought that I already all that it takes as I installed the webserver feature of debian. I installed phpmyadmin ( with the command #apt-get install phpmyadmin) as to be able to create and attribute databases but when I try to log in I have the following message:
"Error
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)"
I googled but I cannot find the mysql.conf (I searched using "find") but with no result. It is all very blury what is going on with this webserver option running on my laptop...
I currently have a Samba share on a Debian 7 system. This share was only ever used by Windows systems on the network.
I just finished setting up a Debian 8 system with Xfce, and now I would like to connect to the share. I already installed gvfs-backends and gvfs-bin. When I go to Thunar file manager, and click browse network, I'm presented with a "Windows Network" shortcut. When clicked it says: Failed to open "Windows Network". Failed to retrieve share list from server: No such file or directory.
When I boot up, or come out of standby, etc, it takes about a minute for my Windows shares on Win 7 to show up under Network. Is there anything I can try that will make this initial connection faster? Either on Debian or the Win7 machine? I have the latest Debian vanilla. This is over wifi. My other devices list the shares right away.
View 1 Replies View RelatedI have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.
View 14 Replies View RelatedI have same problem described here:
http://www.thinkwiki.org/wiki/Problem_w ... e_clicking
The command: #hdparm -B 254 /dev/hda -- works
Now, I should create:
an executable file named 00DISK in /etc/pm/sleep.d with the following content
I've bought a new notebook. The hard drive won't stop spinning down and then spinning up again during load. I don't want HD power saving, so I disabled it within
1. /etc/hdparm.conf
Code: Select all# -B apm setting
apm = 255
# -B apm setting when on battery
apm_battery = 255
It didn't work. I can still hear the HD spin up. It's annoying in a video game because things just suddenly stop for a second.
2. /etc/udev/rules.d/50-hdparm.rules
Code: Select allACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN+="/usr/bin/hdparm -B 255 -S 0 /dev/sda"
This was also every tip I could find during RTFM.
Other specs:
Acer Aspire E5-521G-88A8 Notebook
AMD A8-6410 APU
4 GB RAM
AMD Radeon R5 2 GB VRAM
hdparm model number: ST1000LM024 HN-M101MBB
Debian Jessie
I have Squeeze with Gnome.How is the best to stop all kind of usb drive automounting under Gnome?
View 2 Replies View RelatedI upgraded a wheezy box in qemu to jessie (without systemd!) and now I didn't get an output from the console to a hostterminal using curses.System and grub starts with terminal output, but after around 6 to 8 lines of output the terminal gets black. As far as I found out it seems that the init process switches to graphical output. I tried out all found kernel options from nomodeset up to nofb,Are their other options to stop switching to framebuffer and graphical mode.
View 0 Replies View Relatedhow do i stop eth0 from starting up when i boot/login ??
View 4 Replies View RelatedI've been looking for help on the #debian irc chan, this was my problem:when I startx, my two screens stop receiving any signal.I was using the vesa driver, so the guy told me to use radeonhd driver instead (I have a radeonhd graphic card)when using radeonhd driver, it tells me that no screen or monitor is found then he told me that I should install fglrx and that he couldn't help me for this
View 14 Replies View RelatedAfter install debian 8, I can't see system start and stop message from console ... How can I enable system message from console in debain 8?
debian 7 output
----------------------------------------------
root@demo:~# service apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
root@demo:~#
debian 8 output
-----------------------------------------------
root@demo:~# service apache2 restart
root@demo:~# <=============================== No message (start or stop)
I have Debian Squeeze AMD64 bit release. It finds my wired ethernet connection and ues itfine, although nothing shows up in the top right corner under the networking icon.
When I plug my mobile phone in (HTC S620) it always uses this as the main internet connection and then even if disconnected wont use my wired connection until I reboot.
Is there a way to stop it doing this or at least have my wired connction as an option so I can just click to reconnect to my ethernet connection?
I've got a server listening on a port. when I stop the server the port stays open for some minutes. How can I close it immediately?
View 2 Replies View RelatedI am using debian squeeze server with asterisk 1.6 installed and configured.my problem is non root users need to access the server using ssh and restart asterisk server after making changes in asterisk configuration files.As of now i am giving root username/password for this process (i know it is not at all a good idea) .now how can i create a username and configure it which can only access and modify asterisk configuration files and restart asterisk server without any other privileges.
View 1 Replies View RelatedI have usb DVD writer tsstcorp writemaster samsung se-S224. lsusb becomes clean after I plug it in any usb hole. tail -f /var/log/messages
[Code]....
I am the author of an internet radio for the Raspberry PI originally running on Debian Wheezy. The radio (radiod) service is started and stopped using the usual service commands:
service radiod start|stop|status
Since upgrading to Debian Jessie the service status and stop routines in my radio daemon are no longer called.
For example:
# service radiod status
● radiod.service - LSB: Raspberry PI Radio Daemon
Loaded: loaded (/etc/init.d/radiod)
Active: active (running) since Thu 2016-03-31 20:17:07 CEST; 15h ago
Process: 380 ExecStart=/etc/init.d/radiod start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/radiod.service
└─603 python /usr/share/radio/ada_radio.py start
If I call my program (which runs as a daemon) I see the status message from my program
# ./radiod.py status
radiod running pid 603
I have established that service stop never calls my program routines to shutdown the radiod daemon when the system is rebooted (I see that from my log files).
The reboot hangs for about 5 minutes whilst stopping the radiod service (because stop never calls my stop routines).
Below is my radiod script, which is fairly conventional, and which has been working all the time until I ported to Debian Jessie.
/etc/init.d/radiod
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: radiod
# Should-Start:
# Should-Stop:
[Code] ....
I'm using debian 5 x64 with xfce.Is there a way to configure (start/stop/restart) services (especially Apache2, mySQL and PHP) using a graphical or cli tool? I tried to use sysv-rc, sysv-rc-conf, rcconf and rc-conf in the terminal but Bash didn't find them (Although Synaptic show that sysv-rc is installed).
View 9 Replies View Relatedsuddenly it stop detecting a memorystick being plugged in. I connect but nothing happens. At this time i can plug in any memorystick and it want detect it. Then i need to reboot to get it to work and then after avail it stop working again. I also have problems with unmounting (Safely remove device) in the GUI-tool. It works in terminal with "umount". In Dolphin i get error about problem accessing HAL or something like that. This problem is resisting even after reboot. Is there a bug?
View 1 Replies View RelatedIf I enable Wi-Fi on my laptop and use a public Wi-Fi hotspot at an airport, will a firewall such as UFW be enough to stop hackers accessing my personal files which are NOT transmitted over the Wi-Fi connection?
View 9 Replies View RelatedI am trying to connect my desktop to my laptop over a non-internet connected LAN, but when i enable the LAN connection on my desktop (the one with the wireless) its internet stops working.
it is a very similar problem to this except that i am using ubuntu for the machine with the two connections.
right now i have my wireless on the 192.168.1.* address space, while the LAN is to be on 192.168.5.*
note: my goal is not to share internet with my laptop, just be able to connect to it and the internet at the same time.
desktop: ubuntu 9.10 , wireless and LAN
laptop: windows xp, LAN only
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
[code]...
I have been using another OS but thought for Ham Radio Debian might be good however my stupidity took over right at the start.Have a live cd and works fine but I don't know how to connect to the Internet.Using DSL.
View 9 Replies View RelatedI've installed debian and configured the network: I do ping to the gateway and it connects, I ping one distant server directly with the IP and it can see it (but not with ping [URL]), but when I try to use internet it says that maybe the url is wrong, but it is not.
And when I try to update (apt-get update) it give me a bunch of errors :
W: Failed to fetch http://ftp.es.debian.org/debian/dists/s ... elease.gpg Could not resolve 'ftp.es.debian.org'
W: Failed to fetch http://ftp.es.debian.org/debian/dists/s ... ion-en.bz2 Could not resolve 'ftp.es.debian.org'
[Code].....
I need to shear internet i use isc-dhcp-serve and it work but internet doesn't work i have triad so many commends but still networking ... My setting is eth0 - wan eth1 -local
iface eth1 inet static
address 192.168.42.6
netmask 255.255.255.0
dhcp
authoritative;
subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
After doing updates to get current with Debian Jessie, I've noticed very annoying network problems going on.
This all happened while also setting up a media server box which led me to much confusion, much of what is described here [URL] ....
I've started this new thread to try to diagnose and properly take care of this specific problem alone:
Browsing the internet becomes very slow, unbearably to the point everything keeps loading up forever. This only happen while having a torrent application opened, the effects are almost immediate, closing the application and browsing resumes as normal.
How about throttling back torrent? This does not work, it even doesn't even need be at top speed. With bare minimum connections and speed will still lead browsing to a crawl.
Even so, every other device on the network is un-affected, router and other PCs continue to browse and respond very well, making it a specific on the computer in question (but also happens on my other debian jessie machine).
Can I even reach the internet? Yes I can, and this is the weird part... I can ping, solve DNS and almost everything else without issues, the only thing affected is actually browsing the internet.
I'd even setup DNS cache with dnsmasq to see if it could speed things up. Disabled ipv6, and trying pretty much every method I could find.
Having pretty much ruled out dns problems and internet connectivity, I'm at a loss for what to look for and try. Only symptom I can describe now is that the browser will start to load up webpage but never completes... but only while torrent is active.
My current setup:
I'm on Debian Jessie, a desktop with eth manually connected. Using dnsmasq for dns caching. Disable ipv6 on the network (by the way, it keeps disabling it self I dunno why).
Running KDE with ktorrent as the client. The same thing happens on my setup media box, also Debian but with deluged running instead.
Browser in question are Firefox and Chrome, both have issues with this.
Turns out it was just a setting in my own router, that apparently limits numbers of connections made, meaning while torrent is working other connections were sure dead.
But it also happens when lots of connections are being made in other ways too. The router in question is Humax HG100R-L2, provided by my ISP. The setting is in the firewall section called IP flood detection.
I rebooted my vServer (Debian 8) and it doesn't came back up. Well, I used the rescue console on my server and the server seems to be running fine, except the network was broken. So I tried 'ifconfig' but nothing came up. So I tried to enable my interface with 'ifconfig venet0 up', and now it appears in my ifconfig list
Code: Select allroot@i67svof:/var/www# ifconfig
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:557 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36463 (35.6 KiB) TX bytes:0 (0.0 B)
My HWaddr doesn't look that well :) 'ip addr' prints this result:
Code: Select allroot@i67svof:/var/www# ip addr
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
These are the last lines in /var/log/syslog:
Code: Select allroot@i67svof:/var/www# tail /var/log/syslog
Feb 20 11:34:16 i67svof systemd[1]: Stopping memcached daemon...
Feb 20 11:34:16 i67svof systemd[1]: Stopping Network Name Resolution...
Feb 20 11:34:16 i67svof systemd[1]: Stopping Regular background program processing daemon...
Feb 20 11:34:16 i67svof systemd[1]: Stopping Login Prompts.
[Code] .....
And finally my network config in /etc/network/interfaces
Code: Select all# Auto generated lo interface
auto lo
iface lo inet loopback
# Auto generated venet0 interface
auto venet0
[Code] .....
I'm a new Debian user but I've been around Linux for awhile. I wanted to try Debian because I wanted something stable and that I could set up myself from a minimal install. However, I'm having issues with my WiFi connection. I'm running KDE and connected to the network, but I can't access any webpages or ping, for example, google.com. I know the network is working because I'm connected to it on my phone and my wife's Macbook. Here's the output of lspci:
Code: Select all00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
[Code] ....
Here's the output of lsusb:
Code: Select allBus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 05ca:18ff Ricoh Co., Ltd
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[Code] ....
I'm using jessie. So far I've tried using firmware-iwlwifi from backports and installing kernel 4.3.0 from the stable repos.
I set up a vpnc connection, and it says it connects fine, but then I have no internet connection at all, and cannot ssh into the remote server(the reason i need this vpn) or do anything else involving the internet.I question if it actually connects at all, as sudo vpnc myconf.conf only shows the connect banner and never progresses from there.
View 4 Replies View RelatedI installed Debian Squeeze on my system two days ago, using a wired connection to internet (which worked fine). After that, I had to install the non-free wireless package in order to scan wireless networks. It now works fine, and I can connect and get to internet. But with wired connection, i connect via eth0 and none of my applications work. And they're not in offline mode.Also, i already went here: URL,,, and I checked if that was my case. I tryed what they say several times in some different ways, but I still can't connect. Even more, if I change something like they say, I get "unmanaged device" and I can't even connect to the internet. And the wired connection works, I'm using it right now on my ubuntu 10.10.
If you want more information, I just tried to ping sites like google.com or ......com using network preferences and it does work, it gets 100% of the packages back around 50ms later, so the internet appears to work. Also, when I connect via wireless, everything works perfectly.