« first day (1259 days earlier)      last day (3699 days later) » 

12:00 AM
@derobert I was thinking that our discussion veered from "is this Q on topic" to "how does modules parameters get passed"
 
(BTW: strace calls the relevant syscall syscall_313, I guess it doesn't have a name as far as strace knows...)
 
Isn't it possible to just cpio more data in? Then your kernel parameter just points to an archive.
 
cpio into what?
 
I didn't see a link to the question and only read the comments here so I was thinking it must be initramfs - especially since you're talking kernel parameters.
 
@mikeserv no, it's about kernel modules parameters ;)
 
12:02 AM
@mikeserv no, parameters to a module
2
Q: String length limit for a kernel module parameter

goose999I am passing a string as parameter when loading a kernel module. When the string is > 1024 chars, modprobe results in an error: FATAL: Error inserting mymodule (/lib/modules..): No space left on device dmesg output: mystr: string parameter too long Are module parameters limited to 1024 char...

 
Anyway, good night, I'm going home...
 
Oh, well, yeah, that's beyond me. Though I can only imagine tha t if you're loading one file as a module it seems you could load a second along with it.
 
What X11 program can I use to browse installed fonts (fontconfig fonts)? A modern xfontsel
 
gnome has this Font viewer
 
no idea and I've always wanted one. I just open [open|libre]office
 
12:04 AM
took it sweet time to load all the fonts, tho
 
I use fc-list in a script to make an html file and feed it to Iceweasel
 
@Braiam no, that shows the font in one font file
 
The above looks promising if ugly
 
@terdon no
@Gilles well, it showed me a list of all the fonts
* gnome-font-viewer -> font viewer for GNOME
(3.10.0-1/3.10.0-1)
 
> Usage: gnome-font-viewer fontfile
 
12:06 AM
#!/usr/bin/perl -w
use CGI;
use strict;

my $message = $ARGV[0]
	|| 'A wizard’s job is to vex chumps quietly in fog. 5! = 120 (3-46,789)?';

open my $list, '-|', 'fc-list : family | sort -u';

print <<HTML;
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
    <title>Font List</title>
    <style type="text/css">
      table {
        margin-bottom: 4ex;
        border-spacing: 0;
        border-collapse: collapse;
      }
      td {
        border-top: 1px solid gray;
... that's what I use.
Anyway, leaving now for real.
 
@Gilles man is lying or you have older version
 
@Braiam debian wheezy, gnome-font-viewer 3.4.0
No manual entry for gnome-font-viewer
 
4 mins ago, by Braiam
* gnome-font-viewer -> font viewer for GNOME
(3.10.0-1/3.10.0-1)
they are doing some things right, at least
 
GNOME Font Viewer - 3.5.1
-------------------------------------------------------------------------------

• Rewrite the user interface using a GNOME 3 style
• Implement a gallery mode for all the fonts on the system
• Add an application menu and an about dialog
• Make "Install" button insensitive if the font is already installed
• Port the thumbnailer to cairo drawing
• Translation updates
yeah, older version
 
12:14 AM
“font gallery”. yes, that's what I'm after.
I need to upgrade my chroot to testing, it's still on wheezy
 
I need another, the disk load is amazing
 
loading and rendering all the fonts in a system would be quite a burden, yes
@terdon I'm going to go with dafont.com/ecolier.font which is in the fonts-ecolier-court package
 
@Gilles that's a nice font
 
@Gilles wow, certainly doesn't look like my handwriting. Very pretty though.
> PATIENCE, n. A minor form of despair, disguised as a virtue.
 
0
Q: Gallery of installed fonts

GillesI want to view the fonts that are installed on my system. Specifically, I want the client-side (fontconfig) fonts, not the old-style X11 bitmap fonts. I guess what I'm looking for would be called a font viewer or font gallery. I want to see a bit of sample text for each font, ideally configurable...

@Braiam @derobert ^^^^
 
12:27 AM
@Gilles dunno why, but I was about to ask a Q about the same is SR since gnome thingy didn't work well for me
 
12:38 AM
@Takkat Will try running x11vnc as root. — Toland H 1 hour ago
D:
 
I'd love to know of an xfontsel equivalent for xft fonts
 
@casey fc-list, kinda
most of the attributes that xfontsel lets you select on are irrelevant for vector fonts
 
@Gilles thats good for listing fonts, but it would be nice to have what selections are available (even if just name/size/slant) and a preview available the way xfontsel does it. Mostly the previews.
@Gilles looks like more work than an american check for sure. I always write my dates dd/mm/yyyy and I've had landlords come back to me trying to figure out why I'm dating my checks so far in the future...
 
1:21 AM
@casey have a look at gfontview.sourceforge.net looks like exactly what's described
@Gilles So I should probably not point out that you wrote cix instead of dix?
 
1:37 AM
@terdon I wrote dix, but the d in that font has an extremely thin line
 
@Gilles fair enough. Can't see it at all. But that's a great answer, I'd upvote if I had an account. The French penchant for cheques was very surprising to me when I first moved here. I actually had a little app on my phone to help me spell the damn numbers :)
 
2:06 AM
If I just want to know if I made a typo on my command line, is that really worth making a question out of it?
I don't know where to go for that around these parts. Quick advice that I'd be better off asking a friend, but don't have any friends that know Unix...
 
@DrKumar for a typo I'd just ask here. if it actually turns out to be a typo, you'd get put on hold.
that being said, if it isn't just a typo and could actually have use, please ask a question on Unix & Linux after getting an answer here
 
Ok: If I'm using rsync to transfer multiple files locally, from drive to drive, don't you just plug in rsync [options] /source/ /dest/ \; (<-- for a newline) and repeat for your second file?
Forgive me, I'm new to learning this stuff, and the manuals aren't that easy to digest if you don't know crap about unix systems or CLIs
 
@DrKumar I'm sorry, what's for a newline?
 
the \;
 
so you want a newline without executing the command?
 
2:16 AM
correct
 
so what you've just done is you've just escaped the ; which means that rsync will see it as an argument. you don't want that.
instead, you want ;\<RET>
 
Should I specify that I'm doing this within bash?
 
<RET> = standard representation of the return key in documentation
@DrKumar doesn't matter. this is simplistic enough that it won't vary in any meaningful manner across shells
so what this does: ; says that you've finished giving the arguments to the first rsync, and whatever comes after should be treated as a command to be run, regardless of exit status
\ escapes the return. this means that bash will treat it as part of the commandline instead of a signal to execute the commandline.
oh awesome. found a bug in the chat Markdown parser.
 
and the semicolon ; is known as a control operator?
 
if you want the second rsync to run only if the first one returned an exit status of 0, use && instead of ;
@DrKumar I dunno. that sounds right.
 
2:21 AM
so I need ;\<RET> and not just a ;
 
yes
 
Ok, thanks!
 
@terdon go to hell
 
@strugee I was wondering what the hell that was about! :) No worries, I hate that bleedin font
 
haha yeah I was just thinking: "I hope that doesn't get starred and taken out of context"
 
2:33 AM
Interesting. the ;\<RET> didn't work, but a simple ; did
 
@DrKumar did you actually wrote <ret> instead of just pressing intro?
 
............maybe
Welcome, I'll be your dunce for the evening
 
@strugee yeah, bye context
 
I once found a thing listing ways to die, you know like car accidents and drowning and other stuff
and next to every item it would list the amount of pain that kind of death would cause you, and the amount of time you would be in that pain
and right at the bottom was comic sans. pain level: "EXTREMELY PAINFUL". time before you got out of your pain: "SLOW"
I can't find it right now. I wish I could
 
2:40 AM
What got you guys talking about fonts anyway
Gilles' question?
 
3 hours ago, by terdon
@Gilles comic sans! (runs away)
and then:
18 mins ago, by strugee
@terdon go to hell
 
2:59 AM
...you can quote people like that with markdown?
 
@DrKumar no, he just pasted the relevant chat links and they magically become like that
 
Aha. They don't mention that on the FAQ...
 
because you are not pressing the correct "help" button
press help instead of faq and you will see that ^ help about formatting and several other stuff @DrKumar
 
Ah. No I pressed that button, I just wasn't thorough enough.
 
there's also "More..."
 
3:11 AM
Do you think rsync is better suited for copying directories, rather than individual files? And/or remote machine work
 
depends in how much effort I need to put into the project
 
@DrKumar depends on your usecase
if your file isn't gigabytes, then no
 
definitely is GB, lots of GB
video files
 
in that case I would use rsync
is it on the local disk?
 
moving between two local drives, yes
 
3:15 AM
mm... rsync would only add overhead, simple cp is the best
 
you might be able to get away with using cp. that has the advantage of not waiting for rsync to build the file list
 
and trying to compress stuff
 
of course, if you think some data didn't get copied (e.g. cp got interrupted) the rsync becomes more useful
 
but rsync has a progress flag/indicator
 
I'm pretty sure cp has that too
 
3:16 AM
I remember somewhere that there was a flag for cp too
 
also rsync preserves directory structure, recreates the hierarchy on the receiving end.
with -R
 
cp do...
 
with cp -R?
 
@DrKumar I think it's cp -r
 
3:24 AM
--recursive        -r  -R  -- copy directories recursively
 
so either, then
 
21
Q: BASH: Copy named files recursively, preserving folder structure

mahemoffI was hoping: cp -R src/prog.js images/icon.jpg /tmp/package would yield a symmetrical structure in the destination dir: /tmp | +-- package | +-- src | | | +-- prog.js | +-- images | +-- icon.jpg but instead, both of the files are copied into /tmp...

does not work on OS X
hence, rsync
 
@DrKumar OP didn't understand how to use cp?
 
?
 
he was using it wrong. that's why he had that problem
 
3:32 AM
he needed --parent instead of -R
what he did was: copy path1/file1 path2/file2 into path3/
very literal
 
indeed
the answer says it all
 
Anyone bored and want to help debug a shared connection? laptop ==ethernet cable==> server

 room for terdon and speedysnail

room for terdon and speedysnail
 
I thought that was impossible to do a direct computer-to-computer ethernet like that
 
@slm you feeling generous/bored?
 
slm
3:52 AM
@terdon - just got back from hockey, what's up?
shouldn't this be migrated to SO?
 
Hi
 
slm
0
Q: Monodevelop doesn't run the project. When I try to run nothing happens

somethingSomethingI've been trying to get Monodevelop up and running for almost a week now, first on my redhat and now on my fedora. The debugger doesn't work, see picture for error: I tried re-installing Monodevelop, but it's the same. I've looked at google, and the only thing I could find, was from three year...

 
Trying to help a user configure a server by sharing the internet connection from his laptop via ethernet cable to the server, and then making the server visible to the LAN
The default setup had the server on a different network so only the laptop could see it
We now have the server and laptop on the same network but it no longer has internet access.
We're in the chat room I linked to above if you want to join (and not if you have better things to do, don't want to pressure you)
 
