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
TheGopher
Sep 7, 2009
After being very happy I'm learning *nix pretty effectively, and am getting more and more comfortable with the command line, I find out egrep (yeah yeah, grep -E, whatever Fedora I don't care if it's deprecated) does not support grouping like I thought it did. I had a long list of numbers I needed surrounded by some letters (ABCD123DC ...), so I run:

code:
[usr@comp]$ egrep -e \[A-Z]\{4}\(\[0-9]\{3}\) list.txt
..results...
[usr@comp]$ echo $1

[usr@comp]$
Then I'm like, "Wait, if grep matches all the results at once, how do I get $1 for each result?"

After googling for answers to no avail, I come up with this hack:

code:
$ egrep -e \[A-Z]\{4}\[0-9]\{3} list.txt -o | egrep -e \[0-9]\{3} -o >numbers.txt
Like, yeah, I figured it out, but it took me like half an hour and I'm getting pissed off that I need to pipe commands into other commands to do anything remotely complicated. How else should I have done this?

Adbot
ADBOT LOVES YOU

rugbert
Mar 26, 2003
yea, fuck you
How do I use patterns with the tree command?

Im trying this:
tree -aP *.avi|*.mvk|*.mpg|*.MPG /mnt/video/documentaries/ > /mnt/docs.txt

but it only finds .avi files, it says that *.mvk,mpg and MPG arent commants. I thought adding "|" between the files let met use multiple patterns.

Erasmus Darwin
Mar 6, 2001

TheGopher posted:

Then I'm like, "Wait, if grep matches all the results at once, how do I get $1 for each result?"

Try this:
perl -ne 'print "$1\n" if /[A-Z]{4}([0-9]{3})/;' list.txt

Personally, I'll only use fgrep these days. If it gets more complicated than fgrep, I switch to perl. That way, I've got a regexp engine that I'm familiar with (and which is well documented via 'man perlre'), and I've got a full programming language backing me up if I want to do something complicated.

rugbert posted:

Im trying this:
tree -aP *.avi|*.mvk|*.mpg|*.MPG /mnt/video/documentaries/ > /mnt/docs.txt

but it only finds .avi files, it says that *.mvk,mpg and MPG arent commants.

The problem is that the shell is parsing the '|' as pipe symbols between commands. It's not being passed to tree as an argument. You want to do this:

tree -aP '*.avi|*.mvk|*.mpg|*.MPG' /mnt/video/documentaries/ > /mnt/docs.txt

(or you could do this:
tree -aP \*.avi\|\*.mvk\|\*.mpg\|\*.MPG /mnt/video/documentaries/ > /mnt/docs.txt
Note that in this case, the '*' needs to be escaped, too.)

ToxicFrog
Apr 26, 2008


TheGopher posted:

After being very happy I'm learning *nix pretty effectively, and am getting more and more comfortable with the command line, I find out egrep (yeah yeah, grep -E, whatever Fedora I don't care if it's deprecated) does not support grouping like I thought it did. I had a long list of numbers I needed surrounded by some letters (ABCD123DC ...), so I run:

code:
[usr@comp]$ egrep -e \[A-Z]\{4}\(\[0-9]\{3}\) list.txt
..results...
[usr@comp]$ echo $1

[usr@comp]$
Then I'm like, "Wait, if grep matches all the results at once, how do I get $1 for each result?"

$1 doesn't mean what you think it does - it's "the first argument to this shell script or function". It doesn't magically change because you ran another program. While other programs (like awk) may use it to mean different things, the shell doesn't know about those other meanings, nor does it retain those meanings when used outside those programs.

quote:

After googling for answers to no avail, I come up with this hack:

code:
$ egrep -e \[A-Z]\{4}\[0-9]\{3} list.txt -o | egrep -e \[0-9]\{3} -o >numbers.txt
Like, yeah, I figured it out, but it took me like half an hour and I'm getting pissed off that I need to pipe commands into other commands to do anything remotely complicated. How else should I have done this?

Piping is generally how this sort of thing is done, yes. As a rule, one accomplishes complicated tasks by piping together commands that perform simple tasks. That's what pipes are there for.

If it's too complicated for that, on generally writes a small script, either in bash itself or in something like awk or perl.

