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
icantfindaname
Jul 1, 2008


I'm trying to get a variant of nethack running after installing it from source on Ubuntu, and it can't seem to open the config file in my home directory

code:
Couldn't open default config file /home/user/.nethackrc Permission denied(13).
It's running setuid under the user games, but even after setting permissions on .nethackrc to all and changing its owner to games, it still won't work. What exactly am I doing wrong?

Adbot
ADBOT LOVES YOU

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender

icantfindaname posted:

It's running setuid under the user games, but even after setting permissions on .nethackrc to all and changing its owner to games, it still won't work. What exactly am I doing wrong?

You should almost certainly be running setgid games, not setuid. I think this is covered in nethack's "README.linux" file.

spankmeister
Jun 15, 2008






Why is it running setuid?

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender

spankmeister posted:

Why is it running setuid?

Nethack (and a lot of old unix games) like to run with extra privileges so they can write a high scores file and prevent users from being able to trivially insert fake scores.

It's dumb.

icantfindaname
Jul 1, 2008


Alright, I recompiled it to run setgid and the same thing is happening, plus another error:

code:
perm_lock: Operation not permitted
Cannot lock perm for unknown reason (1).

Hit space to continue:
perm is a file in the same directory as the binary. Here are the permissions for the whole folder:

I changed record's permissions to try allow group members to write but that didn't work.

I imagine just setting permissions for the whole folder to all would fix things, but now I sort of want to fix it properly.

edit: OK, I finally figured it out. the link in /usr/games was aimed at a launch script one folder above the folder where it was installed. I don't know what that was supposed to do, but re-aiming the link to the binary itself seems to fix it for now. Jesus.

icantfindaname fucked around with this message at 23:56 on Dec 24, 2012

ProfessorBooty
Jan 25, 2004

Amulet of the Dark
I'm running Mint 13 MATE on my laptop, and I have a question regarding the mouse settings.

Is it possible to have different mouse settings on a per-program basis? I ask this because I use a touchpad that likes to paste contents from the clipboard at inconvenient times, and the only way to stop it is to turn off mouse clicks via the touchpad, but I like to use touchpad clicks while surfing the web. So in other words, I want to be able to switch to the terminal, and for touchpad clicks to be off, then switch to a browser window, and have touchpad clicks on.

Ninja Rope
Oct 22, 2005

Wee.

icantfindaname posted:

I'm trying to get a variant of nethack running after installing it from source on Ubuntu, and it can't seem to open the config file in my home directory

code:
Couldn't open default config file /home/user/.nethackrc Permission denied(13).
It's running setuid under the user games, but even after setting permissions on .nethackrc to all and changing its owner to games, it still won't work. What exactly am I doing wrong?

I know you solved this already, but for reference you can also get the same error on an NFS mounted directory. Many NFS servers map root to a nobody user, so when a program running as root tries to access the NFS mounted directory you normally have access to, it gets its UID mapped to nobody who doesn't have permission.

dolicf
Sep 12, 2010
For those who are unaware, that's called root_squash. It maps the root user (UID 0) to a UID of 65534 by default as that's the safest UID to assume isn't in use.

Suspicious Dish
Sep 24, 2011

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

ProfessorBooty posted:

I'm running Mint 13 MATE on my laptop, and I have a question regarding the mouse settings.

Is it possible to have different mouse settings on a per-program basis?

No.

Adult Sword Owner
Jun 19, 2011

u deserve diploma for sublime comedy expertise
Quick question, I put Ubuntu 12.10 on VirtualBox on my laptop (i7, 6gb ram) and gave it 8gb space, 4 gb ram, and 4 cores. It takes 20 mins to boot and is impossibly slow. Is this just VirtualBox, my laptop, Ubuntu got bad, or a combination?

Edit: Vvvv. I should mention I have not actually gotten past the login screen. It took about 3 hours to install last night, then waiting for it to boot, I entered name and pass, and it ground on a blank screen for 20 minutes before I had to do other things.

Adult Sword Owner fucked around with this message at 02:58 on Dec 25, 2012

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
I don't know. It might be a service getting stuck. Try using boot chart.

icantfindaname
Jul 1, 2008


Okay, I'm back with another problem with this thing. About 2/3rds of the time I press shift-something in nethack, it says 'unknown command 'M-something', such as 'M-O'. A bit of googling tells me this this actually alt/meta plus the second key, but I don't know why it registers shift as the meta key. It only happens once too, ie if I press shift-O twice, the first time it registers as M-O and the next time as shift-O, like the M-O is in a buffer or something.

