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
Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Neuntausend posted:

And there's another thing: Since you are involved somewhat, do you know if AMD/nVidia are working on Wayland/Weston compatible driver blobs yet? Because in all honesty, I also can't see too many people switching to Wayland without those, and as I have come to know nVidia at least, they probably don't even care.

First, I'll say that Red Hat contributes to open-source AMD and NVIDIA drivers, and for our simple desktop customers we recommend that users run those instead of proprietary drivers.

For our customers for which the FOSS drivers are not good enough, I know that Red Hat does collaborate with NVIDIA, but I'm not involved in those meetings and I'm not up to date on the latest results from them. Don't quote me on this, but I think NVIDIA has said that they are working on EGL support for at least gbm.

One of the things we've talked about having a very simple version of Xorg that loads NVIDIA's proprietary driver and uses it as an output layer for Wayland, but that was just one of those "it's so crazy it might just work" ideas, and there's a lot of questions about it (do we run a free EGL stack, or try to write a wrapper to convert EGL to GLX?)

Adbot
ADBOT LOVES YOU

evensevenone
May 12, 2001
Glass is a solid.
On this topic, is there a good article explaining the different Linux environment/window manager/whatever X is stacks? It seems like there are a lot of competing implementations and I haven't seen a good explanation of what does what or what is replacing what. Wikipedia is pretty useless for this sort of thing...

Captain Pike
Jul 29, 2003

I have a dedicated Centos 5 server which I can only access via SSH. I would like to install Centos 6. My research suggests that 'upgrading' my Centos 5 install to Centos 6 is a bad idea, and that I should instead cleanly install Centos 6.

I will likely have to pay someone in the data center to manually install Centos 6. However, it would be very neat if I could somehow do this over ssh. (and have ssh then run automatically after installation, so I can still access it, of course)

I can't seem to find any evidence that this is possible. Is there any way to do so?

spankmeister
Jun 15, 2008






I suppose you could get the installer images, stick them in /boot, update your grub to include them, with boot time options that will enable access over VNC with a pre-set password. (This also means you need to setup the network config and all that jazz in there)

If you mess up your server won't boot normally anymore and you'd have to pay the datacenter operator to fix it for you but hey.

e: although I think grub has an option to try to boot and then fall back to another after it fails.

spankmeister fucked around with this message at 09:26 on Aug 11, 2013

Neuntausend
Sep 11, 2012

Wir werden alle sterben.

evensevenone posted:

On this topic, is there a good article explaining the different Linux environment/window manager/whatever X is stacks? It seems like there are a lot of competing implementations and I haven't seen a good explanation of what does what or what is replacing what. Wikipedia is pretty useless for this sort of thing...

Haven't seen anyhing specifically on that topic, but you will find that info on installation guides of gentoo, arch and the like or wikis of larger distributions. In the end, it's not that difficult. Linux OSes are all about options. While there are certain quasi-standards, there are alternatives for almost everything. Only a few things (such as X) are without alternative (for now).

X is your display server, it loads drivers for your graphics card, mouse, keyboard and enables other software to draw graphical stuff on your screen. As I said, right now there's no alternative, but since it's about 30 years old and somewhat messy, certain projects (Wayland, Mir) seek to create something more up to date. Window managers are just the programs that actually draw window borders (using your display server), handle the moving around, min-/maximising and such. Desktop environments are a combination of a window manager, bars, docks, tools (editor, calculator, settings manager, what have you), stuff you would expect to find on a desktop computer.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

evensevenone posted:

On this topic, is there a good article explaining the different Linux environment/window manager/whatever X is stacks? It seems like there are a lot of competing implementations and I haven't seen a good explanation of what does what or what is replacing what. Wikipedia is pretty useless for this sort of thing...

I wrote http://blog.mecheye.net/2012/06/the-linux-graphics-stack/ a year ago for precisely this reason. I'm working on a followup, too, and if anybody has any questions, however dumb they might seem, just ask and I'll try my best to answer.

