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
Handsome Wife
Feb 17, 2001

Crush posted:

Edit: Never mind. I accomplished this with Automator. Please feel free to paste the code here though :)

This would replace the space in all file names in the directory with periods:

code:
for f in *; do mv "$f" `echo $f | sed 's/ /./g'`; done

Adbot
ADBOT LOVES YOU

GringoGrande
Jul 27, 2001
Nah...
You don't actually need sed, bash's string substitution works well enough.
code:
for file in *; do mv "$file" "${file// /.}; done"

Sneaking Mission
Nov 11, 2008

I don't know if OS X comes with the perl rename script, but if it does you could use
code:
rename 's/ /./g' filename
Edit:
Looks like it doesn't

Sneaking Mission fucked around with this message at 22:20 on Sep 7, 2009

Lamb-Blaster 4000
Sep 20, 2007

I need to install a vnc server on ubuntu, I googled around for a walk through, but they're all about accessing a linux machine with vnc.

any recommendations for server software or where to find the walk through?

Crush
Jan 18, 2004
jot bought me this account, I now have to suck him off.
Thanks Handsome Wife, GringoGrande, and Clone5!

crazysim
May 23, 2004
I AM SOOOOO GAY

Lamb-Blaster 4000 posted:

I need to install a vnc server on ubuntu, I googled around for a walk through, but they're all about accessing a linux machine with vnc.

any recommendations for server software or where to find the walk through?

It's already installed in Ubuntu. There's an option for enabling it in the Administration portion. I think it was called "Screen Sharing" or something similar to that.

It is unusable out of the box with the accelerated drivers though. Luckily, it seems some of the users on the Ubuntu forums have a fix.

other people
Jun 27, 2004
Associate Christ

ShoulderDaemon posted:

You just installed a newer version of the kernel than there is a binary nvidia package for.

You can ask pkg-nvidia-devel@lists.alioth.debian.org when a newer nvidia package will be available, or you can downgrade your kernel to 2.6.26-2 for which there is a nvidia package, or you can install nvidia-kernel-source and linux-tree-2.6.30 and follow the directions using module-assistant to compile the module yourself.

I am happy to downgrade the kernel to make this work.

I have tried aptitude -P -t stable install linux-image-686=2.6.26+17+lenny1 but it always reports it can't find that version. I have also tried aptitude -P install linux-image-2.6.26-2-686. I am a bit confused here.

My sources.list follows. Maybe I have it setup incorrectly?
code:
deb [url]http://debian.mirror.frontiernet.net/debian/[/url] squeeze main non-free contrib 
deb-src [url]http://debian.mirror.frontiernet.net/debian/[/url] squeeze main non-free contrib 

deb [url]http://security.debian.org/[/url] squeeze/updates main contrib non-free 
deb-src [url]http://security.debian.org/[/url] squeeze/updates main contrib non-free

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender
Not sure why you can't find it on your local mirror, but here you go. When you can't find a package, packages.debian.org is a good place to search.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

Kaluza-Klein posted:

My sources.list follows. Maybe I have it setup incorrectly?
You could just try entering those urls in a browser, navigate to the packages you want, download them and use dpkg -i to install them.

Still, something seems very wrong with your package mananger.

crab avatar
Mar 15, 2006

iŧ Kë3Ł, cħ gøÐ i- <Ecl8

Lamb-Blaster 4000 posted:

I need to install a vnc server on ubuntu, I googled around for a walk through, but they're all about accessing a linux machine with vnc.

any recommendations for server software or where to find the walk through?
System > Preferences > Remote Desktop

AFAIK this will only work if you're already logged into GNOME.

Lamb-Blaster 4000
Sep 20, 2007

crazysim posted:

It's already installed in Ubuntu. There's an option for enabling it in the Administration portion. I think it was called "Screen Sharing" or something similar to that.

It is unusable out of the box with the accelerated drivers though. Luckily, it seems some of the users on the Ubuntu forums have a fix.