Now for backstory, nethack wouldn't compile to begin with unless I temporarily commented out a function declaration in /usr/include/curses.h, complaining that it conflicted with a declaration in one of the source files. It refused to compile at all if I removed ncruses, however. I'm guessing this probably did it, but I'm not a programmer so I have no idea how or why.

The regular version of nethack from apt runs just fine. Is there anything obvious I'm doing wrong? Thanks for the help so far by the way.

edit: Here's the compiler error

code:
../win/tty/termcap.c:839:14: error: conflicting types for 'tparm'
../win/tty/termcap.c:839:1: note: a parameter list with an ellipsis can't match
In file included from ../win/tty/termcap.c:836:0:
/usr/include/curses.h:833:31: note: previous declaration of 'tparm' was here
make: *** [termcap.o] Error 1
edit:

And here are all the curses related packages I have installed:
code:
$(dpkg --get-selections | cat) | grep curses
lib32ncurses5                                   deinstall
libncurses5:amd64                               install
libncurses5-dev                                 install
libncursesw5:amd64                              install
ncurses-base                                    install
ncurses-bin                                     install
ncurses-term                                    install

icantfindaname fucked around with this message at 04:10 on Dec 25, 2012

Ninja Rope
Oct 22, 2005

Wee.

Saint Darwin posted:

Quick question, I put Ubuntu 12.10 on VirtualBox on my laptop (i7, 6gb ram) and gave it 8gb space, 4 gb ram, and 4 cores. It takes 20 mins to boot and is impossibly slow. Is this just VirtualBox, my laptop, Ubuntu got bad, or a combination?

Can you try using VMWare? That is way too slow.

Trash Ops
Jun 19, 2012

im having fun, isnt everyone else?

Vanilla 12.10 is known to be slow as poo poo virtualized unless you can enable 3D acceleration for Unity since they removed 2D.

http://askubuntu.com/questions/207813/why-does-an-ubuntu-12-10-guest-in-virtualbox-run-very-very-slowly

Nephielle
Mar 25, 2005

by XyloJW
Hey all. I'm new to Fedora 17. I installed all the packages I could need to do the stuff I want on my computer, and that's always fun stuff, but my question is now this:



How do I add a permanently visible dock bar to my desktop? I scoured through the display/background settings, and looked for any programs I might need to get what I want, and no success so far. Any suggestions? I'd really appreciate them!

Social Animal
Nov 1, 2005

If you're using Gnome3 then this might help:

https://extensions.gnome.org/extension/105/panel-docklet/

Nephielle
Mar 25, 2005

by XyloJW

Holy hell, is gnome doing that sort of thing now? That's great. I haven't used Linux since Ubuntu Hoary Hedgehog, so it's changed quite a bit, hasn't it? Thanks so much for pointing me towards that!

Nephielle fucked around with this message at 10:58 on Dec 27, 2012

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!

Saint Darwin posted:

Quick question, I put Ubuntu 12.10 on VirtualBox on my laptop (i7, 6gb ram) and gave it 8gb space, 4 gb ram, and 4 cores. It takes 20 mins to boot and is impossibly slow. Is this just VirtualBox, my laptop, Ubuntu got bad, or a combination?

Edit: Vvvv. I should mention I have not actually gotten past the login screen. It took about 3 hours to install last night, then waiting for it to boot, I entered name and pass, and it ground on a blank screen for 20 minutes before I had to do other things.

Give it like 1-2GB of RAM and 1, maybe 2 cores. You don't need to give it 'a whole machine worth' of resources when you virtualize. And make sure the Intel Virtualization setting is enabled in your BIOS.

Change the chipset from PIIX to ICHR, or the other way around - that will fix your speed issues.

originalnickname
Mar 9, 2005

tree
I've got a mounted share on a windows server that I've got mounted via cifs in my fstab in ubuntu, but for some reason it only shows the first 84 directories in the share,

code:
//192.168.0.10/files /jp/files cifs guest,_netdev  0 0
is what my fstab line looks like. I've been googling this for a while but I guess i can't form my question clearly enough for google to understand. What am I doing wrong?

edit:

I got it working by adding "noserverino" to the fstab input, all is well now.

originalnickname fucked around with this message at 04:46 on Dec 29, 2012

Hadlock
Nov 9, 2004

Saint Darwin posted:

Quick question, I put Ubuntu 12.10 on VirtualBox on my laptop (i7, 6gb ram) and gave it 8gb space, 4 gb ram, and 4 cores. It takes 20 mins to boot and is impossibly slow. Is this just VirtualBox, my laptop, Ubuntu got bad, or a combination?