slm
let me finish making my rounds
 
@slm there are two sides: his code doesn't compile because monodevelop sucks, stays; his code doesn't compile because he sucks, migrate
 
slm
4:00 AM
@Braiam - so?
 
@slm need to install monodevelop :(
 
Oh well, thanks for trying anyway @slm :) Let me know if you see anything obvious (or not) that I'm missing. The main post is here: askubuntu.com/questions/435225/…
 
slm
@terdon - did you guys go through this guide?
I don't quite understand what he's trying to share there?
 
@slm no, that looks good, I was looking at another one
@slm he has a laptop with a wifi connection and wants to share the connection with the server
So, cable from laptop to server, server gets internet access and also acts as a server accessible to the local LAN
 
slm
I would expect that if you're sharing you need to open up the firewall if it isn't already also there are some kernel options that you have to enable to 1 to get the packets flowing
 
4:11 AM
ah
 
slm
desktop -> ethernet -> laptop -> wifi -> internet?
 
no
router -> wifi -> laptop -> ethernet -> desktop -> internet
skata
 
slm
what's router -> wifi -> laptop?
what you wrote sounds like the default route
 
yes
the difference is that the desktop will connect via the laptop, not directly to the router
 
slm
that's typically just setting up a route as gw
 
4:13 AM
Well, the simple internet connection sharing was painless enough but it set up the server on a different network
So, LAN was 192,168.1.NN and server was on 10.1. something or other
10.42.0.1
So, he had the wlan card which was giving him access to the LAN/WAN on the laptop with IP: 192.168.1.4
 