Sweet, thanks! It was called Remote Desktop (how I didn't see that before is beyond me)

Wicaeed
Feb 8, 2005
Hi there,

New Ubuntu user here, working in an I.T. environment with all the problems that entails :D

I need to get my hands on a decent ghosting utility. Our shop uses Sony Vaio laptops that require factory images (rather than stock Win XP OEM) to work correctly, and to save time I want to make one master copy of one of these Sony laptops so that when we need to image one, I can just plug the laptop HDD into my desktop and do a quick clone of our master image to the drive and start from there, instead of running the three hour restore process that includes about 5GB of worthless poo poo bloatware and other nonsense that we don't need. My coworkers constantly mention dd as being a decent option for this, but from what I understand that since it is an exact block copy of the drive, it will have a bunch of wasted space in it (50+ GB of empty space). My other issue is that there are two partitions on the drive, how will dd deal with a drive with two partitions?

Is there any way to tell dd to not copy empty space (eg just leave it blank so I can resize the partition later?) or is something besides dd going to be my best bet for ghosting laptop hard drives?

NZAmoeba
Feb 14, 2005

It turns out it's MAN!
Hair Elf

Wicaeed posted:

Hi there,

New Ubuntu user here, working in an I.T. environment with all the problems that entails :D

I need to get my hands on a decent ghosting utility. Our shop uses Sony Vaio laptops that require factory images (rather than stock Win XP OEM) to work correctly, and to save time I want to make one master copy of one of these Sony laptops so that when we need to image one, I can just plug the laptop HDD into my desktop and do a quick clone of our master image to the drive and start from there, instead of running the three hour restore process that includes about 5GB of worthless poo poo bloatware and other nonsense that we don't need. My coworkers constantly mention dd as being a decent option for this, but from what I understand that since it is an exact block copy of the drive, it will have a bunch of wasted space in it (50+ GB of empty space). My other issue is that there are two partitions on the drive, how will dd deal with a drive with two partitions?

Is there any way to tell dd to not copy empty space (eg just leave it blank so I can resize the partition later?) or is something besides dd going to be my best bet for ghosting laptop hard drives?

dd copies the partition table as well so it's effectively 'blind' to the partitions and just copies it as regular data, when you reimage the partition table is included and it's none the wiser.

As for compression, you could always zip the image afterwards? A shitload of 0's should compress pretty easily methinks.

edit: oh! you could also look at using clonezilla, which does the whole thing (copy/compress/restore) with a nice step by step dos like graphical interface.

NZAmoeba fucked around with this message at 01:27 on Sep 9, 2009

Wicaeed
Feb 8, 2005

NZAmoeba posted:

dd copies the partition table as well so it's effectively 'blind' to the partitions and just copies it as regular data, when you reimage the partition table is included and it's none the wiser.

As for compression, you could always zip the image afterwards? A shitload of 0's should compress pretty easily methinks.

edit: oh! you could also look at using clonezilla, which does the whole thing (copy/compress/restore) with a nice step by step dos like graphical interface.

So when I do mount and it returns:

code:
/dev/sdb2 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 on /media/disk-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=2048)
where sdb2 is the first partition (restore partition) and sdb1 is the primary (boot/OS) partition of the single HDD that I have put in, I would be telling dd that

code:
if=/dev/sdb* of=~/Desktop/HDD\ Images/Sony Vaio HDD Image
and it will simply output all that under the Sony Vaio HDD Image directory?

Postal
Aug 9, 2003

Don't make me go postal!

Wicaeed posted:

code:
if=/dev/sdb* of=~/Desktop/HDD\ Images/Sony Vaio HDD Image
and it will simply output all that under the Sony Vaio HDD Image directory?

You don't need the wildcard in the if option.

code:
dd if=/dev/sdb of=~/Desktop/HDD\ Images/Sony Vaio HDD Image
This will copy the entire HD (sdb) to a file called "Sony Vaio HDD Image" in the ~/Desktop/HDD\ Images\ directory

If you want "Sony Vaio HDD Image" to be a directory name, use something like this:

code:
dd if=/dev/sdb* of=~/Desktop/HDD\ Images/Sony Vaio HDD Image\imagefile

mystes
May 31, 2006

NZAmoeba posted:

As for compression, you could always zip the image afterwards? A shitload of 0's should compress pretty easily methinks.
Just pipe the output of dd to lzop if you want to store the image compressed.

Mario
Oct 29, 2006
It's-a-me!

Wicaeed posted:

code:
if=/dev/sdb* of=~/Desktop/HDD\ Images/Sony Vaio HDD Image
and it will simply output all that under the Sony Vaio HDD Image directory?
You need to either quote or escape the rest of the path name as such:
of=~/Desktop/HDD\ Images/Sony\ Vaio\ HDD\ Image

And yeah, just pipe it through a compression program to save space; lzop, gzip, bzip2, lzma (fastest to slowest, I think).

