|
It requires some effort to setup - but I tunnel SMB over OpenVPN. Just setup the OpenVPN client as a service on your windows box, and map the samba shares as network drives. Then whenever your computer boots up you have the files mounted and are good to go. You can then do your notepad++/photoshop/whatever. I dunno about photoshop though, you might run into latency issues.
|
# ? Sep 8, 2010 01:45 |
|
|
# ? May 22, 2024 07:28 |
|
Anyone on gnome know how this nautilus network sharing works under the hood? I shared a folder using right-click -> Properties -> "Share" tab, then later moved the folder to a different location. I think the old share config is still there, and conflicting, because I can't share the folder now in it's new location. Where are the config files that control this stuff? Edit: Well, I screwed around with this problem all night and found that I could use smbclient to get a more useful error message. The error i was getting was: tree connect failed: NT_STATUS_BAD_NETWORK_NAME So I found this thread where other people were having the same issue: http://www.linuxquestions.org/questions/linux-networking-3/tree-connect-failed-nt_status_bad_network_name-50591/#post3189392 The proposed solution is to set global read permissions on the shared directory and all of it's parent directories. This seems like a terrible solution to me, meaning that in order to share a single subdirectory under your home(/home/peeps/storage/Videos in my case), you would have to give read permissions of your home(/home/peeps) to everyone on the system? Anyone have a better idea than that? This seems like a bug in Samba, why should it require permissions on every parent directory? P.S. I found that the nautilus sharing config stuff goes in: /var/lib/samba/usershares/[sharename] peepsalot fucked around with this message at 06:40 on Sep 8, 2010 |
# ? Sep 8, 2010 02:26 |
|
rugbert posted:Whats the best way to access my file remotely from a windows machine? I used ubuntu server 10.4 as a web server and want to work with files on the server from anywhere. Samba is probably your fastest bet that doesn't require any extra software on the Windows side.
SSHFS (and similar tools) are really cpu-heavy on both sides but it works surprisingly well.
|
# ? Sep 8, 2010 03:46 |
|
Okay, I have a weird problem that I think I can solve with iptables but I'm not sure specifically how. I have a legacy application that connects to a hardcoded IP for a JDBC connection. However, the IP has changed on the service provider from say 1.1.1.1 to 2.2.2.2. I want to setup iptables to map all outbound traffic on the application box destined to 1.1.1.1 to 2.2.2.2 but can't get it quite to work. Additionally both hosts are on the other side of a VPN, and I could probably also solve it on the ASAs where the VPN is setup but I'd rather do this, um, patch, right on the Linux box.
|
# ? Sep 9, 2010 02:23 |
|
rugbert posted:Whats the best way to access my file remotely from a windows machine? I used ubuntu server 10.4 as a web server and want to work with files on the server from anywhere. Mercurial.
|
# ? Sep 9, 2010 02:26 |
|
lilbean posted:Okay, I have a weird problem that I think I can solve with iptables but I'm not sure specifically how. I have a legacy application that connects to a hardcoded IP for a JDBC connection. However, the IP has changed on the service provider from say 1.1.1.1 to 2.2.2.2. I want to setup iptables to map all outbound traffic on the application box destined to 1.1.1.1 to 2.2.2.2 but can't get it quite to work. code:
|
# ? Sep 9, 2010 02:27 |
|
Posted my own thread but thinking i should have just posted in here: Relevant specs: Linux 2.6.9-42.0.10.ELsmp #1 SMP i686 athlon i386 GNU/Linux CentOS release 5.2 (Final) Using pam_tally2 & LDAP I have one box on the network that decides to sometimes accept and sometimes reject legitimate accounts. For the life of me I can not figure out what is wrong here so I am turning to my goon friends. The errors that occur on failed login attempts from /var/log/secure: Sep 8 21:12:02 dev3 sshd[6568]: debug1: PAM: password authentication failed for an illegal user: User not known to the underlying authentication module The symptoms: Users go to log into machine dev3, it asks them for password and after they enter the correct password it will tell them "incorrect password." until their max attempts are reached. The user will wait a minute and ssh again and the system will let them in no problem. The system shares identical configs and setup as all the other machines on the network which have no problems whatsoever. I'm happy to provide any more information you guys would find valuable but I can assure you pam.d/*, ldap.conf, etc are all identical to working machines on the same network. This issue has been happening for a while and it does not seem to discriminate between users. It happens to a variety of people at what seem to be random intervals. Any ideas?
|
# ? Sep 9, 2010 02:57 |
|
Also having a PAM issue but it's with Debian Lenny. Can't change user passwords (or add passwords for existing users) code:
code:
Output of 'lsattr /etc/passwd /etc/shadow' code:
|
# ? Sep 9, 2010 07:09 |
|
Our Linux machines authenticate against Kerberos. But I can't create local users without manually editing passwd, group, and shadow. If I use 'adduser' or 'passwd -r FILES' it just wants a kerberos principal.
|
# ? Sep 9, 2010 18:46 |
|
I have a whole bunch of files on my Ubuntu box where I need to increase each individual hex value from a file by one. For instance the file is now code:
code:
|
# ? Sep 9, 2010 19:48 |
|
Skulla posted:I have a whole bunch of files on my Ubuntu box where I need to increase each individual hex value from a file by one. Off the top of my head, perl -pne '$_ = join( "", map { chr( (ord( $_ ) + 1) % 256 ) } split( "", $_ ) )' which just says "split the string into characters, convert each character to an integer, add one mod 256, convert back to characters, mash the characters back into a string". There are certainly more compact and effecient ways to go about it, but that'll do for a one-off.
|
# ? Sep 9, 2010 21:01 |
|
Okay I found out the hard way this week that I'm super rusty at Linux after not using it for like 5 years, however that's not entirely my problem, I believe.. We got an 802.11n WAP at work on loan, with a really good line on a deal for them, so my boss asked me to do some signal testing and map out where we should place these around the buildings. Then I realized that NetStumbler and all of the wardriving and site surveying type software I knew on Windows was incompatible with 802.11n so far. After a day or three of digging around, finding $2500-$5000 solutions, etc, the best I could come up with was that a few places indicated that a BackTrack Live CD or maybe VM would likely be able to work with 802.11n cards, and that I could use Kismet to do some signal strength testing. However Kismet doesn't seem to be compatible with 802.11n, either, or maybe I've just got an outdated version? The BackTrack distro I got was only a couple/few months old so that doesn't seem extraordinarily likely, but I'm kind of hitting a wall right now. Anybody in here have any recommends on what I should try or be looking for? I really only care about being able to get this signal testing done since the equipment is on loan, and I've pretty much run out of ideas for the time being.
|
# ? Sep 9, 2010 21:24 |
|
ShoulderDaemon posted:Off the top of my head, perl -pne '$_ = join( "", map { chr( (ord( $_ ) + 1) % 256 ) } split( "", $_ ) )' which just says "split the string into characters, convert each character to an integer, add one mod 256, convert back to characters, mash the characters back into a string". There are certainly more compact and effecient ways to go about it, but that'll do for a one-off. You sir are a genius and a gent. That will do (and has done) very nicely. Thank you.
|
# ? Sep 9, 2010 21:34 |
|
Is there anyway to connect to a FTP in terminal that is using FTPES to connect?
|
# ? Sep 9, 2010 22:44 |
|
I just installed Ubuntu server 10.4 and was looking for alternatives to some of my usual apps. I use jinzora to stream music, and its fine but if there anything cool/better Id like to try it. I also have been trying to run rtorrent with a GUI for a while, but every time I try to get it working I run into dependency hell. Anyone have a kick rear end guide to help me out? I generally get too annoyed and install torrentflux
|
# ? Sep 9, 2010 23:27 |
rugbert posted:I also have been trying to run rtorrent with a GUI for a while, but every time I try to get it working I run into dependency hell. Anyone have a kick rear end guide to help me out? I generally get too annoyed and install torrentflux I just finished migrating rtorrent+rtgui to a new box so I had to go through the setup again. rtgui is a nice & simple web frontend for it rtorrent. I followed this guide for installing rtorrent, worked great on fedora core 8: http://code.google.com/p/ntorrent/wiki/QuickStart Looks like there is an ubuntu specific setup guide on the rtgui page: http://code.google.com/p/rtgui/wiki/ubuntu_rtgui
|
|
# ? Sep 10, 2010 00:12 |
|
Syslog is dumb. Apparently ldap logs to local4, so I setup a log level in slapd.conf, and edit syslog.conf to log local4.* to /var/log/slapd.log. Restart everything, and the log file is empty. Wut?
|
# ? Sep 10, 2010 18:31 |
|
FISHMANPET posted:Syslog is dumb. You did restart your syslogd in addition to OpenLDAP, right?
|
# ? Sep 10, 2010 18:52 |
|
Misogynist posted:logger -p local4.notice "I am testing that my syslog works." Yep, restarted both. It looks like syslog is the problem, because that test didn't output anything. code:
|
# ? Sep 10, 2010 18:56 |
|
I've set out to build myself an Ubuntu server for hosting Mumble, Minecraft, and an SSH tunnel for me to remote desktop to my machine. Those three things I now have working decently well, and am trying to set up an FTP server to facilitate easy management of the Minecraft server as well as a good place for me to back up my thesis data. I followed the Ubuntu server FTP guide but am having issues actually connecting to the thing. I've got a connection log from FileZilla here: http://pastebin.com/kwrmqKcY It seems that it can connect but I cannot get the directory listing. I'm not sure what the problem is. I set a passive port range and forwarded those to the server, but I can't seem to actively (or passively) connect. I purged vsftpd so I could try again with a fresh config, we'll see how it goes. Any advice would be appreciated. JerikTelorian fucked around with this message at 19:07 on Sep 10, 2010 |
# ? Sep 10, 2010 19:04 |
|
JerikTelorian posted:I've set out to build myself an Ubuntu server for hosting Mumble, Minecraft, and an SSH tunnel for me to remote desktop to my machine. Those three things I now have working decently well, and am trying to set up an FTP server to facilitate easy management of the Minecraft server as well as a good place for me to back up my thesis data. Did FTP and use SFTP or SCP, both of which are already provided by your SSH daemon.
|
# ? Sep 10, 2010 19:23 |
|
FISHMANPET posted:Yep, restarted both. It looks like syslog is the problem, because that test didn't output anything.
|
# ? Sep 10, 2010 21:23 |
|
Alowishus posted:What syslog daemon? It could be buffering... This is actually on a Solaris 10 machine. I just checked, still nothing in the log file...
|
# ? Sep 10, 2010 22:48 |
|
FISHMANPET posted:This is actually on a Solaris 10 machine. I just checked, still nothing in the log file... What are the file permissions on the log file? Is syslog running under root or a syslog user?
|
# ? Sep 10, 2010 23:08 |
|
FISHMANPET posted:Did FTP and use SFTP or SCP, both of which are already provided by your SSH daemon. This worked great, thanks. One thing though: I had to create a new user for FTP since my admin account uses a password protected RSA key. Filezilla won't let you use passworded RSA keys, so I need one that is not secured. How do I secure the new user account to give it a bare minimum of capabilities (just enough to read and write FTP, but no ability to execute or change things not explicitly owned to it)? Is this something I'd need to do or is Linux inherently secure enough to limit this risk? I tried disabling the shell for the ftp account, but then it simply fails to connect entirely. JerikTelorian fucked around with this message at 23:39 on Sep 10, 2010 |
# ? Sep 10, 2010 23:12 |
|
FISHMANPET posted:This is actually on a Solaris 10 machine. I just checked, still nothing in the log file...
|
# ? Sep 10, 2010 23:44 |
|
JerikTelorian posted:This worked great, thanks. One thing though: I had to create a new user for FTP since my admin account uses a password protected RSA key. Filezilla won't let you use passworded RSA keys, so I need one that is not secured. When I said "Did FTP" I meant "Ditch FTP." Meaning don't use FTP at all. For SCP and I believe SFTP also requires the user to have a valid shell. THe account that makes the connection will, by definition, need to be able to login and execute commands and whatever.
|
# ? Sep 11, 2010 00:10 |
|
So my setup currently looks like this:code:
|
# ? Sep 11, 2010 08:33 |
|
Messing around with grub2 in Ubuntu Lucid x64. I dual-boot with Windows 7. Basically every time I reboot is to switch OSes, so what I want is to have grub2 automatically alternate the default choice each time I boot. I got the basics about how to edit the grub2 files -- "GRUB_DEFAULT=saved" in /etc/default/grub, setting up menu entries in /etc/grub.d/40_custom, running the "update-grub" command to build the new menu -- but I can't figure out what commands I need to put in the menu entries to so it saves the default choice as the other OS. Is it something to do with "save_env"? The documentation I can find kinda blows. As a bonus, could I implement this in such a way that I don't have make all my menu entries in /etc/grub.d/40_custom, and thus retain this functionality while still having Ubuntu add new kernels to top of the grub menu when it downloads an update? I was thinking I could by having the default setting alternate between "0", for the entry at the top of the menu which should always be the most recent kernel, and since you can use the text of the menu entry as a default setting, "Windows 7 (on /dev/whatever)" which should always refer to that no matter where it is in the list. But I still can't figure out how to make that happen.
|
# ? Sep 11, 2010 19:25 |
|
FISHMANPET posted:When I said "Did FTP" I meant "Ditch FTP." Meaning don't use FTP at all. The problem I was having with SFTP is that I restrict SSH to accept Public-Key only. My public keys are password protected, but FileZilla cannot yet use passworded keys. This had the server rejecting my connections. The problem is that I needed to have an account to use for SFTP that didn't have any permissions so if the public key got out, it was no big. I found a way around this by making a low-permissions user just for SFTP, and then assigning them FTP as the default shell. SFTP works fine, and the user has no real shell.
|
# ? Sep 13, 2010 20:29 |
|
FISHMANPET posted:For SCP and I believe SFTP also requires the user to have a valid shell. THe account that makes the connection will, by definition, need to be able to login and execute commands and whatever.
|
# ? Sep 13, 2010 20:42 |
|
A crossposted question from the IRC Best Practice thread, but it's driving me nuts - I assume there has to be something plugin / script wise that does what I want, but I'm drawing a blank; Kind of a random shot in the dark question. I'm using irssi and bitlbee, and am loving it - with the exception of no previous-conversation chat history when you open a new window with someone you've chatted with prior. It's a pretty common feature in GUI IM clients these days, but I can't seem to find a script that'll replicate the functionality for irssi. It really would be hugely beneficial, especially in regards to bitlbee. Not to mention reading missed messages from unplanned restarts, without having to check the logs themselves.
|
# ? Sep 14, 2010 16:31 |
rtorrent keeps crashing on me and leaves me with the tail end of a poorly formatted stack trace. How can I log the full output when it crashes?
|
|
# ? Sep 14, 2010 18:44 |
|
fletcher posted:rtorrent keeps crashing on me and leaves me with the tail end of a poorly formatted stack trace. How can I log the full output when it crashes?
|
# ? Sep 14, 2010 20:45 |
|
I am attempting to dual install two varieties of Fedora. One is standard Fedora 13 while the other is a the Security spin. I seemed to have hosed up installing the security distro after leaving free space and I can't get the first install to boot even after editing grub. Is there a standard method to installing multiple distros I missed? Should I not have the n-th installs make their own GRUB or something?
|
# ? Sep 14, 2010 21:21 |
|
Lukano posted:A crossposted question from the IRC Best Practice thread, but it's driving me nuts - I assume there has to be something plugin / script wise that does what I want, but I'm drawing a blank;
|
# ? Sep 14, 2010 23:57 |
|
waffle iron posted:/lastlog? Well jeez, that's pretty much perfect (but for it not being automated, but I can deal). edit - actually upon further review, it's not what I'm looking for. What I'd like is to be able to open a msg window with an irc or bitlbee contact, and have that window show/push/replay the last X lines of my log with them (even if from a prior session). ZNC does this for channels, but not for msg windows (so that chat-history that I really wanted most for bitlbee and irc msgs). Lukano fucked around with this message at 15:01 on Sep 15, 2010 |
# ? Sep 14, 2010 23:59 |
|
Sylink posted:I am attempting to dual install two varieties of Fedora. One is standard Fedora 13 while the other is a the Security spin. I've only used GRUB once a long time ago, but from what I remember it was much the same as LILO in terms of handling, so with that caveat: Under LILO, one could: - use the install disk for installation 1, and (assuming installation 1 is already functional and okay for what you want) - rerun LILO and (with only the partition for installation 1 checked) - install LILO in the MBR (if the next install goes to live on a different drive; otherwise you could use the superblock on the common drive); then - boot from the install disk for installation 2, - install the new O/S to a free partition, and - _skip_ the LILO config. The next reboot from the hard drive would then go straight into installation 1. Then you - run LILO again and - add installation 2's partition to the number of bootable O/Ss on the system, and - install that new LILO config (again: Superblock of common drive if possible, otherwise MBR). You may have to run fdisk and look at your partitions to check whether your 2nd installation is flagged as bootable. LILO has 'wait n seconds before booting into the first O/S on the list' - which one is the first is your choice at LILO configuration time - and 'stop' features for choosing the O/S to boot, and I'm sure GRUB has too, being the more modern of the two. Anyway, it's altogether possible to stack on installations that way. If you're somehow not getting it done with GRUB, try LILO. It's never failed me since I had Win95 living in harmony with Slackware 3.0 (1996, I think). Underflow fucked around with this message at 10:44 on Sep 15, 2010 |
# ? Sep 15, 2010 10:31 |
My rtorrent crash appears to be related to the version of curl I'm using. How do I go about upgrading to a newer version of curl to see if that fixes it? Do I need to remove the old version first? I'm on Fedora Core 8 with curl 7.18.2. I see there is a 7.21.1 here.
|
|
# ? Sep 15, 2010 18:11 |
|
|
# ? May 22, 2024 07:28 |
|
fletcher posted:My rtorrent crash appears to be related to the version of curl I'm using. How do I go about upgrading to a newer version of curl to see if that fixes it? Do I need to remove the old version first? I'm on Fedora Core 8 with curl 7.18.2. I see there is a 7.21.1 here. Does it show up in the update list from yum? yum update
|
# ? Sep 15, 2010 18:19 |