slm
walk me through a scenario. If I'm sitting on the laptop where am I connecting?
 
@slm It might be simpler if you look at the ifconfig output he posted
Have you seen it? I'm assuming it is completely transparent to you, if not I'm happy to walk you through what I understand
 
slm
yeah i wanted to understand conceptually before looking at anything
 
So, laptop has two NICs, wlan0 and eth0
 
slm
k
 
4:17 AM
wlan0 is the one he uses for internet and LAN etc
wlan0     Link encap:Ethernet  HWaddr 60:36:dd:05:21:de
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
 
slm
k
 
He then shared this connection using the ethernet card. Laptop eth0:
eth0      Link encap:Ethernet  HWaddr 88:51:fb:fc:53:83
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
He connects the desktop to the laptop's ethernet port (I guess, not sure how, now that I think about it) and results in this ifconfic output on the desktop:
eth0      Link encap:Ethernet  HWaddr 00:16:76:90:b6:87
          inet addr:10.42.0.50  Bcast:10.42.0.255  Mask:255.255.255.0
 
slm
let's hold off saying shared yet, he added an IP for the eth0 dev
 
OK
At this point, laptop can see desktop and vice versa and I think the desktop has internet access as well
 
slm
you can't connect 2 NICs you need a special ethernet cable
 