JerikTelorian
Jan 19, 2007



I'm trying to write a bash script for a Minecraft server that will tar three folders.

This is what I have so far, but it fails when I try and use it, with the error "tar: Cowardly refusing to create an empty archive". What do I need to do to get the folders all saved?

Folders I want to save, all in the same tarfile:
./world/
./world_nether/
./world_the_end/

code:
#!/bin/bash
SOURCE=$PWD"/world/" $PWD"/world_nether/" $PWD"/world_the_end/"
DEST="backups/"
FILENAME="vanilla-$(date +%Y-%m-%d-%H%M).tgz"
tar -chzvf $DEST$FILENAME $SOURCE
exit

Neuntausend
Sep 11, 2012

Wir werden alle sterben.

JerikTelorian posted:

SOURCE=$PWD"/world/" $PWD"/world_nether/" $PWD"/world_the_end/"

Are those supposed to be absolute paths?

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.

JerikTelorian posted:

I'm trying to write a bash script for a Minecraft server that will tar three folders.

This is what I have so far, but it fails when I try and use it, with the error "tar: Cowardly refusing to create an empty archive". What do I need to do to get the folders all saved?

Run this:
code:
#!/bin/bash
set -x
SOURCE=$PWD"/world/" $PWD"/world_nether/" $PWD"/world_the_end/"
DEST="backups/"
FILENAME="vanilla-$(date +%Y-%m-%d-%H%M).tgz"
tar -chzvf $DEST$FILENAME $SOURCE
set +x
exit

JerikTelorian
Jan 19, 2007



Neuntausend posted:

Are those supposed to be absolute paths?

They are. When I first tried to write it, it didn't like me using relative paths for some reason.


Did this, this is the output I got:

code:
+ SOURCE=/opt/minecraft/vanilla/world/
+ /opt/minecraft/vanilla/world_nether/ /opt/minecraft/vanilla/world_the_end/
saveworld.sh: line 3: /opt/minecraft/vanilla/world_nether/: Is a directory
+ DEST=backups/
++ date +%Y-%m-%d-%H%M
+ FILENAME=vanilla-2013-08-11-1948.tgz
+ tar -chzvf backups/vanilla-2013-08-11-1948.tgz
tar: Cowardly refusing to create an empty archive
is the [set +x] some kind of debug mode? I was looking for that while trying to learn scripting. It looks like the source isn't being properly included, for some reason.

Thermopyle
Jul 1, 2003

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

I guess I don't understand cpu load.



I can sit here and watch (h)top, and none of the cores have much load on them, and the processes all pretty much look like they do there, and yet the load average is 16.71 and the terminal over ssh is slow to respond, and the CPU is running at 2.4GHz instead of the throttled back 1.6GHz.

What's going on here?

pseudorandom name
May 6, 2007

Load is the total number of processes that are running, processes that could run if something else wasn't running instead and processes that could run if they weren't waiting for IO.

It looks like you have a lot of stuff waiting on IO (all those Ds in the S column).

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.

Thermopyle posted:

I guess I don't understand cpu load.

I can sit here and watch (h)top, and none of the cores have much load on them, and the processes all pretty much look like they do there, and yet the load average is 16.71 and the terminal over ssh is slow to respond, and the CPU is running at 2.4GHz instead of the throttled back 1.6GHz.

What's going on here?
Load measures all resources. So if your CPUs are empty and your Memory is not totally full, then your disk must be overloaded.
Can you turn on TASK_IO_ACCOUNTING ? and then display it with atop. This should tell you.


JerikTelorian posted:

is the [set +x] some kind of debug mode? I was looking for that while trying to learn scripting. It looks like the source isn't being properly included, for some reason.
Yes it echos the executed commands. set -x turns echo on, set +x turns it off again.

M31
Jun 12, 2012

JerikTelorian posted:

