Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2015 16:01:25 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Installing Sublime Text3 on FreeBSD-10.1-i386
Message-ID:  <alpine.BSF.2.11.1501211556010.1375@mail.fig.ol.no>
In-Reply-To: <BLU436-SMTP186EFD94865086EB2AB538AF64B0@phx.gbl>
References:  <mailman.60.1421409601.72162.freebsd-questions@freebsd.org> <BLU436-SMTP220A1C5AFBDA897CC34F219F64F0@phx.gbl> <alpine.BSF.2.11.1501161358150.1375@mail.fig.ol.no> <BLU436-SMTP241E8B0E36F939AF55134ACF64A0@phx.gbl> <BLU437-SMTP67483E5139C4CE03ED2381F64A0@phx.gbl> <alpine.BSF.2.11.1501200854410.1375@mail.fig.ol.no> <BLU436-SMTP186EFD94865086EB2AB538AF64B0@phx.gbl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 21 Jan 2015 01:49+0530, Manish Jain wrote:

> 
> > If it exits without telling you what's wrong, the check the log files
> > to see if it has written anything there. If sublime still hold its
> > tongue, then this is an example of bad programming.
> > 
> > Running "truss `which sublime`" might give you a hint of what's going
> > on.
> > 
> > Personally, I prefer builing my own ports, but that's an entirely
> > different discussion.
> 
> 
> Hi Trond,
> 
> Things not looking good. sublime exits immediately, with no message in
> /var/log/messages or dmesg.today
> 
> Running it under truss gives the following :
> 
> linux_brk(0x0,0x28136fc4,0x0,0x8048034,0x8,0x6)	 = 135405568 (0x8122000)
> linux_newuname(0xbfbfd5e6,0x31c,0x28136fc4,0x281378f8,0x39,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6)	 = 672366592 (0x28138000)
> linux_access("/etc/ld.so.preload",4)		 ERR#2 'No such file or
> directory'
> linux_open("/etc/ld.so.cache",0x0,00)		 = 3 (0x3)
> linux_fstat64(0x3,0xbfbfd2c0,0x28136fc4,0x28137880,0x3,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x2fa0,0x1,0x2,0x3,0x6)		 = 672370688 (0x28139000)
> close(3)					 = 0 (0x0)
> linux_open("/lib/libtinfo.so.5",0x0,036)	 = 3 (0x3)
> read(3,"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0"...,512) = 512 (0x200)
> linux_fstat64(0x3,0xbfbfd308,0x28136fc4,0x2813ac1a,0x8053b9d,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x18c98,0x5,0x802,0x3,0x6)	 = 672382976 (0x2813c000)
> linux_mmap2(0x28152000,0x3000,0x3,0x812,0x3,0x6) = 672473088 (0x28152000)
> close(3)					 = 0 (0x0)
> linux_open("/lib/libdl.so.2",0x0,0155)		 = 3 (0x3)
> read(3,"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0"...,512) = 512 (0x200)
> linux_fstat64(0x3,0xbfbfd2ec,0x28136fc4,0x2813b862,0x8053c04,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x4074,0x5,0x802,0x3,0x6)	 = 672485376 (0x28155000)
> linux_mmap2(0x28158000,0x2000,0x3,0x812,0x3,0x6) = 672497664 (0x28158000)
> close(3)					 = 0 (0x0)
> linux_open("/lib/libc.so.6",0x0,0170)		 = 3 (0x3)
> read(3,"\^?ELF\^A\^A\^A\^C\0\0\0\0\0\0\0"...,512) = 512 (0x200)
> linux_fstat64(0x3,0xbfbfd2d0,0x28136fc4,0x2813b9ab,0x8053c2c,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x1959ac,0x5,0x802,0x3,0x6)	 = 672505856 (0x2815a000)
> linux_mmap2(0x282ea000,0x3000,0x3,0x812,0x3,0x6) = 674144256 (0x282ea000)
> linux_mmap2(0x282ed000,0x29ac,0x3,0x32,0xffffffff,0x6) = 674156544
> (0x282ed000)
> close(3)					 = 0 (0x0)
> linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6)	 = 674168832 (0x282f0000)
> linux_set_thread_area(0xbfbfd79c,0x28136fc4,0x282f06c0,0x0,0x0,0x6) = 0 (0x0)
> linux_mprotect(0x282ea000,0x2000,0x1,0x28138560,0x0,0x6) = 0 (0x0)
> linux_mprotect(0x28158000,0x1000,0x1,0x281382c8,0x0,0x6) = 0 (0x0)
> linux_mprotect(0x28136000,0x1000,0x1,0x2813751c,0x0,0x6) = 0 (0x0)
> munmap(0x28139000,12192)			 = 0 (0x0)
> linux_rt_sigprocmask(0x0,0x0,0x81212dc,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_open("/dev/tty",0x8802,00)		 = 3 (0x3)
> close(3)					 = 0 (0x0)
> linux_brk(0x0,0x282ebff4,0x0,0x0,0x21000,0x6)	 = 135405568 (0x8122000)
> linux_brk(0x8143000,0x282ebff4,0x8143000,0x8122000,0x8143000,0x6) = 135540736
> (0x8143000)
> linux_open("/usr/lib/locale/locale-archive",0x8000,01) = 3 (0x3)
> linux_fstat64(0x3,0x282ecb00,0x282ebff4,0xbfbfd530,0x0,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x200000,0x1,0x2,0x3,0x6)	 = 674172928 (0x282f1000)
> linux_mmap2(0x0,0x11f000,0x1,0x2,0x3,0x6)	 = 676270080 (0x284f1000)
> linux_mmap2(0x0,0x1000,0x1,0x2,0x3,0x6)		 = 672370688 (0x28139000)
> close(3)					 = 0 (0x0)
> linux_getuid(0x282ebff4,0x0,0x282b0526,0x0,0x0,0x6) = 1001 (0x3e9)
> linux_getgid(0x3e9,0x0,0x282b0526,0x0,0x0,0x6)	 = 1001 (0x3e9)
> geteuid()					 = 1001 (0x3e9)
> getegid()					 = 1001 (0x3e9)
> linux_rt_sigprocmask(0x0,0x0,0x8120b1c,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_time(0x0,0xbfbfdacc,0x0,0x0,0x0,0x6)	 = 1421784797 (0x54beb6dd)
> linux_open("/proc/meminfo",0x80000,0666)	 = 3 (0x3)
> linux_fstat64(0x3,0xbfbfb49c,0x282ebff4,0x8122aa8,0x1fff,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6)	 = 672374784 (0x2813a000)
> read(3,"\t     total:    used:\tfree:  s"...,4096) = 297 (0x129)
> close(3)					 = 0 (0x0)
> munmap(0x2813a000,4096)				 = 0 (0x0)
> linux_rt_sigaction(0x11,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x11,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x2,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x2,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x3,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x3,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0x0,0x8121240,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x3,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_newuname(0xbfbfd5b6,0x0,0x282ebff4,0xff,0x0,0x6) = 0 (0x0)
> linux_stat64("/usr/home/bourne",0xbfbfd640,0xbfbfd640) = 0 (0x0)
> linux_stat64(".",0xbfbfd5e0,0xbfbfd5e0)		 = 0 (0x0)
> linux_getpid(0x8124750,0x5f,0x0,0x0,0x0,0x6)	 = 1437 (0x59d)
> linux_open("/usr/lib/gconv/gconv-modules.cache",0x0,00) = 3 (0x3)
> linux_fstat64(0x3,0xbfbfd4ac,0x282ebff4,0x3,0x282b023f,0x6) = 0 (0x0)
> close(3)					 = 0 (0x0)
> linux_open("/usr/lib/gconv/gconv-modules",0x0,0666) = 3 (0x3)
> linux_fstat64(0x3,0xbfbfd3e0,0x282ebff4,0x8124958,0x0,0x6) = 0 (0x0)
> linux_mmap2(0x0,0x8000,0x3,0x22,0xffffffff,0x6)	 = 677445632 (0x28610000)
> read(3,"# GNU libc iconv configuration."...,32768) = 32768 (0x8000)
> read(3,"JAPANESE//\tEUC-JP//\nalias\tOSF"...,32768) = 23335 (0x5b27)
> read(3,0x28610000,32768)			 = 0 (0x0)
> close(3)					 = 0 (0x0)
> munmap(0x28610000,32768)			 = 0 (0x0)
> linux_getppid(0x8124750,0x0,0x1,0x0,0x0,0x6)	 = 1436 (0x59c)
> gettimeofday({1421784797.882516 },0x0)		 = 0 (0x0)
> getpgrp()					 = 1436 (0x59c)
> linux_rt_sigaction(0x11,0xbfbfd540,0xbfbfd4b4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_getrlimit(0x6,0xbfbfd6ac,0x282ebff4,0x1,0x0,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0x0,0x81212dc,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_open("/usr/local/bin/sublime",0x8000,00)	 = 3 (0x3)
> linux_ioctl(0x3,0x5401,0xbfbfd6f8,0xbfbfd738,0x282ebff4,0x6) ERR#25
> 'Inappropriate ioctl for device'
> linux_llseek(0x3,0x0,0x0,0xbfbfd760,0x1,0x6)	 = 0 (0x0)
> read(3,"#!/compat/linux/bin/sh\n/usr/loc"...,80) = 64 (0x40)
> linux_llseek(0x3,0x0,0x0,0xbfbfd760,0x0,0x6)	 = 0 (0x0)
> linux_getrlimit(0x7,0xbfbfd72c,0x282ebff4,0x813ede0,0x3,0x6) = 0 (0x0)
> linux_fcntl64(0xff,0x1,0xbfbfd75c,0xbfbfd75c,0x282ebff4,0x6) ERR#9 'Bad file
> descriptor'
> dup2(0x3,0xff,0xff,0xbfbfd75c,0x3,0x6)		 = 255 (0xff)
> close(3)					 = 0 (0x0)
> linux_fcntl64(0xff,0x2,0x1,0x813ede0,0x282ebff4,0x6) = 0 (0x0)
> linux_fcntl64(0xff,0x3,0x0,0x0,0x282ebff4,0x6)	 = 0 (0x0)
> linux_fstat64(0xff,0xbfbfd7d0,0x282ebff4,0x0,0x0,0x6) = 0 (0x0)
> linux_llseek(0xff,0x0,0x0,0xbfbfd790,0x1,0x6)	 = 0 (0x0)
> linux_rt_sigprocmask(0x0,0x0,0x81212dc,0x8,0x282ebff4,0x6) = 0 (0x0)
> read(255,"#!/compat/linux/bin/sh\n/usr/loc"...,64) = 64 (0x40)
> linux_rt_sigprocmask(0x0,0x0,0x81212dc,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0xbfbfd658,0xbfbfd5d8,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_clone(0x1200011,0x0,0x0,0x0,0x282f0728,0x6) = 1438 (0x59e)
> linux_rt_sigprocmask(0x2,0xbfbfd5d8,0x0,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0xbfbfd6e0,0xbfbfd660,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x2,0xbfbfd660,0x0,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0xbfbfd6e0,0xbfbfd660,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x2,0xbfbfd450,0xbfbfd3c4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_waitpid(0xffffffff,0xbfbfd61c,0x0,0x0,0x0,0x6) = 1438 (0x59e)
> linux_rt_sigprocmask(0x2,0xbfbfd660,0x0,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigaction(0x2,0xbfbfd430,0xbfbfd3a4,0x8,0x282ebff4,0x6) = 0 (0x0)
> linux_rt_sigprocmask(0x0,0x0,0x81212dc,0x8,0x282ebff4,0x6) = 0 (0x0)
> read(255,0x813ee68,64)				 = 0 (0x0)
> process exit, rval = 0

Shoddy Romulan technology ... :P (A reference to Star Trek: Away Team.)

There's not much to go on, given my (limited) experience.

Maybe you should open a PR and let the maintainer and other parts of 
the community chime in.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@FreeBSD.ORG  Wed Jan 21 16:51:22 2015
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id ED97AED1
 for <freebsd-questions@freebsd.org>; Wed, 21 Jan 2015 16:51:21 +0000 (UTC)
Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com
 [IPv6:2a00:1450:400c:c05::230])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 7FC05C89
 for <freebsd-questions@freebsd.org>; Wed, 21 Jan 2015 16:51:21 +0000 (UTC)
Received: by mail-wi0-f176.google.com with SMTP id em10so18124955wid.3
 for <freebsd-questions@freebsd.org>; Wed, 21 Jan 2015 08:51:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:from:to:subject:message-id:mime-version:content-type
 :content-transfer-encoding;
 bh=eP0g3hWVeHz4pzvx08OI5CksOXuTKNitI2pR1TDmrAE=;
 b=rw50t5O0D+CbJAtLZUUjEJB/+TB0XnRaYQJcTcgJ19cPtEWI45heW5bXFQnZftFGxN
 14ebro3AnvS3EVb4ncZ0Q1j66NYUhRPkye4H/QlbmSn7FnHCyrQZwCQEmoO5bkaO5obF
 uOyS3uCIPLPlxQ+1H67DjRWZzM/kVEMY7go+txzWY0xrO95xEb7K1IKsHhrZzpIvYxt9
 V7j61qFm//jyr39R8hUicj3NL68JfmSi+Yj2jncLAcxpAIEFt/pipskOMDlDci5bOBzc
 XD6OURKCea/acN4AOlDIdVnQLO5HAoaJveiMB3NInKl6btoMlsA3uP6Iht8kuOw7+2Ep
 oY9A==
X-Received: by 10.194.206.97 with SMTP id ln1mr1957102wjc.112.1421859079923;
 Wed, 21 Jan 2015 08:51:19 -0800 (PST)
Received: from MARC-THINKPAD.queenland
 (AOrleans-656-1-23-170.w90-20.abo.wanadoo.fr. [90.20.238.170])
 by mx.google.com with ESMTPSA id bo3sm449419wjb.44.2015.01.21.08.51.18
 for <freebsd-questions@freebsd.org>
 (version=SSLv3 cipher=RC4-SHA bits=128/128);
 Wed, 21 Jan 2015 08:51:19 -0800 (PST)
Date: Wed, 21 Jan 2015 17:51:17 +0100
From: =?UTF-8?B?TcOkcms=?= Owen <markowen2206@gmail.com>
To: freebsd-questions@freebsd.org
Subject: SANE Network Scanner
Message-ID: <20150121175117.5712f713@MARC-THINKPAD.queenland>
X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Jan 2015 16:51:22 -0000

Hi,

I'm trying to share an Epson Perfection 3490 over the network through
SANE. I know it is supported because it worked on linux (Debian). The
host (FreeBSD 10.1) recognizes it and it seems to work if I invoke this
command:

scanimage -d snapscan:libusb:/dev/usb:/dev/ugen1.3 --format pnm
> /tmp/outfile.pnm

The issue is that my clients (all Debian 7 boxes) don't seem to be able
to detect the scanner over the network using xsane or the scanimage
-L / sane-find-scanner -q commands.

Maybe some of you will be able to enlighten me. Here are the content of
a few configuration files from the server:

/etc/rc.conf
	inetd_enable="YES"
	saned_enable="YES"

/etc/services
	sane-port	6566/tcp #SANE

/etc/inetd.conf
	sane-port	stream	tcp	nowait
	saned	/usr/local/sbin/saned	saned

In /usr/local/etc/sane.d/dll.conf, everything is commented except
'snapscan' as FreeBSD seems to detect the scanner as snapscan and not
epson.

/usr/local/etc/sane.d/snapscan.conf
#------------------------------ General
-----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/local/share/sane/snapscan/Esfw52.bin

# If not automatically found you may manually specify a device name.

# For USB scanners also specify bus=usb, e.g.
# /dev/usb/scanner0 bus=usb

# For SCSI scanners specify the generic device, e.g. /dev/sg0 on Linux.
# /dev/sg0

#---------------------------------------------------------------------------
# No changes should be necessary below this line
#---------------------------------------------------------------------------

#-------------------------- SCSI scanners
---------------------------------- # These SCSI devices will be probed
automatically scsi AGFA * Scanner
scsi COLOR * Scanner
scsi Color * Scanner
scsi ACERPERI * Scanner

#--------------------------- USB scanners
----------------------------------- # These USB devices will be probed
automatically # (This will currently work only on Linux)

# Benq/Acer/Vuego 310U
usb 0x04a5 0x1a20
usb 0x04a5 0x1a26

# Benq/Acer/Vuego 320U
usb 0x04a5 0x2022

# Benq/Acer/Vuego 620U / 620UT
usb 0x04a5 0x1a2a
usb 0x04a5 0x2040

# Benq/Acer/Vuego 640U
usb 0x04a5 0x2060

# Benq/Acer/Vuego 640BU
usb 0x04a5 0x207e

# Benq/Acer/Vuego 640BT
usb 0x04a5 0x20be

# Benq/Acer/Vuego 1240U
usb 0x04a5 0x20c0

# Benq/Acer/Vuego 3300 / 4300
usb 0x04a5 0x20b0

# Benq/Acer/Vuego 4300
usb 0x04a5 0x20de

# Benq 5000E / 5000U
usb 0x04a5 0x20f8

# Benq 5000
usb 0x04a5 0x20fc

# Benq/Acer 5300
usb 0x04a5 0x20fe

# Benq 5250C
usb 0x04a5 0x2137

# Agfa 1236U
usb 0x06bd 0x0002

# Agfa 1212U
usb 0x06bd 0x0001
usb 0x06bd 0x2061

# Agfa Snapscan e10
usb 0x06bd 0x2093

# Agfa Snapscan e20
usb 0x06bd 0x2091

# Agfa Snapscan e25
usb 0x06bd 0x2095

# Agfa Snapscan e26
usb 0x06bd 0x2097

# Agfa Snapscan e40
usb 0x06bd 0x208d

# Agfa Snapscan e42
usb 0x06bd 0x20ff

# Agfa Snapscan e50
usb 0x06bd 0x208f

# Agfa Snapscan e52
usb 0x06bd 0x20fd

# Epson Perfection 660
usb 0x04b8 0x0114

# Epson Perfection 1670
usb 0x04b8 0x011f

# Epson Perfection 2480
usb 0x04b8 0x0121

# Epson Perfection 3490
usb 0x04b8 0x0122

# Epson Stylus CX-1500
usb 0x04b8 0x080c



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1501211556010.1375>