Skip to primary content
Skip to secondary content

Incredigeek

Incredigeek

Main menu

  • Home
  • Linux
  • Windows
  • OS X
  • Projects
    • UBNTMOD
    • Email Tracker
    • IP Watt Meter
    • Grond : LUKS Password Cracker

Tag Archives: login

Remotly reconfiguring AirMax device

Posted on September 27, 2019 by admin
Reply

Scenario: Remote device in a PTP configuration has been reset to factory defaults and is not connected.
Objective: Reconnect remote device and reconfigure using backup file

We’ll refer to Radio A as the radio you initially have access to
Radio B will be the remote radio that was reset.

Reinitiate temporary wireless connection

We know that the default Ubiquiti Wireless settings are
SSID=ubnt
Channel Width=20Mhz
Security=None

To reconnect the device wirelessly we can setup the Radio A as an AP with the above wireless settings.

Setup temporary network connection

Radio B should now connect wirelessly, but is going to be on a static 192.168.1.20 address. There are a handful of ways to overcome this.

  1. Setup a 192.168.1.x network and log into the device. If you are remote you may be able to setup that address range on the router and then ssh into the router or AP then ssh into the remote device
  2. Use a Mikrotik hotspot
  3. Use an SSH proxy

Configure remote device via SSH

Open up your backup file with a text editor and copy the whole config

Once access is gained to Radio B, open up the /tmp/system.cfg file, delete all the contents and paste in the contents of the backup configuration.

Save file and write changes to radio with

/usr/etc/rc.d/rc.softrestart save 

Final steps

The device should now apply the backup settings and disconnect again as it should now have the proper SSID and settings.

Restore Radio A’s settings and verify that both sides reconnect.

Posted in Ubiquiti | Tagged config, configuration, login, remote, ubiquiti, ubnt, wireless | Leave a reply

Check if Linux user is logged in

Posted on December 17, 2018 by admin
Reply

The following commands are helpful for seeing if a user is currently logged in, or when the last time a user was on.

Who

The “who” command give information about users that are currently logged in

[steve@localhost ~]$ who
root pts/0 2018-12-14 15:05 (192.168.1.23)
steve pts/2 2018-12-14 12:09 (192.168.1.25)
[steve@localhost ~]$

Last

The last command shows a list of the last logged in users

[steve@localhost ~]$ last
steve pts/2 192.168.1.25 Fri Dec 14 15:05 still logged in
root pts/1 192.168.1.23 Fri Dec 14 12:09 - 12:09 (00:00)
steve tty1 Thu Nov 8 10:02 - 10:15 (00:13)
reboot system boot 4.7.0.x Thu Nov 8 09:01 - 10:12 (01:01)
wtmp begins Tue Oct 11 09:01:57 2018
[steve@localhost ~]$

Posted in Command Line, Linux | Tagged last, linux, login, user, users, who | Leave a reply

Recent Posts

  • Enable Automatic Update for Ubuntu 20.04
  • Limit Network Speed of wget
  • Installing Discord on Fedora 33
  • OLED Screen Brightness on Fedora 33
  • no permissions (user in plugdev group; are your udev rules wrong?)
  • Show Down Devices From SSH – LibreNMS
  • Migrate LibreNMS to new Server
  • How to Restore Pixel to Factory Image
  • Unable to Remove Authorized SSH Keys from AirOS
  • How To Setup Samba/CIFS Share on Fedora Server

Tags

  • android
  • apple
  • Backup
  • bash
  • centos
  • command line
  • cpanel
  • debian
  • email
  • fedora
  • firewall
  • install
  • ip
  • librenms
  • linux
  • Mac
  • microsoft
  • mikrotik
  • monitoring
  • mysql
  • networking
  • nms
  • OS X
  • password
  • pi
  • programming
  • Raspberry pi
  • routeros
  • script
  • snmp
  • ssh
  • ubiquiti
  • ubnt
  • ubuntu
  • unifi
  • unifi-video
  • unity
  • unity3d
  • vm
  • whm
  • Windows
  • windows 10
  • XenServer
  • zenoss
  • zenoss 5

Recent Posts

  • Enable Automatic Update for Ubuntu 20.04
  • Limit Network Speed of wget
  • Installing Discord on Fedora 33
  • OLED Screen Brightness on Fedora 33
  • no permissions (user in plugdev group; are your udev rules wrong?)

Categories

  • Alienware
  • Android
  • Apple
  • Arduino
  • Baicells
  • Cable
  • Cambium
  • CentOS
  • Command Line
  • Computer Mods
  • cPanel
  • Cron
  • Crypto Currency
  • Debian
  • Dell
  • DNS
  • DNS
  • Drones
  • Email
  • Fedora
  • FreeBSD
  • Freeradius
  • GrapheneOS
  • Hacking
  • Hackintosh
  • Information
  • Inkscape
  • Internet
  • LibreNMS
  • LineageOS
  • Linux
  • MacOS
  • Mikrotik
  • Minecraft
  • Mining
  • MySQL
  • Nagios
  • Networking
  • Networking
  • Office
  • OS X
  • Programming
  • PSU
  • Python
  • Random
  • Raspberry Pi
  • RedHat
  • Reset Passwords
  • Scripts
  • Security
  • Slackware
  • SNMP
  • Tear Downs
  • Ubiquiti
  • Ubiquiti Command Line
  • Ubuntu
  • Uncategorized
  • UniFi
  • UniFi Video
  • Unity3D
  • VIM
  • Virtualization
  • Visual Studio
  • VMware
  • Web
  • Web Browser
  • Windows
  • Windows 10
  • Windows 8
  • Wireless
  • Wireshark
  • WISP
  • WordPress
  • XenServer
  • Zenoss
Proudly powered by WordPress