all posts
- Gnupg Cheatsheet
- Bash Cheatsheet
- Customize Shell Prompt
- Windows server 2019 config
- Installing SynologyNas
- Managing SWAP File
- Welcome
Bash
blog
note
module
Cheatsheet
--- layout: default title: My Blog ---Prompt Examples
For system wide change
- /etc/profile
- /etc/bashrc
For user based changes
~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc ~/.bash_logout
Windows server 2019 config
- Installing windows server
1. Requirements
* after that
2. Virtual box config
3. Requirements
- Configuring
- Installing DNS and AD
- Configuring DNS and AD
Installing SynologyNas
Configuration Réseau DSM 6.2
Installsing SyslogNAS
-
Read the original post announced by jun: http://xpenology.com/forum/viewtopic.php?f=2&t=20216
-
Requirements
- Virtual Box
-
Jun’s bootloader v1.03 (DSM 6.2) ds3617) (https://mega.nz/#F!yQpw0YTI!DQqIzUCG2RbBtQ6YieScWg!OZw2QKwT) ! Here what i got was all in .img file thus i did this to convert them to .vmdk
VBoxManage convertfromraw imagefile.img vmdkname.vmdk \-\-format VMDK
(https://xpenology.club/download/) * Unzip the package. We will need 2 files: synoboot.img and synoboot.vmdk* What is downloaded is mostly \*.img format so we need this additional steps for vm ``` sudo apt-get install ccd2iso ccd2iso <filename>.img <filename>.iso ``` * Optionally ``` mount -o loop <img file name> <mountpoint> mkisofs -o <iso output file name> <mountpoint> ```
-
Synology’s DSM : https://archive.synology.com/download/DSM/release/6.2/23739/.pat ?? It is the software that will be installed on the hardisk
- Synology’s DS Assistant : https://gloabl.download.synology.com/download/Tools/Assistant/ https://www.synology.com/en-global/support/download/DS3617xs#utilities
-
Configure the Virtual Machine:
- Type: Linux
- Version : Linux 2.6 / 3.x / 4.x (64-bit)
- Chipset : ICH9
- HDD Virtuel (4x) (Does it have to be SCSI or SATA???) _ Type de fichier HDD : VDI (VirtualBox Disk Image) _ Allocation dynamique du fichier VDI. _ Nom du fichier : VM-DSM-HDDx (x = numéro du disque dur) _ Taille : 8Gb * Remove Controller: IDE
- Number of CPUs: 2
- Network _ Set to Bridged Adapter _ Promiscuous-Mode: Allow all * MAC Address: 0011322CA785
4) Setup the network: a) Bridge or NAT, it’s up to you b) Expand the Advanced option c) Adapter type: Intel PRO/1000 MT Desktop (8254OEM) d) MAC Address: 0011322CA785 (This is the most important setting to make your Xpenology accesssible!) _ For class the teacher changed this to … _ Dans l’adresse MAC indiquez : 001132123456 (important !). Why is it very important?? and why is it different?
5) Start the VM, press F12 to enable the boot menu
-
Boot from IDE harddisk 1
-
In the gnub menu, select the last option (xxx VMware xxx)
(http://find.synology.com)
-
Wait around 2~5 minutes, depends on your Hardware spec. The bootloader only show around 10 lines of message. Don’t worry. Be patient and it’s still loading the system.
I am having most difficulty with this step right now -
Install synology assistant. Press Search button
-
You should see your new DiskStation now. If not, wait for another 1 or 2 minutes
-
The most important step! Verify the MAC address shown in the Synology Assistant. Make sure it’s the same as the one you set in step 4.3d above.
-
Here you go, do what you usually do to a Synology system to install the DSM.
Tuto
<https://xpenology.com/forum/topic/6927-tutorial-install-6x-on-oracle-virtualbox-juns-loader>
<https://xpenology.com/forum/topic/13333-tutorialreference-6x-loaders-and-platforms>
Managing SWAP File
Create New SWAP
Step 1: Deactivate and Remove SWAP if there is one already
Step 2: Remove SWAP file
$ rm -r /swapfile
Step 3:
$ dd if=/dev/zero of=/swap bs=1024 count=1024k
$ mkswap /swap
$ chmod 600 /swap
$ chown root:root /swap
$ swapon /swap
$ echo "10" > /proc/sys/vm/swappiness
$ echo "vm.swappiness = 10" >> /etc/sysctl.conf
$ echo "/swap none swap sw 0 0 " >> /etc/fstab #Danger: check if the swap file is alread in fstab before doing this
Increase the SWAP file
Step 1: Deactivate SWAP
$ sudo swapoff -a
Step 2: Increase the size of the swap file, here for 16GB for example:
$ sudo dd if=/dev/zero of=/swapfile bs=1G count=16
Step 3: Make the SWAP file and turn on SWAP
$ sudo mkswap /swapfile
$ sudo swapon /swapfile
Step 4: To check the current SWAP size
$ grep SwapTotal /proc/meminfo
Removing SWAP file
Step 1: Deactivate SWAP
$ sudo swapoff -v /swapfile
or
$ sudo swapoff -a
Step 2: Remove swap file entry from /etc/fstab
/swapfile swap swap defaults 0 0
Step 3: Remove or Delete the actual swap file
$ sudo rm /swapfile
Welcome
For Batch
Welcome to my world, this is my first test blog or post or whatever.
-
SANS Cyber Acces Online Tutorials
-
EDX
-
Cybrary
-
SecurityTube
-
another thing but small tutorials
https://www.pentesteracademy.com
Ref: [logo]: https://ahkhaicom.files.wordpress.com/2016/02/vm131.png?w=474 “logo2”