To create:
dd if=/dev/sdb bs=8M | gzip > theimagefile.gz

To restore:
gunzip --stdout theimagefile.gz | dd of=/dev/sdb bs=8M

maskenfreiheit
Dec 30, 2004
Edit: Double Post

maskenfreiheit fucked around with this message at 21:00 on Mar 13, 2017

Shaocaholica
Oct 29, 2002

Fig. 5E
Whats the fastest and most responsive distro I can use on my P166 MMX 128MB? Doesn't need to be live. HDD space is not limited (250GB, don't ask). I just want to browse the web and playback mp3s while not chugging along the way.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Shaocaholica posted:

Whats the fastest and most responsive distro I can use on my P166 MMX 128MB? Doesn't need to be live. HDD space is not limited (250GB, don't ask). I just want to browse the web and playback mp3s while not chugging along the way.

I used to use a K6-2 300MHz with Slackware, basically for surfing the web and watching porn (AVI/WMV/MPG). It wasn't that bad. Then again this was 5 years ago and JavaScript/Flash weren't used like they are today.

Use blackbox (maybe fluxbox) as your window manager. I think I was using Mozilla, I'm not sure how well FF 2 or 3 will run on a 166MHz machine.

Be warned that decoding an MP3 alone is going to eat up almost half of the CPU.

dont skimp on the shrimp
Apr 23, 2008

:coffee:
Perhaps using MPD and google chrome/chromium would lighten the load a bit too.

JHVH-1
Jun 28, 2002
Also you could try adding noatime to /etc/fstab to improve disk i/o like shown here:

http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap6sec73.html

It helps to reduce iowait in some cases.

Wicaeed
Feb 8, 2005
Got a new issue on my linux box. I was copying some files over from a hdd to flash drive, the copy completed, and I left it alone for 5 minutes, I came back and without thinking just yanked out the USB flash drive. Ever since then I have not been able to get it to read. Whenever I put it into my linux box, nothing happens. I've checked dmesg and it has this info in it:

code:
[178446.281025] usb 3-1: new full speed USB device using ohci_hcd and address 43
[178446.464025] usb 3-1: device descriptor read/64, error -62
[178446.752028] usb 3-1: device descriptor read/64, error -62
[178447.033028] usb 3-1: new full speed USB device using ohci_hcd and address 44
[178447.217024] usb 3-1: device descriptor read/64, error -62
[178447.500028] usb 3-1: device descriptor read/64, error -62
[178447.781026] usb 3-1: new full speed USB device using ohci_hcd and address 45
[178448.189018] usb 3-1: device not accepting address 45, error -62
[178448.365025] usb 3-1: new full speed USB device using ohci_hcd and address 46
[178448.773018] usb 3-1: device not accepting address 46, error -62
[178448.773040] hub 3-0:1.0: unable to enumerate USB device on port 1
The funky thing is that for about 30 minutes to an hour it wouldn't read in either my Linux box or Windows box, but after I left to do something else for 45 minutes, I came back to my Windows box and plugged the drive in and it autodetected just fine, files still there and 100% intact. Tried to put it back into the Linux machine and it was still not able to read it.

Anyone know what is going on here/how to fix it?

waffle iron
Jan 16, 2004
Copy the files to your Windows machine, format the drive and copy them back.

Either that or in Linux you could try running fsck on the block device (/dev/sdX where X is a letter), but that is just as likely to make you lose all the files.

tripwire
Nov 19, 2004

        ghost flow
Here's a dumb question that I'm sure someone has the answer to: I like the "darklooks" theme window decorators in Ubuntu, but I don't like the way it makes tons of dialogues (drop down lists in firefox for example) dark brown with unreadable black text.

Is there some kind of emerald theme (do people still use emerald?) or custom theme someone's made that fits that description?

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.
-snip-

capitalcomma fucked around with this message at 04:22 on Jun 10, 2014

dont skimp on the shrimp
Apr 23, 2008

:coffee:
I read somewhere that there was a bug with samba in nautilus. Could be this. Try mounting it manually.

other people
Jun 27, 2004
Associate Christ
Linux doesn't have any sort of program like Adobe Lightroom for managing large collections of camera raw files, does it?

HolyDukeNukem
Sep 10, 2008

Kaluza-Klein posted:

Linux doesn't have any sort of program like Adobe Lightroom for managing large collections of camera raw files, does it?

