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
atticus
Nov 7, 2002

this is how u post~
:madmax::hf::riker:

deimos posted:

code:
gawk -F'.' '{for (i=1; i <= NF-2; i = i+1) {printf $i; if ( i < NF-2) printf "."} }'

cool thanks for this if you could explain that it would be cool tia (thanks in advance)

Adbot
ADBOT LOVES YOU

Scaevolus
Apr 16, 2007

deimos posted:

code:
gawk -F'.' '{for (i=1; i <= NF-2; i = i+1) {printf $i; if ( i < NF-2) printf "."} }'

Why not just
code:
${`hostname`%.*}
(bash, deletes the shortest match of .* (not regex, glob) from the end of the string)

teapot
Dec 27, 2003

by Fistgrrl

Jadeilyn posted:

I've tried editing xorg.conf manually and using the GUI, and it isn't working. I change the values to the refresh rates I found in the Windows drivers for the monitor, and when I reload, it uses the vesa driver and a plug n play monitor setting.
What GUI? What file did you edit? And what is in there right now? All I asked is to disable EDID.

quote:

Edit: for the time being I looked through the list of monitors and found one with the same refresh rates. I wonder what I was doing wrong though.
Monitor list where? What does it all mean?

teapot fucked around with this message at 10:00 on Nov 24, 2007

Jadeilyn
Nov 21, 2004

teapot posted:

What GUI? What file did you edit? And what is in there right now? All I asked is to disable EDID.

Monitor list where? What does it all mean?

As I said, I'm using Ubuntu. I ended up going into Administration>Screens and Graphics, and choosing a monitor from the list of different models that it knows.

As for what file I edited, I edited xorg.conf. I tried editing it from the CLI, and I tried using the reconfigure xorg package from Col's suggestion. I did both as root, and if I look at it, I see the changes I made. I did disable EDID, and it didn't seem to have any effect. I have the correct settings for my monitor, but when I restart it reverts to 50Hz and I have to readjust it. I restarted Gnome, and rebooted the machine. The only effect I can see from editing x.conf is that now my extra mouse buttons don't work, even though I am using the same settings I had earlier today before I tried changing the monitor information.

teapot
Dec 27, 2003

by Fistgrrl

Jadeilyn posted:

As I said, I'm using Ubuntu. I ended up going into Administration>Screens and Graphics, and choosing a monitor from the list of different models that it knows.

As for what file I edited, I edited xorg.conf. I tried editing it from the CLI, and I tried using the reconfigure xorg package from Col's suggestion. I did both as root, and if I look at it, I see the changes I made. I did disable EDID, and it didn't seem to have any effect. I have the correct settings for my monitor, but when I restart it reverts to 50Hz and I have to readjust it. I restarted Gnome, and rebooted the machine. The only effect I can see from editing x.conf is that now my extra mouse buttons don't work, even though I am using the same settings I had earlier today before I tried changing the monitor information.

Upload somewhere and post a link to your /etc/X11/xorg.conf file and /var/log/Xorg.0.log . You have changed something in it that was not supposed to be changed.

There Will Be Penalty
May 18, 2002

Makes a great pet!

atticus posted:

code:
[butts.desktop ~]

code:
shortname="`hostname -f`"
shortname="${shortname%.*.*}"
PS1='[$shortname \w] \$ '
Assuming Bash.

deimos
Nov 30, 2006

Forget it man this bat is whack, it's got poobrain!

Scaevolus posted:

Why not just
code:
${`hostname`%.*}
(bash, deletes the shortest match of .* (not regex, glob) from the end of the string)

