SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Re: Help & Support (Testing/Unstable) » SSHFS/FTP LAN transfer finishes, drops internet not LAN? » 2014-12-07 02:22:45

I found this thread:

http://www.linksysinfo.org/index.php?th … nect.2371/

And based on that, I decided to try just using one (my non-linksys) router.  And that seemed to work okay... but any time that I have any of my others in as a bridge, it craps out.  They're two different models of Linksys routers, and I didn't have this problem until relatively recently.  (And for that matter, one of them actually has DD-WRT installed.)

Soooooooooooooo...sort of back where I started?  I don't want to keep just buying routers and hoping if there's a setting or configuration that I'm missing somewhere.

#2 Re: Help & Support (Testing/Unstable) » SSHFS/FTP LAN transfer finishes, drops internet not LAN? » 2014-12-07 00:06:39

I just tried with a huge FTP transfer, and the same pattern of behavior occurred.  So I'm not sure WHERE to look... the logfiles I know to look at show *nothing* until I manually disconnect and reconnect.  Any advice would be appreciated.

#3 Help & Support (Testing/Unstable) » SSHFS/FTP LAN transfer finishes, drops internet not LAN? » 2014-12-06 00:15:48

uriel1998
Replies: 2

Yeah, it makes no sense to me either.

So here's the deal:  As far as I can tell, it's a well-configured SSH tunnel between two computers on my LAN.  I can SSH just fine, I can even use SSHFS (full command I use coming up) to browse, modify, edit the file system just fine.

Except.

Whenever I copy a "large" amount of data - over about 10 MB of data - it will gladly complete the transfer, and then the *source* computer can no longer resolve host names, ping google, nothing.  But I can still, without difficulty, talk to the rest of the LAN.  Disconnecting and reconnecting the network makes everything right again. 

NOTE:  This only happens over LAN transfers, at LAN transfer speeds.  I can max out my internet bandwidth like nobody's business, but more than that and it crunches.

It happens no matter which of the three other computers on the LAN I SSHFS into.  It does *not* seem to happen no matter how long I SSH, but *does* happen if I use SFTP with Filezilla.

I use WICD for my network management, and I'm not seeing ANYTHING in my wicd.log, messages.log, syslog.  As in NOTHING.  No strange messages at all (except the multicast being filtered by UFW).

Here's what I need:

*  Anyone experience this before or know what I'm screwing up?  That'd be fab.  smile
*  Failing that, I'm sure I'm not looking in the right place for a clue as to what's going on.  What other logs should I be looking at so I (or y'all) could help me figure out what's what?

