Showing posts with label Command Line. Show all posts
Showing posts with label Command Line. Show all posts

Tuesday, 3 September 2019

Most used commands in linux

Here are some most used commands in Linux

Sudo apt-(issuing command as below)

update - Retrieve new lists of packages
upgrade - Perform and upgrade
Install- Install new packages (pkg is libc6 not libc6,deb)
Remove - Remove packages
Purge - Remove packages and config files
Autoremove - Remove automatically all unused packages
Dist-upgrade - Distribution upgrade
Dselect-upgrade - Follow dselect selections
Build-dep - Configure build dependencies for source packages
Clean - Erase downloaded archive files
Autoclean - Erase old downloaded archive files
Check - Verify that there are no broken dependencies for source packages
Source - Download the binary package into the current directory
Changelog - Download and display the changelog for the given package


lsb_release-a (Checks the version of your linux machine e.g. ubuntu)

Tuesday, 27 March 2018

How To - Map Network Drives By Batch File Logon Script

Mapping Network Drives Batch File Logon Script - Get yourself out of trouble temporarily if you are having map network drive issues on your network by using this useful logon script

Hello all fellow IT Geeks, Beginners and the alike.

Here is a batch file script you can implement on your domain network to map network drives if you are having issues with user accounts not mapping drives properly through Group Policy. This can get you out of trouble for the interim so that you can concentrate on finding out what the problem is with your drive maps, group policy objects etc. This script can be easily modified and implemented within minutes.


Steps:

  • Create your batch file in notepad and copy and modify the below script
  • Name it accordingly, for this example we named it mapdrives.bat
  • Place/Copy the saved batch file under C:\Windows\SYSVOL\domain\scripts on your domain controller/server
  • In Active Directory implement the script to the users who are having map drive issues - In Active Directory and users, locate the user, go to the profile tab type the name of the script, in this example mapdrives.bat
  • Go to the machine of the user, go to command prompt type in gpupdate /force and reboot
  • Check the results of the group policies being applied gpresult -r
  • If all good when you logon next, you should see command prompt flash when you login and do its magic!

This is a good solution for you to get you out of trouble temporarily whilst you dig around and troubleshoot your network, it can be especially useful for those who have multiple mapped network drives assigned to their profile.

The below script has to be modified accordingly to your environment therefore it is advised that you modify to your network such as the drive letters for example.

I would suggest to test this on a few test machines out before implementing the script to your specific domain users.


@echo off

echo  ---------------------------------------------------------------------------
echo Mapping Network Drives Batch File
echo  ---------------------------------------------------------------------------

net use K: /delete
net use R: /delete
net use V: /delete
net use W: /delete
net use X: /delete
net use Z: /delete
echo

NET USE K: \\dc01\ManagerDrive /persistent:no
echo.
NET USE R: \\dc01\Photos /persistent:no
echo.
NET USE V: \\dc01\software /persistent:no
echo.
NET USE W: \\dc01\GeneralData /persistent:no
echo.
NET USE X: \\server02\Otherdata /persistent:no
echo.
NET USE Z: \\dc01\Homes$\%USERNAME% /persistent:no
echo.



echo.
echo.Time synching now...
NET TIME \\dc01 /SET /YES

echo.
echo  ---------------------------------------------------------------------------
echo LOG - ON Completed
echo  ---------------------------------------------------------------------------

echo.



Thanks and Enjoy!

Monday, 19 February 2018

Guide to mining bitzeny coin


GNURoot Debian for Android phones

Follow these commands as below, if you get errors, add in Sudo at the start of each command as below


apt-get update

Next, I also copy this, but since y / n is displayed after that, press y to execute it.
apt-get upgrade

Line by line type in these commands, do not copy and paste the whole 6 lines and paste, it simply won't work
apt - get - y install git 
apt - get - y install automake 
apt - get - y install gcc 
apt - get - y install make 
apt - get - y install libcurl 4 - openssl - dev 
apt - get - y install libjansson - dev


git clone https://github.com/macchky/cpuminer.git 
cd cpuminer  

./autogen.sh 
./configure CFLAGS = "- O3" 
make

This last bit here is where the mining pool is, therefore this will depend on where you source your mining pool, therefore it is essential that you get the details correct
.minerd -a yescrypt -o stratum + tcp: // "pool URL": "port number" -u "user ID". "worker ID" -p "worker password"
Here are a couple examples of different mining pools: 
./minerd -a yescrypt -o stratum + tcp: //jp.lapool.me: 3014 -u aiueo.user -p 1234567890

Source from https://bitzeny.mizutamari.work
./minerd -a yescrypt -o stratum + tcp: //bitzeny-m.mizutamari . work: 19701 -u Username.WorkerName -p WorkerPassword

Wednesday, 7 February 2018

Windows Server FSMO Roles Command line and information on Server Roles and Troubleshooting

Windows Server FSMO Roles Command line and information on Server Roles and Troubleshooting

Open command prompt  
command netdom query fsmo this will list the FSMO role holder server

This command will also work in powershell as well as the normal command prompt in windows server.





Useful Resources:
Netdom Query
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc835089(v=ws.10)



Wednesday, 10 January 2018

DISM Commandline Tool to repair corrupt windows 10

DISM Commandline Tool to repair corrupt windows 10


Go to an elevated command prompt in windows or

Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).

First to scan your system for corrupt and missing windows files
Dism /Online /Cleanup-Image /ScanHealth

The command line for this is
Dism.exe /Online /Cleanup-image /Restorehealth

Then run the scan command to system scan your computer to see if it is fixed
Sfc /Scannow

Coin Watch List November 2021

06/11/2021 Wagyu Swap  https://www.wagyuswap.app/ Contract - 0x7fa7df4996ac59f398476892cfb195ed38543520 Socials https://t.me/WagyuAnn https...