there's a gimp extension, called gimp-ufraw. it lets you view and manipulate raw photos. i don't know if that's what your looking for tho.

dont skimp on the shrimp
Apr 23, 2008

:coffee:
I don't know if digikam handles raw files, but you could try.

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat
Hey, just a quick question, I'm having a miserable time setting up proftpd on my Ubunutu 8.10 file server. I've set FTP before on Centos a few times with no problem, but for some reason I just can't get it to work. Can someone give me a sample .conf file or give me some guidance on user names?

I have a few users already setup, one is called "htpc" and has a home dir of /usr/media but when I try to login to the FTP from my Windows 7 box it doesn't give me a log in, and takes me to a blank explorer window. I think it's a user/permissions problem but I can't get it working.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Jerk McJerkface posted:

Hey, just a quick question, I'm having a miserable time setting up proftpd on my Ubunutu 8.10 file server. I've set FTP before on Centos a few times with no problem, but for some reason I just can't get it to work. Can someone give me a sample .conf file or give me some guidance on user names?

I have a few users already setup, one is called "htpc" and has a home dir of /usr/media but when I try to login to the FTP from my Windows 7 box it doesn't give me a log in, and takes me to a blank explorer window. I think it's a user/permissions problem but I can't get it working.

Why are you using FTP and not smb?

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat

Bob Morales posted:

Why are you using FTP and not smb?

I am using SMB for internal connections, the /usr/media folder is mounted on all my PCs at home as their media library paths, but I want FTP to be able to access my shares from outside my house. I'm planning on setting up FTP and giving a couple of my friends access to it.

dont skimp on the shrimp
Apr 23, 2008

:coffee:
I'd recommend just setting up ssh and using SFTP. Worst case, just tell your friends to use winscp.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Jerk McJerkface posted:

Hey, just a quick question, I'm having a miserable time setting up proftpd on my Ubunutu 8.10 file server. I've set FTP before on Centos a few times with no problem, but for some reason I just can't get it to work. Can someone give me a sample .conf file or give me some guidance on user names?

I have a few users already setup, one is called "htpc" and has a home dir of /usr/media but when I try to login to the FTP from my Windows 7 box it doesn't give me a log in, and takes me to a blank explorer window. I think it's a user/permissions problem but I can't get it working.
You most likely have anonymous access enabled, but I'm siding with the rest of these guys -- SFTP is much nicer. Just make sure you assign people an scponly shell if you don't want them having shell access to your system when you give them SFTP.

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat

Zom Aur posted:

I'd recommend just setting up ssh and using SFTP. Worst case, just tell your friends to use winscp.

I have no qualms about setting up SFTP. I'll look into it. Can you recommend any guides?

Oh, I should have read the posts better. SSH is already setup. I'll add some users, but how can I jail to them to the /usr/media dir?

dont skimp on the shrimp
Apr 23, 2008

:coffee:

Jerk McJerkface posted:

I have no qualms about setting up SFTP. I'll look into it. Can you recommend any guides?

Oh, I should have read the posts better. SSH is already setup. I'll add some users, but how can I jail to them to the /usr/media dir?
Easiest way to do this would be to create a group like 'sftpusers', add the accounts to said group and 'chgrp -R sftpusers /usr/media'. Then just put a symlink in each users home I guess.

Not very beautiful, but very easy to do.

Oh, and I guess you should edit their lines in /etc/passwd to something like '[user]:x:[uid]:[gid]::[/user/home]:/bin/false'
for each user. That'll keep them from getting a shell if they try to login with ssh.

That said, you should look for a guide on this. I haven't actually done this myself, so it might not work at all (or worse, work in an unexpected way).

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Zom Aur posted:

Oh, and I guess you should edit their lines in /etc/passwd to something like '[user]:x:[uid]:[gid]::[/user/home]:/bin/false'
for each user. That'll keep them from getting a shell if they try to login with ssh.
This will prevent them from being able to log in at all. You really want scponly or something similar.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

Misogynist posted:

This will prevent them from being able to log in at all. You really want scponly or something similar.
Ooops. Yeah.

Adbot
ADBOT LOVES YOU

JHVH-1
Jun 28, 2002
Setting up vsftp isn't that hard. On Ubuntu server anonymous is enabled, so you want to change that to NO and then change local users to YES and value to chroot local users to YES, unless you only want to chroot certain users. In that case you set the chroot file to some place in /etc/, create the file with an editor and put the users you want to chroot on it. I think thats about it.

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