They are. When I first tried to write it, it didn't like me using relative paths for some reason.

Yes, because you have SOURCE=path1 path2 path3, which will try to execute a program called path2 (with environmental variable SOURCE set and argument path3). What you want is probably
SOURCE=(path1 path2 path3)

Thermopyle
Jul 1, 2003

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

pseudorandom name posted:

Load is the total number of processes that are running, processes that could run if something else wasn't running instead and processes that could run if they weren't waiting for IO.

It looks like you have a lot of stuff waiting on IO (all those Ds in the S column).


tonberrytoby posted:

Load measures all resources. So if your CPUs are empty and your Memory is not totally full, then your disk must be overloaded.
Can you turn on TASK_IO_ACCOUNTING ? and then display it with atop. This should tell you.

Thanks, that makes sense.

Turns out that its mysqld, so I need to look in to that...

JerikTelorian
Jan 19, 2007



M31 posted:

Yes, because you have SOURCE=path1 path2 path3, which will try to execute a program called path2 (with environmental variable SOURCE set and argument path3). What you want is probably
SOURCE=(path1 path2 path3)

I did this and it now runs, but it still only compressed the first folder (./world). This is what the code looks like now (I guess I didn't need the absolute path?)

code:
#!/bin/bash
set -x
SOURCE=("./world/" "./world_nether/" "./world_the_end/")
DEST="backups/"
FILENAME="vanilla-$(date +%Y-%m-%d-%H%M).tgz"
tar -chzvf $DEST$FILENAME $SOURCE
set +x
exit
And the output (less the verbose tar)
code:
+ SOURCE=("./world/" "./world_nether/" "./world_the_end/")
+ DEST=backups/
++ date +%Y-%m-%d-%H%M
+ FILENAME=vanilla-2013-08-11-2058.tgz
+ tar -chzf backups/vanilla-2013-08-11-2058.tgz ./world/
+ set +x
EDIT: I got it. Had to correct SOURCE to read SOURCE=("./world/ ./world_nether/ ./world_the_end/"), the internal quotes were loving it up. Thanks to everyone for the assistance.

JerikTelorian fucked around with this message at 18:02 on Aug 11, 2013

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

Captain Pike posted:

I have a dedicated Centos 5 server which I can only access via SSH. I would like to install Centos 6. My research suggests that 'upgrading' my Centos 5 install to Centos 6 is a bad idea, and that I should instead cleanly install Centos 6.

I will likely have to pay someone in the data center to manually install Centos 6. However, it would be very neat if I could somehow do this over ssh. (and have ssh then run automatically after installation, so I can still access it, of course)

I can't seem to find any evidence that this is possible. Is there any way to do so?

Yes, this is possible. You can use the netinstall image in /boot to clean install (recommended). You can do a bunch of fuckery with Anaconda and a local repo plus GRUB2 to save everything, but you'd have just as much luck if you kickstarted the netinstall.

You can upgrade 5 to 6, but it was a long development cycle. 5 can't even read RPMs from 6. You need to install newer versions of rpm, glibc, rpm-python, and a few other packages from Fedora 9 (I think, it's been a while) then do the same from F11 in order to get RPM on 5 to support the new RPM format, at which point yum installing works. Test this in a VM to make sure you get the process right, because if you don't, your system is unusable.

M31
Jun 12, 2012

JerikTelorian posted:

EDIT: I got it. Had to correct SOURCE to read SOURCE=("./world/ ./world_nether/ ./world_the_end/"), the internal quotes were loving it up. Thanks to everyone for the assistance.

