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 money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
twofish
Apr 17, 2006

.
I'm experiencing some strangeness with gnome's auto-mounter. I setup a raid 1 array, without lvm, and encrypted it with luks. I'm not using it for any system stuff and it's not needed at boot. It assembles itself fine through mdadm.conf, and the block is available at /dev/md1 after boot.

I unlock the device using:
code:
sudo cryptsetup luksOpen /dev/md1 raid
Which, if I ignore gnome, successfully unlocks it at /dev/mapper/raid. I can then mount it manually or through fstab. This is all fine and dandy.

However, when I run the luksOpen command, gnome pops up with it's own "Unlock Encrypted Data" dialog box, prompting for a password. It doesn't really do anything that I can tell. It makes an icon in "Places" showing "500.1Gb Encrypted Data", which if I click on, simply prompts me for the password again (regardless if I tell it to remember). I have a feeling there is some kind of conflict occurring between my manual commands and gnome, but it doesn't do anything at all for the 1Tb drive which is also encrypted the same way but is not part of any raid.

So what I'm wondering is:
1) why doesn't gnome see the device until after I run cryptsetup when encrypted usb drives appear, unlock, and auto-mount just fine?
2) why is it only exhibiting this behavior with the raid and not the stand-alone drive?
3) what is it going to take to get it to exhibit the same behavior for all devices? Either by stopping auto-mouting all together or getting it to consistently show all the devices in Places so I can click on them and let it take care of the rest.


:google: has failed me, and yes fam, hal, and all that other poo poo is working fine.

e: I just checked with a usb drive and apparently gnome doesn't create things in /dev/mapper/, that being the case, I have no idea if it even uses dm-crypt w/ cryptsetup or what the gently caress it's doing.

twofish fucked around with this message at 06:18 on Apr 22, 2009

Adbot
ADBOT LOVES YOU

Crusader
Apr 11, 2002

Onken posted:

Hey I just upgraded to KDE4, what should I stick in ~/.xinitrc to launch on "startx"?

"exec startkde" used to work on KDE 3.5 but no joy now. Any ideas?

code:
exec startkde4
should work, depending on whether or not the script is in your path.

Crusader fucked around with this message at 15:44 on Apr 22, 2009

Onken
Feb 12, 2003

ouch my knee

Crusader posted:

code:
exec startkde4
should work, depending on whether or not the script is in your path.

Thanks for the tip, alas, it was not. The drat startkde script kicks me back to console after a couple of seconds for some reason, but going via kdm works fine. Hummm.

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat
I'm about to kill myself. I'm trying to install a network driver on a new small PC that we want to run as an Centos Server for testing applications. We're doing inter-op testing for Digium for their Asterisk telephony platform. I'm very comfortable with Linux, but this is driving me nuts.

I've spent a couple hours trying to figure out how to get them to install, but it's a nightmare when I have to change my KVM back and forth to try the commands I'm finding. I ended up configuring a serial interface on the box (which was easy) so I can console into it. (Turns out Vista doesn't include Hyperterm, but that was easy to fix).