To do this, I'd probably do exactly what you did, only with singlequotes rather than backslashes so that it's less ugly:

code:
egrep -o '[A-Z]{4}[0-9]{3}' list.txt | egrep -o '[0-9]{3}' > numbers.txt

TheGopher
Sep 7, 2009

ToxicFrog posted:

$1 doesn't mean what you think it does - it's "the first argument to this shell script or function". It doesn't magically change because you ran another program. While other programs (like awk) may use it to mean different things, the shell doesn't know about those other meanings, nor does it retain those meanings when used outside those programs.

Makes sense, and thanks for the info. I couldn't find any info about using results from regex grouping and grep so this actually clears up some of my earlier confusion. (Curse you DOS for storing variables until the prompt is closed. :argh:)
[/quote]

quote:

If it's too complicated for that, on generally writes a small script, either in bash itself or in something like awk or perl.

To do this, I'd probably do exactly what you did, only with singlequotes rather than backslashes so that it's less ugly:

code:
egrep -o '[A-Z]{4}[0-9]{3}' list.txt | egrep -o '[0-9]{3}' > numbers.txt


Erasmus Darwin posted:

Try this:
perl -ne 'print "$1\n" if /[A-Z]{4}([0-9]{3})/;' list.txt

Personally, I'll only use fgrep these days. If it gets more complicated than fgrep, I switch to perl. That way, I've got a regexp engine that I'm familiar with (and which is well documented via 'man perlre'), and I've got a full programming language backing me up if I want to do something complicated.

The perl suggestion is a great idea, since I use regex searches pretty extensively, and I'm more familiar with Perl's regex syntax than grep.

Thanks for the help!

ToxicFrog
Apr 26, 2008


TheGopher posted:

Makes sense, and thanks for the info. I couldn't find any info about using results from regex grouping and grep so this actually clears up some of my earlier confusion.

I can't actually find any information on using grouping with grep except in the operator-precedence sense - that is to say, 'a(abc)+' and 'aabc+' are different regexes to egrep, but there's no way to extract the 'abc' part from the former.

In general, though, if a program doesn't have whatever further processing you need built in, the answer is "pipe it to something else". The design philosophy here is lots of relatively specialized programs plus some simple mechanisms (pipes, IO redirection, shell variables, job control) to connect them together.

quote:

(Curse you DOS for storing variables until the prompt is closed. :argh:)

Bash does actually* store variables until exit:

* I'm skipping over the whole discussion on how subshells, and related activities like pipes and parallel processing, affect this.
code:
$ foo=bar
$ echo $foo
bar
However, as a rule, running other programs won't change environment variables - only shell operators (like =) or builtin commands (like set) will.

So, for example:
code:
$ uname -a
Linux leela 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
$ echo $1 $3
    # no output
$ set `uname -a`
$ echo $1 $3
Linux 2.6.31-14-generic
This is in sharp contrast to languages like Perl, where implicit variables are the norm and stuff like $_ will change in value depending on what you're doing at the time without needing to be explicitly updated.

ToxicFrog fucked around with this message at 04:57 on Dec 16, 2010

angrytech
Jun 26, 2009
I've been trying to remember the name of a program and was run on a system once from a known-good setup and would then subsequently alert if any changes were being made. The only other thing I can remember is that the documentation recommended that it be stored on a flash drive to prevent it being compromised.
Any ideas?

Virigoth
Apr 28, 2009

Corona rules everything around me
C.R.E.A.M. get the virus
In the ICU y'all......



angrytech posted:

I've been trying to remember the name of a program and was run on a system once from a known-good setup and would then subsequently alert if any changes were being made. The only other thing I can remember is that the documentation recommended that it be stored on a flash drive to prevent it being compromised.
Any ideas?

I think you are thinking of OSSEC:

http://www.ossec.net/

angrytech
Jun 26, 2009

Virigoth posted:

I think you are thinking of OSSEC:

http://www.ossec.net/

I don't think so, but this looks really tight too, so thank you.

Virigoth
Apr 28, 2009

Corona rules everything around me
C.R.E.A.M. get the virus
In the ICU y'all......



angrytech posted:

I don't think so, but this looks really tight too, so thank you.

Fair warning, it will email you about EVERYTHING that changes...lol...I'd give it its own mailbox if you plan on using this.

