Create Backup Restore
Continue readingCategory: Linux
Ubuntu: Create user directory afterwards
If you create an new user with useradd without using the option -m there will be created no home directory Create user without -m Create home directory manually by copying the template of /etc/skel Set owner of /home/testuser Set GECOS-field / comment after user was created When creating a user
Continue readingLinux: set hostname using hostnamectl
To set the hostname of a linux system run the following command in a terminal session Reboot system
Continue readingUbuntu: Mount Windows-Share on startup
Install cifs-utils Create directory to use as mount point for the Windows share Mount Windows share manually using terminal If supported use Version 3.0. Otherwise use a supported version (For example: vers=2.0) Mount Windows share on startup using /etc/fstab Create file with credentials Set correct permissions so that no unauthorized
Continue readingrsyslog – create dynamic files
With the following configuration you can automatically let rsyslog create new files every day depending on $msg Create a new file under /etc/rsyslog.d/ by using nano or vi.For example: if then conventional configuration Restart service
Continue readingIncrease LVM Partition
First you need to check that there is free space available to use. To view the logical volumes use the following command Expand volume -L+20G –> extesion by 20GB-L+100%FREE –> use all free space Resize the file system For ext3/ext4-Partitions you can alternatively use Other useful commands
Continue readingKali Linux – Oracle VirtualBox VM – Panels flickering
Disable 3D Acceleration Click virtual machine –> go to Settings –> Display Uncheck “Enable 3D Acceleration”
Continue readingJoin Debian / Ubuntu to Active Directory Domain
To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies Join the server to your Active Directory-Domain If you need to, replace “administrator” with another authorized user. If the above command fails:check if your user has the required permissionscheck the passwordtry the following:
Continue readingKali Linux: metasploit – initial setup – database setup
Before running metasploit framework on kali you should first setup the msfdb (database) Start postgresql-service Set up database (msfdb) If you want to make postgresql automatically run on system startup enable it by executing the following command Start metasploit
Continue reading