4:19 AM
However, obviously, the rest of the LAN can't see the desktop
@slm yeah, that's what I was just realizing but presumably he has one
Original Q:
 
slm
can't do it w/o a cross over cable
 
> I'm currently sharing the wireless connection of my ubuntu laptop with an ubuntu server via an ethernet cable. Does the server have the same ipv4 as my laptop?

Is it possible to give it an ipv4 of it's own?

EDIT: I'm hosting an apache server on the Ubuntu Desktop server and I am able to pull it u on my laptop through 10.42.0.24.
So he could access the server, I am assuming he had a crossed cable
Man, I haven't heard of those in years not since the days of modems.
 
slm
null modems
i have a null ethernet cable i used from time to time
through out my null modem
 
Is this true?
> NOTE: If both computers have a Wired Gigabit Ethernet NIC then you can actually connect them directly since most 1000BASE-T have automatic MDI/MDI-X.
 
slm
I have heard this before but never tested it
 
4:24 AM
Sounds like it's true, the OP seemed to have managed to see his apache2 through the cable
 
slm
A Medium Dependent Interface (MDI) describes the interface (both physical and electrical) in a computer network from a physical layer implementation to the physical medium used to carry the transmission. Ethernet over twisted pair also defines a medium dependent interface crossover (MDIX) interface. Auto-MDIX ports on newer network interfaces detect if the connection would require a crossover, and automatically chooses the MDI or MDIX configuration to properly match the other end of the link. Ethernet The popular Ethernet family defines common medium dependent interfaces. For 10BASE5 co...
auto mdix
it's true
> Subsequently, Dove promoted auto-MDIX within the 1000BASE-T standard[5] and also developed patented algorithms for "forced mode auto-MDIX" which allow a link to be automatically established even if the port does not auto-negotiate.[6] This may or may not be implemented on a given device, so occasionally a crossover cable may still be necessary when connecting auto-MDIX to MDIX (hub or switch), especially when autonegotiation is deactivated.[7]
> Newer routers, hubs and switches (including some 10/100, and all 1 Gigabit or 10 Gigabit devices in practice) use auto-MDIX to automatically switch to the proper configuration once a cable is connected.
 
huh, OK
 
I think is called autonegociation by the kernel module....
 
slm
OK so the guys issue is that he can't access the IP of eth0 from wlan0 but can sit on laptop and access eth0 fine?
 
not sure what you mean
 
4:28 AM
he needs to route traffic through the firewall and use the lappy as another router
 
the issue is that he can access the server from the laptop fine but other devices on the LAN can't
 
because he doesn't forward it <----
 