I'm sorry, I was using zsh, which has somewhat sane bahaviour.
In bash you have to use "${SOURCE[@]}" (with the quotes) to output all the paths instead of just $SOURCE, which will only give you the first one. While you can use the solution you have now (in which case you don't need the parentheses), it will break if there ever is a space in one of the pathnames.

Megaman
May 8, 2004
I didn't read the thread BUT...
Crossposting this from support to see if anyone has an answer:

I cannot preseed the portion of debian 7.1 install that deals with the wireless network name with the following and I'm wondering what I'm going wrong:

d-i netcfg/wireless_show_essids manual [wireless_network_name]
d-i netcfg/wireless_essid string [wireless_network_name]
d-i netcfg/wireless_essid_again string [wireless_network_name]

With these lines the network name is highlighted but not selected. My question is how can I actually select this network?

Vulture Culture
Jul 14, 2003

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

Thermopyle posted:

I guess I don't understand cpu load.



I can sit here and watch (h)top, and none of the cores have much load on them, and the processes all pretty much look like they do there, and yet the load average is 16.71 and the terminal over ssh is slow to respond, and the CPU is running at 2.4GHz instead of the throttled back 1.6GHz.

What's going on here?
Your 2 GB of used swap is the first place I'd look in terms of the disk I/O issues others have pointed out as the likely cause of your slowdown. If you're running sysstat, pgpin/pgpout and majflt/s should be logged in sar.

JHVH-1
Jun 28, 2002

Misogynist posted:

Your 2 GB of used swap is the first place I'd look in terms of the disk I/O issues others have pointed out as the likely cause of your slowdown. If you're running sysstat, pgpin/pgpout and majflt/s should be logged in sar.

You can also add IO to htop as well and then sort by something like read/write/total to find out the top disk activity.

Adult Sword Owner
Jun 19, 2011

u deserve diploma for sublime comedy expertise
At a user's request, I changed their home directory in LDAP to an NFS directory. This is a very common thing here. I can see the NFS mount on his machine and everywhere else, I can go to it, but it refuses to let me use it as a home directory:

[root@MACHINE users]# su - USERNAME
su: warning: cannot change directory to /export/nfs/users/USERNAME : No such file or directory
if: Expression Syntax.
[USERNAME@MACHINE users]$ echo $HOME
/export/nfs/users/USERNAME
[USERNAME@MACHINE users]$ cd $HOME
[USERNAME@MACHINE USERNAME]$ pwd
/export/nfs/users/USERNAME



SElinux is set to permissive, there's no errors in /var/log/messages or /var/log/secure. Google is no help.

This is in RHEL5





edit: Turns out I had a space after the home directory setting in LDAP. gently caress you, Red Hat.

Adult Sword Owner fucked around with this message at 15:36 on Aug 12, 2013

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

Dead Inside Darwin posted:

edit: Turns out I had a space after the home directory setting in LDAP. gently caress you, Red Hat.

man 5 passwd

This is not a Redhat problem. Wouldn't work on any distro.

3spades
Mar 20, 2003

37! My girlfriend sucked 37 dicks!

Customer: In a row?

Megaman posted:

Crossposting this from support to see if anyone has an answer:

I cannot preseed the portion of debian 7.1 install that deals with the wireless network name with the following and I'm wondering what I'm going wrong:

d-i netcfg/wireless_show_essids manual [wireless_network_name]
d-i netcfg/wireless_essid string [wireless_network_name]
d-i netcfg/wireless_essid_again string [wireless_network_name]

With these lines the network name is highlighted but not selected. My question is how can I actually select this network?

Looking at other preseeds, do you have to specify managed or adhoc?

# Choices: Infrastructure (Managed) network, Ad-hoc network (Peer to peer)
d-i netcfg/wireless_adhoc_managed select Infrastructure (Managed) network

Megaman
May 8, 2004
I didn't read the thread BUT...

3spades posted:

Looking at other preseeds, do you have to specify managed or adhoc?

# Choices: Infrastructure (Managed) network, Ad-hoc network (Peer to peer)
d-i netcfg/wireless_adhoc_managed select Infrastructure (Managed) network

I don't believe so, but I'm not sure

I also can't seem to get d-i partman-auto/disk string /dev/sda to work... Can anyone else verify this?

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat
So I have a weird problem with my Chromebook (Samsung Series 5 550 Intel). I installed Ubuntu on it, and it's working great, but I'm trying to setup a swap file.

Eveything I do ends up with this output:

code:
 swapon ./swap_file -v
swapon on ./swap_file
swapon: /swap/swap_file: insecure permissions 0644, 0600 suggested.
swapon: /swap/swap_file: found swap signature: version 1, page-size 4, same byte order
swapon: /swap/swap_file: pagesize=4096, swapsize=1048576, devsize=1048576
swapon: ./swap_file: swapon failed: Invalid argument
I made the swap file right, and I see that the one error is a warning about the file permissions, but I can't get it to actually mount the swap file. I"ve googled the heck out of it and I can't figure it out

Ubuntu 12.04, 3.8.11 kernel.

Master Stur
Jun 13, 2008

chasin' tail
So I have a little project going on involving ftp. Essentially I need to watch for an ftp append on a file and if it happens then I append that file to another on a remote machine. (So it would act as a buffer or ftp "cache" in case the usual connection to the remote machine goes down). My idea would be to use a bash script to check the logs for a successful append or just check the mod time on the file for a change and if so, ftp append to the remote file. Then tie the script to a cron job and run every so often or turn it into a service so it runs constantly? Not sure if that can be done or if it's even worth it.

Is there a better way to do this? This seems the most straight forward unless there's a tool out there that would do it better. I'm using Ubuntu 12.04 with proftpd.

Vulture Culture
Jul 14, 2003

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

Master Stur posted:

So I have a little project going on involving ftp. Essentially I need to watch for an ftp append on a file and if it happens then I append that file to another on a remote machine. (So it would act as a buffer or ftp "cache" in case the usual connection to the remote machine goes down). My idea would be to use a bash script to check the logs for a successful append or just check the mod time on the file for a change and if so, ftp append to the remote file. Then tie the script to a cron job and run every so often or turn it into a service so it runs constantly? Not sure if that can be done or if it's even worth it.

Is there a better way to do this? This seems the most straight forward unless there's a tool out there that would do it better. I'm using Ubuntu 12.04 with proftpd.
You can use inotifywait to watch for close_write events really easily with a shell script. The downside of the inotify approach is that if your service stops for some reason while files are still being uploaded over FTP, the changes won't be caught.

3spades
Mar 20, 2003

37! My girlfriend sucked 37 dicks!

Customer: In a row?

Jerk McJerkface posted:

So I have a weird problem with my Chromebook (Samsung Series 5 550 Intel). I installed Ubuntu on it, and it's working great, but I'm trying to setup a swap file.

Eveything I do ends up with this output:

code:
 swapon ./swap_file -v
swapon on ./swap_file
swapon: /swap/swap_file: insecure permissions 0644, 0600 suggested.
swapon: /swap/swap_file: found swap signature: version 1, page-size 4, same byte order
swapon: /swap/swap_file: pagesize=4096, swapsize=1048576, devsize=1048576
swapon: ./swap_file: swapon failed: Invalid argument
I made the swap file right, and I see that the one error is a warning about the file permissions, but I can't get it to actually mount the swap file. I"ve googled the heck out of it and I can't figure it out

Ubuntu 12.04, 3.8.11 kernel.

It suggests 644 is insecure (allowing group/other read access) so chmod 600 /swap/swap_file and put your swap entry in /etc/fstab. Then just
# swapon -a

Precambrian Video Games
Aug 19, 2002



Apparently some of the issues with gnome 3's memory usage (if not leakage) are related to the system monitor extension, particularly the graphs it makes. That's too bad, because it's pretty handy... I guess I'll try disabling it for a while to see what happens.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
On https://help.ubuntu.com/community/IptablesHowTo the first example is "Allowing Established Sessions" - what exactly does that rule do?

spankmeister
Jun 15, 2008






fletcher posted:

On https://help.ubuntu.com/community/IptablesHowTo the first example is "Allowing Established Sessions" - what exactly does that rule do?

It means that it allows traffic from sessions that have already been established. For example if the default incoming policy is drop (it should) then any session you try to open to say, a web server at port 80 will fail. The server will receive your packets but the packets it sends back will be dropped. The established rule will track that connection and allow the traffic in. This means you don't have to open up a whole block of ports just to talk to the outside.

Master Stur
Jun 13, 2008

chasin' tail

Misogynist posted:

You can use inotifywait to watch for close_write events really easily with a shell script. The downside of the inotify approach is that if your service stops for some reason while files are still being uploaded over FTP, the changes won't be caught.

Awesome thanks! I must have been using the wrong keywords because I didn't see that at all while googling.

I don't expect the service to quit out on me, but it doesn't need to be up 24/7 either. The odds of enough failures happening for this thing to even get used are pretty slim.

OWLS!
Sep 17, 2009

by LITERALLY AN ADMIN

fivre posted:

There's nothing like http://www.google.com/inputtools/windows/ for Linux, is there?

I type in Cyrillic often enough, but not so often that I'd learn to touch type the proper Russian keyboard layout, so transliteration IMEs are the best option for me. Sadly the only access to them now is via copy paste from Google Translate's webpage or translit.cc, which isn't as nice as direct in-app typing.

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ru ,phonetic

Something like that. You can hard-code it as well. If you're running XFCE you can actually set this in the keyboards menu. You want the Russian-Phonetic option.

Socket Ryanist
Aug 30, 2004

Martytoof posted:

Yup. it's ridiculously easy if you're just using a default 9600,8,N,1: screen /dev/[YourDevice], then you can do all the useful screen stuff like disconnecting, and kill the session when you're done :)

If you use something besides 9600,8,N,1 then you probably have to do some additional config. I haven't really tried anything else honestly.
You can just do screen <serial port> <baud rate>

I don't know how to change parity etc but practically everything is 8n1

Socket Ryanist
Aug 30, 2004

Is there a better way to change what part of the screen my drawing tablet maps to? The way you do it with xsetwacom is strange and confusing.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
Recent versions of gnome-control-center have a custom calibration screen that works like a charm.

JHVH-1
Jun 28, 2002

OWLS! posted:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ru ,phonetic

Something like that. You can hard-code it as well. If you're running XFCE you can actually set this in the keyboards menu. You want the Russian-Phonetic option.

I've set this up for clients in my last job, its based off the inotify facility and runs as a daemon https://code.google.com/p/lsyncd/

Social Animal
Nov 1, 2005

So my dvd drive died and I replaced it with a nice shiny blu-ray/dvd/cd etc. drive. Under VLC in Windows 7 I can play dvds without any issue but under Fedora 19.. the sound is full of static and the video is itself is really choppy. It's weird because it's not like the frames are delayed, the playback reminds me of a ruined vhs tape.

What's the best way to troubleshoot this? dmesg doesn't seem to have any errors regarding cdrom or /dev/sr0. /proc/sys/dev/cdrom/info just lists the known facts about the drive. I'm at a loss and may re-install Fedora as a last ditch effort which is horrible because I can be lazy. :(

Adbot
ADBOT LOVES YOU

Jeesis
Mar 4, 2010

I am the second illegitimate son of gawd who resides in hoaven.
I am attempting to use my phones GPS over bluetooth to connect to my system. Everything works except gpsd which keeps giving me the error that the device (/dev/rfcomm0) is already in use. Which of course it is due to it being connected via bluetooth, I at least assume bluetoothd is the process that is using it.

Is there any way to force it to overlook the process that is already using it? Or any other GPS program out there that does not give a poo poo if something else is using it?

I am running kali linux which is based off debian, well it basically is debian with a reskin. I also for whatever reason could not manually set up rfcomm and it just tells me that the connection is refused but blueman is able to connect it up just fine.

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