Cause I've been learning awk and it's all I could think of. :v: (TWBP's solution is what he wants, not what I quoted.)

Scaevolus
Apr 16, 2007

deimos posted:

Cause I've been learning awk and it's all I could think of. :v: (TWBP's solution is what he wants, not what I quoted.)

Yeah, I didn't bother actually testing that.

And doesn't awk have regular expressions? Wouldn't something like (not precise) s/^\(.*\)\.[^.]*$/\1/ do it?

covener
Jan 10, 2004

You know, for kids!

Scaevolus posted:

Yeah, I didn't bother actually testing that.

And doesn't awk have regular expressions? Wouldn't something like (not precise) s/^\(.*\)\.[^.]*$/\1/ do it?

That would be unnatural for awk; you'd split the fields on . and just print $1 "." $2

That might be more reasonable for perl or sed.

atticus
Nov 7, 2002

this is how u post~
:madmax::hf::riker:

There Will Be Penalty posted:

code:
shortname="`hostname -f`"
shortname="${shortname%.*.*}"
PS1='[$shortname \w] \$ '
Assuming Bash.

So when I tried this out, my prompt said "localhost.localdomain" so I changed it to this instead

code:
shortname="`hostname`"
shortname="${shortname%.*.*}"
PS1='[$shortname \w] \$ '
Thanks for the help

derdewey
Dec 3, 2004
So I've used gnome and seen that the process manager gui shows network stats like total data in and out. How can I see those goodies from the terminal on my server? It's an ubuntu server.

covener
Jan 10, 2004

You know, for kids!

derdewey posted:

So I've used gnome and seen that the process manager gui shows network stats like total data in and out. How can I see those goodies from the terminal on my server? It's an ubuntu server.

last line (per-interface) in /sbin/ifconfig -a

Jadeilyn
Nov 21, 2004

teapot posted:

Upload somewhere and post a link to your /etc/X11/xorg.conf file and /var/log/Xorg.0.log . You have changed something in it that was not supposed to be changed.

xorg.conf

Xorg.0.log

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
So nobody knows the setting to allow proftpd to let clients download more than 100,000 files in one mget?

DEAD MAN'S SHOE
Nov 23, 2003

We will become evil and the stars will come alive
I really should have permission.. what happened?

code:
root@Blah~$ ethstats
bash: /usr/bin/ethstats: Permission denied
root@Blah~$ ls -all /usr/bin/ethstats
-rw-r--r-- 1 root root 3501 2004-07-28 03:51 /usr/bin/ethstats

covener
Jan 10, 2004

You know, for kids!

DEAD MAN'S SHOE posted:

I really should have permission.. what happened?

code:
root@Blah~$ ethstats
bash: /usr/bin/ethstats: Permission denied
root@Blah~$ ls -all /usr/bin/ethstats
-rw-r--r-- 1 root root 3501 2004-07-28 03:51 /usr/bin/ethstats

It's not executable.

DEAD MAN'S SHOE
Nov 23, 2003

We will become evil and the stars will come alive

covener posted:

It's not executable.

Thanks! Funny how that happens to a fresh install..

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
Can anyone quickly explain to me what sort of code gcc generates, when I'm not setting -march? I suppose it assumes -march=generic in that case.

I'm asking because I was trying setting it for fun (-march=athlon64). The result was a libfreetype2 that was 520KB instead of 1.7MB. Like what the hell? :psyduck:

KS
Jun 10, 2003
Outrageous Lumpwad
What's a good file system choice for a 2.2 TB raid array? It's for home data storage use. I formatted it ext3 and then did some reading that suggested there may be better options.

Alowishus
Jan 8, 2002

My name is Mud

KS posted:

What's a good file system choice for a 2.2 TB raid array? It's for home data storage use. I formatted it ext3 and then did some reading that suggested there may be better options.
ext3 is fine. The biggest caveat is that a fsck of your 2.2TB volume will take an awful long time, but since it's a journaled filesystem the need for fsck will be rare. ext3 isn't necessarily the best performing filesystem, but for a home data store it's fine.

Depending on your distribution, the other filesystem that you might want to consider is XFS. It's made for large stores of data and generally tuned toward large file performance. That would be good for video and such but it's probably irrelevant because you won't be pushing those performance limits on a home server.

I say "depending on your distribution" because I'd only consider XFS if it's easily available. On CentOS or RedHat it's not. You can hack it in, but it's more trouble than just using ext3. But if you're on Ubuntu or another OS that provides the kernel code and support programs then go for it.

devmd01
Mar 7, 2006

Elektronik
Supersonik
I'm looking for a super-minimal linux distribution, one that comes with nothing but networking, basic utilities, but the ability to easily install packages from a decent repository. My intent is to install onto a 1-2 gb compactflash drive, in a 2 ghz celeron w/ 1 gb ram, with, once booted, it running everything off the flash drive. All I really need is ssh, squid, and samba to run a print server. Once installed and configured, it would be stuck in a corner and forgotten about.

Any suggestions?

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

devmd01 posted:

I'm looking for a super-minimal linux distribution, one that comes with nothing but networking, basic utilities, but the ability to easily install packages from a decent repository. My intent is to install onto a 1-2 gb compactflash drive, in a 2 ghz celeron w/ 1 gb ram, with, once booted, it running everything off the flash drive. All I really need is ssh, squid, and samba to run a print server. Once installed and configured, it would be stuck in a corner and forgotten about.

Any suggestions?

You can install a full Ubuntu setup on a 1gb Flash Drive, so you're not really limited.

There are a few guides here for small Linux installs: http://pendrivelinux.com/

teapot
Dec 27, 2003

by Fistgrrl

Jadeilyn posted:

xorg.conf

Xorg.0.log

Replace the linw
code:
Option "UseEDID" "false"
with
code:
Option "UseEDIDFreqs" "false"
and add the resolution you need ("1400x1050" ?) in front of the list of resolutions in the "Modes" line.

admiraldennis
Jul 22, 2003

I am the stone that builder refused
I am the visual
The inspiration
That made lady sing the blues

KS posted:

What's a good file system choice for a 2.2 TB raid array? It's for home data storage use. I formatted it ext3 and then did some reading that suggested there may be better options.

For a home server, I'd stick with ext3. It's the most reliable, most resistant to corruption, and has the most mature toolset. Although large file deletions may take noticeable time, overall it's perfectly fast enough for a home server. XFS is a somewhat more 'dangerous' filesystem than ext3. Sudden power loss can result in zeroed-files and occasionally severe corruption. I have a 2TB RAID-5 containing primarily large files using ext3 and it works great.

If you do use ext3, be sure to tweak it for your own usage. To save significant space, drop the reserved block space down to 1% and set the bytes/inode ratio to a sane level. For the best performance, make sure the stride and stripe-size are correct for your RAID configuration, and be sure to use the sparse_super and dir_index modes (these are likely enabled by default).

admiraldennis fucked around with this message at 05:35 on Nov 26, 2007

KS
Jun 10, 2003
Outrageous Lumpwad
Thanks for the advice. Looks like I'll stick with ext3 despite being reasonably safe from power failures (ups with serial connection).

I think I got all of the raid-related ext3 formatting options correct -- large bytes per inode, correct stride, etc. I'm really quite happy with it -- took about an hour to get DNS + DHCP server + internet gateway working, plus the samba file server. Headless BT is about all I have left to set up.

KS fucked around with this message at 07:09 on Nov 26, 2007

Smackbilly
Jan 3, 2001
What kind of a name is Pizza Organ! anyway?
How do I watched log? :downs:

I've never used logwatch before, and I'm trying to set it up. The problem is, I can't get it to give me anything but disk usage and network interface information. It doesn't tell me jack about the logs. I try:

code:
logwatch --print --service All --detail high
as root, and all I get is disk usage and network info - nothing about logs. As far as I can tell, the default logwatch configuration has lots of different analyzers, and specifying --service All should invoke all of them.

Naming specific services like --service secure doesn't work either. That gives me no output whatsoever.

What am I missing? I'm on Fedora 8, if it matters.

Edit: Nevermind. Turns out that the problem was that I didn't have a necessary perl module installed. It would've been nice if it, y'know, said something about that.

Smackbilly fucked around with this message at 08:38 on Nov 26, 2007

hooah
Feb 6, 2006
WTF?
My computer again froze while shutting down Ubuntu 7.10, after a couple of successful shutdowns. Is there a log that's generated when this happens? If so, where is it? Any other ideas?

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

hooah posted:

My computer again froze while shutting down Ubuntu 7.10, after a couple of successful shutdowns. Is there a log that's generated when this happens? If so, where is it? Any other ideas?

All logs are kept in /var/log. Next time you shut down, take note of the time, and then search the logs for that time and see what's going on.

Dr. Hourai
Dec 4, 2004
More tea!
I'm starting to seriously consider going from windows to linux after stumbling upon some great sites about it. Preferably I'd like to go with one of those fancy (what do you call them, releases, builds, distros?) with multiple desktops so that I can have one for writing and one for drawing with inkscape etc.

The only problem is that my computer is a laptop, and some no-brand laptop at that. I saw some lists of linux compatability on laptops, so I'm assuming that some can't run linux, or will run it poorly. What causes this, is it some specific hardware that simply is incompatible? If so, what kind?

Can I transfer all my stuff (pictures, mp3s, textfiles etc.) to another partition and have them show up after I've installed linux?

I realise that all versions are slightly different, but how much of a difference is there in terms of user friendliness, ability to run different programs etc?

And, where can I find the easiest guide to installing ubuntu on my laptop with the ability to boot both windows and ubuntu?

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

Dr. Hourai posted:

I'm starting to seriously consider going from windows to linux after stumbling upon some great sites about it. Preferably I'd like to go with one of those fancy (what do you call them, releases, builds, distros?) with multiple desktops so that I can have one for writing and one for drawing with inkscape etc.

The only problem is that my computer is a laptop, and some no-brand laptop at that. I saw some lists of linux compatability on laptops, so I'm assuming that some can't run linux, or will run it poorly. What causes this, is it some specific hardware that simply is incompatible? If so, what kind?

Can I transfer all my stuff (pictures, mp3s, textfiles etc.) to another partition and have them show up after I've installed linux?

I realise that all versions are slightly different, but how much of a difference is there in terms of user friendliness, ability to run different programs etc?

And, where can I find the easiest guide to installing ubuntu on my laptop with the ability to boot both windows and ubuntu?

These days, distos like Ubuntu support virtually every hardware configuration out of the box. The only components you MIGHT have trouble with are Wireless Cards and Video Cards. Sometimes modems, as well, but no one uses modems any more. If you know what Wireless card and Video card your laptop has, we can probably give you a good idea about how easy or difficult it will be to set those up.

The cool thing about a modern installer like Ubuntu is that it will automatically shrink your Windows partition and set up the dual boot. You have to be careful with your install options, or you might end up erasing your whole drive, but it's pretty much dead-easy. Ubuntu will also automatically mount your windows partition, so you have access to it even within Linux. At this point, you can access your files and move them whereever.

Generally, every distro will run any Linux app you want it to run. It's all a matter of difficulty. For the apps that you'll be using, any modern distro will make it easy. Ubuntu, however, has arguably the largest repositories of commonly needed apps.

Dr. Hourai
Dec 4, 2004
More tea!
I just popped the Ubuntu disc in, just to try to get a dual boot thing going. It started running in low graphics mode, so I had to reboot and go into windows to find out what graphics adapter I have. Apparently it's called Via/S3g Unichrome IGP. I know I had a hard time when I tried to find the drivers for it when I reinstalled windows. Do I need a different set of files (drivers) for Linux?

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

Dr. Hourai posted:

I just popped the Ubuntu disc in, just to try to get a dual boot thing going. It started running in low graphics mode, so I had to reboot and go into windows to find out what graphics adapter I have. Apparently it's called Via/S3g Unichrome IGP. I know I had a hard time when I tried to find the drivers for it when I reinstalled windows. Do I need a different set of files (drivers) for Linux?

I'm not an expert, and haven't played with this particular configuration, but some searching around on the Ubuntu Forums reveals that there should be two packages for your video card you can install. Neither have any real 3D support, but it's better than the default Vesa drivers.

Assuming your network card is working and your machine is connected to the internet, you should be able to open a terminal and type:

"sudo apt-get install xserver-xorg-video-openchrome"

and it will install the Unichrome drivers. I'll break down the command in case you don't know what it means, because I hate it when people just tell people to "Type This" without explaining it: "sudo" runs the next command as a "super user," which is allowed to make system changes, like installing software and drivers. "apt-get" is the package managing solution for Ubuntu, which keeps track of everything you've installed, how it was installed, etc., so it's easy to modify, update or remove later on. "install" tells apt-get to look in the repositories to automatically download and install the package. "xserver-xorg-video-openchrome" is the driver package you want to install. Reboot, and see if you have access to nicer graphics modes.

I just searched the Ubuntu Forums for "Unichrome."

JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.

Zuph posted:

"sudo apt-get install xserver-xorg-video-openchrome"

Standard correction: "sudo aptitude install", not apt-get. aptitude is a drop-in replacement, and it's better.

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

JoeNotCharles posted:

Standard correction: "sudo aptitude install", not apt-get. aptitude is a drop-in replacement, and it's better.

Standard response: everyone still uses "apt-get" and I've yet to encounter anyone that's ever had any trouble with it. You're right, though. It's probably bad practice to get newbies started on apt-get rather than aptitude.

Dr. Hourai
Dec 4, 2004
More tea!
Wow, so now I tried popping it in again. Everything seemed to go allright, it kept doing stuff automatically until it came to the line "Running local boot scripts [OK]"
and then it stopped. So I restarted my computer, and there was some sort of console-thingie which I understood nothing of.
I should mention that for now I'm only doing this with the Live-CD thing or whatever it's called, since I just want to try ubuntu out before I go ahead and make a dual boot.

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

Dr. Hourai posted:

I should mention that for now I'm only doing this with the Live-CD thing or whatever it's called, since I just want to try ubuntu out before I go ahead and make a dual boot.

AH HA! When you reboot the LiveCD, your changes disappear. Instead of rebooting after installing the package, you should be able to just hit Ctrl-Alt-Backspace to restart your X session and start using the new drivers.

Dr. Hourai
Dec 4, 2004
More tea!

Zuph posted:

AH HA! When you reboot the LiveCD, your changes disappear. Instead of rebooting after installing the package, you should be able to just hit Ctrl-Alt-Backspace to restart your X session and start using the new drivers.
Tried that, but it didn't work :\
Then I tried ctrl-alt-del, and then it started the console-thing again, BusyBox.
I can't for the life of me figure out why it won't start installing or start ubuntu like the help files say it will. The only thing that's not working properly (that I can see) is the graphics driver.

hooah
Feb 6, 2006
WTF?

Zuph posted:

An explanation of a command.

Thanks a bunch for this. Newbies like me could use more of this, so we actually understand what the hell we're typing into the terminal.

Dr. Hourai
Dec 4, 2004
More tea!

JoeNotCharles posted:

Standard correction: "sudo aptitude install", not apt-get. aptitude is a drop-in replacement, and it's better.
Posting this from Ubuntu guys, yay. However, I used Wubi to install it, I might give it its own partition later.

It's going painfully slow though. I've tried typing the commands in the terminal, but it asks me if another process is using the administration directory.

Adbot
ADBOT LOVES YOU

jaymack
Nov 27, 2007
ok

Dr. Hourai posted:

It's going painfully slow though. I've tried typing the commands in the terminal, but it asks me if another process is using the administration directory.
You can use pstree -p (I'm not sure if you'll have to run it under sudo) to check for any apt or aptitude processes running and sudo kill <process id> to kill them. Alternatively, you can use sudo ksysguard on KDE, I'm not sure what the GNOME equivalent of that would be though.

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