I am having some trouble with this setup
I am sure it is simple, but considering that I am new to using a mac and its terminal, some things are not so linear for me.
For example, after adding the two lines:
i2c-bcm2708
i2c-dev
Do I type :x
to save and exit to then move on to the next sudo command?
After typing the second sudo command $ sudo vi /etc/modprobe.d/raspi-blacklist.conf
what are the correct steps to commenting out the blacklist?
Could someone please help me with the exact bash commands necessary to complete this setup?
For commenting out the lines in a file, you could use sed
,
sudo sed -ni '/i2c-bcm2708/s/^/#/p' /etc/modprobe.d/raspi-blacklist.conf
Example:
$ sed -n '/i2c-bcm2708/s/^/#/p' file
#<TH bgcolor=#7070ff>DATAbase</th> i2c-bcm2708
It comment out the line which contains the string i2c-bcm2708
.
I added sudo
because /etc
directory would be owned by root. To edit the files owned by root, you need super user do( sudo
) privilege.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.