Vulture Culture
Jul 14, 2003

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

Virigoth posted:

Fair warning, it will email you about EVERYTHING that changes...lol...I'd give it its own mailbox if you plan on using this.
Or, you know, just tune your rulesets correctly and generate one report at the end of the day.

Virigoth
Apr 28, 2009

Corona rules everything around me
C.R.E.A.M. get the virus
In the ICU y'all......



Misogynist posted:

Or, you know, just tune your rulesets correctly and generate one report at the end of the day.

Eh that requires :effort: and I don't have it on any of my systems currently :)

TheGopher
Sep 7, 2009
After a modestly intelligent discussion on regex and grouping with egrep, today I made a pretty dumb mistake while being compltely absentminded. I was trying to make my samba share easier to access when using the gui file explorer...

code:
# sudo mount --bind /share ~/
Queue me going "gently caress" immediately after hitting enter. I try to unmount it, but of course the volume's busy. I was having weird graphic corruption when using ctrl + alt + 1 to go to single user mode, so I tried to make another account to at least see what I was doing. That didn't work, of course. I say gently caress it, go to single-user and try to type "sudo umount /share ; reboot"

It worked, and I got single user mode back from graphic corruption! I know I'm doing way better with linux when I can recover from dumb poo poo like the above. A few years ago I would have said "gently caress it" and just installed windows.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

TheGopher posted:

It worked, and I got single user mode back from graphic corruption! I know I'm doing way better with linux when I can recover from dumb poo poo like the above. A few years ago I would have said "gently caress it" and just installed windows.
First of all, single user mode is accessed during boot by passing "single" to init, often by the kernel line in grub. What you did was just accessing the console.

Secondly, anything you do with mount won't be permanent unless you add it to /etc/fstab, in which it'll be mounted during boot.

So no, you wouldn't have hosed over your system this way anyhow. :)

TheGopher
Sep 7, 2009
Ah, my misunderstanding of how --bind works. Thanks for clearing that up!

dr go hog wild
May 10, 2002

im pretty good now that im 239,000 miles away from The Cure
I have a weird problem. Kinda moot since there's a workaround, but:

The wireless internet connection is shared among the two apartments in the house I live in. The router is in the other guy's apartment. All was fine until the old (linksys) router stopped working, and the dude got a new one (netgear wgr614 i think?). His computer and his son's laptop (both running Windows) connect just fine. My laptop (debian lenny) would associate with the router, but the router refuses to assign it an IP address. Same with my desktop (debian squeeze), Wii, and Blackberry. Friends'laptops connect just fine as long as they are running Windows. The workaround is to assign a static IP to all my non-Windows devices. Then I can get an internet connection just fine.

I get output similar to this from dhcpd:

code:
root@Ax000:~ # ifup wlan0
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/products/DHCP[/url]

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:0f:b5:05:4a:cb
Sending on LPF/wlan0/00:0f:b5:05:4a:cb
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I know it's not an encryption problem, since it behaves the same way with encryption turned off completely. And I know I'm associating with the router - I can ping 192.168.1.1, and I can reach the router administration page. And I don't think it's a problem with how I have things configured, since all my devices worked fine with the old router, and I hadn't changed a thing.

So why the hell would the router not give a DHCPOFFER to non-Windows machines? How would it even know?

Stathol
Jun 28, 2008

TheGopher posted:

After a modestly intelligent discussion on regex and grouping with egrep, today I made a pretty dumb mistake while being compltely absentminded. I was trying to make my samba share easier to access when using the gui file explorer...

code:
# sudo mount --bind /share ~/
Just for future refence, a symlink would work just fine for this purpose instead of a bind mount. Bind mounts are mostly useful for grafting directories onto a chrooted program's jail.

mike12345
Jul 14, 2008

"Whether the Earth was created in 7 days, or 7 actual eras, I'm not sure we'll ever be able to answer that. It's one of the great mysteries."





Is there a way to "reload" the title of an xterm?

I don't know if it's screen or mutt, but I'm currently running irssi and it still says "mutt: mail/local/blabla". FAKEEDIT: Just checked, title stays after I exit mutt, so disregard the irssi bit.

covener
Jan 10, 2004

You know, for kids!

mike12345 posted:

Is there a way to "reload" the title of an xterm?

I don't know if it's screen or mutt, but I'm currently running irssi and it still says "mutt: mail/local/blabla". FAKEEDIT: Just checked, title stays after I exit mutt, so disregard the irssi bit.

http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#s4

Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe

dr go hog wild posted:

I have a weird problem. Kinda moot since there's a workaround, but:

The wireless internet connection is shared among the two apartments in the house I live in. The router is in the other guy's apartment. All was fine until the old (linksys) router stopped working, and the dude got a new one (netgear wgr614 i think?). His computer and his son's laptop (both running Windows) connect just fine. My laptop (debian lenny) would associate with the router, but the router refuses to assign it an IP address. Same with my desktop (debian squeeze), Wii, and Blackberry. Friends'laptops connect just fine as long as they are running Windows. The workaround is to assign a static IP to all my non-Windows devices. Then I can get an internet connection just fine.

I get output similar to this from dhcpd:

code:
root@Ax000:~ # ifup wlan0
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/products/DHCP[/url]

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:0f:b5:05:4a:cb
Sending on LPF/wlan0/00:0f:b5:05:4a:cb
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I know it's not an encryption problem, since it behaves the same way with encryption turned off completely. And I know I'm associating with the router - I can ping 192.168.1.1, and I can reach the router administration page. And I don't think it's a problem with how I have things configured, since all my devices worked fine with the old router, and I hadn't changed a thing.

So why the hell would the router not give a DHCPOFFER to non-Windows machines? How would it even know?

Try seeing if you can do a tcpdump on the wlan0 interface to see anything more. Might give you a bit more information, though DHCP issues can be extra annoying, Do you have access to the router to see if you're showing up under known hosts?

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I asked this over in the Ubuntu thread, but I don't know if it's really related to Ubuntu, so I'll ask here as well...

Thermopyle posted:

Not sure if this is Ubuntu specific or not...

Sometimes when I've got a lot of disk activity going on (for example rsyncing 2TB of data from an external HD to an internal RAID array), what I'm doing will seem to freeze for minutes at a time.

If I use iotop to see what's going on, rsync isn't doing any transfers and the command "flush 215:0" (the numbers seem to vary) is doing from 500KB/s to 5.5MB/s of disk activity.

What's going on here, and how can I prevent it?

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!

Thermopyle posted:

I asked this over in the Ubuntu thread, but I don't know if it's really related to Ubuntu, so I'll ask here as well...

You don't have WD Greens or anything do you?

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Bob Morales posted:

You don't have WD Greens or anything do you?

Nope.

covener
Jan 10, 2004

You know, for kids!

Thermopyle posted:

I asked this over in the Ubuntu thread, but I don't know if it's really related to Ubuntu, so I'll ask here as well...

I believe this is the kernel process for periodic writing of data from the filesystem buffers to the underlying devices -- which makes sense for why it gets dinged with the I/O.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

Thermopyle posted:

I asked this over in the Ubuntu thread, but I don't know if it's really related to Ubuntu, so I'll ask here as well...
You could try a different queueing system than CFQ I suppose.

I use this, but I don't have anywhere near the same ammount of data that you have.

JHVH-1
Jun 28, 2002

Thermopyle posted:

I asked this over in the Ubuntu thread, but I don't know if it's really related to Ubuntu, so I'll ask here as well...

If you want to improve disk performance add noatime as an option in fstab and remount or do it manually:

mount -o,noatime,remount /

You can also check out ionice. It does what nice does for CPU but for I/O. Also you can install systat to use iostat to check total %. To go along with that the dstat command rules, it can give you an overview of everything and color codes it to show bottlenecks, but I don't know how much help all this is as most of my experience tuning is from web servers.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

JHVH-1 posted:

If you want to improve disk performance add noatime as an option in fstab and remount or do it manually:

mount -o,noatime,remount /

You can also check out ionice. It does what nice does for CPU but for I/O. Also you can install systat to use iostat to check total %. To go along with that the dstat command rules, it can give you an overview of everything and color codes it to show bottlenecks, but I don't know how much help all this is as most of my experience tuning is from web servers.
This shouldn't be necessary since kernel-2.6.3* (IIRC) where they started using relatime by default.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

JHVH-1 posted:

