[SOLVED] Error message access a Ubuntu 15.04 box from Windows 7
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. You don't. You have to ask an admin like jeremy or unSpawn.
2. We're not even sure if the program is the problem. It very well could be with Ubuntu and some security misfeature.
If you wanted to have others critique your C# code to make sure it is bug free and works as intended, start a new thread in Programming. If this thread were to be moved anywhere it should probably be to the Servers forum.
As far as Apache goes, you might want to give this a read for starting and stopping your web server.
I had forgot about an online service that debugs code. I used it quite frequently with JS and Python. Don't know the first thing about C#, but I pasted your code into IDEone.com and it came up with a runtime error.
Both PathA and PathB are on my local boxes. Online debuggers will error on them. I figure the error message is a file lock that causes the directory path to no be available all the time. So it could be Apache locking it. I figured I would stop the services before backup and restart it after. My friends who are programmers said C# is similar to Java. I already know pascal, C++, cobol, and many other languages.
Code compiles fine in Visual Studio. I can create the EXE. Running in Windows or Linux caused the error.
Last edited by SCSIraidGURU; 06-03-2015 at 12:26 PM.
I'm nearing my wit's end on this if it is with the C#. I would go ahead and post in the programming forum and in the server forum to tackle both and see which is the culprit. By now this is definitely not a n00b issue.
C# is not difficult to learn. Classes are tricky. Google is your friend in writing code. Visual Studio contains Java, C# and a few other compilers. I belong to the IEEE Computer Society. It has 5000 classes and books on everything IT. The VMware books were helpful. C# book could be better written. At work, I run a corporate data center. My configuration files for the blade center, Layer 3 switches, and firewall were taken by the manufacturers because I did things they never thought of. I have 30+ years of programming experience.
Disabling Apache2 helped with the problem. I reverted back my Ubuntu Tape server to Windows XP x64 with Symantec Backup Exec 2010. Bacula has been nothing but a disappointment. Linux apps lack the professional installation of Windows apps. I should not have to manually modify 20+ files to get Bacula working. Bacula is not worth $2500. At best $25.
Disabled Apache2. The program ran fine once. Switched back to XP Pro and Symantec Backup Exec 2010 last night. Did a tape backup. So I did not have time to figure out why the copy paths are wrong.
Finding a way to disable Apache2 in C# and enable it at the end of the program.
The two errors are related to anti-virus. Avast Internet Security scans everything and is causing the issue. I have been working with Avast engineers on it. I tried running the application from Ubuntu instead of Windows. Same errors. Definitely, anti-virus getting in the way. Turning off Avast does not help.
In a way, I am trying to re-invent rsync, I guess. I am learning C# programming at a higher level to actually write professional software. File manipulation, databases and ASP.Net are what I need to know. This error is the only thing stopping my program from working. When it finished, it actually does work and is fast. rsync might be interesting to look at.
What the program does is?
1.) Compares var/www to the backup drive
2.) Creates directories that don't exist on the backup drive
3.) Writes files that have changed or are new to the backup drive
The errors I am getting have been a problem for programmers for a while.
I am not sure if Bash would return a list like these commands.
System.IO.DirectoryInfo dirfile1 = new System.IO.DirectoryInfo(pathA);
These commands build a list, dirlist1. The list contains all the attributes for each file and directory. I can look at path, full name, length of file, last write time, and other attributes to compare files with. I have been working on last write time in another program to merge into this one.
This returns file names. Does it return full path names, paths, full names?
Once I get past the error, I can compile it and run it in Ubuntu.
W:\ is var/www
J:\ is my eSATA drive on my workstation.
J: is turned off when I am not using my workstation to protect the drive along with my workstation. The Ubuntu box is on 24x7. My program does a list first. It only copies the modified / new files to protect the hard drives for additional wear and tear looking at every file.
Can I use those commands in C#? I backup all of my workstations and servers on tape drives that can be quickly recovered.
The web site was rewritten in CSS to learn CSS. C# is what I need to write Windows based databases. So your commands are interesting to try. 99.9 of C# programming is on Windows. My goal is to get through C# by September and start on ASP.Net.
Only reason I use Ubuntu is the web server works on my ISP, Wide Open West. They will not let me use a Windows server on a residential connection. It was Windows XP Pro x64 till Microsoft discontinued it. I converted my backup server back to XP Pro x64 running Symantec Backup Exec 2010 with my tape drives. Ubuntu and Bacula tape backup software sucked. It has no GUI. It kept crashing on backing up Windows 7 x64. I am glad I did not spend $2500 on Bacula. $1200 for Symantec BE 2010 was a good purchase.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.