OpenWRT: first time login and configure pppoe

I flashed my router  via a firmware without luci(web interface).

I need to configure wan and wifi

ssh root@192.168.1.1

passwd

vi /etc/config/network

find

config interface ‘wan’
option ifname ‘eth0’
option proto ‘dhcp’

change to

config interface ‘wan’
option ifname ‘eth1’
option proto ‘pppoe’
option username ‘your username’
option password ‘your password’

save

/etc/init.d/network restart

and I can access internet.

Ubuntu install on SSD: How to edit /etc/fstab

Terminal:

sudo gedit /etc/fstab

 

add mounting options noatime,nodiratime,discard to the mount point root(/) and other partitions on SSD
UUID=xxxx-xxxx / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1

I don’t look at log, so I configure all logs get written to RAM disk.

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /home/jack/.cache tmpfs defaults,size=512M 0 0