![]() |
2009-12-18
, 10:43
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#12
|
Tried copy pasting the sample file into Notes (and selecting Text only). All of a sudden it read the location of the other files immediately (ca, key and cert). But since it can only save as a txt, it isn't recognized as a config file afterwards
![]() |
2009-12-18
, 10:46
|
Posts: 32 |
Thanked: 9 times |
Joined on Nov 2009
@ Norway
|
#13
|
Tried copy pasting the sample file into Notes (and selecting Text only). All of a sudden it read the location of the other files immediately (ca, key and cert). But since it can only save as a txt, it isn't recognized as a config file afterwards
Tried messing by copying it to a .conf, but then Openvpn says it doesn't recognize the "client" command, or whatever is on the first line (it was the ##################### first, after removing the absolete lines client was the first line)
tr -d '\r' < inputfile > outputfile
![]() |
2009-12-18
, 10:52
|
Posts: 9 |
Thanked: 1 time |
Joined on Dec 2009
|
#14
|
Please specify error messages each time - it helps others hopping in somewhat later in the thread.
Sorry, by Notes you mean Windows ? In which case it is quite likely the Windows/Unix <EOL> problem. Windows is <CR><LF>, Unix only <LF>. In which case you'll have to convert the file to Unix <EOL>. It doesn't look like dos2unix exists on N900 so try the following :
Code:tr -d '\r' < inputfile > outputfile
![]() |
2009-12-18
, 13:16
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#15
|
Tried tr -d '\r' config.conf conf.conf but it didn't work, gave me an empty line after I pressed enter, the ~ thingy didn't reappear and had to close the terminal before I could use it again
apt-get install leafpad
Started the download and installation of Leafpad
Geez this is confusing lol didn't know it could download from the terminal *blush*
tr -d '\r' config.conf conf.conf
tr -d '\r' < config.conf > conf.conf
![]() |
2009-12-18
, 14:30
|
Posts: 9 |
Thanked: 1 time |
Joined on Dec 2009
|
#16
|
![]() |
2009-12-18
, 15:26
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#17
|
The Following User Says Thank You to mikkov For This Useful Post: | ||
![]() |
2009-12-21
, 17:21
|
Posts: 9 |
Thanked: 1 time |
Joined on Dec 2009
|
#18
|
![]() |
2009-12-21
, 18:51
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#19
|
@ Mikkov
Yes 100% sure. First I deleted the old config, which included the personal cert file, but it didn't show the cert file in the list of files which it was about to delete (in the "are you sure" dialog)
Then I fed it the new files, which were all in 1 separate folder. Yet it gave some strange error during the test and didn't connect. Manually deleted all of the config related files in the openvpn folder, then tried again. All worked perfectly.
So it's probably a minor issue, since only 1 of the 4 files wasn't deleted, but still.
![]() |
2009-12-26
, 15:36
|
Posts: 64 |
Thanked: 4 times |
Joined on Dec 2009
|
#20
|
Tried copy pasting the sample file into Notes (and selecting Text only). All of a sudden it read the location of the other files immediately (ca, key and cert). But since it can only save as a txt, it isn't recognized as a config file afterwards
Tried messing by copying it to a .conf, but then Openvpn says it doesn't recognize the "client" command, or whatever is on the first line (it was the ##################### first, after removing the absolete lines client was the first line)
I'll try the leaf thingy
How do I copy/paste from the terminal btw?