This are two variants of the commands I used for mounting them; both have the same issue.  (I originally didn't have server alive and such in there.)

mkdir /media/wallaby;sshfs -o ServerAliveInterval=15 -o reconnect -o idmap=user steven@192.168.1.102:/Users/user/ /media/wallaby

mkdir /media/wombat;sshfs -o ServerAliveCountMax=3 -o ServerAliveInterval=15 -o reconnect -C -o workaround=all -o idmap=user steven@192.168.1.104:/home/steven/ /media/wombat

#4 Re: Tips, Tricks & Scripts » VNC Server (vino) on #! » 2014-11-24 23:07:32

If you have problems (which I do on one system I just installed and upgraded to Jessie) and don't have the time/energy to debug right away, x11vnc (in the repos) works well too.

#5 Re: Introductions » Cincinnati noob » 2014-11-24 23:04:02

Agreed (Daytonian here);  play with settings and see what happens, check out other people's scripts and tweaks and see what works for you and what doesn't.

#6 Re: Tips, Tricks & Scripts » Securing #! for use on Public Wifi - what do you do? » 2014-11-16 18:12:56

jameskgowan wrote:

Thank you for your response @uriel1998

If you are just browsing the web on a LAN and set the permission below will you need to allow any incoming at all?

sudo ufw default reject incoming

AFAIK, that should protect you from other people snooping on your system, yes. 

That said, you'll also probably want a browser extension like HTTPS everywhere, and adding the VPN component is something necessary if you're logging into anything with a password.  IIRC, those two steps will help with snooping on your web traffic.

I say this as someone who forgot once and had my web server hacked as a result...

#7 Re: Tips, Tricks & Scripts » Securing #! for use on Public Wifi - what do you do? » 2014-11-16 17:21:34

The other thing I do is use a VPN (I use blackVPN) and DNScrypt whenever I'm out and about.

#8 Re: Tips, Tricks & Scripts » Securing #! for use on Public Wifi - what do you do? » 2014-11-16 17:18:04

jameskgowan wrote:

@Alad @Head_on_a_Stick

Are there any options in the configuration somewhere for disabling network discovery or file sharing of your #! machine similar to in Windows or OS X?

Yes - block bonjour, samba, SFTP, FTP, etc.

Bonjour uses ports 5297, 5298, and 5353
Samba uses 137-139, and 445
SFTP uses 24

Using a setup like mine (see above post or https://github.com/uriel1998/ufw-iptables-archer), the last line is:

sudo ufw default reject incoming

So unless you explicitly allow it, it will be denied within the LAN.

#9 Re: Tips, Tricks & Scripts » Securing #! for use on Public Wifi - what do you do? » 2014-11-16 17:13:12

There's a couple of things you can do to make using UFW/iptables a heck of a lot easier.

First, in /etc/ufw/applications.d/  you'll find that there should be some (or COULD be some) nice presets for applications.  The files should have in them something like this:

[Dovecot_POP3]
title=Secure mail server (POP3)
description=Dovecot is a mail server whose major goals are security and extreme
 reliability.
ports=110/tcp

[Dovecot_POP3S]
title=Secure mail server (POP3S)
description=Dovecot is a mail server whose major goals are security and extreme
 reliability.
ports=995/tcp

[Dovecot_IMAP]
title=Secure mail server (IMAP)
description=Dovecot is a mail server whose major goals are security and extreme
 reliability.
ports=143/tcp

[Dovecot_IMAPS]
title=Secure mail server (IMAPS)
description=Dovecot is a mail server whose major goals are security and extreme
 reliability.
ports=993/tcp

From there, you can call a script to invoke (and disable) the UFW/iptables rules as you like.

Here's a very simplified example:

#!/bin/bash

##########################################################
# Because otherwise this is a pain
##########################################################

echo "Did you run this script with sudo privileges? If not, Ctrl-C."
echo "Otherwise, press any key to continue."
read

sudo ufw disable

##########################################################
# To reset
##########################################################
echo y | sudo ufw reset

# To delete a rule, add the word delete after ufw, which means you can
# script dynamic rule changing fairly easily.

##########################################################
# Internet Exposed Apps
##########################################################
sudo ufw allow Crashplan
sudo ufw allow Deluge
#sudo ufw allow Icecast
sudo ufw allow BTSync


##########################################################
# LAN System Apps
##########################################################
# FTP - it's a service, so no app profile
sudo ufw allow proto tcp from 192.168.1.0/24 to any port 20
sudo ufw allow proto tcp from 192.168.1.0/24 to any port 21
# WakeOnLan
sudo ufw allow from 192.168.1.0/24 to any port 9
sudo ufw allow from 192.168.1.0/24 to any app CUPS


##########################################################
# And close up everything else
# This is last because UFW evaluates from top to bottom.  ALWAYS.
# So if you put these first (as some guides have you do) or worse,
# put "deny in to any" as your first rule, then you're borked.
# Putting your DEFAULTS like this, though, means they're evaluated last,
# which is our desired behavior - and lets us add rules later easily.
##########################################################
sudo ufw default reject incoming
sudo ufw default allow outgoing

sudo ufw enable

You can see a more detailed example (and get more of my preconfigured rulesets) at Github: https://github.com/uriel1998/ufw-iptables-archer

#10 Re: Help & Support (Crunchbang 11 "Waldorf") » How to get display notifications by cronjob? » 2014-11-15 00:02:32

johnraff wrote:

When commands in a menu or something like cron get tangled up it sometimes makes things easier to put everything in a script and call the script from cron instead.
---otoh---
In the past I had problems running a gnome-logout from 'at' (a relative of cron) because at was running by itself without my X-cookie (or whatever it was) so X-related things didn't work properly. I don't know if the xmessage issue might be similar?

Also, remember that anything that cron runs is not running as your default environment, so you'll need to explicitly tell it what display to use.  You will probably need to define in the script called by cron which display to use.  For example:

Simply adding the DISPLAY string might work:

DISPLAY=:0	sudo fstrim / -v >> /home/wonko/trim.log && date >> /home/wonko/trim.log && xmessage -center fstrim erledigt

But you might have to do it from within a script, like this:

#!/bin/bash

#Changing this process to idle io priority
#https://friedcpu.wordpress.com/2007/07/17/why-arent-you-using-ionice-yet/
ionice -c3 -p$$

DISPLAY=:0
sudo fstrim / -v >> /home/wonko/trim.log && date >> /home/wonko/trim.log && xmessage -center fstrim erledigt

#11 Re: Help & Support (Crunchbang 11 "Waldorf") » [SOLVED] Search for duplicate images » 2014-11-14 23:52:48

FWIW, I find that Visipics works just fine under Wine, and does the job... and is at least free, if not FOSS.  I was using this tool back when I ran Windows, so I can vouch for the effectiveness of the tool.

#12 Re: WM/DE Talk » the ultimate pipe menu thread » 2014-11-14 23:38:31

I made an OB pipe menu helper for surfraw - it both lists all elvii and also lets you have a preselected (smaller) variety to choose from when you want it.  I started with cloverskull's PlayOnLinux script as a base, but it got a bit more complex.

I've posted the code below;  there's more explanation (and linkage) at the github repository.

Here's what the pipemenu looks like in action:
elvi_list.jpg
selected_elvi.jpg

#!/bin/bash

########################################################################
# Credits, blame, etc
########################################################################
#	searchraw - a surfraw launcher for openbox

#   Base from openbox_playonlinux_pipemenu by Ryan Fantus
#	https://github.com/ryanfantus/openbox_playonlinux_pipemenu

#	Helpful solutions
#   http://stackoverflow.com/questions/5998066/bash-script-variable-content-as-a-command-to-run
#   http://www.cyberciti.biz/faq/awk-find-and-replace-fields-values/
# 	


########################################################################
# Usage
########################################################################

# Call this script by itself to generate an openbox menu with all elvi
# that are on the system and to search them with a popup text box.
# Call with -d to pop up (optional) few elvi to use, or to use the 
# default, and search with a popup text box.  
# Call with -d and an elvi to pop up a text box to search.

########################################################################
# Requires
########################################################################

# * Surfraw - http://surfraw.alioth.debian.org
# * Openbox (Sort of.  This is way overblown if you're not using OB.)
# * zenity or a replacement like matedialog or wenity.

########################################################################
# Configuration
########################################################################

# Default elvii.  SPECIFY ONE HERE
default_elvii="google"

# Do you want a popup if no elvii are specified?
popup="TRUE"

# What elvii should be presented in the Zenity combobox?  These should
# be in a single line, space separated.
# DO NOT INCLUDE THE DEFAULT ELVII HERE unless you want repeats
custom_elvii="scholar stack github wayback wikipedia"

########################################################################
# Generate list of elvii for OB
########################################################################

function generate_elvi_menu {

sr -elvi | while read; do
		elvi_cmd=$(echo "${REPLY}" | awk '{print $1}')
		# The long description chokes my install of OB
		elvi_dsc=$(echo "${REPLY}" | awk '{print $1}')
		echo -n '<item label="'"$elvi_dsc"'">'
		echo -n '<action name="Execute"><execute>'
		echo -n "$0 -d $elvi_cmd"
		echo '</execute></action>'
		echo '</item>'
	done

}

########################################################################
# Write the Menu				
########################################################################
function write_ob_menu {

echo '<openbox_pipe_menu>'
generate_elvi_menu
echo '</openbox_pipe_menu>'

}

# Are we being launched directly?
if [ "$1" == "-d" ]; then
	# When being launched directly, what elvii should be presented/used?
	if [ "$2" == "" ]; then 
		if [ "$popup" == "TRUE" ]; then
			buildinglist=" $default_elvii $custom_elvii"
			elvii_list=$(echo "$buildinglist" | awk '{ gsub(" "," FALSE "); print }')
			choicecmdline="zenity --timeout 30 --list  --text 'Elvi to use?' --radiolist  --column 'Pick' --column 'Elvi' $elvii_list"
			echo "$choicecmdline"
			read
			elvi=$(eval "$choicecmdline")
#			elvi=$(zenity --timeout 30 --list  --text "Elvi to use?" --radiolist  --column "Pick" --column "Elvi" TRUE google FALSE scholar FALSE stack FALSE github FALSE wayback FALSE wikipedia)
		else
			elvi="$default_elvii"
		fi	
	else
		elvi="$2"
	fi

	szAnswer=$(zenity --entry --title "search" --text "Search what?" --entry-text "") 
	if [ "$szAnswer" != "" ]; then
		sr_command="sr -g $elvi $szAnswer"
		eval "$sr_command"
	fi
else
	write_ob_menu
fi

#13 Re: Help & Support (Testing/Unstable) » Tint2 wlan icon and battery icon issue » 2014-11-02 04:02:27

Perhaps another important question:  Is this something built into tint (IIRC battery is, but not network) or are these other programs with statusbar icons?  The solution if you're using network-manager vs. WICD is going to be a bit different.

#14 Re: Artwork & Screenshots » xterm customize icon » 2014-10-10 00:08:11

Here's how you do it:

1.  Alias xterm to

xterm -e "xicons.sh;bash"

Save the script below into your $PATH somewhere (and change MYUSERNAME appropriately and make it executable):

#!/bin/bash

# icon from http://www.iconfinder.com/icondetails/17547/48/prompt_terminal_icon
# xseticon from http://www.leonerd.org.uk/code/xseticon/
# Solutions from
# http://superuser.com/questions/363614/leave-xterm-open-after-task-is-complete
# http://unix.stackexchange.com/questions/3197/how-to-identify-which-xterm-a-shell-or-process-is-running-in
# http://unix.stackexchange.com/questions/16774/how-to-assign-an-icon-to-a-program-in-openbox

running=$(ps aux | grep "xterm" | grep -v "grep" | grep -c "xterm")

if [ "$running" -gt "7" ];then
	running=0
fi

snark=$(echo $WINDOWID)
xseticon -id $snark /home/MYUSERNAME/.icons/terms/terminal_prompt$running.png
wmctrl -i -r "$snark" -T "xterm" 

And get the icons from here:
http://imgur.com/a/5Q9dn#0  Note that the filenames should be terminal_prompt0.png, terminal_prompt1.png, and so on.

Result:
XTerm Icons

#15 Re: Help & Support (Crunchbang 11 "Waldorf") » chrunchbang Waldorf + Wine for Windows 98 games for the kids » 2014-10-05 16:08:51

Don't forget helper apps like DosBoxGameLauncher and PlayOnLinux, as well as the WineApps Database.

Wine's come a long way just in the few years I've been in the linux world; many programs work pretty well, especially older ones.  I recommend PlayOnLinux simply because that way you can tweak with one program/game without impacting any of the other ones.  I currently have a separate setup for Office, Tweetdeck, Steam (for Win-only Steam games), and many others.  And if I jack up one of them bad enough that I have to redo it from scratch, the rest of my setups are unaffected.

#16 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved] Cracking noise from speakers » 2014-09-15 22:31:02

qrp wrote:

Hello
I have a bit of a problem, sound is ok, but when i go for poweroff or reboot, i hear clear cracking noise from speakers.
Removed pulse audio, but problem is persistant pulse or alsa cracking is there.

Like a single pop?  Not associated with playing a shutdown sound?

Yeah, I get it too - but have on multiple OSes and multiple PCs, so I figured it was just the sound drivers shutting down.

#17 Re: Help & Support (Testing/Unstable) » [SOLVED] "Not authorized to preform operation." » 2014-09-14 20:01:47

I just had this problem, and was running down the same path.... and just fixed it with something I hadn't seen yet.  I changed the udisks policy rules (changing allow_auth to any as above), but it wasn't working.  Then in /etc/polkit-1/localauthority/50-local.d/10-udisks.pkla I changed

ResultAny=no

to

ResultAny=yes

so it now reads:

[Local Users]
Identity=unix-group:*
Action=org.freedesktop.udisks.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

and my mounting script works again.  smile

#18 Re: Tips, Tricks & Scripts » simpler rotating wallpapers script » 2014-09-13 01:06:32

Does it cause your monitor to flicker when changing wallpapers?

#19 Re: Off Topic / General Chat » Automate the back-up system: What do you use? » 2014-09-01 12:02:20

I use a combination of Crashplan for offsite backups and rdiff-backup for backing up to a local (but external) HDD, mostly because my home server's HDD is an older one.

I had a small problem with Crashplan's GUI at one point, but easily fixed.  My fix and tips are at http://ideatrash.net/2013/12/problems-l … ui-in.html

#20 Re: Introductions » I am a novel writer. I use CrunchBang. I say, "Hello." » 2014-08-10 17:22:08

I've successfully used Scrivener's linux build for complex projects; though I tend to write short stories in Focuswriter.

#21 Re: Help & Support (Crunchbang 11 "Waldorf") » webpages not opening » 2014-07-20 16:31:24

Dave6 wrote:

I've been struggling with similar over the past few days.

elinks craps out too, so it's not browser based.

I can't even get onto my router's settings, even though my wifi connection is ok.

It comes and goes, usually when I'm in the middle of something.... grr...

Fair enough.  So we move to the next series of questions (and yes, this crap is why I hate messing with ANYTHING in my networking setup). 

1.  Network manager or WICD?  (if you don't know, probably network-manager.)
2.  If it happens wirelessly, does it happen while wired (or vice versa)?
3.  Does it happen with different access points/networks/LAN cables?

Dave6 wrote:

I can't even get onto my router's settings, even though my wifi connection is ok.

This is problematic, though.  Can you ping your router?  (Many disable pings from the internet, not from the LAN.)   What does

sudo cat /etc/resolv.conf

look like?

#22 Re: Help & Support (Crunchbang 11 "Waldorf") » Capture video from TTYs » 2014-07-20 16:21:06

I would recommend taking a look at K. Mandala's recommendations;  he's got a lot more experience than I.

#23 Re: Help & Support (Crunchbang 11 "Waldorf") » webpages not opening » 2014-07-19 23:34:38

raulh wrote:

Hi I have had crunchbang (wheezy) for a long time now.

i recently noticed that the internet connection is not working normally.

only crunchbang pages open perfectly well and the others doesnt open most times. so i go to the other webites via crunchbang start page. when i open other pages "connecting.." status goes on and on at the bottom right of the browser and thats it. no "waiting for.." or "transferring..". and no website.


Help?

First things first - test with other browsers, ping, and/or wget/curl.

Rationale:  I had the damnest time connecting to the wifi hotspot at my workplace until I realized that the HTTPS-everywhere addon I had with Iceweasel was breaking the (badly setup) logon.  Now I keep midori around just to force the HTTP connection to wombat.com (no reason, just because) and let me click the "I agree" button.

Lightest way to do so:

sudo apt-get install elinks
elinks www.google.com

If everything pops up, then it's something in the browser.

#24 Re: Help & Support (Crunchbang 11 "Waldorf") » Removing Programs Without Package Manager » 2014-07-17 12:30:17

To expand on the prior explanation:

wildleaf wrote:

I downloaded the .iso for a game called Heroes of Might and Magic 3, and installed the game. The files are in /usr/local/games and there's a binary file in /usr/local/bin and there's also a .iso in /tmp.

So, I want to remove everything associated with HoMM 3, but I don't know how. I didn't use a package manager to install it, and when I use the command dpkg -r /usr/local/games/heroes3 it returns: Ignoring request to remove heroes 3 which isn't installed.

dpkg is part of the package manager system (apt-get, synaptic, gdebi), so as already noted, it can't know what was installed.  (This is why I use checkinstall when building from source.)

As a quick note - I'm assuming you have the Loki engine.  (The wayback machine is your friend.)

wildleaf wrote:

Apparently the game isn't installed, but if I run heroes3 in terminal it will launch the game (can anyone explain this?).

Aside from the package manager not recognizing it, the executable file is still in your PATH.  Although you already found it, the command to find which executable will run (if there's more than one copy, for example) type

which heroes3

The only other thing that might be hiding out are icons and a .desktop file.  The latter would be in one of these three places:

~/.local/share/applications
/usr/share/applications
/usr/local/share/applications

I wouldn't bother trying to hunt down the icon (and that's presuming that it installed one).

wildleaf wrote:

Is there an easy way to remove this program and all associated files without slogging through the file system manually?

You're in luck;  Loki IIRC did a pretty good job of writing it so that the install didn't leave files all over the place.  You should be able to just delete the files you found.

#25 Re: Help & Support (Crunchbang 11 "Waldorf") » Printing status indicator » 2014-07-17 12:12:34

I'm interested in this...because I'd like to make it stop...

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo