Server Bug Fix: Cisco Aironet 1200 mode button disabled

Original Source Link

I received a free Cisco Aironet 1200 and tried to restore it using the mode button but it was disabled and no one knows the password for the WAP’s interface. Any ideas how I could get it reset?

You’ll probably need to attach a serial cable to the console port. Getting console on cisco devices can be a real pain. You basically want the baby-blue RJ45-DB9 cables that comes with real routers.

Try following the directions in the link below for the Aironet 350 (which lacks a mode button):

http://www.cisco.com/c/en/us/support/docs/wireless/aironet-1200-series/9215-pwrec-2.html#connecting_ap

Briefly, you want to interrupt the boot process with ESC, then flash_init to load the flash memory, and then rename the config.txt to something else, and reset. This should restore factory defaults.

To return all access point settings to the factory defaults including password you need to use the MODE button.

Disconnect the power and press and hold the MODE button while you reconnect power to the access point. You need to hold the MODE button until the ethernet LED turns amber (approximately 2 to 3 seconds), then release the button.

Then you can connect with cisco/cisco via serial console or web gui.

Tagged : / / /

Ubuntu HowTo: Resetting Ubuntu to factory settings

Original Source Link

I’ve had a lot of problems lately and now I’m having problems logging in at the login screen. I’m giving up and just want to reset and start over. How can I “factory reset” Ubuntu, in this situation, or, for future reference, in general?

I can see a couple of options but they depend on you being able to get to a command prompt with a working internet connection.

  1. Install another desktop.
  2. Burn a new USB installer from command line.

Install another desktop

This does not guarantee a working desktop though. Your problem might be something related to video card and also present in other desktops. Drop to a command line and start of with this:

sudo apt-get update

and then pick ONE of these (to install that specific desktop):

xubuntu-desktop 
lubuntu-desktop 
ubuntu-mate-desktop

I only listed a few (you could also install kUbuntu but for just getting a desktop to be able to make an installation disk might be overkill).

Burn a new USB installer from command line

Download Ubuntu from command line with

wget http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso

(change the url to a release you want. see http://releases.ubuntu.com and the directories below that for what you need). It will show something like this:

~/Downloads$ wget http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso
--2015-02-28 21:09:59--  http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso
Resolving releases.ubuntu.com (releases.ubuntu.com)... 
91.189.92.151, 2001:67c:1360:8c01::1e
Connecting to releases.ubuntu.com (releases.ubuntu.com)|
91.189.92.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1010827264 (964M) [application/x-iso9660-image]
Saving to: ‘ubuntu-14.04-desktop-amd64.iso   6%  58,05M  1,36MB/s   eta 7m 47s

and then “dd” the ISO to the USB flash drive. Pay extra attention to the device name. If you mess this up you could overwrite your current install… I tend to use dmesg:

[26005.823077] sd 7:0:0:0: Attached scsi generic sg3 type 0
[26006.953612] sd 7:0:0:0: [sdc] 30299520 512-byte logical blocks: (15.5 GB/14.4 GiB)
[26006.954291] sd 7:0:0:0: [sdc] Write Protect is off
[26006.954298] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[26006.954912] sd 7:0:0:0: [sdc] No Caching mode page found
[26006.954918] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[26006.972919]  sdc: sdc1
[26006.976297] sd 7:0:0:0: [sdc] Attached SCSI removable disk

So that would be “sdc”. This will burn it (skip the 1st one if you are still in Downloads, skip the 2nd one if it is already installed):

cd ~/Downloads
sudo apt-get install gddrescue
sudo ddrescue -d -D --force ubuntu-14.04-desktop-amd64.iso /dev/sdc

Results:

GNU ddrescue 1.19
Press Ctrl-C to interrupt
rescued:    63504 kB,  errsize:     230 B,  current rate:     196 kB/s
   ipos:    63504 kB,   errors:       1,    average rate:   12700 kB/s
   opos:    63504 kB, run time:       5 s,  successful read:       0 s ago
Finished                                     

and an image of the freshly created USB ISO:

enter image description here

From Factory reset – Wikipedia:

Computer factory resets will restore the computer to the computer’s original operating system and delete all of the user data stored on the computer.

This can be achieved either by re-installation of the OS or using a factory reset option. But in Linux, there is no option for factory reset inbuilt. So, it is required to look for alternatives which can achieve above said things.

While re-installation of the OS is the preferred method in order to remove users, user files and user applications but it is somewhat a tedious task. There is a tool called Resetter which would make “resetting Ubuntu” easier and will do what factory resets usually do.

Introduction:

Resetter is a tool which is used to reset Ubuntu installation to factory default. The Ubuntu system will go back to the state when it was installed for the first time. It finds all applications which are installed after Ubuntu fresh installation and delete them. Not just applications, it also deletes the users too. Deleting users means deleting their home too which means all user files and configurations. You don’t have to install everything from the beginning. Just reset your Ubuntu to its factory defaults and start installing everything else.

Installation:

  • Download the latest release of Resetter and add-apt-key_versionX.deb from GitHub or use wget to direct download. At the time of posting this answer v3.0.0 was the latest release. To download using wget use:

    wget https://github.com/gaining/Resetter/releases/download/v3.0.0-stable/resetter_3.0.0-stable_all.deb
    wget https://github.com/gaining/Resetter/releases/download/v3.0.0-stable/add-apt-key_1.0-0.5_all.deb
    
  • Install some dependencies:

    sudo apt install libqt5clucene5 libqt5designer5 libqt5help5 python3-psutil python3-pyqt5 python3-pyqt5.qtsvg python3-sip
    
  • Install downloaded .deb packages:

    sudo dpkg -i package1.deb package2.deb
    

Using Resetter:

  • Open Resetter from Dash and authenticate. Authentication is required to perform administrative tasks.

    Welcome Screen

  • To reset Ubuntu, click on Automatic Reset. But if you want to remove multiple packages at once click on custom reset.

    Reset

  • Click “Yes” to confirm. You’ll get a dialog which would list all the packages which would be removed.

    List of Packages

  • Click “OK” to start. The factory reset will begin:

    Resetting

  • A new user will be created to access the system using administrative privileges. A dialog will appear which would show details about that newly created user. After that confirmation for Reboot will appear.

    New User details

    Reboot System

  • If your Ubuntu boots into TTY mode (command line/console mode), login with the credentials of new user and install desktop environment again.

    sudo apt install ubuntu-desktop
    sudo reboot 
    
  • Use previously provided password to login.

    Login

  • Modify Username and Password as per convenience.

Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.

This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation


Ubuntu Reinstallation

Introduction

Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you’re most likely want to preserve two things:

  • /home folder with your files and settings
  • Entries in boot menu (if you have multiple OS installed)

How To Reinstall Ubuntu

Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).

Before doing anything

This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.

Run the Ubuntu installer

  • Run the UbuntuInstaller
  • Follow the prompts until the “Installation type” (or “Allocate disk space”) menu
  • Choose the right option as described below:

Choose the right option

There are two possibilities – choose the one that fits what the installer is showing:

  • If an “Upgrade 1X.XX to 1Y.YY” option is available (like in the screenshot below), choose it.

enter image description here

  • Or, if the above option is not available, choose manual partitioning (“Something-else” option), then select Ubuntu system partition, set its mount point as “/”. Be sure to keep the same format type, the same size, and untick the “Format” checkbox or all data on “/” will be deleted!. Also set other partitions (/boot, /home… see DiskSpace) if needed.

Then finish the installation process. (this may take several hours, like a normal install)

After reinstalling

After reinstalling, user accounts must be re-created with the same login and password.

See also

  1. Discussion on the forum

Create a Live USB

No standard factory reset for Ubuntu

  • There is no standard explicit factory reset standard for Ubuntu, but there are several methods that can produce the same or similar results.

