I'm trying to unbrick my Buffalo WZR-HP-G300NH that had OpenWRT on it (it bricked when I tried to go back to stock.) Windows fixes didn't work so I am trying an Ubuntu 17.10 Live USB, but I am running into problems and don't know much about Linux so I'm stuck  These are the instructions I am following:  sudo apt-get update sudo apt-get install tftp-hpa sudo /etc/init.d/networking stop sudo ifconfig eth0 192.168.11.2 sudo ifconfig eth0 netmask 255.255.255.0 sudo arp -s 192.168.11.1 00:1D:12:34:56:78 #change to the folder where you put the firmware image, if it's on desktop then it's #"/home/ubuntu/Desktop". cd /home/ubuntu/Desktop tftp 192.168.11.1 *from this point, you're under tftp command prompt, the "tftp&gt;" is the prompt tftp gives you, you just need to type the command AFTER that. tftp&gt; verbose tftp&gt; binary tftp&gt; trace tftp&gt; rexmt 1 tftp&gt; timeout 60 tftp&gt; put wzrg300nh-firmware.tftp   and I'm getting stuck at sudo ifconfig eth0 192.168.11.2 because it says  eth0: error fetching interface information: Device not found   I tried the same step with eth1, eth2, etc but it can't find it. I do have internet connection so I know the Ethernet card works  edit: apparently this got flagged because it wasn't specific enough. I guess my question was how to find what my version of eth0 was and chilli555's answer was what worked for me, it turned out to be enp1s0 and I managed to unbrick my router as a result, so thanks!
I had opened a terminal to install macchanger via sudo apt-get install -y macchanger, and then entered my password. It stated that macchanger was already the newest version, so I typed clear and then ran:  sudo ifconfig eth0 down   which is when this error message appeared:  eth0 ERROR while getting interface flags: no such device   This is a laptop and I am connected via ethernet cable.  How can I resolve this, so that I can run macchanger?    So I used ifconfig -a and I'm looking but seeing no mention of  eth0  The interfaces that are showing top to bottom are:  enp58s0f1 lo tun0 UNSPEC wlp59s0   The only reference to ethernet is the MAC and also txqueuelen   Does this help in figuring what I need to do to get this sorted?
How to create a matrix with 20 columns in latex The code below works,  but when I add 10 more columns, it does not. So, how can I add ten more columns to the matrix below?  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{equation} \begin{bmatrix}  1 &amp; 0 &amp; 0 &amp; 0  &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0  \end{bmatrix} \end{equation}  \end{document} Current code is:  \begin{enumerate}[label=LEVEL \arabic{*},leftmargin=*]     \item Description of Level 1 \quad L1 \\ \emph{more text}     \item Description of Level 2 \quad L2 \\ \emph{more text}  \end{enumerate}   but the \quad does not align L1 and L2 uniformly vertically. I want to replace \quad with a tab but the tabbing environment does not allow mixing with an enumerate! don't really understand how to log on with your SE account in the new logon screen.  And although it might be obvious to most of us, some people find the new dialog hard to understand.        Can we add a logo and some text to make clear users can log on with their SE account? Something like:     [SE LOGO] Log on using your StackExchange account   Followed by the two boxes for email and password. Is a totally ordered set well-ordered, provided that its countable subsets are? Let $(X,⪯$) be totally ordered set, prove that if every non empty countable subset of $X$ is well ordered then X is well ordered.   It does seem obvious that any subset should have a minimum but I am not sure of how to prove it. Any help would be appreciated, and sorry I put up the same problem earlier but forgot to include the 'countable' subset. Is there anything in the physics that enforces the wave function to be $C^2$? Are weak solutions to the Schroedinger equation physical? I am reading the beginning chapters of Griffiths and he doesn't mention anything. When is a review task "completed" or "invalidated"? Posting to friends' wall with Graph API via 'feed' connection failing since Feb 6th 2013 What is the relationship between philosophy and science? While philosophy and science as held as separate disciplines (and often taught in completely different colleges within a university [i.e. College of Liberal Arts vs. College of Science]), it is patently clear that there is an immutable relationship between philosophy and science. Philosophy can often be seen as providing justification for particular scientific theories -- but why/how is this so?  In science:   A theory must have observable consequences that can be tested and be falsified.   Theories also must agree with previous theories in the domains where they had been successfully tested.   For example,  special relativity reduces to Newton mechanics in the domain of velocities much less than the speed of light.  In philosophy, while new theories must comply with existing theories, there is clearly much less testing/retesting.  So, how does philosophy fit into this framework while maintaining the rigor required for scientific inquiry?  Are there any examples of philosophical discussions that have significantly influenced or changed scientific theory? Formula for calculating $\sum_{n=0}^{m}nr^n$ Proper fstab entry to mount a samba share on boot? How can I pad a String in Java? Is there some easy way to pad Strings in Java?  Seems like something that should be in some StringUtil-like API, but I can't find anything that does this. The problem is, when I open applications I need to always right click, select run as admin.     When I don't do it getting unexpected application errors. BTW, I turned off UAC.   It's annoying. Is there any way to change behavior of double left-click to act as "Run as administrator" action? I mean to make "Run as administrator" action by default. Thx in advance I'm new at Linux and I just download Ubuntu 12.04 LTS.  I found a spot that showed me how join my Windows Active Directory.  It has me add couple lines into the 'hosts' but I'm not able to edit the file because I do not have the permission.  I'm not the owner.  I use chmod with it rwx and still it will not let edit the file.  How do you change the permission?  Thanks Possible Duplicate:          Proof to the formula  $$1+x+x^2+x^3+\cdots+x^n = \frac{x^{n+1}-1}{x-1}.$$ Where did the disco repos go, or what is going on? .NET String.Format() to add commas in thousands place for a number I want to add a comma in the thousands place for a number.     String.Format()? Can I SSH into a specific directory? I SSH into a multitude of different servers every day and some of them have different filesystem structures for their websites. Each time I change server, I have to work out where I'm going to get to the files I really want (because it's very rarely that I want to be in ~). I use Fabric files to automate all my actions (pushing to git, automated SSH to the server to pull from git, restarting the web application, changing dependencies, etc), so I was wondering if I couldn't also tell it that I want to SSH into the right directory so I can run fab ssh and be in a normal SSH session, just in the right place and start working immediately. This is not about Fabric though; please ignore it. Fabric is just running a batch of commands. My argument is with the ssh command. That's what I'll be telling Fabric to run. So how I can get ssh to cd into a specific directory on login? Note: this cannot be a server or user-wide thing. I have multiple websites under one user on some servers so sticking something in ~/.bashrc would not work for me. Tangent lines to ellipse from external point I am having an issue with wifi; it seems when I'm trying Ubuntu without installing, it only detects connection via the ethernet cable.  I can't connect and none of the available wifi networks are detected.  $ lspci 00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02) 00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02) 00:08.0 System peripheral: Intel Corporation Sky Lake Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21) 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1) 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev 83) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723     $ lspci -knn | grep Net -A3 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]     DeviceName: Hanksville Gbe Lan Connection     Subsystem: Hewlett-Packard Company Device [103c:8319] JavaScript: Bitwise shift of long long number I need to bitwise shift a value 64 times in JavaScript. But JavaScript starts rounding after 32.  For example:  for(var j = 0; j &lt; 64; j++) {     mask = mask &lt;&lt; 1;     console.log(mask); }   This prints value from 0 to 1073741824 but then rounds of and starts printing 0.