If you want to improve disk performance add noatime as an option in fstab and remount or do it manually:

mount -o,noatime,remount /

You can also check out ionice. It does what nice does for CPU but for I/O. Also you can install systat to use iostat to check total %. To go along with that the dstat command rules, it can give you an overview of everything and color codes it to show bottlenecks, but I don't know how much help all this is as most of my experience tuning is from web servers.

I don't know how applicable this is really.

I mean, the disk performance is great until that "flush" command shows up for several minutes maybe every 30-60 minutes (just a guess) and makes all other processes disk I/O drop to zero while it does...whatever.

JHVH-1
Jun 28, 2002

Zom Aur posted:

This shouldn't be necessary since kernel-2.6.3* (IIRC) where they started using relatime by default.

Ahh thats good to know. Most of our stuff is on CentOS 5 so it hasn't gotten there yet, but CentOS 6 will finally have a newer kernel. Those kernels also should support using ext4 features on an ext3 filesystem. So if a home OS is ext3 you can mount it as ext4. But since I haven't tried it I can't see how much of a performance gain that gives seeing as it doesn't have all the ext4 features.

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!

I didn't have to work today, so I spent the morning getting Enlightenment to build on Debian Lenny

Here's the download page:

http://www.enlightenment.org/p.php?p=download&l=en

Install all the pre-requisites:

apt-get install libx11-dev libxtext-dev x11proto-xext-dev pkg-config
doxygen zlib1g-dev libpng libjpeg62-dev libfreetype6-dev
liblua5.1-0-dev libdbus-1-dev libfontconfig1-dev

Download all of the following:

http://download.enlightenment.org/snapshots/2010-12-03/elementary-0.7.0.55225.tar.gz
http://download.enlightenment.org/snapshots/2010-12-03/enlightenment-0.16.999.55225.tar.gz

http://download.enlightenment.org/releases/eina-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/edje-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/efreet-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/eet-1.4.0.beta3.tar.gz
http://download.enlightenment.org/releases/evas-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/e_dbus-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/eeze-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/ecore-1.0.0.beta3.tar.gz
http://download.enlightenment.org/releases/embryo-1.0.0.beta3.tar.gz

Extract all the files.

Build the sub-components in this order: (cd, configure, make, make install)

Eina
Eet
Evas
Ecore
Embryo
Edje
Efreet
E_Dbus
Eeze

ecore:

configure --enable-ecore-evas-software-x11

evas:

configure --enable-fontconfig

Next, build Enlightenment and Elementary.

You should be all set after that. I haven't played with it to add any menus or themes or anything, but it does work on my system. VirtualBox, fresh 5.07 install. Probably try it on a real machine after the holidays.

Factory Factory
Mar 19, 2010

This is what
Arcane Velocity was like.
Forgive me if this was brought up recently, but I'm intimidated by the sheer size of the thread.

I'm going to be using a sole, small SSD for / and everything else in an Ubuntu Server install, with four hard disks being placed natively in a pool for zfs-fuse and mounted in /media. I will have 8 GB of RAM I do not anticipate will be stressed significantly, as it will mostly be used by the zfs-fuse prefetch cache and will deallocate itself when/if other processes need memory.

1) What special procedures/config tweaks do I need to follow to align partitions, stop spindle-disc optimizations, etc. because of the SSD?

2) I feel I want to disable swap. Can/should I? If so, how? Primary reason is to extend the SSD's life.

Prize Loser
Nov 28, 2005

It's casual Friday! Pants are optional!

Factory Factory posted:

2) I feel I want to disable swap. Can/should I? If so, how? Primary reason is to extend the SSD's life.