Edit: Vvvv. I should mention I have not actually gotten past the login screen. It took about 3 hours to install last night, then waiting for it to boot, I entered name and pass, and it ground on a blank screen for 20 minutes before I had to do other things.

Something has gone horribly awry. I routinely run 2xUbuntu 12.04 VMs on my dual core atom machine. The machine boots and loads both VMs to the point where I can SSH in to them in under five minutes. Have you tried running it with just a single core? Try installing 12.10 server, it has dramatically lower sys reqs.

Craptacular!
Jul 9, 2001

Fuck the DH

Nephielle posted:

Holy hell, is gnome doing that sort of thing now? That's great. I haven't used Linux since Ubuntu Hoary Hedgehog, so it's changed quite a bit, hasn't it? Thanks so much for pointing me towards that!

I'm going to chime in here and say that I suggest Docky over a GNOME javascript extension for this sort of thing. Firstly because it's less likely to break when GNOME updates which many built-then-abandoned extensions do, and because you can add some extra widgets like the trash can, folder shortcuts, etc.

I use Docky in conjunction with Cinnamon or GNOME (the former if you're more into games or fullscreen apps), I don't hesitate to suggest it if you essentially want to clone the characteristics of Apple's interface.

Craptacular! fucked around with this message at 10:31 on Dec 29, 2012

nescience
Jan 24, 2011

h'okay
Setting up a VPN for the first time and I need some help. I can connect to my VPN, but I can't access the Internet.

I have a OpenVZ VPS running CentOS 6.2, I enabled TUN/TAP and PPTP in my SolusVM CP, and I set up a PPTP VPN using this guide.

The only results from googling my issue was adding the line
code:
/sbin/ifconfig $1 mtu 1400
to /etc/ppp/ip-up, and I'm using OpenDNS's servers instead of Google's.

Pretty sure it's some stupid newbie mistake, but I have no idea how to trouble shoot this.

nescience fucked around with this message at 22:59 on Dec 30, 2012

Ninja Rope
Oct 22, 2005

Wee.
You're probably missing the default route. I don't think you gave enough information for me to figure out what exactly is missing, but probably the client needs a default route to the server's VPN IP (but the client still needs a route to the internet with a higher MTU or specific route to the gateway that gets you to the VPN server).

evol262
Nov 30, 2010
#!/usr/bin/perl
You'll need a route, and you'll need to figure out what you want to do about your clients. Probably ipv4 forwarding will work, but it's possible that you'll want to use iptables to NAT everything. Only you can know. "echo 1 > /proc/sys/net/ipv4/ip_forward", adding a route to your ppp config will work, though.

nescience
Jan 24, 2011

h'okay

Ninja Rope posted:

You're probably missing the default route. I don't think you gave enough information for me to figure out what exactly is missing, but probably the client needs a default route to the server's VPN IP (but the client still needs a route to the internet with a higher MTU or specific route to the gateway that gets you to the VPN server).


evol262 posted:

You'll need a route, and you'll need to figure out what you want to do about your clients. Probably ipv4 forwarding will work, but it's possible that you'll want to use iptables to NAT everything. Only you can know. "echo 1 > /proc/sys/net/ipv4/ip_forward", adding a route to your ppp config will work, though.

I did enable ipv4 forwarding as well as using iptables to NAT as instructed in the guide. Can you explain to me how to configure a route?

evol262
Nov 30, 2010
#!/usr/bin/perl
Try adding it manually after you connect. There's a lot that could be going wrong.

Check:
/proc/sys/net/ipv4/ip_forward

It should be 1.

Check:
iptables -L

You should see your masquerading rules, and not much else.

Connect with a client. See if you can ping the private IP of your server (I don't know what that is -- only you do).

Are you assigning public or private IPs to your clients? If public, do you own those?

Can you ping anything? If you can't ping the server/gateway after connecting, you won't be able to route through it (this isn't always true, but it's generally a good rule).

Can you read a tcpdump? If you can ping, you'll need to tcpdump from the server (and hopefully the client) to see what's going wrong.

It's frankly a lot to troubleshoot, and nobody here can walk you through all of it. VPNs are hard.

What I'd really recommend is following one of the hundreds of openswan+xl2tpd VPN tutorials, which (unlike the guide you followed) don't assume ancient VPN protocols, no encryption whatsoever, and public client IP addresses.

If you don't need iOS support, and you don't mind a little manual work on the clients, just use OpenVPN.

nescience
Jan 24, 2011

h'okay

evol262 posted:

Try adding it manually after you connect. There's a lot that could be going wrong.

Check:
/proc/sys/net/ipv4/ip_forward

It should be 1.

Check:
iptables -L

You should see your masquerading rules, and not much else.

Connect with a client. See if you can ping the private IP of your server (I don't know what that is -- only you do).

Are you assigning public or private IPs to your clients? If public, do you own those?

Can you ping anything? If you can't ping the server/gateway after connecting, you won't be able to route through it (this isn't always true, but it's generally a good rule).

Can you read a tcpdump? If you can ping, you'll need to tcpdump from the server (and hopefully the client) to see what's going wrong.

It's frankly a lot to troubleshoot, and nobody here can walk you through all of it. VPNs are hard.

What I'd really recommend is following one of the hundreds of openswan+xl2tpd VPN tutorials, which (unlike the guide you followed) don't assume ancient VPN protocols, no encryption whatsoever, and public client IP addresses.

If you don't need iOS support, and you don't mind a little manual work on the clients, just use OpenVPN.

Thank you, I didn't realize vpn was this complicated, I think ill take your advice and look into using xl2tpd(I do need it for iOS). Do you happen to have a particular guide to recommend? I'm just going down the list in Google right now and the first few doesn't seem to work.

evol262
Nov 30, 2010
#!/usr/bin/perl
I don't have a particular one, but the Ubuntu forums and Arch/Gentoo wikis probably have one. Failing that, I can post configs tomorrow.

River
Apr 22, 2012
Nothin' but the rain
Anyone know of a way I can run dual monitors with Fedora or Ubuntu without everything making GBS threads itself?

One monitor (Primary) runs at 1920x1080 @ 59hz, the other runs at 1280x1024 @ 60hz. Both Samsung Syncmasters, 2233sw and 740n respectively. Graphics card is an nVidia GTS450. I'm connecting the primary with a DVI cable, and the other with DVI but through a VGA > DVI adapter.

I can only seem to have them mirrored, and for some reason on both distributions my primary monitor is stuck in 1600x1200, and the second stuck at 1024x768, I think it's trying to force a 59hz refresh rate on the second one too as it flickers like crazy. I'm stumped.

River fucked around with this message at 00:58 on Jan 2, 2013

nescience
Jan 24, 2011

h'okay

evol262 posted:

I don't have a particular one, but the Ubuntu forums and Arch/Gentoo wikis probably have one. Failing that, I can post configs tomorrow.

I eventually got a PPTP VPN up and running, so I guess I'm good. Thank you for the information though, I'll look into this stuff and learn something out of this.

Longinus00
Dec 29, 2005
Ur-Quan

River posted:

Anyone know of a way I can run dual monitors with Fedora or Ubuntu without everything making GBS threads itself?

One monitor (Primary) runs at 1920x1080 @ 59hz, the other runs at 1280x1024 @ 60hz. Both Samsung Syncmasters, 2233sw and 740n respectively. Graphics card is an nVidia GTS450. I'm connecting the primary with a DVI cable, and the other with DVI but through a VGA > DVI adapter.

I can only seem to have them mirrored, and for some reason on both distributions my primary monitor is stuck in 1600x1200, and the second stuck at 1024x768, I think it's trying to force a 59hz refresh rate on the second one too as it flickers like crazy. I'm stumped.

Post the output of the 'xrandr' command. Here is an example.
code:
$ xrandr 
Screen 0: minimum 320 x 200, current 3360 x 1080, maximum 3840 x 1200
DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 disconnected (normal left inverted right x axis y axis)
DFP3 disconnected (normal left inverted right x axis y axis)
DFP4 disconnected (normal left inverted right x axis y axis)
DFP5 disconnected (normal left inverted right x axis y axis)
DFP6 disconnected (normal left inverted right x axis y axis)
DFP7 disconnected (normal left inverted right x axis y axis)
DFP8 disconnected (normal left inverted right x axis y axis)
DFP9 disconnected (normal left inverted right x axis y axis)
DFP10 connected 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 256mm
   1440x900       59.9*+
   1280x1024      60.0  
   1280x960       60.0  
   1280x800       60.0  
   1152x864       75.0     59.9  
   1280x768       60.0  
   1280x720       60.0  
   1024x768       85.0     75.0     70.1     60.0  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     75.0     72.8     67.0     59.9  
DFP11 connected 1920x1080+1440+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080      60.0*+
   1600x1200      60.0  
   1680x1050      60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x960       60.0  
   1152x864       60.0     75.0  
   1280x768       60.0  
   1280x720       60.0  
   1024x768       75.0     70.1     60.0  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     67.0     59.9  
CRT1 disconnected (normal left inverted right x axis y axis)

Pablo Bluth
Sep 7, 2007

I've made a huge mistake.

River posted:

Anyone know of a way I can run dual monitors with Fedora or Ubuntu without everything making GBS threads itself?

One monitor (Primary) runs at 1920x1080 @ 59hz, the other runs at 1280x1024 @ 60hz. Both Samsung Syncmasters, 2233sw and 740n respectively. Graphics card is an nVidia GTS450. I'm connecting the primary with a DVI cable, and the other with DVI but through a VGA > DVI adapter.

I can only seem to have them mirrored, and for some reason on both distributions my primary monitor is stuck in 1600x1200, and the second stuck at 1024x768, I think it's trying to force a 59hz refresh rate on the second one too as it flickers like crazy. I'm stumped.
I had a load of trouble getting Ubuntu to run dual screens reliability; it was always missing the right modes from the GUI or it would work for one boot them break again. My final solution was to put the following in a script then call it from /etc/X11/Xsession.d. At first boot I get a mirrored login screen but the first time I log in, it applies the desired arrangement.
code:
xrandr --output VGA-0 --mode 1280x1024 --output HDMI-0 --mode 1280x1024  --left-of VGA-0 --primary
So my guess for you would be along the lines of (switch left-of to right-of/above/below as required):
code:
xrandr --output VGA-0 --mode 1280x1024 --rate 60 --output DVI-0 --mode 1920x1080 --rate 59 --left-of VGA-0 --primary

Thermopyle
Jul 1, 2003

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

This is a long shot, but does anyone know of any decent multi-channel USB headsets that would work well in Ubuntu? My Logitech G35 headset only has basic functionality (only 2-channel, buttons don't work, etc).

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


Huge *nix noob here but I am having a hell of time with a Solaris Box.

There's a dozen related process running but one of them has specific argument and I need to figure out which one to kill as there is one that shouldn't be running. When I run ps -aef | grep [Process] I get the standard output but the pathing is cut off. I'm using puTTY and no matter what window adjustments I make the output still isn't present. I tried using the ps -aefww option but this is not applicable to Solaris.

Any ideas?

Vulture Culture
Jul 14, 2003

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

Tab8715 posted:

Huge *nix noob here but I am having a hell of time with a Solaris Box.

There's a dozen related process running but one of them has specific argument and I need to figure out which one to kill as there is one that shouldn't be running. When I run ps -aef | grep [Process] I get the standard output but the pathing is cut off. I'm using puTTY and no matter what window adjustments I make the output still isn't present. I tried using the ps -aefww option but this is not applicable to Solaris.

Any ideas?
/usr/ucb/ps auxwww

Solaris ships with an old Solaris ps as well as a BSD ps. You want the BSD one.

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


Misogynist posted:

/usr/ucb/ps auxwww

Solaris ships with an old Solaris ps as well as a BSD ps. You want the BSD one.

I'm missing something. I went into /usr/ucb and I see the "ps" executable and that's all.

Vulture Culture
Jul 14, 2003

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

Tab8715 posted:

I'm missing something. I went into /usr/ucb and I see the "ps" executable and that's all.
auxwww is an argument, literally just type that line into your terminal

covener
Jan 10, 2004

You know, for kids!

Tab8715 posted:

Huge *nix noob here but I am having a hell of time with a Solaris Box.

There's a dozen related process running but one of them has specific argument and I need to figure out which one to kill as there is one that shouldn't be running. When I run ps -aef | grep [Process] I get the standard output but the pathing is cut off. I'm using puTTY and no matter what window adjustments I make the output still isn't present. I tried using the ps -aefww option but this is not applicable to Solaris.

Any ideas?

build a list of pids (pgrep) then test with "pargs $pid".

(Solaris' ps truncates the args at 80 bytes no matter what COLUMNS is set to)

FWLIW: on my solaris 10 / SPARC /usr/ucb/ps truncates at the same place

HolyDukeNukem
Sep 10, 2008

Thermopyle posted:

This is a long shot, but does anyone know of any decent multi-channel USB headsets that would work well in Ubuntu? My Logitech G35 headset only has basic functionality (only 2-channel, buttons don't work, etc).

maybe try this? I have a Logitech G35, and tried it, but not really certain about the particulars. But from what I've read on there, pulse audio defaults to 2 channels and you have to switch it manually to more channels.

Adbot
ADBOT LOVES YOU

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


Misogynist posted:

auxwww is an argument, literally just type that line into your terminal

I just get the usage: ps bit where it display common options and arguments. As if I enter an invalid command.

pargs isn't found when I try to run that.

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