pwrusr.com

» tech notes for power users.

Primary Menu

Skip to content
pwrusr.com
  •  Home
  •  Downloads
  •  About
  •  Contact

LINUX

CentOS, Ubuntu, Debian and other experiences and adventures.

4 most useful vmrun commands.

A simple explanation of the possibilities offered by the vmrun command.… Read More


Samba share on Ubuntu Server Host.

Some samba commands on Ubuntu Server.… Read More


My Fav bash less commands.

Some useful less commands and the best and most useful command (or How to go to the End of a log file with less).… Read More


nmap basic and fast scan.

some common nmap scans with some common options.… Read More


netstat -puntalo.

Practical netstat examples.… Read More


Linux Kernel Logging howto.

How to enable kernel logging and put the log under logrotate.… Read More


Why adding Repoforge to CentOS may be a good idea.

Install CentOS Repos and other nice tricks!… Read More


Clone installed packages between different CentOS versions.

CentOS migration alternative suggestions.… Read More


Apache mod_bw for VirtualHost.

A good overview on mod_bw.… Read More


How to redirect a "Home Page" to a temporary page.

Small how-to make a Cpanel redirect.… Read More


RELOCATING a RAID1 mdadm array to bigger hdds on CentOS - pt.2.

My guide will explain you how to renew your pre-existing RAID1 mdadm array with new hdds. This second part is the hands-on and will explain you how to effectively perform the operation successfully.… Read More


RELOCATING a RAID1 mdadm array to bigger hdds on CentOS - pt.1.

My guide will explain you how to renew your pre-existing RAID1 mdadm array with new hdds. This first part is introductory and will explain you how to gather the correct info.… Read More


Very basic net-snmp setup.

How to install, configure and verify net-snmp on Ubuntu/CentOS.… Read More


paging-navigation

  • 1
  • 2
  • 3
  • 4
  • …
  • 6
My Tweets
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube

tricks under my sleeve.

add-raid1md2running ArchitectureX86|X86_64=uname -i CentOSUsr2NwGroup=usermod -G orig.groupcommaNewGroup usrname h-v-fast-diff-vm-deployment H-V-V2V-pthrough2VHD=NewVHDWizard! H-V-VirtualAppliance-ubuntu-12.04-X64-server HowToCompressHDDRawImageWithDD -> dd if=/dev/sda bs=16M conv=sync | gzip -c > /mnt/hdd-raw-img.zip HowToDecompressZippedDDImage gunzip –c /mnt/hdd-raw-img.zip | dd of=/dev/sda bs=16M conv=sync HowToMountWindowsShare -> mount -t cifs //nas01/temp /mnt/tmp-smb-share -o username=rwuser Hyper-V-VirtualAppliance-ubuntu-12.04 iptables -L iptables=etc-syscfg-iptables iptablesAllowHTTP=-A INPUT -i eth0 -p tcp --dport 80 -m state --state NEWcommaESTABLISHEDcmmaRELATED -j ACCEPT iptablesAllowMySQL=-A INPUT -i eth0 -p tcp --dport 3306 -m state --state NEWcommaESTABLISHEDcmmaRELATED -j ACCEPT iptablesAllowSSH2LAN=-A INPUT -p tcp -s 10.100.100.0/24 --dport 22 -j ACCEPT Joomla lessEOF=G linux-env-vars:export VARNAME="content" linux-SYS-env-vars=etc-profile linux-USR-env-vars=home-usr-.profile(new-file) lsof -a -p PID lsof -i :TCP|UDP-PortRange lsof -u username lsof /var/log/filename.log m6600 mod_bw1=yum install mod_bw | apt-gt inst libapache2-mod-bw MysqlCopyDBFromhost1Tohost2: mysqldump –u root –p PWD --add-drop-databases --add-drop-table --databases DB | mysql -h remote-host –u root –p DB non-indexed network location on Library=C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Libraries\ ntfsclone2:dmpMBR=dd if=/dev/sdbroken of=/bck/mbr.dmp bs=512 count=1 ntfsclone3:dmpIMG=ntfsclone --rescue --force --save-image --output /bck/ntfs-partition.img /dev/sdbroken1 ntfsrestore1:RstrPTable=sfdisk /dev/sdNew < /bck/partition-table.dmp ntfsrestore2:RstrMBR=dd if=/bck/mbr.dmp of=/dev/sdNew ntfsrestore3:RstrIMG=ntfsclone --restore-image --overwrite /dev/sdNew /bck/ntfs-partition.img PreferIPv4vsIPv6=reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters /v DisabledComponents /t REG_DWORD /d 0x20 putty-numlok-fix=Terminal-Features-DisableApplicationKeypadMode sedMatchPattern+AddNewLine+AppendString=sed -i -e '/^pattern$/a NwLine-thenThisString' file.txt setgid(ieRunAsGroup): chmod 2xxx command.sh setuid(ieRunAsOwner): chmod 4xxx command.sh sticky bit (ie.undeletable file) ->chmod 1755 file.log synology-block-lvl-synch System Volume Information folder WbckRole1=dism /online /enable-feature /featurename:WindowsServerBackup WbckRole2=dism /online /enable-feature /featurename:WindowsServerBackupCommandlet Win8 to Win8.1 upgrade yum repolist all

Creative Commons License
This work by Andrea Matesi is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Subscribe to pwrusr.com

Enter your email address to receive new posts notifications (very low-traffic - once/twice a Month).

Footer Menu

  • Top
  • Home
© 2025 pwrusr.com. Theme by XtremelySocial.