Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«386 »
  • Post
  • Reply
evol262
Nov 30, 2010
#!/usr/bin/perl

Frozen-Solid posted:

Well I think I have all that setup, but "ping host.domain.name" doesn't seem to work. but "ping host.local" still works like it did before.

No idea what I'm doing wrong

host.local is using mDNS/Avahi/Bonjour/Zeroconf/whatever the hell they're calling it now.

host.domain.name is using BIND.

You should be able to check the zonefiles in /var/named/ to see whether or not records exist. If they don't, try adding one manually, or refreshing your DHCP lease (annoyingly some distros, namely Fedora/Redhat, don't send dhcp-hostname by default, and you need to add options in /etc/sysconfig). "dig @serveraddress somehostname" should work.

In addition to that, to get "shortname" lookups working, resolv.conf should have "domain" and "search" parameters (domain yourdomain\nsearch yourdomain).

Adbot
ADBOT LOVES YOU

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Ah ha, found errors in the syslog:

Jul 23 16:22:10 IronFrozen named[28469]: zone <domain>/IN: loading from master file /etc/bind/<domain>.zone failed: file not und
Jul 23 16:22:10 IronFrozen named[28469]: zone <domain>/IN: not loaded due to errors.
Jul 23 16:22:10 IronFrozen named[28469]: zone 0.in-addr.arpa/IN: loaded serial 1
Jul 23 16:22:10 IronFrozen named[28469]: zone 127.in-addr.arpa/IN: loaded serial 1
Jul 23 16:22:10 IronFrozen named[28469]: zone 0.168.192.in-addr.arpa/IN: loading from master file /etc/bind/0.168.192.in-addr.arp.zone failed: file not found
Jul 23 16:22:10 IronFrozen named[28469]: zone 0.168.192.in-addr.arpa/IN: not loaded due to errors.


Do I actually need to create the file in the "file" line of the zone? does it not make those automatically?

Frozen-Solid fucked around with this message at Jul 23, 2012 around 21:36

pram
Jun 10, 2001

by Y Kant Ozma Post


You need a zone file for the domain and the PTR records, it doesn't generate them.

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Okay, now I'm just getting a bunch of errors but it looks like it's trying to add them.

Unable to add forward map <name> from <ip> bad dns signature
Unable to add forward map <name> from <ip timed out

Ninja Rope
Oct 22, 2005

Wee.


Frozen-Solid posted:

Okay, now I'm just getting a bunch of errors but it looks like it's trying to add them.

Unable to add forward map <name> from <ip> bad dns signature
Unable to add forward map <name> from <ip timed out

What is generating those errors? What does your zonefile look like?

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Ninja Rope posted:

What is generating those errors? What does your zonefile look like?

I have no idea if they're right or not



code:
<user>@<server>:~$ cat /etc/bind/db.<domain>
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     ns.<domain>. root.<domain>. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.<domain>.
ns      IN      A       <server ip>
<user>@<server>:~$ cat /etc/bind/db.0.168.192.in-addr.arpa
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     ns.<domain>. root.<domain>. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

@       IN      NS      ns.<domain>
0.168.192.in-addr.arpa. IN      NS      ns.<domain>
There is a bind error in the syslog for the reverse lookup zone file:

named[31278]: zone 0.168.192.in-addr.arpa/IN: NS 'ns.<domain>.0.168.192.in-addr.arpa' has no address records (A or AAAA)


The forward map errors are from DHCPD in my syslog.

named[31278]: client <server ip>#54703: request has invalid signature: TSIG dhcpupdate: tsig verify failure (BADSIG)
dhcpd: Unable to add forward map from Wii.<domain> to 192.168.1.20: bad DNS signature
dhcpd: DHCPREQUEST for 192.168.1.20 from 00:1a:e9:84:26:2c (Wii) via eth0
dhcpd: DHCPACK on 192.168.1.20 to 00:1a:e9:84:26:2c (Wii) via eth0

Ninja Rope
Oct 22, 2005

Wee.


Frozen-Solid posted:

I have no idea if they're right or not

code:
<user>@<server>:~$ cat /etc/bind/db.<domain>
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     ns.<domain>. root.<domain>. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.<domain>.
ns      IN      A       <server ip>
<user>@<server>:~$ cat /etc/bind/db.0.168.192.in-addr.arpa
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     ns.<domain>. root.<domain>. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

@       IN      NS      ns.<domain>
0.168.192.in-addr.arpa. IN      NS      ns.<domain>
There is a bind error in the syslog for the reverse lookup zone file:

