Bitcoin Forum
May 09, 2024, 09:21:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Antminer S1] How to edit configuration file?  (Read 1763 times)
haggart (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 29, 2013, 02:21:34 AM
 #1

Hi!

I am trying to overclock my Antminer S1 a little but I have problem with file edition... I'm using vim editor but I have no idea how to save the edited file. Yes I know :w but it noticed me: "w" is not implemented... Nano doesn't work. Please let me know how can I do it Smiley
  

1715289663
Hero Member
*
Offline Offline

Posts: 1715289663

View Profile Personal Message (Offline)

Ignore
1715289663
Reply with quote  #2

1715289663
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715289663
Hero Member
*
Offline Offline

Posts: 1715289663

View Profile Personal Message (Offline)

Ignore
1715289663
Reply with quote  #2

1715289663
Report to moderator
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
January 09, 2014, 06:18:58 PM
 #2

I am trying to overclock my Antminer S1 a little but I have problem with file edition... I'm using vim editor but I have no idea how to save the edited file. Yes I know :w but it noticed me: "w" is not implemented... Nano doesn't work. Please let me know how can I do it Smiley

ZZ is how you usually save and exit from vi.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
alfabitcoin
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
January 09, 2014, 06:29:37 PM
 #3

Hi!

I am trying to overclock my Antminer S1 a little but I have problem with file edition... I'm using vim editor but I have no idea how to save the edited file. Yes I know :w but it noticed me: "w" is not implemented... Nano doesn't work. Please let me know how can I do it Smiley
  


1. Press esc
2. Press :wq and hit enter
solarion
Hero Member
*****
Offline Offline

Activity: 966
Merit: 513



View Profile
March 05, 2014, 02:55:47 AM
 #4

Quote
6.2. Using the Vim editor

6.2.1. Two modes

The vi editor is a very powerful tool and has a very extensive built-in manual, which you can activate using the :help command when the program is started (instead of using man or info, which don't contain nearly as much information). We will only discuss the very basics here to get you started.

What makes vi confusing to the beginner is that it can operate in two modes: command mode and insert mode. The editor always starts in command mode. Commands move you through the text, search, replace, mark blocks and perform other editing tasks, and some of them switch the editor to insert mode.

This means that each key has not one, but likely two meanings: it can either represent a command for the editor when in command mode, or a character that you want in a text when in insert mode.

Note   Pronunciation
    
It's pronounced "vee-eye".

6.2.2. Basic commands

6.2.2.1. Moving through the text

Moving through the text is usually possible with the arrow keys. If not, try:

h to move the cursor to the left

l to move it to the right

k to move up

j to move down

SHIFT-G will put the prompt at the end of the document.

6.2.2.2. Basic operations

These are some popular vi commands:

n dd will delete n lines starting from the current cursor position.

n dw will delete n words at the right side of the cursor.

x will delete the character on which the cursor is positioned

:n moves to line n of the file.

:w will save (write) the file

:q will exit the editor.

:q! forces the exit when you want to quit a file containing unsaved changes.

:wq will save and exit

:w newfile will save the text to newfile.

:wq! overrides read-only permission (if you have the permission to override permissions, for instance when you are using the root account.

/astring will search the string in the file and position the cursor on the first match below its position.

/ will perform the same search again, moving the cursor to the next match.

:1, $s/word/anotherword/g will replace word with anotherword throughout the file.

yy will copy a block of text.

n p will paste it n times.

:recover will recover a file after an unexpected interruption.

6.2.2.3. Commands that switch the editor to insert mode

a will append: it moves the cursor one position to the right before switching to insert mode

i will insert

o will insert a blank line under the current cursor position and move the cursor to that line.

Pressing the Esc key switches back to command mode. If you're not sure what mode you're in because you use a really old version of vi that doesn't display an "INSERT" message, type Esc and you'll be sure to return to command mode. It is possible that the system gives a little alert when you are already in command mode when hitting Esc, by beeping or giving a visual bell (a flash on the screen). This is normal behavior.

6.2.3. The easy way

Instead of reading the text, which is quite boring, you can use the vimtutor to learn you first Vim commands. This is a thirty minute tutorial that teaches the most basic Vim functionality in eight easy exercises. While you can't learn everything about vim in just half an hour, the tutor is designed to describe enough of the commands that you will be able to easily use Vim as an all-purpose editor.

In UNIX and MS Windows, if Vim has been properly installed, you can start this program from the shell or command line, entering the vimtutor command. This will make a copy of the tutor file, so that you can edit it without the risk of damaging the original. There are a few translated versions of the tutor. To find out if yours is available, use the two-letter language code. For French this would be vimtutor fr (if installed on the system).

Prev   Home   Next
Text editors   Up   Linux in the office

...in short...this is the flat out stupidest text editor ever dreamt up.
wpgdeez
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
March 05, 2014, 03:36:50 AM
 #5

Use WinSCP, it has a nice GUI, no archaic text editor :p
GenTarkin
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
March 05, 2014, 04:30:14 AM
 #6

Since I never got around to learning vi and manage w/ nano ...
You can install nano via the webgui of antminer ... under the software tab
Update the lists and then search for nano, it will show up and hit install.
It will hopefully say successful, then in ssh session you can just nano /etc/config/asic-freq or /etc/config/cgminer or /etc/rc.d/S99cgminer

=)

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
solarion
Hero Member
*****
Offline Offline

Activity: 966
Merit: 513



View Profile
March 05, 2014, 05:18:39 AM
 #7

TY GT!

Now I can unlearn the little bit of VI-fu I've had to pollute my brain with.

nano is simple and just works intuitively.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!