The MB is an Intel D945GCLF. I installed Centos 4.5 on it (5.2 gives me a kernel panic). (It's running Kernel 2.6.9-55.ELsmp). After installing it, eth0 doesn't come up. So I go over to the Intel website and download the drivers.

Here's my console out put:

code:

[root@localhost Linux]# make install
make -C src/ install
make[1]: Entering directory `/usr/src/Linux/src'
install -m 744 -c r8101.ko /lib/modules/2.6.9-55.ELsmp/kernel/drivers/net/
install: cannot stat `r8101.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/Linux/src'
make: *** [install] Error 2
[root@localhost Linux]#

What? You can't find "r8101.ko", odd.

code:
[root@localhost Linux]# cd src/
[root@localhost src]# ls
Makefile  Makefile_linux24x  r8101.h  r8101_n.c  rtl_ioctl.c  rtl_ioctl.h
[root@localhost src]#
That file is not included in the driver package?

Oh, I see, I didn't make the package first.

code:

[root@localhost Linux]# make
make -C src/ clean
make[1]: Entering directory `/usr/src/Linux/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version
s Module.symvers Modules.symvers rset
make[1]: Leaving directory `/usr/src/Linux/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/Linux/src'
make -C /lib/modules/2.6.9-55.ELsmp/build SUBDIRS=/usr/src/Linux/src modules
make: *** /lib/modules/2.6.9-55.ELsmp/build: No such file or directory.  Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: **
* [modules] Error 2
make[1]: Leaving directory `/usr/src/Linux/src'
make: *** [modules] Error 2

So, how exactly to I get this /build directory to appear? Google searching tells me to do a yum update, but of course with no NIC I can't.

Please help.

Grigori Rasputin
Aug 21, 2000
WE DON'T NEED ROME TELLING US WHAT TO DO

AzraelNewtype posted:

Look into NX (there are free variants). It'll only work between boxes running xorg, but its performance is much better than VNC for the same reason RDP is.

Hey, this is great. I run Windows on the one box, so I just set up an Ubuntu VM so I can remote using that... bizarro overkill, but it works.

One question, how does NX manage sessions? I was expecting it to log in to my existing session logged in at home, but it seems to start an entirely new one. When I disconnected, I expected my NX session to go kaput, but upon reconnecting the session's in the same state I left it in. How is all this jazz managed? Is there any way to jump between sessions at home/remotely? I don't want to find myself in situations where I leave something heavy duty running in the remote session so it's chugging when I'm using it at home.

diafoirus
Mar 25, 2009

Jerk McJerkface posted:

I'm about to kill myself. I'm trying to install a network driver on a new small PC that we want to run as an Centos Server for testing applications. We're doing inter-op testing for Digium for their Asterisk telephony platform. I'm very comfortable with Linux, but this is driving me nuts.


First dont kill yourself XD....

The intel' driver dont work , contains many errors related with arrays, etc.. so try download the driver from the true owner : Realtek ^^

http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false

I'll uploaded the file to rapidshare too:

http://rapidshare.com/files/224534908/r8101-1.011.00.tar.bz2.html

And it MD5 signature : C603A7CD18CED13F81229C10933119F8

follow this step by step:

1) Uncompress the file:

code:
tar -xjvf r8101-1.011.00.tar.bz2
2) inside of r8101-1.011.00 directory do (as root):

code:
r8101-1.011.00# make
3) your exit will be this (no errors):

code:

/r8101-1.011.00# make
make -C src/ clean
make[1]: Entering directory `/usr/src/r8101-1.011.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/usr/src/r8101-1.011.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8101-1.011.00/src'
make -C /lib/modules/2.6.27.7-smp/build SUBDIRS=/usr/src/r8101-1.011.00/src modules
make[2]: Entering directory `/usr/src/linux-2.6.27.7'
  CC [M]  /usr/src/r8101-1.011.00/src/r8101_n.o
/usr/src/r8101-1.011.00/src/r8101_n.c: In function 'rtl8101_down':
/usr/src/r8101-1.011.00/src/r8101_n.c:4009: warning: unused variable 'poll_locked'
/usr/src/r8101-1.011.00/src/r8101_n.c: At top level:
/usr/src/r8101-1.011.00/src/r8101_n.c:2252: warning: 'rtl8101_phy_power_down' defined but not used
/usr/src/r8101-1.011.00/src/r8101_n.c:428: warning: 'rtl8101_ephy_read' defined but not used
include/asm/io_32.h: In function 'memcpy_fromio':
include/asm/io_32.h:151: warning: passing argument 2 of '__memcpy' discards qualifiers from pointer target type
  CC [M]  /usr/src/r8101-1.011.00/src/rtl_eeprom.o
  LD [M]  /usr/src/r8101-1.011.00/src/r8101.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/r8101-1.011.00/src/r8101.mod.o
  LD [M]  /usr/src/r8101-1.011.00/src/r8101.ko
make[2]: Leaving directory `/usr/src/linux-2.6.27.7'
strip --strip-debug r8101.ko
make[1]: Leaving directory `/usr/src/r8101-1.011.00/src'
make -C src/ install
make[1]: Entering directory `/usr/src/r8101-1.011.00/src'
install -m 744 -c r8101.ko /lib/modules/2.6.27.7-smp/kernel/drivers/net/
make[1]: Leaving directory `/usr/src/r8101-1.011.00/src'
/r8101-1.011.00#

4) Later do this instructions (as root):

code:

/r8101-1.011.00# make install
/r8101-1.011.00# modprobe r8101

check you ifconfig to see you current adapter up, if not try this instruction and check it again with ifconfig:

code:

/r8101-1.011.00# ifconfig eth0 up

5) For another test or see if the driver is loaded ok, check the lasts line of this command (as root):

code:

/r8101-1.011.00# dmesg

That's all =)

some kinda jackal
Feb 25, 2003

 
 
I need some scripting advice.

I've got a terminal server that allows connections to my handful of Cisco devices. To connect to these you just "telnet termserver.local deviceport" where deviceport is 2001 for port 1, 2002 for port 2, etc.

I'm way too lazy to remember what each port is connected to so I thought there might be a good way to script out some kind of menu like:

[1] Console to 2950 Switch 1
[2] Console to 2950 Switch 2
[3] Console to 3640 Router 1
[4] Console to 3640 Frame Relay Switch

and behind the scenes it would just "telnet termserver.local switch1_port" if I hit 1, etc.

Is there a quick and easy way to do this via some scripting toolkit or am I looking at coding something in C?

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat

diafoirus posted:

HOW TO DO IT IN A CONCISE AND EASY TO READ EXPLAINATION

I swear, this is the most helpful post ever on the internet in the history of Linux help. I ended up researching and figuring out that Centos 5.3 has the right driver, so I'm installing that over the box right now. If it doesn't come up, then I'll apply your information.

I asked our CTO, our resident Linux guru and he told me that I was a moron for not making the file first and I just had to figure out how to get the kernel-devel package on to the box. When I told him I couldn't get the NIC working to do a yum update he basically called me a moron, laughed at me and went back to his office.

some kinda jackal
Feb 25, 2003

 
 

Martytoof posted:

:words:

After some googling I came up with this:

code:
#!/bin/sh

tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15

dialog --menu "Connection:" 20 60 10 \
 2002 "C2900-24" \
 2003 "C2950-12 01" \
 2004 "C2950-12 02" \
 2005 "C2620XM 01" \
 2006 "C3640 128D/16F 01" \
 2007 "C3640 64D/16F 01" \
 2008 "C3640 64D/15F 02 FrameSwitch" 2> $tempfile

retval=$?
choice=`cat $tempfile`

case $retval in
        0)
                clear
                telnet 192.168.1.20 $choice;;
        1)
                clear;;
        255)
                clear;;
esac
.. in case it helps anyone else down the road.

Lexical Unit
Sep 16, 2003

Is there some why to inspect an attached /dev/sdX device and know if it's attached via USB or SATA or wotnot? Some way that can be automated?

I have a hands-free install disc (I didn't make it) that installs RHEL on every loving hard drive attached to a machine, even if a particular hard drive happens to be a removable USB device probably used for backup/moveable storage. I figure there's got to be a way to make the install smarter so that it doesn't install to a USB device.

twofish
Apr 17, 2006

.

TekLok posted:

I'm experiencing some strangeness with gnome's auto-mounter.

Okay I figured this poo poo out, finally. Required work-around the details of which follow:

Gnome-desktop listens for devices from hal and creates anything not in fstab (or in fstab with the noauto option) as a link in places. The problem with this is it does not check with mdadm.conf or /etc/crypttab, so block devices that are used by cryptsetup or mdadm still register as okay to try to mount with gnome-mount. So Gnome still creates icons for those in "Places" and lets you think you can mount them, and thanks to Gnome's nasty habit of hiding away errors, they simply appear like objects that do nothing. It also exhibits this behavior when manually mounting fuse things like sshfs. This is annoying, stupid, and ugly.

The creation of these annoying icons is not handled by gnome-volume-manager, so removing it does not help the problem. gnome-mount, pmount, etc, also have nothing to do with it.

You have to create a hal policy like so:

code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
  <match key="storage.hotpluggable" bool="false">
   <match key="storage.removable" bool="false">
    <merge key="storage.automount_enabled_hint" type="bool">false</merge>
   </match>
  </match>
 </device>
 <device>
  <match key="volume.uuid" string="4776db67-a93a-4f23-9035-f1ee3436c5bc">
   <merge key="volume.ignore" type="bool">true</merge>
  </match>
  <match key="volume.uuid" string="42f1092e-38b1-483b-8fb6-cb88f6f6c6fe">
   <merge key="volume.ignore" type="bool">true</merge>
  </match>
 </device>
</deviceinfo>
Put it in /etc/hal/fdi/policy/ and name it in the format "20-bla-bla-bla-policy.fdi". That number out front is important, something to do with the priority that hal applies these policies, so if you have other poo poo in there I'd be really careful (I don't). Also you can use the "volume.uuid" key to specify other drives you don't want gnome to see.

e: This honestly should be the default behavior, I don't know why it isn't. It pretty much means anyone who is using cryptsetup or mdadm, or both, without lvm or some other volume manager is going to have useless, broken, clutter in their menu.

twofish fucked around with this message at 08:54 on Apr 24, 2009

Excavation
May 18, 2004

FEED ME CRAYONS
Right, so I've switched back to Windows (for music production reasons) and I am unable to read my old ext3 partition with any freeware tools. I believe (or so google and a diagnostic tool tell me) that this is because the inode size is 256 rather than 128 for one reason or another. I honestly have no idea what that means but it's loving me about left right and centre.

I have plenty of space on my primary hard disk to copy the files, but the partition is unrecognised by the tools I mentioned or by various live cds. The live cds are a few years old and the drive is SATA, but I'm not sure if that's the problem. I can also boot a Slackware install disk and view the ext3 partition without any problems, but the NTFS support is lacking so I am unable to copy the files to my windows drive.

What are my options? I really don't want to flatten it as it contains a bunch of old tracks I made.

LiquidRain
May 21, 2007

Watch the madness!

Download a new Live CD like Ubuntu 9.04, mount your NTFS partition, and get crackin.

maskenfreiheit
Dec 30, 2004
Edit: Double Post

maskenfreiheit fucked around with this message at 20:42 on Mar 13, 2017

Mario
Oct 29, 2006
It's-a-me!
You have to create a partition using fdisk, then run mke2fs (or mkfs -t ext2 as in your example) on /dev/sdb1 to make an ext2 filesystem on the 1st partition.

inveratulo
May 14, 2002
wat

GregNorc posted:

So I'm trying to format the 500GB usb drive I just got (ext2 so OSX can write to it as well). Never done this from the command line before. I thought I need to run fdisk to erase all the data then mkfs. Formatting with fdisk runs fine, but trying to make the file system doesn't work (even though the drive has been unmounted)

The exact error is "/dev/sdb is apparently in use by the system; will not make a filesystem here!"

The full interaction is below, copied and pasted from terminal (you can see fdisk go fine, then I get an error on mkfs, even after unmounting

code:
[ruckus@localhost ~]$ sudo mkfs -t ext2 /dev/sdb
mke2fs 1.41.4 (27-Jan-2009)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
/dev/sdb is apparently in use by the system; will not make a filesystem here!
[ruckus@localhost ~]$ umount /dev/sdb
umount: /dev/sdb is not mounted (according to mtab)
[ruckus@localhost ~]$ sudo mkfs -t ext2 /dev/sdb
mke2fs 1.41.4 (27-Jan-2009)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
/dev/sdb is apparently in use by the system; will not make a filesystem here!

Linux nerds might scoff at this but doing these sorts of tasks through Webmin makes life easier/quicker.

tommej
Apr 18, 2007

by Fistgrrl
Crossposting from the ubuntu thread,

I linked an ubuntu laptop to my networks active directory and that's working fine, but is there any way I can make the home folder of ubuntu the home directory set in active directory(\\server\students\username\)?

dont skimp on the shrimp
Apr 23, 2008

:coffee:
Also, ext3 is backwards compatible with ext2, so can't you just format the drive as ext3 and mount it as ext2 in OSX?

falz
Jan 29, 2005

01100110 01100001 01101100 01111010

inveratulo posted:

Linux nerds might scoff at this but doing these sorts of tasks through Webmin makes life easier/quicker.
Someone was bound to reply to this, so I will. For many people typing two commands is 10x faster and easier than clicking 10 times in a web interface. Webmin is probably a great starting point as long as it tells you what underlying command it's running. It seems odd and dangerous to me that a web interface has access to format your hard drives.

waffle iron
Jan 16, 2004

Zom Aur posted:

Also, ext3 is backwards compatible with ext2, so can't you just format the drive as ext3 and mount it as ext2 in OSX?
I'm pretty sure as long as the ext3 filesystem is unmounted clean and the journal is in an inode, not a file (which is 99.9% of all ext3 filesystems).

JHVH-1
Jun 28, 2002

Zom Aur posted:

Also, ext3 is backwards compatible with ext2, so can't you just format the drive as ext3 and mount it as ext2 in OSX?

That should work, it just might interfere with the journal when you go back to mounting it in linux. It works in emergencies but I don't know how safe it is to do on a regular basis.

I was going to say ext2 for OSX is really crappy and the last time I tried it my machine crashed. However, it looks like someone has made fuse-ext2 and theres a dmg for OSX. So that might be somewhat better.

Oh and for formatting, parted is a lot nicer. Just run parted /dev/sdb and then mkpart. Beginning of partition is 0 and end is 500G (well whatever parted says is the total space when you start it). It accepts using Terms like 100M or 500G so you don't have to worry about blocks or exact sizes in KB etc.

kyuss
Nov 6, 2004

Quick question:
  • I just installed SlugOS on the Linksys NSLU2 Device
  • I want lighttpd+mod_webdav to give me access to my files from everywhere
  • For access control, I need to use htpasswd/htaccess
  • As the apache2-utils aren't available for some reason (and I don't need the full apache package), I installed mini_httpd from here instead

My problem is: htpasswd seems to be installed, but I cannot run it for some reason:

code:
root@openslug:/usr/sbin# ls -l
total 364
lrwxrwxrwx  1 root root     17 Apr 22 21:49 brctl -> ../../bin/busybox
lrwxrwxrwx  1 root root     17 Apr 22 21:49 chpasswd -> ../../bin/busybox
lrwxrwxrwx  1 root root     16 Apr 22 20:25 chroot -> chroot.coreutils
-rwxr-xr-x  1 root root  12404 Mar  2 18:39 chroot.coreutils
lrwxrwxrwx  1 root root     17 Apr 22 21:49 crond -> ../../bin/busybox
-rwxr-xr-x  1 root root   5807 Aug  5  2007 htpasswd
lrwxrwxrwx  1 root root     17 Apr 22 21:49 httpd -> ../../bin/busybox
lrwxrwxrwx  1 root root     17 Apr 22 21:49 loadfont -> ../../bin/busybox
lrwxrwxrwx  1 root root     17 Apr 22 21:49 rdate -> ../../bin/busybox
-rwxr-xr-x  1 root root  14320 Mar  2 16:39 readprofile
-rwxr-xr-x  1 root root  10768 Jan  1  1970 rngd
lrwxrwxrwx  1 root root     17 Apr 22 21:49 setlogcons -> ../../bin/busybox
-rwxr-xr-x  1 root root 263192 Jan  1  1970 sshd
lrwxrwxrwx  1 root root     17 Apr 22 21:49 telnetd -> ../../bin/busybox
-rwxr-xr-x  1 root root   5804 Mar  2 16:39 tunelp
-rwxr-xr-x  1 root root   6311 Jan  1  1970 update-inetd
-rwxr-xr-x  1 root root   4131 Jan  1  1970 update-modules
-rwxr-xr-x  1 root root  16308 Jan  1  1970 update-passwd
-rwxr-xr-x  1 root root   4409 Jan  1  1970 update-rc.d
root@openslug:/usr/sbin#
I tried everything I remember from linux:
  • htpasswd
  • ./htpasswd
  • sudo, su...
to no avail. The file cannot be found somehow. Example:
code:
root@openslug:/usr/sbin# ./htpasswd
-sh: ./htpasswd: not found
root@openslug:/usr/sbin#
Any ideas?

Polygynous
Dec 13, 2006
welp
Is it possible htpasswd is a script and the interpreter is missing or has some other problem? Or if it's a binary has missing libraries? Try running 'ldd htpasswd' in that case.

rugbert
Mar 26, 2003
yea, fuck you
how can I backup my home folder including all the .hidden files? I dont really have much in the way of documents, but I want to keep all my settings for when I upgrade to ubuntu 9.04

plaz
Jul 25, 2006

rugbert posted:

how can I backup my home folder including all the .hidden files? I dont really have much in the way of documents, but I want to keep all my settings for when I upgrade to ubuntu 9.04

To make a compressed tar archive of your home directory:

code:
tar czvf /tmp/homedir-backup.tar.gz /home/<username>/
or to just copy everything to another directory:

code:
rsync -av /home/<username>/ /path/to/backupdir/
edit: for clarification, if you use rsync (or cp or tar) recursively on the directory itself, it'll get all the dotfiles. If you specify /path/* it won't, as * doesn't match files starting with a .

Using '.*' is unwise, as it'll also match '.' and '..'

Ireland Sucks
May 16, 2004

I'm not even sure this is unintended behaviour but my synaptic package manager doesn't have much in the way of uninstalled packages. For example, if I type 'tripwire' in shell I get a message about being able to install it with 'apt-get install tripwire', yet it doesn't turn up if I search for it in Synaptic.

I have ticked all the package boxes, added medibuntu, uncommented everything in sources.list, run apt-get update and im using Ubuntu Jaunty although I had the same problem with 8.10 too. If nothing is wrong here, is there a different manager to see all of these packages or something?

Prince John
Jun 20, 2006

Oh, poppycock! Female bandits?

Slave posted:

I'm not even sure this is unintended behaviour but my synaptic package manager doesn't have much in the way of uninstalled packages. For example, if I type 'tripwire' in shell I get a message about being able to install it with 'apt-get install tripwire', yet it doesn't turn up if I search for it in Synaptic.

Not sure if this helps but sometimes the quicksearch doesn't seem to display all packages - have you been using the 'proper' search in Synaptic?

@rugbert, for future installs, if you keep your /home on a separate partition, you can reinstall Ubuntu as many times as you like and all your settings will carry across to the new install.

Ireland Sucks
May 16, 2004

Col posted:

Not sure if this helps but sometimes the quicksearch doesn't seem to display all packages - have you been using the 'proper' search in Synaptic?

I definitely tried this but since it is now working fine it must have been before one of the above steps. So thanks, nothing to see here.

plaz
Jul 25, 2006

Slave posted:

I'm not even sure this is unintended behaviour but my synaptic package manager doesn't have much in the way of uninstalled packages. For example, if I type 'tripwire' in shell I get a message about being able to install it with 'apt-get install tripwire', yet it doesn't turn up if I search for it in Synaptic.

Tripwire is in the community-maintained 'universe' repository (i.e. it's packaged for ubuntu but may not get security or bug fixes as quickly, if at all). The universe repository may not be enabled on your install -- you can turn it on by running Synaptic, clicking Settings -> Repositories, then enabling 'universe' (possibly also 'restricted' and 'multiverse')

edit: Sorry, read your post properly and saw you'd already uncommented them from sources.list :D

Tad Naff
Jul 8, 2004

I told you you'd be sorry buying an emoticon, but no, you were hung over. Well look at you now. It's not catching on at all!
:backtowork:
I'm trying to make a cheap-rear end video recorder without doing the whole myth thing. After fighting for a few weeks getting my little Hauppauge thing to work, it does. Now I want it to record a certain couple of shows for me. Right now I set up a cron job:

code:
55 22 * * 1-4 /home/fd/bin/show > /dev/null
5 00 * * 2-5 /usr/bin/pkill vlc
and /home/fd/bin/show is:

code:
#!/bin/bash
ivtv-tune -t us-cable -c 57
vlc /dev/video0 -I dummy --sout file/ts:/export/video/dailyshow.mpg
There must be a more elegant way of doing this though.

Tad Naff fucked around with this message at 00:36 on Apr 27, 2009

Jisei
Dec 22, 2004

A tiny bundle of supressed instincts held together by spit and caffeine.
Apologies if this has been asked already, but I've installed Ubuntu Jaunty as a dual-boot with Windows 7. Everything's working swimmingly except for one thing--when I use a bittorrent client on any other OS, I can save downloaded files to my NAS, but in Linux it doesn't give me the option, even though I can mount and browse to the NAS just fine in Nautilus.

What am I missing? I have to assume there's a way to save torrent data to a networked drive but I can't figure out how to do it.

I've been alternately using Transmission, Deluge, and Vuze, FTR.

falz
Jan 29, 2005

01100110 01100001 01101100 01111010

FeloniousDrunk posted:

There must be a more elegant way of doing this though.

Nothing wrong with a script in my opinion, but why not just use a single script for all of your shows and pass it 3 arguments- channel number, name of show, duration. I also threw a timestamp in so it's less likely that you overwrite things.

code:
#!/bin/sh
# $1 = channel number
# $2 = show name
# $3 = duration in minutes
TIMESTAMP=`date +%Y%m%d`

if [ $# -eq 3 ]
then
        echo "kill $$" | at now + $3 minutes
        ivtv-tune -t us-cable -c $1
        vlc /dev/video0 -I dummy --sout file/ts:/export/video/$2-$TIMESTAMP.mpg
else
        echo "Usage: $0 CHANNEL SHOWNAME DURATION"
fi
Then set your crontab:
code:
55 22 * * 1-4 /home/fd/bin/show 57 dailyshow 30> /dev/null
Note however that 'at' works when the clock turns, not in the number of minutes since you issue the command. It should be fine in your case, but if you launched the command to record a 1 minute show at :50 seconds into any minute, it would only record 10 seconds.

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

Jisei posted:

Apologies if this has been asked already, but I've installed Ubuntu Jaunty as a dual-boot with Windows 7. Everything's working swimmingly except for one thing--when I use a bittorrent client on any other OS, I can save downloaded files to my NAS, but in Linux it doesn't give me the option, even though I can mount and browse to the NAS just fine in Nautilus.

What am I missing? I have to assume there's a way to save torrent data to a networked drive but I can't figure out how to do it.

I've been alternately using Transmission, Deluge, and Vuze, FTR.

When you've got it mounted in Nautilus, it should create an icon on your desktop. The name of that icon is the drive to look for in the save-to window. It should appear in the pane on the left, along with "Desktop", "File System", etc.

Jisei
Dec 22, 2004

A tiny bundle of supressed instincts held together by spit and caffeine.

Janin posted:

When you've got it mounted in Nautilus, it should create an icon on your desktop. The name of that icon is the drive to look for in the save-to window. It should appear in the pane on the left, along with "Desktop", "File System", etc.

That's what I figured, as previous installs worked that way, but it doesn't appear in the left pane even when the NAS is clearly mounted. My other drive appears, but no "Network" options appear. Any ideas?

Tad Naff
Jul 8, 2004

I told you you'd be sorry buying an emoticon, but no, you were hung over. Well look at you now. It's not catching on at all!
:backtowork:

falz posted:

Nothing wrong with a script in my opinion, but why not just use a single script for all of your shows and pass it 3 arguments- channel number, name of show, duration. I also threw a timestamp in so it's less likely that you overwrite things.

code:
#!/bin/sh
# $1 = channel number
# $2 = show name
# $3 = duration in minutes
TIMESTAMP=`date +%Y%m%d`

if [ $# -eq 3 ]
then
        echo "kill $$" | at now + $3 minutes
        ivtv-tune -t us-cable -c $1
        vlc /dev/video0 -I dummy --sout file/ts:/export/video/$2-$TIMESTAMP.mpg
else
        echo "Usage: $0 CHANNEL SHOWNAME DURATION"
fi
Then set your crontab:
code:
55 22 * * 1-4 /home/fd/bin/show 57 dailyshow 30> /dev/null
Note however that 'at' works when the clock turns, not in the number of minutes since you issue the command. It should be fine in your case, but if you launched the command to record a 1 minute show at :50 seconds into any minute, it would only record 10 seconds.

Thanks! This looks good, I've saved it in case I ever want to record something else. Mostly I was concerned/wondering if using "pkill" might result in broken files, and if vlc might have some sort of timer option that I hadn't found.

Lexical Unit
Sep 16, 2003

Lexical Unit posted:

Is there some why to inspect an attached /dev/sdX device and know if it's attached via USB or SATA or wotnot? Some way that can be automated?

I have a hands-free install disc (I didn't make it) that installs RHEL on every loving hard drive attached to a machine, even if a particular hard drive happens to be a removable USB device probably used for backup/moveable storage. I figure there's got to be a way to make the install smarter so that it doesn't install to a USB device.

In case anyone is interested, I put together a solution based on the information on this website.

kyuss
Nov 6, 2004

kyuss posted:

Quick question:
  • I just installed SlugOS on the Linksys NSLU2 Device
  • I want lighttpd+mod_webdav to give me access to my files from everywhere
  • For access control, I need to use htpasswd/htaccess
  • As the apache2-utils aren't available for some reason (and I don't need the full apache package), I installed mini_httpd from here instead

My problem is: htpasswd seems to be installed, but I cannot run it for some reason:

After virtually every package I tried to install needed serious tweaking, I said gently caress this. Installing Debian now.

maskenfreiheit
Dec 30, 2004
Edit: Double Post

maskenfreiheit fucked around with this message at 20:42 on Mar 13, 2017

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender

GregNorc posted:

So apt-get is a liitle wonky on debian.

Tried to install firefox, get an error and told to use iceweasel.

I've tried googling, but everything is either the apt man page or written for very new users (like the basic syntax of apt, not how to add packages)

I have no clue what the "reputable" package sources would be, if anyone knows what I should edit/where so that apt can get all major packages, I'd appreciate the help. (I know that there's "non free" repositories etc I should use but have no clear where to find out what they are or how to add them to apt, never had any problems like this with yum on Fedora)

Did you try using iceweasel instead of firefox? I mean, I don't even understand what your problem is or why you're trying to add a repo.

Adbot
ADBOT LOVES YOU

maskenfreiheit
Dec 30, 2004
Edit: Double Post

maskenfreiheit fucked around with this message at 20:43 on Mar 13, 2017

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply