I had a problem with the old good ascii/binary FTP transfer modes. I transferred some files (SQL scripting files, in which carriage returns DO matter) using FTP from a windows system to a linux system using filezilla "auto" mode, that should have resulted in ASCII mode for my sql files. These files are well formed and identical to the originals.
Then, someone else picked these files and moved them to another ftp server. I finally found that all <CR><LF> couples have been transformed in <CR><CR><LF>. I guessed that the problem was in the ASCII transfer mode - but, how comes that <CR><LF> => <CR><CR><LF>? I would have rather expected <CR><LF> to become <CR>.
[ This thread is a result of <<mod edit---another thread>> RFC 959, "File Transfer Protocol", dictates:
Code:
3.1.1.1. ASCII TYPE
This is the default type and must be accepted by all FTP implementations. It is intended primarily for the transfer of text files, except when both hosts would find the EBCDIC type more convenient.
The sender converts the data from an internal character representation to the standard 8-bit NVT-ASCII representation (see the Telnet specification). The receiver will convert the data from the standard form to his own internal form. In accordance with the NVT standard, the <CRLF> sequence should be used where necessary to denote the end of a line of text. Regardless of <<mod edit--another member's>> attempt to misinform and claim some sort of expertise in whatever, the ASCII mode works as expected.
Quote:
// From <<mod edit---another thread>>
So, go on, vi a document in linux, save it with a .txt extension then ftp get it from a windows machine. Make sure to open it with Notepad. I am writing this post from the very same Windows machine I used in order to conduct the exact experiment you are suggesting. The text file has been successfully converted. If it has not worked for you in about 20 years, I would suggest you start using an FTP server that does not suck, or for the very least one that respects the FTP standard. It is also possible that you used a client which does not use ASCII mode by default, in which case we are dealing with PEBKAC rather than with bad server software.
The purpose of this thread isn't to continue the odd debate regarding signatures that was starting in <<mod edit---another thread>> but rather to (hopefully) protect various users from trusting <<mod edit--another member>> in this certain (FTP) matter. Tinkster closed the thread just as I was preparing to post, thus giving <<mod edit--another member>> the last "word". Once again: he doesn't know what he is talking about, despite his "doing this for over a decade". I'm wondering if "this" means "spreading misinformation and reinforcing it with claims of being an expert".
I have 4 NICs and am trying to create 2 bonds. The first bond is mode 1, the second is mode 4. What happens though is makes both bonds mode 1. Here's my modeprobe.conf:
alias bond0 bonding options bond0 miimon=80 mode=1 alias bond1 bonding options bond1 miimon=100 mode=4 lacp_rate=1
I have just bought a new netbook and now it runs ARCH linux.To connect to the internet I am using an Alcatel x220 USB 3G modem dongle and wvdial (with pywvdial) and here is wvdial.conf
After purchasing few wifi-usb-dongles for my jaunty and lost many hours, i had no success in bringing them to operate as master or ad-hoc.The devices were Belkin, Level1, and a TP-Link 620 Though the Belkin could work as ad-hoc, but very often disconnects due to buffers issue (though I couldn't build the zd1211b driver for jaunty and it seems that no one can really help with that).
Now I would like to consult with you ahead regarding new potential devices, whether you know it operates as master mode or ad-hoc mode under jaunty (9.04)?
I just uploaded JPG pics from a Win XP, through shell, on my FTP.When I downloaded them back (to a UNIX machine), they were all currupted and unreadable !After some researches, I found that Win XP's shell works by default in ASCII mode.
This is weird, and I never noticed before, but now I have an application that is borking on weird things like when /etc/hosts is of one file format or another, and I don't even know the difference between the two (google doesn't tell much either). on CentOS 5.5/5.6 x86_64: a which on the following is an interesting tell:
vi = /bin/vi vim = /usr/bin/vim
both are actually vim version 7.0.237 but sum differently, and although they are both actually separate executables in the stock installs of CentOS I've been building, on most distros, and older versions of CentOS it seems, vi is usually just a symlink to vim - but again, not in these fresh installs it seems. When I create a file with the 'vi' above, it defaults (usually) to "ASCII text" (but not always) When I create a file with the 'vim' above, it defaults to "ASCII English text" (and causes a particular application I'm working with to bork and barf). It seems the OS is installed by default yielding both file types too, as evidenced by the following:
how do you enter into different modes of vmstat e.g-disk mode,disk partition mode and slab mode.going through man pages i figured out using "vmstat -p <partition> is for 'disk partition mode'.there is no info regarding diskmode and slab mode
Just installed Ubuntu 10.04 via Wubi on my laptop. It's looking good so far but to cut to the chase, I only have 2 display modes. This is 640x480 and 800x600. Is there anyway to 'trick' the system into getting a 1200x800 display mode as I have found that graphic drivers for the SIS Mirage 3 are non-existent.
I have setup FTP Server on my Windows machine with Filezilla server. Now, if I try to copy files from it using Ubuntu 10.04, Lucid, it downloads incomplete files if I don't switch to binary mode.
Is there some config issue from Ubuntu client or something needs to be changed from Windows Client.
I am running a mainframe emulator on an old HP server in runlevel 3 text only. I have googled a bit but found no information on controlling the text video mode in runlevel 3. When I boot my Fedora 12 system chooses the highest resolution it can meaning my c3270 terminal emulator program (80x25) is in tiny font occupying a fraction of the upper left corner of the screen. I have looked everywhere but can find no mode setting commands for runlevel 3 text only.
Does anyone know of a trick or tool that will show me ther directory?Example:neatcmd.bash /dir1/dir2/file1 /dir1/dir2/file1 permissions are 0640Or does anyone know of a tool or command what would convert, for example rwxr-x--- to 0750 suppose it could be scripted, but I was trying to make sure I did not have to re-invent the wheel if something was already out there.
I'm on Debian Squeeze, my PC has a Radeon HD4770 card. I honestly don't know if it's currently running on OS or proprietary fglrx drivers; I installed fglrx, but the control panel app insists the driver isn't loaded. I'm following these instructions to try to get my screen running at 1280x960x85. It's currently at 1280x1024x85, but it's an old CRT that, for some reason, works fine at 1280x960 but gets unfocused at 1280x1024. I'm following the step "adding undetected resolutions", and here's the result:
Code:
fallingwater@longcat:~$ xrandr Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 2048 x 2048 DVI-1 disconnected (normal left inverted right x axis y axis)
I am trying to redirect connection to port 8980 to execute a telnet command to a local machine by issuing the following command : In Server 1 : socat TCP-LISTEN:8980,fork EXEC:/myscript,reuseaddr
My script contains #!/bin/bash telnet 192.168.20.12 //local Server 2
I am sending Binary data from the client to Server 2 via Server 1. So it happens that I have some characters in Hex translated to special characters in ASCII like open brackets or Commas etc.. and that closed the socket between the two machines.
I can run xrandr and I get the various modes thatwill supposedly work with my monitor.Then, I run xrandr -s 800x600 and the command tells me thathat mode is unavailable, even though it claims that it is in xrandr -s.What on earth does that mean, then?
I use 3 computers attached to a kvm switch (not the hypervisor) and this works fine w/ windows xp and ubuntu 9.04 and earlier. However I am having a problem w/ Fedora 12. It seems that it cannot read the EDID block, so I am not able to set the display above 800x600. There is no xorg.conf file, so I had one generated by Xorg -configure :1. I also tried using the modeline instructions, but the Xserver would not start until I removed modeline. I have tried adding to Section "Screen"
but it seems that this is ignored. how can I get the Xserver to set display modes above 800x600 when it cannot read EDID (thru a kvm switch) and it seems to be ignoring settings in xorg.conf?
I'm using Ubuntu 10.10. How can I switch between text-based splash and GUI splash? My computer is currently showing a purple text based splash screen when booting Ubuntu. How can I switch it to GUI mode?
Having a bit of a issue with Debian Squeeze and transferring files to the Sony PSP..Hook up PSP to USB port and Debian mounts it..I go to drag a 125 meg mp4 to video folder..Copy windows takes about 10 seconds to transfer it..Exit USB mode and there is no video there. Go back into USB mode and look at video folder on the PSP memory stick and there is no video..It vanished. From another after copy progress closed I right clicked PSP and unmounted it..
It error-ed saying device was busy and could not unmount..Looking at light on PSP i see memory stick is still being written to..i wait for light to stop flashing..About a minute or so..Then am able to unmount it..Go to PSP video and theres the video ready to be watched. Debian isnt accurately showing the copy progress...Its showing complete when it isnt..I have to watch the light on PSP to know when it is truly finished.
Is there a way I can specify at what percentage i can make my battery to start charging? I guess the default it 95% which ends up wasting a lot of battery cycles.And my second question being can i have different modes like power saver,performance?
Something keeps changing the mode of ~/Desktop, ~/Music, ~/Pictures and ~/Videos to 0777! Anyone know what's doing this, why it's doing it, and how I can stop it?
Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After pressing Esc and any other key afterwards the switch is immediate, and the command for the key pressed after Esc is executed. Any idea what might cause this?The Vim configuration is not the problem as the delay does not occur when I run Vim outside tmux, so this is probably related to tmux somehow. I use gnome-terminal btw.
Also worth noting, it seems I can not define key bindings in tmux for Esc, my plan was to bind Esc to:bind Escape send-keys.Alas, it seems binding anything to Esc for tmux does not work. The same problem occurs in screen as well.
What should look like X Window System (X.Org) modeline to be put in xorg.conf, for high resolution (incuding recommended 1680x1050 @ 50Hz resolution) for 22" NEC LCD 22WV monitor? X.Org autodetect correctly only 800x600 and lower resolution SVGA modes,unfortunately.1,2
How can I generate proper "Modeline" line for xorg.conf? Is information included in NEC_Datasheet_LCD22WV-english.pdf enough (found on NEC LCD 22WV product info page)? What tools there are available to generate proper modeline for a LCD monitor for Linux? MS Windows (MS Windows XP Home) correctly detects and use 1680x1050 resolution; can I somehow get modeline information from MS Windows?
Footnotes:
1) It might be hardware problem with the monitor itself, as the same LiveCD Linux distribution that couldn't autodetect recommended 1680x1050 mode for NEC LCD 22WV monitor, correctly autodetects recommended 1440x900 mode for slightly smaller NEC LCD 19WV monitor from the same family, by the same producent.
2) Or it might be problem with graphics card (NVIDIA Riva TNT2 M64) not supporting such resolution, or with graphics driver not supporting such resolution.
using Slackware 13.0, and whenever i trasfer my files to USB, like copy or cut and paste, it will show as if file transfered in an instant,like click paste and poof.the whole 1 gig file transferred in one second, and it wont show dialog box of transfer process, and then i have to predict some minutes and wait (till the transfer actually finishes, i have to usually see my USB's transfer indicator light), if i plug out before or my prediction goes wrong, i end up with corrupted files. This aint related to window manager, as same is case for KDE and XFCE tried thunar, konqueror, midnight commander, all of em resulted with same problem.
I need to transfer some a large amount of file from my Linux lap-top to my desktop Windows machine. Can I connect the two computers through a simple crossover cable and simply navigate into the Windows machine and move to files manually or if not, what's the best way to do this? I don't want to burn a bunch of disks.