Slackware :: Terminal Server And File Locking?
Apr 14, 2011
The setup is a central PC with XDMCP getting connections from two peripheral PCs. All PCs have normal Slackware installations (12.0 the central one, 13.1 the others). XDMCP works fine and the users login to KDE. The users have a common directory with appropriate permissions for group work.The problem is file locking. More than one users can open and work on the same file in the common directory, eg. foto editing the same jpg with GIMP.
Googling around I found that file locking is advisory in Linux, meaning its up to the applications to honour it. Also that there is a mand (mandatory locking) mount option which seems like the solution, but there are warnings [1], [2]. Other finds point to the use of versioning systems (svn, git) to take care of file locking, or network file systems (cifs, nfs): I'd prefer not to burden casual users with having to come to terms with a versioning system, and the network file systems seem wrong since the users work locally.
Considering Linux is a multiuser OS I am taken aback from this apparent lack of file locking support and tend to think missing something obvious.Has anyoneexperienced/solved a similar setup?A couple of last points. The common directory is on a normal mount (ext3, RAID1), fstab entry:
Code:
/dev/md0 /data ext3 defaults 1 2
And I'm aware of options like TSLP, but I'd rather resolve the issue generically.
[code]....
View 4 Replies
ADVERTISEMENT
Jun 3, 2011
[URL]
We have the same problem but tried his solution to no avail.
Doing a shh would give me an error..
Quote:
usr/bin/xauth: timeout in locking authority file /var/www/html/felipe/.XauthorityServer sent command exit status 1
When I change SElinux to permissive from enforcing I can login but turning back to enforcing, the problem comes back. I did the following...
Quote:
[felipe@nimitz ~]$ ls -Z .Xauthority
-rw-------. felipe felipe unconfined_ubject_r:httpd_sys_content_t:s0 .Xauthority
[felipe@nimitz ~]$ ls -lZd
drwxr-xr-x. felipe apache system_ubject_r:httpd_sys_content_t:s0 .
[felipe@nimitz ~]$ ps -eZ|grep sshd
[code]....
I tried to create a new user with the default directory in /home and it work fine.
View 1 Replies
View Related
Dec 29, 2010
So I've got this home file server, and I want to display certain stuff using:
top
who
a tcpdump of snort logs, scrolling in real time
I want it to display on the screen using a split terminal screen, so all of the information shows on one display, but I do not want it to be vulnerable to a local attacker. Is there any way I can have these things start up at login, but prevent that user from doing anything other than viewing this information?
View 1 Replies
View Related
Jun 17, 2011
I have installed vnc-server on my CentOS 5.6 virtual machine. I can connect to it with a java web browser so it seems to be working. However, I get the following error message when I start, stop or restart the vnc-server process. Quote: Starting VNC server: 1:ken xauth: timeout in locking authority file /root/.xauthkk661q
View 5 Replies
View Related
Aug 25, 2010
At first I thought it was the daily cron jobs, but it's been at it for like 3 or 4 hours. It's driving me crazy locking up my system. I suppose I should get off the computer anyway, no real reason to be on for so long.
The only things that look weird in system monitor is kwin, virtuoso-t and X seems to be higher CPU usage than it should. And CPU usage is 20-50% when I'm not doing anything. It was indexing my files.
View 2 Replies
View Related
Jan 22, 2010
an old Compaq Presario 8000, which I reluctantly took, as I tend to end up with more computers than I use and more or less end up acting as a disposal agent. It's a 2.4Ghz machine, which will suffice for whatever I felt like installing on it.I have a generic wifi pci card with a Realtek RTL8185 chipset in it, which I never used and thought I'd set up that computer with it. Hadn't installed Slackware 13 on anything, and it's a distro I like so I went at it.Install went well, no problems there, but I've used Slackware for about 9 years so I'm readily familiar with that end o' things.
I found the rtl8180 module to be causing problems. It would load on boot, but wouldn't bring up a wireless interface. I was able to remove the module with 'rmmod rtl8180' well enough, but when I would load it again with 'modprobe rtl8180', the system would lock. Tried that a few times, same result. I ran across mention of a driver on Realtek's web site, so I downloaded and installed it. That one is identified as 'r8180'. I added 'rtl8180' to the module blacklist to prevent it from being loaded at boot, and proceeded to set up wpa_supplicant.conf for my WPA-PSK connection. Came up without a hitch.The connection is stable thus far, with a respectable link quality. The Realtek driver can be found here.I thought I might document my solution here in case someone else runs across the same issue that I experienced.I'm thinking of slapping another wireless NIC in that computer, or perhaps testing with multihoming possibly. This computer will probably end up as an AP for relaying my wireless traffic to an AP downstairs. I have one USB NIC (Alfa AWUS036S)with a 5dB antenna that has a strong signal, but the ones of more a common variety could use a little help
View 4 Replies
View Related
Mar 8, 2010
I need file locking software or command for my project
View 1 Replies
View Related
Apr 21, 2011
I have a situation in an office where a LAN will be installed - what I want to know is, after that, can 2 people open the same spreadsheet file, i.e. the person on the computer that it's on, as well as somebody across the LAN?
View 4 Replies
View Related
Jun 23, 2010
I am wondering if anyone has figured out how to turn off the file locking in openoffice 3.2. I have been searching the net for solutions, trying out the fixes, and as of right now I have not been able to find a way to stop the creation of lock files.
I have tried editing both /usr/bin/soffice and /usr/lib/openoffice/program/soffice as described in the links (below), but this has not helped.
Here are the relevant links I have found
[URL]
According to this thread, the method I tried (setting SAL_ENABLE_FILE_LOCKING=0) was based on earlier versions of openoffice.org It no longer works because as of openoffice.org 3 the file locking is built into the program.
[URL]
View 2 Replies
View Related
Mar 8, 2010
I need a file locking software or atleast any command for file locking
View 1 Replies
View Related
Apr 27, 2011
I agree deleting .Xauthority files work, but thats not a good solution. I mean, everytime I have to run any X forwarding application I have to delete the .Xauthority file. Here is my scenarioThe applications that I want to run are on Linux Server [NFS] and the client machines [CIFS] that are having problem in locking theXauthority files are Macs which share the same domain as that of client solaris machine. i.e. The home directory of particular user on Solaris & the home directory of that user on Mac have same contents.When I ssh -X from Solaris to the server, everything works fine, no error messages.When I ssh -X from MACs to the server, I get the following warning messages.
Code:
/usr/X/bin/xauth: error in locking authority file /home/user/.Xauthority
/usr/X/bin/xauth is the path on the server. If I try to break the lock by sudo
[code]....
View 3 Replies
View Related
May 5, 2011
I'm working on a kickstart install to automate a lot of monotony doing installs. When i use the kickstart install i get an error on boot saying "File based locking initialization failed" "no volume groups found". Then it proceeds to boot up with no issues and appears to work just fine. Below is the section of my ks.cfg for creating the partitions: %include /tmp/partition.cfg is included where the partition info usually occurs. The user is prompted in the pre script for how large they would like the partitions to be and then the script below creates the included file with partition info
[code]...
View 3 Replies
View Related
Nov 17, 2010
I'm trying to set up a PXE boot server on a PC running Slackware 13.0 using the default apps and info shipped with that Slackware version but to no avail...Carefully reading the Slackware 13.0 README_PXE I've put together this dhcpd.conf file:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
[code]....
View 6 Replies
View Related
Dec 16, 2010
my laptop seems to have a bad HDD, and I was thinking of trying to make it a "thin client." However since it is a laptop obviously I want to take it places. Is it possible to make a terminal server and "thin client" connect through the internet and not just LAN?The reason I quote thin client is because in my mind I am still going to need to use some HDD so I can connect to the internet and find my server.
To make things easier to read refer to the above as "question 1" and the velow as "question2" Thank you. And sorry for the inconvience. These topics I felt were to similar to make separate topics.I also have another question, the files I have on my server can be accessed by anyone on the network(added a second HDD and network shared it) how can I make it so that the LAN clients have to "login" (or it uses their computers login info to send them to only their files? And if that is possible can we expand it to allow me to use those logins through the internet?
View 1 Replies
View Related
Jan 23, 2011
I have an ubuntu fileserver and an ubuntu laptop both running 10.10.For some reason I can't connect to the server (file or remote terminal) from the laptop, even though I can access ssh through terminal on my mac and have been able to mount the filesystem on another computer running the ubuntu liveCD. I just get the error 'no route to host'.I've tried turning off the firewall on the laptop and re-installing ssh on both computers, but I don't have a clue what to do next!
View 9 Replies
View Related
Apr 26, 2011
I've got used to using the ftp command from the terminal, which is useful, especially with macros. But it requires user input, and what I want to do now is upload a specific file to a server, once I've finished working with it every day. It's the same file every day. II would like to be able to do this semi-automatically: I just give the command and it connects to the server and uploads the file. (I will probably want to encrypt the file before uploading it.)I don't know how I could use ftp without any user input: I want it to be automatic.
View 5 Replies
View Related
Jun 10, 2011
I cant seem to select a file on a server on my LAN to attach to a mail
View 1 Replies
View Related
Oct 29, 2010
After I updated several software including Xorg server using "slackpkg update", I Ignorantly deleted configuration files without backing them up making Xorg server crashes.I try to build Xorg.conf using xorgsetup command but it crashes and spews:
Code:
Fatal server error:
Caught signal 11. Server aborting
/usr/bin/xorgsetup: line 170: 3315 Aborted /usr/X11R6/bin/X -configure
I have a Radeon 4850 Graphic Card with ATI Catalyst as its driver, so I try to reinstall the driver hoping that it will fix the problem, which is a bad logic I admit it, and It fails to uninstall (for some reason the uninstall script is gone) and reinstall (problem with file extraction).
View 14 Replies
View Related
Nov 17, 2010
I run a compute cluster with only a few users. Occasionally a user will accidently run a job on the master node that runs out RAM/swaps then hanges up for a while.In /etc/security/limits.conf I have set memlock to 7.5GB (master has 8GB RAM) and maybe that is what lets the machine come back rather than hanging completely? Is this the right setting to physocally limit a single user from asking for more RAM than the system has and bringing down the system? Should I set this to 2GB or so or is there something else I can do??
View 4 Replies
View Related
May 16, 2010
I just rebuild the kernel for slackware 13, everything works, but root file system which is ext3 is mounted as ext2. Normally I've build ext3, ext4 and so on as modules, not in the kernel... but if I do this, then the kernel mounts the file system as ext2, which is build in the kernel. I also modified rc.modules so I can make sure that ext3,ext4,jbd are loaded, but it doesnt work.
View 2 Replies
View Related
Jan 1, 2010
I'm thinking of setting up an old desktop (Dell Dimension 4300/512mb RAM/20g&80g hdd) as a media/file server and using Slackware 13 for it. I'm completely new to doing anything server-wise,it of background: I'm running current versions of Zenwalk and Vector on two different laptops, with the Zenwalk one multi-booting Vista and Ubuntu. The desktop in question is running XP and Zenwalk. I have DSL hooked up to a Linksys WRT (running dd-wrt firmware) for network. I'm not a noob, just not in my comfort zone. My goal is, in addition to setting up the server, to get more hands under the hood (so to speak) on improving my linux skills. It was a toss up between Slack and CentOS, and being very familiar with Slack-based systems, I'm going that route.
View 4 Replies
View Related
Dec 9, 2008
How can I read .gz file direct on shell/terminal without decompressing the file?
satimis
View 5 Replies
View Related
Jul 26, 2011
there is any way (via terminal or gediting a file) to use .flac files instead of .ogg in a sound theme file? I am creating a sound theme (several truthfully) and I would like to use the FLAC format if possible.
View 5 Replies
View Related
Apr 20, 2010
I have a script where I want to redirect stdout to the terminal and also to a log file aswell as redirecting stderr to the same log file but not the terminal.I have the following code which I found on the net which redirects both stderr and stdout to a file and the logfile,
Code: if [ -p $PIPE1 ]
then
rm $PIPE1
[code]...
View 3 Replies
View Related
May 10, 2010
All clients on the LAN, have to have their /etc/hosts file edited for my server to resolve their hostnames/LAN ip addresses. Both Windows/Mac/Linux. That shouldn't be necessary as all other stanzas are correct. If the hosts file is not ammended my maillog shows connect from unknown rip="my_external_address" when in fact it should say connect from "host" rip=192.168.0.20 Not to sure if it is an iptables issue as I have nothing for this configuration. /etc/hosts file on the server has all required hostnames and ip addresses
View 12 Replies
View Related
Jan 31, 2010
At yesterday night i run a slackpkg update and then slackpkg upgrade-all. i deselect all kernel related entries,and all others ( dont remeber precisely, but approx 15 - 20 packages, i e kde related) i get to update.
After that i shut system down and going to sleep. today i start my eeepc 900 with slackware 13.0 after that update and see i cannot run "Terminal" link on desktop. ok, go to "start", "system", "konsole terminal". from first look in konsole window i see whatever not ok - window background is grey, not black as usual.
when i run mc in this window, look like a monitor contrast is set to minimum, and brightness to maximum - very hard to see files, etc. all is very much light and small contrast.
I check kde windows - all its ok, brightness and contrast in konkueror windows and overall is ok -as same as previously times. i switch to ctrl-alt-f6 to native console - again, all is ok - background is black, all is ok.
i e problem is only with Konsole-Terminal under KDE. looks for configfiles / etc - nothing faund. no man entry for terminal nur console.
View 3 Replies
View Related
Apr 22, 2010
I am having trouble using home and end keys in a terminal, to go to the end or beginning of a line. With xterm it will only work with the bash shell, while under zsh nothing is output. With urxvt, mrxvt and aterm pressing the keys in either bash or zsh always just results in a tilde being printed. Is this perhaps because urxvt, aterm and mrxvt are emulating a different terminal type to xterm by default?
Why does xterm work for bash but not for zsh? I don't just want a solution, I want to understand why it doesn't work by default. As a side question, is there any way to press alt+enter within a terminal? I tried to use wicd-curses where you have to use alt+enter to save settings, and it didnt register in any of the terminals, even xterm.
View 11 Replies
View Related
Jan 21, 2010
Is there a way to set up profiles for X terminal emulator such as one can do with konsole? and if so, can they be configured to launch at xfce startup?
Example
Tab called "mutt".
When tab is opened, mutt is started.
Tab starts when xfce starts terminal emulator.
FYI:
1)Using slack 13.0
2)Comfortable with command line, vim and command line tools.
3)Python programmer (and some shell)
View 6 Replies
View Related
Jan 6, 2010
I installed slackware recently and noticed that when ever i open up a konsole i get some random messages ,i wont get these in other terminals like rxvt or xterm Where are these texts fetched from and can i modify those text messages to put something of my own ?
View 3 Replies
View Related
Jan 11, 2011
I'm trying to run an Xwindow application from terminal but I'm unable to do it. What I did:
Code: oracle@firefly:/usr/local/temp/database$ export DISPLAY=:0.0
oracle@firefly:/usr/local/temp/database$ xhost +
No protocol specified
xhost: unable to open display ":0.0"
[Code]...
View 6 Replies
View Related