Your personal files

  • Even if the current system does not work, you can probably copy or recover many or all of your personal files, when you boot from another drive, for example an Ubuntu live drive (USB pendrive or DVD disk).

  • With a good backup routine you will have peace of mind, even if the drive crashes physically.

  • Maybe your system drive or the file system(s) of your Ubuntu is damaged. You can check that and maybe repair the file system(s) according to this link.

Re-installation

  • A complete re-installation of Ubuntu is much faster than the corresponding installation of Windows. Re-install into

    • the same partition(s) as before or
    • different partition(s) or
    • the whole drive (if you no longer want to dual boot or multi boot).
  • A limited re-installation of Ubuntu can make things easier.

    • The most typical case is to preserve the /home directory, easiest using a separate ‘home’ partition.
    • Maybe you want to preserve some system files, that you think are good, from the /etc directory tree.
  • There are already good and detailed answers here describing re-installation.

Fresh installation

  • If there are problems, a fresh installation can be a good alternative to ‘factory reset’.

  • The [re-]installation can be to the original version and flavour of Ubuntu, but it can also be to new version or community flavour, a fresh installation. Please notice that you should stay with the same flavour of Ubuntu and use the same userIDs and names, if you want to keep /home.

  • Compared to upgrading with do-release-upgrade it is often a reliable and efficient method to install a newer version, for example the most current ‘first point release’, 16.04.1 LTS, 18.04.1 LTS … with long time support.

  • But sometimes there are problems with hardware drivers, so you had better ‘Try Ubuntu without installing’, try live from a USB drive or DVD disk, before installing a newer version.

Resetter

  • Using the tool ‘Resetter’ is described in an answer here.

Make an early backup. You may need it in the future

  • Think ahead and backup your Ubuntu system when it is new (or maybe the whole drive if a dual boot system). There are several backup tools. A full backup can be a cloned [compressed] image of the whole drive made with
    Clonezilla.

    When you want to reset your system, restore it using this backup.

Restore points or snapshots

  • You can create several backups and use them as possible ‘restore points’ or ‘snapshots’ of the system, maybe once or twice per year.

  • But you should also have a more frequent (daily or weekly) backup routine for your personal files, at least ‘everything that you cannot afford to lose’.

Tagged :

Making Game: How would I reset a pc without installing cumulative updates? [duplicate]

Original Source Link

I am trying to reinstall windows without cumulative or main updates. I also want to make sure that all the updates I do install are manual, and don’t redownload any further updates from automatic updates.

I’m trying to find that sweet spot back in mid april when my pc was running perfectly. Before and after, I got horrible frame rate drops in games, had a problem with high CPU usage, and some of my files didn’t open correctly.

Whatever they did, they did it right during april, but failed to continue doing after. Something was fixed briefly during that short window, but not anymore.

So, I need to download all windows 10 updates, one by one. In addition, I need to block windows update from updating, AND resetting windows 10 back to factory settings without updates. How do I accomplish all this?

Tagged : / /

Making Game: I don”t know how to turn my laptop on after I have refreshed it

Original Source Link

my laptop model is of the Asus vivobook series. Two days ago, my keyboard ran into some problem. Specifically, my keyboard inputs did not match what it appears on my screen. For instance, when I press “q”, “xq” appears, but when I hold it, “xqqqqqqq…” appears, or when I press backspace, a string of numbers and symbol appears. I troubleshooted if it was the hardware, I also deleted my keyboard driver and restarted my computer, but the problem still persisted. Then I reseted my laptop (completely got rid of every file that did not come along with it.) But it was no use, so I refreshed it in hope of making my keyboard work again. I went to sleep and left it overnight to finish the process, but when I woke up, I could not turn my laptop on. I’m currently waiting for its battery to completely run out to try once more.

Tagged : / / /

Ubuntu HowTo: How do I reset my Network settings to default (Ubuntu 16)?

Original Source Link

I messed up my network settings through the command line. I have a headless Ubuntu Server 16.04 without any desktop environment installed for a lighter-weight installation and connected to my local network through ethernet, and I use a Windows 10 laptop with SSH to access it, so I do not have a extra screen to use to reinstall Ubuntu. Is there any way to reset all my network settings through the command line?

What exactly happened was:
I was playing around with the command line because I wanted to access my server through SSH without typing in an IP address every time I connected, so I used sudo hostname with all its possible arguments to change its hostname from an IP address to my name. Now, SSH, SFTP, FTP, SMB, HTTP and almost everything possible is a million times slower than usual and sometimes returns “Took too long to load”.

I don’t mind resetting the entire OS, but I don’t have an screen/monitor to use with a bootable USB/DVD.
I need a solution because my website is getting affected – It takes about 45 seconds to load a 8.2MB webpage although my internet speed is above 10MBPS.

SSH is working relatively better, so is there any command-line solution to my problem?

Run

ifconfig

and see the name of your network adapter. Mine is: enp0s3

now run this command

sudo nano /etc/network/interfaces

and you should get something inside….delete everything and paste this (but change the network adapter name where enp0s3 is):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp

save the document and reboot…

use sudo systemctl restart NetworkManager.service to restart of the network manager.

Tagged : / /

Ubuntu HowTo: Ubuntu Mate 20.04 exception Emask SAct SErr action 0x6 frozen

Original Source Link

I have a Kingston Predator PCIe 240 GB SSD (AHCI device.) I dual boot Ubuntu with Windows 7 64-bit. If I boot Ubuntu from poweroff, everything is fine. But if I boot after restarting from Windows, I get long pauses and see the following in dmesg:

[Fri May 15 02:53:50 2020] ata7: SATA max UDMA/133 abar [email protected] port 0xfbdff100 irq 36
[Fri May 15 02:53:50 2020] ata7: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[Fri May 15 02:53:50 2020] ata7.00: ATA-8: Kingston SHPM2280P2H/240G, OC34L5TP, max UDMA/133
[Fri May 15 02:53:50 2020] ata7.00: 468862128 sectors, multi 0: LBA48 NCQ (depth 32)
[Fri May 15 02:53:50 2020] ata7.00: configured for UDMA/133
[Fri May 15 02:54:26 2020] ata7.00: exception Emask 0x0 SAct 0xc0000 SErr 0x0 action 0x6 frozen
[Fri May 15 02:54:26 2020] ata7.00: failed command: READ FPDMA QUEUED
[Fri May 15 02:54:26 2020] ata7.00: cmd 60/08:90:98:1f:de/00:00:14:00:00/40 tag 18 ncq dma 4096 in
[Fri May 15 02:54:26 2020] ata7.00: status: { DRDY }

My question is: Is there a way (e.g., kernel parameter) I can force a reset of the storage controller during the boot process so that it is in its default poweroff configuration? Apparently, the controller is in whatever configuration Windows had it when I restarted, and Ubuntu doesn’t like that.

Thanks.

Tagged : / / /

Ubuntu HowTo: Edge Scrolling resets and disables itself

Original Source Link

Every time I open the settings window or naviate in the settings window the edge scrolling resets and I have to go in and click it again.

I’m trying to make sure that edge scrolling stays on.

xinput tells me this:

$ xinput list-props 11
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (153):   1
    Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (290): 1
    libinput Tapping Enabled Default (291): 0
    libinput Tapping Drag Enabled (292):    1
    libinput Tapping Drag Enabled Default (293):    1
    libinput Tapping Drag Lock Enabled (294):   0
    libinput Tapping Drag Lock Enabled Default (295):   0
    libinput Tapping Button Mapping Enabled (296):  1, 0
    libinput Tapping Button Mapping Default (297):  1, 0
    libinput Natural Scrolling Enabled (298):   0
    libinput Natural Scrolling Enabled Default (299):   0
    libinput Disable While Typing Enabled (300):    1
    libinput Disable While Typing Enabled Default (301):    1
    libinput Scroll Methods Available (302):    0, 1, 0
    libinput Scroll Method Enabled (303):   0, 0, 0
    libinput Scroll Method Enabled Default (304):   0, 1, 0
    libinput Accel Speed (305): 0.000000
    libinput Accel Speed Default (306): 0.000000
    libinput Left Handed Enabled (307): 0
    libinput Left Handed Enabled Default (308): 0
    libinput Send Events Modes Available (275): 1, 1
    libinput Send Events Mode Enabled (276):    0, 0
    libinput Send Events Mode Enabled Default (277):    0, 0
    Device Node (278):  "/dev/input/event5"
    Device Product ID (279):    2, 7
    libinput Drag Lock Buttons (309):   
    libinput Horizontal Scroll Enabled (310):   1

It seems to be the only setting that resets. How do I make it permanent? Is it a bug?

EDIT:

Laptop model: HP Compaq 6735b

OS version: Ubuntu 20.04

Bios version: 68GTT Ver. F.0A

It looks like the bios version is from 12/16/2008. Wouldn’t be surprising if it’s causing problems.

You have BIOS 68GTT F.0A.

There’s a newer BIOS F.20 available to download here.

Note: Do proper backups before updating the BIOS.

Tagged : / /

Linux HowTo: How to rest BIOS password of toshiba satellite

Original Source Link

I have a toshiba satellite laptop dont know the exact model its too old an the back sticker is also gone.
When i turned on my laptop after 2 years it was showing bios lock and i dont know who put that lock and whats its password.
I saw may solutions on internet but nothing works.
I saw a video where he sort two jumper and reset the password but i cant find the jumpers in my laptop
Here are the images of my back panel of my laptop can any one help me how to reset the password.

enter image description here
Image 2

Tagged : / /

Making Game: How to rest BIOS password of toshiba satellite

Original Source Link

I have a toshiba satellite laptop dont know the exact model its too old an the back sticker is also gone.
When i turned on my laptop after 2 years it was showing bios lock and i dont know who put that lock and whats its password.
I saw may solutions on internet but nothing works.
I saw a video where he sort two jumper and reset the password but i cant find the jumpers in my laptop
Here are the images of my back panel of my laptop can any one help me how to reset the password.

enter image description here
Image 2

Tagged : / /

Ubuntu HowTo: Cannot reset Keyring password

Original Source Link

I’m running 16.04. I am getting the pop up screen to enter my password but it keeps saying it’s the wrong pass. I’ve tried using Seahorse to change the password by deleting the current situation and creating a new but I get the same results. I’ve even tried to use the Terminal and tried the following code that I found on the Ask
Ubuntu.

( Resetting everything (delete all passwords and start new keyring):

rm ~/.local/share/keyrings/login.keyring

Or

Navigate to Places > Home. Press Ctrl + H to view “hidden files”. Navigate to .local > share > keyrings and delete login.keyring

Using the same keyring (resetting keyring password but keeping old passwords in keyring):

Make a backup of the keyring

cd ~/.local/share/keyrings/
cp login.keyring login.keyring.backup

and after that delete login.keyring file

rm ~/.local/share/keyrings/login.keyring

Create a new keyring file from Gnome Keyring with the name login
Replace the new keyring file with the backup of the old keyring file

cd ~/.local/share/keyrings/
mv login.keyring.backup login.keyring  )

But sadly it doesn’t matter either.
I’ve even tried to format my hardrive so I can install 18.04 but it’s asking for my password.

How can I fix/debug this?

If you were willing to go as far as formatting the hard-drive you could have just cleaned its partition table. Otherwise, and it still baffles me how there is not a better implementation for this, the solution is just to perform the same events you have performed, with the only difference being that you need to right click the login.keyring file and delete it in that fashion rather than running rm on it.

You can achieve this by either using Ctrl+H in the folder location or alternatively by right clicking the key ring within seahorse itself.

Tagged : /