named[31278]: zone 0.168.192.in-addr.arpa/IN: NS 'ns.<domain>.0.168.192.in-addr.arpa' has no address records (A or AAAA)

You really don't need a reverse zone, you can just delete that if you want. Or to fix the error, add an A record for ns just like in the other file:

code:
ns      IN      A       <server ip>
As for this:

quote:

The forward map errors are from DHCPD in my syslog.

named[31278]: client <server ip>#54703: request has invalid signature: TSIG dhcpupdate: tsig verify failure (BADSIG)
dhcpd: Unable to add forward map from Wii.<domain> to 192.168.1.20: bad DNS signature
dhcpd: DHCPREQUEST for 192.168.1.20 from 00:1a:e9:84:26:2c (Wii) via eth0
dhcpd: DHCPACK on 192.168.1.20 to 00:1a:e9:84:26:2c (Wii) via eth0

That means the keys you gave BIND for the zone don't match the keys you gave DHCPd. I'm not sure how to fix that (again, I don't know anything about dynamic dns) but maybe doublecheck whatever guide you followed to set that up in the first place?

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Ninja Rope posted:

That means the keys you gave BIND for the zone don't match the keys you gave DHCPd. I'm not sure how to fix that (again, I don't know anything about dynamic dns) but maybe doublecheck whatever guide you followed to set that up in the first place?

Doh! I totally didn't update the Bind key in both places

Finally got it running. I also had to move the db.<domain> and reverse lookup files to /var/cache/bind as bind couldn't write to /etc/bind/ or create the .jnl files there.

Thanks everyone!

Frozen-Solid fucked around with this message at Jul 23, 2012 around 23:12

Rocko Bonaparte
Mar 12, 2002



I have a wget question that I figured some people here might know how to address. I am trying to get everything off a site that appears to be using some Javascript to serve photos. It doesn't look like I actually get those chunks. After some tries, my wget command has ballooned to:

code:
wget -r -np -m -k -l 100 [url]www.dontmindifidontshareurl.com[/url]
I am getting the impression it is not really possible. I guess Javascript is a bit of a sore point here. Are there alternatives? I thought I'd look up Chrome extensions, but I get things to, for example, take a screenshot of a web site, which is not the same.

Bob Morales
Aug 18, 2006

HYPER-THREADING


Rocko Bonaparte posted:

I have a wget question that I figured some people here might know how to address. I am trying to get everything off a site that appears to be using some Javascript to serve photos. It doesn't look like I actually get those chunks. After some tries, my wget command has ballooned to:

code:
wget -r -np -m -k -l 100 [url]www.dontmindifidontshareurl.com[/url]
I am getting the impression it is not really possible. I guess Javascript is a bit of a sore point here. Are there alternatives? I thought I'd look up Chrome extensions, but I get things to, for example, take a screenshot of a web site, which is not the same.

There's probably a lot better ways to do it, but you could do it with Perl/Ruby and Mechanize.

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



I'd use Firefox with downthemall

evol262
Nov 30, 2010
#!/usr/bin/perl

I'm pretty sure Mechanize doesn't handle Javascript, and you need to drive/script WebKit or Gecko with WATIR or similar.

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


A day's passed and all the DHCP/DNS fun is working like a charm. I ended up dropping reverse DNS because I couldn't get the configuration files right, and don't have much use for it anyways.

Now that I'm on the server kick I'm looking for other things I can do with a headless Linux server.

Already setup:
CUPS/SANE
Google CloudPrint
IRSSI Proxy
DHCP
DNS
Samba
Apache/PHP/MySQL
Webmin

I'm trying to think of other uses for it and drawing a blank.

Fortuitous Bumble
Jan 5, 2007



Is there a fast way to transfer most of a Linux setup from a VM to a desktop or the other way around? Like I have an Arch Linux installed on a VM right now and I don't know if there's a good way to somehow pull a list of install packages and all my configuration files and stuff so I could just install Arch on the desktop and then have it install all the same packages (minus the vmware things I guess) and copy my old configuration files, or if there's a better way to do this.

Also, what's the fastest method for remote access if you want more than just terminal access? I was using nomachine before because I'd used it at my school and it was pretty snappy, but it was a pain to get it working right and now it broke again so I'm looking for an alternative if possible.

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



Fortuitous Bumble posted:

Is there a fast way to transfer most of a Linux setup from a VM to a desktop or the other way around? Like I have an Arch Linux installed on a VM right now and I don't know if there's a good way to somehow pull a list of install packages and all my configuration files and stuff so I could just install Arch on the desktop and then have it install all the same packages (minus the vmware things I guess) and copy my old configuration files, or if there's a better way to do this.

Image it. You can use something like clonezilla.

quote:

Also, what's the fastest method for remote access if you want more than just terminal access? I was using nomachine before because I'd used it at my school and it was pretty snappy, but it was a pain to get it working right and now it broke again so I'm looking for an alternative if possible.

VNC should do you fine.

evol262
Nov 30, 2010
#!/usr/bin/perl

Frozen-Solid posted:

A day's passed and all the DHCP/DNS fun is working like a charm. I ended up dropping reverse DNS because I couldn't get the configuration files right, and don't have much use for it anyways.

Now that I'm on the server kick I'm looking for other things I can do with a headless Linux server.

Already setup:
CUPS/SANE
Google CloudPrint
IRSSI Proxy
DHCP
DNS
Samba
Apache/PHP/MySQL
Webmin

I'm trying to think of other uses for it and drawing a blank.

NX. Kerberos. Fix reverse DNS (generally, SOA, one NS record is all you need, with PTRs for whatever else, ala:
1 PTR gateway.your.domain.
LDAP (FreeIPA ties Kerberos and LDAP together nicely) for centralized auth, Kerberos for single sign-on.
Jabber server.
DLNA.
SABNZBD.
Transmission-web or other web-based torrent client.
NFS.
PXE.
Time Machine, if you have any macs.

mindphlux
Jan 8, 2004
Probation
Can't post for 44 hours!


crosspost :

so I have a dumb linux question

I bought an asus zenbook with a SSD, and I'm trying to dual boot a windows install with ubuntu.

I have windows 7 installed, and my partitions all set - with about 16gb free for a linux install. my disk is formatted as a 'basic' windows disk, not a dynamic.

when I try to install ubuntu, I get to the point where I'm selecting the partition/drive to install it to, and it sees my SSD, but it shows the drive as having 0 partitions, with 100% space free. obviously I'm not going to continue from that point, as the installer would just overwrite my partition table and gently caress my windows install.

anyone have any idea why linux wouldn't be seeing my partitions on this SSD?

Fortuitous Bumble
Jan 5, 2007



spankmeister posted:

Image it. You can use something like clonezilla.


VNC should do you fine.

Thanks, for some reason I'd thought that VNC setups could only display an entire desktop, but I setup my server (tightvnc) to launch individual programs instead of an entire desktop and it seems to work fine. I'm guessing this has something to do with the way the X window system works.

The only problem is it seems a bit slow compared to nomachine, which I think was just compressed/cached X forwarding. Maybe it's just an issue with not using a good VNC viewer though.

ToxicFrog
Apr 26, 2008


Fortuitous Bumble posted:

The only problem is it seems a bit slow compared to nomachine, which I think was just compressed/cached X forwarding. Maybe it's just an issue with not using a good VNC viewer though.

NX only supports X11 and this lets it get away with a lot of vicious X11-specific optimizations. VNC is not X-specific, which gives it more flexibility at the cost of not being able to optimize as aggressively.

Open something in NX that makes heavy use of "hand-drawn" image buffers and the like (ie, stuff that has to be transmitted as actual images rather than compressed X11 protocol traffic) and you'll see performance drop to around that of VNC, if not worse.

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



Fortuitous Bumble posted:

Thanks, for some reason I'd thought that VNC setups could only display an entire desktop, but I setup my server (tightvnc) to launch individual programs instead of an entire desktop and it seems to work fine. I'm guessing this has something to do with the way the X window system works.

The only problem is it seems a bit slow compared to nomachine, which I think was just compressed/cached X forwarding. Maybe it's just an issue with not using a good VNC viewer though.

Oh you just want to do single programs? Just use X11 forwarding over SSH.

evol262
Nov 30, 2010
#!/usr/bin/perl

That can be painful even on a LAN. Wu, redraws.

ToxicFrog
Apr 26, 2008


Yeah, even with -C and on a LAN that can have really sad performance depending on what you're doing. Also, NX gets you screen-style detach/attach.

ssh -XC is nice in that it requires no setup at all but it's not really a good long-term solution.

Ratzap
Jun 9, 2012

Where's all the seekrit stuff then?

mindphlux posted:

anyone have any idea why linux wouldn't be seeing my partitions on this SSD?

Do you have any other drives? Are they showing up? Check the system boot log (or dmesg) and make sure the controller/drive was actually seen and initiallised.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.


I'm going to be deploying a web application over the next month. At the moment I've been using an Ubuntu Server, because what I've been used to on my desktop is Ubuntu and more recently Arch Linux.

That said, I'd like to make sure I'm deploying on a distro suited for the job, not anticipating heavy lead off the bat but you never know. I'm not adverse to getting used to a new distro if there's one more suitable to server use. I'm using Linode for the moment, and the web app is a python app using Django, if that affects my choices.

I know Distro choice is always contentious and subjective, judging by the results of googling about it, but anyway, just trying to get opinions much more educated than my own.

Misogynist
Jul 14, 2003

hubthumping

Maluco Marinero posted:

I'm going to be deploying a web application over the next month. At the moment I've been using an Ubuntu Server, because what I've been used to on my desktop is Ubuntu and more recently Arch Linux.

That said, I'd like to make sure I'm deploying on a distro suited for the job, not anticipating heavy lead off the bat but you never know. I'm not adverse to getting used to a new distro if there's one more suitable to server use. I'm using Linode for the moment, and the web app is a python app using Django, if that affects my choices.

I know Distro choice is always contentious and subjective, judging by the results of googling about it, but anyway, just trying to get opinions much more educated than my own.
Most startup-type people like Ubuntu, and most enterprise-type people like RHEL/CentOS. Ubuntu's Python lib packages are way more up-to-date than what's in EPEL if that's your thing, but if you're just going to be using distribute/bootstrap/whatever anyway then it really doesn't matter much.

Also: "averse."

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Maluco Marinero posted:

I'm going to be deploying a web application over the next month. At the moment I've been using an Ubuntu Server, because what I've been used to on my desktop is Ubuntu and more recently Arch Linux.

My advice is to use what you and anyone else who has to maintain it are familiar with. The only exception would be something that doesn't offer some kind of paid support if you really get in a jam, which means don't pick something like Gentoo or Slackware. Even if you never need the support, having it as an option is worth it.

All the web servers I run at my work are Ubuntu Server Edition. It's been great for us, super stable, and easy to maintain. There's definitely nothing wrong with running it in a production environment. If you do go with Ubuntu Server, stick to the LTS editions. (Every 2 years they do an LTS release, that gets 5 years of security updates)

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.


No probs, I'll stick with Ubuntu then. I was already going to go for the LTS versions anyway, just making sure it was cutting the mustard in production environments. Cheers.

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


Just checked on my Ubuntu 08.04 production server.

Processor information Intel(R) Xeon(R) CPU 5160 @ 3.00GHz, 4 cores
System uptime 252 days, 20 hours, 41 minutes
Running processes 176
CPU load averages 0.01 (1 min) 0.03 (5 mins) 0.00 (15 mins)
CPU usage 0% user, 0% kernel, 0% IO, 100% idle
Real memory 4.95 GB total, 936.13 MB used

fletcher
Jun 27, 2003

ken park is my favorite movie

No reboot in that long? Are you using ksplice or something for kernel updates?

Lysidas
Jul 26, 2002

John Diefenbaker is a madman who thinks he's John Diefenbaker.


It's much more likely that Ubuntu 8.04 hasn't received any kernel updates in at least that long. 4 years into an LTS cycle is quite a while.

As I understand it, LTS releases get security updates for 5 years but updated kernels (to support new hardware) for only 2 years. After that, it's reasonable to expect you to use the next LTS version. If it's new hardware you'll almost certainly do a fresh install and it makes more sense to use a newer distribution since there aren't any potential issues from upgrading in place.

Frozen-Solid
Aug 25, 2004

Behind you, Cobb! Stay alert!


I actually haven't as been up to date with patches as I could be, as I've been working on migrating to 12.04 and building a new server on a new SAN. Unfortunately the company actually installing the SAN has been less than quick about getting us set up to use it.

Thermopyle
Jul 1, 2003

"That which can be destroyed by the truth should be." Do not flinch from experiences that might destroy your beliefs. The thought you cannot think controls you more than thoughts you speak aloud.


I just installed Arch and Gnome 3 in Virtualbox.

Problem: When I'm moving the mouse around the overview mode randomly comes up. Sometimes it stays up, sometimes it comes up for one second and then goes back to the application I was using.

I made sure my Win key and Alt-F1 weren't stuck somehow...

Any ideas on how to fix this?

Goon Matchmaker
Oct 23, 2003

I play too much EVE-Online

Do you have the virtual box guest additions installed?

Doctor w-rw-rw-
Jun 24, 2008



Thermopyle posted:

I just installed Arch and Gnome 3 in Virtualbox.

Problem: When I'm moving the mouse around the overview mode randomly comes up. Sometimes it stays up, sometimes it comes up for one second and then goes back to the application I was using.

I made sure my Win key and Alt-F1 weren't stuck somehow...

Any ideas on how to fix this?

https://bugzilla.gnome.org/browse.c...uct=gnome-shell
Didn't see a relevant bug, but also didn't sort through the 1000-long "normal" bug list. Probably a virtualbox thing. If seamless mouse stuff is enabled, see if disabling it fixes the problem. Maybe it's moving the cursor in strange ways on transition?

Thermopyle
Jul 1, 2003

"That which can be destroyed by the truth should be." Do not flinch from experiences that might destroy your beliefs. The thought you cannot think controls you more than thoughts you speak aloud.


Goon Matchmaker posted:

Do you have the virtual box guest additions installed?

Yeah. I'm able to copy/paste between host and VM, enter seamless mode, etc.


Doctor w-rw-rw- posted:

https://bugzilla.gnome.org/browse.c...uct=gnome-shell
Didn't see a relevant bug, but also didn't sort through the 1000-long "normal" bug list. Probably a virtualbox thing. If seamless mouse stuff is enabled, see if disabling it fixes the problem. Maybe it's moving the cursor in strange ways on transition?

I'll try the mouse thing in a couple hours. I wouldn't think it's that because it happens when I keep the mouse completely within the VM or when I'm in full-screen. We'll see...

Thermopyle
Jul 1, 2003

"That which can be destroyed by the truth should be." Do not flinch from experiences that might destroy your beliefs. The thought you cannot think controls you more than thoughts you speak aloud.


VirtualBox settings has an "Enable absolute pointing device" option that I disabled and that fixed it, I think.

It's been half a decade since I messed around with virtual machines. They're pretty good now! I can enable full-screen mode and I pretty much can't tell I'm running an OS in a VM.

edit: OK, nevermind...still not fixed. VBox doesn't have a specific "disable mouse integration" option as far as I can tell.

I've found that every few clicks it thinks I'm clicking at the top of the screen instead of wherever I'm actually clicking.

Thermopyle fucked around with this message at Jul 27, 2012 around 22:38

Doctor w-rw-rw-
Jun 24, 2008



Thermopyle posted:

VirtualBox settings has an "Enable absolute pointing device" option that I disabled and that fixed it, I think.

It's been half a decade since I messed around with virtual machines. They're pretty good now! I can enable full-screen mode and I pretty much can't tell I'm running an OS in a VM.

edit: OK, nevermind...still not fixed. VBox doesn't have a specific "disable mouse integration" option as far as I can tell.

I've found that every few clicks it thinks I'm clicking at the top of the screen instead of wherever I'm actually clicking.

Plug in a second mouse and use USB passthrough.

Longinus00
Dec 29, 2005
Ur-Quan

Thermopyle posted:

VirtualBox settings has an "Enable absolute pointing device" option that I disabled and that fixed it, I think.

It's been half a decade since I messed around with virtual machines. They're pretty good now! I can enable full-screen mode and I pretty much can't tell I'm running an OS in a VM.

edit: OK, nevermind...still not fixed. VBox doesn't have a specific "disable mouse integration" option as far as I can tell.

I've found that every few clicks it thinks I'm clicking at the top of the screen instead of wherever I'm actually clicking.

Is the "disable mouse integration" option under Machine good enough?

Thermopyle
Jul 1, 2003

"That which can be destroyed by the truth should be." Do not flinch from experiences that might destroy your beliefs. The thought you cannot think controls you more than thoughts you speak aloud.


Longinus00 posted:

Is the "disable mouse integration" option under Machine good enough?

Oops, I missed that.

Unfortunately, when I do that I don't have a mouse cursor.

Adbot
ADBOT LOVES YOU

Grumpwagon
May 5, 2007
I am a giant assfuck who needs to harden the fuck up.

Thermopyle posted:

I just installed Arch and Gnome 3 in Virtualbox.

Problem: When I'm moving the mouse around the overview mode randomly comes up. Sometimes it stays up, sometimes it comes up for one second and then goes back to the application I was using.

I made sure my Win key and Alt-F1 weren't stuck somehow...

Any ideas on how to fix this?

This is stupid, and almost certainly not the problem, but since you didn't mention it, I will throw out this obligatory "you're not mousing to the upper left hot-corner, right?" The reason I ask is, I've used an extension to disable it on my main computer for so long that I was surprised and confused when it popped up on my laptop.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply
«386 »