slm
can't access some computer -> wifi -> laptop -> eth0 -> desktop
 
Which is presumably cause of the different networks set up (192.XX and 10.XX)
@slm yeah but <--
 
-A FORWARD -i wlan0 -o eth0 -j ACCEPT
toggle the ip4.forward bit and voila!
 
4:30 AM
So I told him to set up the server on the 192.168.1.XX network and that kinda broke everything
@Braiam no idea what this is (I know next to nothing about networking, that's why I called in you guys for help)
 
slm
I setup a box at work a couple of months ago to gives us a bridge b/w our voip and data networks
192.168.1.x -> 192.168.2.x
the box has dual nics
 
I'm out of my depth, I thought the issue was much simpler and now I feel bad about the OP :(
 
slm
meh, this shit is complicated
1/2 the battle is getting the problem framed right
once you understand the pieces it's usually 3 commands to set it up
 
###############################################################################
#
# FORWARD Chain
#

echo "Process FORWARD chain ..."

# Used if forwarding for a private network

# Drop bad packets
$IPT -A FORWARD -p ALL -j bad_packets

# Accept TCP packets we want to forward from internal sources
$IPT -A FORWARD -p tcp -i $LOCAL_IFACE -j tcp_outbound

# Accept UDP packets we want to forward from internal sources
$IPT -A FORWARD -p udp -i $LOCAL_IFACE -j udp_outbound

# If not blocked, accept any other packets from the internal interface
he needs something like that ^
+ echo "1" > /proc/sys/net/ipv4/ip_forward
I know how it can be done (I had to) but only with two NIC's, no wireless
this has some nice stuff to generate firewall (iptables) rules slackware.com/~alien/efg/index.php
 
@Braiam damn! Really?
 
4:38 AM
his laptop needs to be a gateway of sorts between the lan and the server, so it needs to forward packages around
@terdon yup...
 
@Braiam Can't the desktop use the router as a gateway?
Ah no, it needs to go through the laptop
Hmmm, could it be enough to set the desktop's gateway to be the laptop?
That seems to be the way he had it set up originally with the different IPs
 
@terdon yeah
the laptop needs to behave like a router/gateway/nat between his server and the rest of the lan
 
but is it enough to just point the desktop to the laptop or do things need to be changed on the laptop as well
?
 
I would put a reverse proxy instead in the laptop if he wants things to be easier, just that the server won't have access to the internet
@terdon I don't follow, is that different from what I'm saying?
 
@Braiam I'm asking if it will be enough to just set the server's gateway to the laptop's IP or if there are settings/iptables whatever that need to be changed/set up on the laptop
 
4:43 AM
@terdon the laptop networking needs to be adjusted, the server is just fine thinking the laptop is a router, in fact, you shouldn't need to touch the server
 
@Braiam That's what he had done in the beginning but that had the server and the laptop on different subnets
or networks I'm not clear on the distinction
Do you think you could post an answer?
@slm does rsync need to be installed on both source and destination machines? Only for daemon mode?
 
slm
==?====-
 
2
Q: How to use rsync or scp to efficiently copy the files from machineB and machineC to machineA?

WebbyI am running my shell script on machineA which copies the files from machineB and machineC to machineA. If the file is not there in machineB, then it should be there in machineC for sure. So I will try to copy from machineB first, if it is not there in machineB then I will go to machineC to copy...

Posted an rsync script but while the OP could apparently connect fine with scp, he's getting "could not resolve hostname " errors with rsync
I'm stumped
Damn, I'm having a bad Q&A day, somebody post a text parsing question, please!
 
5:07 AM
@terdon it is very advanced iptables voodoo if you want to reuse it but there it's askubuntu.com/a/437189/169736
I recommend you trying out the helper to understand some quirks of iptables
 
\o\ nftables /o/ oooh nftables \o\ /o/ \o\
 
now, you should probably be learning the nftables stuff
 
slm
@terdon yes, just rsync on client
 
@strugee how about if you translate that into nftables :P?
 
@Braiam oh I have no bloody idea how to use either :P
 
5:12 AM
:(
@terdon pointers to ask about sound problems: pactl listessential if you suspect is just something silly, default.pa file contents if you think he played with pulse around ;)
 
@Braiam sound?
Anyway, I'm off, I'm falling asleep. Later all
 
Hey guys
 
@terdon night!
@Webby NO NO NO NO NO
 
As @terdon went to sleep
 
please don't paste links in chat
 
5:22 AM
aahhh
sure
I was not aware of
 
we all check the front page, we will see them eventually
 
sure sure
Sorry about that..
 
@Webby it's ok. sorry I may have overreacted, we just get a lot of those and it gets tiring after a while
 
Sure
 
@strugee I told him to come bug you guys cause I'm going to sleep
 
5:23 AM
I just deleted those
 
@terdon ah. sorry @Webby, my bad
 
no problem
 
I dunno who our resident PulseAudio expert is. I don't believe we have one
@slm or @derobert might be able to help but other than that I have no idea
 
OK, last post, why are you all blathering about sound? Webby's issue is a host not found error when using rsync. OK, good night!
 
@terdon because I am stupid
(watch that get starred)
2
I mixed his question up with something Braiam mentioned
such starred. very meta. wow.
 
5:33 AM
You're welcome. What's wrong with pa? By the way - I don't believe there is such a thing as a pulse expert.
 
@mikeserv I repeat:
10 mins ago, by strugee
@terdon because I am stupid
 
Well, I've heard of a pulse audio expert before, but I'm pretty sure it was a myth.
 
I am pretty much sure there is a problem with the syntax
something is off
 
That one's better.
 
Bcoz I ran it like this
 
5:45 AM
The NONONO
 
rsync -avz david@machineB":/data/pe_t1_snapshot/20140317/t1_weekly_1680_0_200003_5.data" /export/home/david/dist/primary
and it worked fine
 
@mikeserv ?
 
Oh you're ABC guy.
@Webby NO NO NO NO NO
That one. But...
 
Is anything wrong I did again?
 
@Webby no
 
5:46 AM
No, really. I have no idea, and I'm the last guy to take advice from in that department anyway.,
 
domination is mine!
 
:)
 