It's pretty unlikely you'll need swap with 8gb (depending, of course, on what you're doing with the server). Just open /etc/fstab and comment out the lines that are designated swap, then run the command `swapoff -a`. Or if you're installing the OS for the first time, just skip the swap partition creation.

If you change your mind, the kernel supports swap files similar to Windows pagefiles. They offer identical performance to swap partitions and can be added/resized/removed with minimal work.

dont skimp on the shrimp
Apr 23, 2008

:coffee:

JHVH-1 posted:

Ahh thats good to know. Most of our stuff is on CentOS 5 so it hasn't gotten there yet, but CentOS 6 will finally have a newer kernel. Those kernels also should support using ext4 features on an ext3 filesystem. So if a home OS is ext3 you can mount it as ext4. But since I haven't tried it I can't see how much of a performance gain that gives seeing as it doesn't have all the ext4 features.
The ext4-utils can handle ext2/3 filesystems, yes, but a usual ext4-filesystem can't be mounted as ext2/3.

I don't know if there'd be any real performance increase by mounting the old filesystem as the newer one, if you don't convert it. However, by converting it you'll break compability with the old ext3-systems, so unless those systems also can handle ext4 you might not want to.

Just something to keep in mind.

You can read more about it here.

Bob Morales posted:

I didn't have to work today, so I spent the morning getting Enlightenment to build on Debian Lenny...
Anything wrong with this? :)

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!

Zom Aur posted:


Anything wrong with this? :)

Probably not. I looked around for a little bit, and saw some other scripts that were setup to do it automatically, but people were complaining about them being broken or out of date.

Bohemian Cowabunga
Mar 24, 2008

I have gotten a strange problem with SSH on a ubuntu machine ever since I upgraded it to 10.10.

First off: The server is up and running with port-forwarding working. I can access it from any other device I have tried, so I am pretty sure theres nothing wrong on the server side.

However this particular machine is giving me problems.
The error i am getting is:
code:
ssh: Could not resolve hostname *IP-redacted*: Name or service not known
I am able to ping the server from the machine.

I tried to purge SSH, removing old keys etc. and did a reinstall, but still no dice.
Theres no other issues at all with networking, web traffic and ftp is working with no problems.

I have no clue whats causing it, so hoping someone could point me in the right direction.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Bohemian Cowabunga posted:

I have gotten a strange problem with SSH on a ubuntu machine ever since I upgraded it to 10.10.

First off: The server is up and running with port-forwarding working. I can access it from any other device I have tried, so I am pretty sure theres nothing wrong on the server side.

However this particular machine is giving me problems.
The error i am getting is:
code:
ssh: Could not resolve hostname *IP-redacted*: Name or service not known
I am able to ping the server from the machine.

I tried to purge SSH, removing old keys etc. and did a reinstall, but still no dice.
Theres no other issues at all with networking, web traffic and ftp is working with no problems.

I have no clue whats causing it, so hoping someone could point me in the right direction.

Can you SSH to the IP? It looks like a DNS issue, not an SSH issue.

Bohemian Cowabunga
Mar 24, 2008

FISHMANPET posted:

Can you SSH to the IP? It looks like a DNS issue, not an SSH issue.

I always use the IP. I did try to change DNS on the machine to googles, but no dice still.

bort
Mar 13, 2003

It's complaining about DNS. Put a hostname for IP-redacted in /etc/hosts or edit /etc/ssh/sshd_config and toggle/comment out UseDNS (and restart the ssh server).

Bohemian Cowabunga
Mar 24, 2008

bort posted:

It's complaining about DNS. Put a hostname for IP-redacted in /etc/hosts or edit /etc/ssh/sshd_config and toggle/comment out UseDNS (and restart the ssh server).

I really dont want to fiddle with the server if i dont have to, since its been working fine for a good 1,5 years now and its working perfectly with any other device than this particular computer. The server is using googles dns, but i really dont think its an issue on the server side.


I should clarify that i have never used a hostname to connect to the server because i havent got a domain for it and never bothered setting it up with a DNS. It is my private fileserver located in my basement and i only use the hostname when on my localnetwork.

***********
Edit:

Okay for shits n' giggles I tried to install Putty on the machine and when using that i can connect to the server just fine. So it must be something in the SSH installation thats not working which is weird seeing i just purged the installation and reinstalled it. I dont get it.'

Edit #2:
Can also connect with sftp via filezilla.


Ninja Rope posted:

Well, ssh thinks you're giving it a hostname. Are you sure you're entering a proper IP address? Can you ping it?
Yes, see my edit. vvvvvv

Bohemian Cowabunga fucked around with this message at 18:15 on Dec 26, 2010

Adbot
ADBOT LOVES YOU

Ninja Rope
Oct 22, 2005

Wee.
Well, ssh thinks you're giving it a hostname. Are you sure you're entering a proper IP address? Can you ping it?

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