What is going on with rsync though? I confess I saw your question several times - in passing.
You want to rsync files on A + B > C?
 
I am trying to copy files from machinB and machineC to machineA
and terdon gave me the solution to use with rsync
 
5:49 AM
Oh, well, that's hardly intuitive.
 
but somehow whenever I am running that it is giving me exception
 
Exception?
 
and I am pretty much sure its bcoz of syntax issue
somewhere
I have in the question
 
But strugee told you no linking...
I'll find it.
 
@strugee link to the question? I don't see Webby or Pulseaudio on the new questions page...
 
5:50 AM
@mikeserv I spoke too soon. it was actually OK, since terdon asked him to paste it in the room
 
Ahh. That makes two of us then.
 
@derobert I mixed up the questions
 
I did find it though. I don't know if I can help.
 
and it's obviously OK to paste questions if someone in the room asks for a link
 
This is a lot: dir1=$(ssh -o "StrictHostKeyChecking no" david@${FILERS_LOCATION[0]} ls -dt1 "$MEMORY_MAPPED_LOCATION"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | head -n1)
 
5:52 AM
the thing that's annoying is the weenies who come into the room and paste their question with little to no context, all because they haven't received an answer within 20 minutes. god forbid.
 
@Webby So A has a B Partition and C partition - they don't mix?
Weenies says it all.
What is with this array?
 
@strugee ah, ok, so there is no PulseAudio question? Ok. I'm going back to trying to figure out this printer....
 
@derobert nope, the PA question's on AU IIRC
good luck with your printer
 
You shouldn't be using rsync if you're not using it to track files and file changes - that's it's primary function. If you just need a pipe use netcat.
@Webby I'm still reading through, but does that change?
I mean, you can use rsync however you like, but... I wouldn't know how to help you map it to shell arrays...
 
That is the solution given by terdon and he thing it is much efficient and faster as compare scp which I was doing earlier
 
5:59 AM
Well, that I'll agree with.
So it's some kind of connection problem?
Do A B C have ip addresses?
 

« first day (1259 days earlier)      last day (3699 days later) »