Category: Linux


Create CSR with SAN

Create a file named myconf.cnf countryName = Country Name (2 letter code) countryName_default = GR countryName_min = 2 countryName_max = 2 stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = MyProvinceName localityName = Locality Name (eg, city) localityName_default = MyCityName 0.organizationName = Organization Name (eg, company) 0.organizationName_default = MyCompany organizationalUnitName = Organizational Unit Name …

Debian, Linux, SmokingLinuxEveryDay

p7zip – file archiver

p7zip is the Unix command-line port of 7-Zip, a file archiver that handles the 7z format which features very high compression ratios. p7zip provides: – /usr/bin/7zr – a standalone minimal version of the 7-zip tool that only handles 7z, LZMA and XZ archives. 7z compression is 30-50% better than ZIP compression. – /usr/bin/p7zip – a …

Linux, Security

Change admin passwords

System sudo passwd rootsudo passwd root MySQL mysqladmin -u root -p passwordmysqladmin -u root -p password PostgreSQL sudo -u postgres psql -U postgres -h -d postgres -c "ALTER USER postgres WITH PASSWORD ‘newpassword’;"sudo -u postgres psql -U postgres -h -d postgres -c "ALTER USER postgres WITH PASSWORD ‘newpassword’;" Gitlab GLPI Project mysql -u …


Debian – Awesome Zsh

Install zsh sudo apt-get install zshsudo apt-get install zsh Download prezto git clone –recursive ~/.zpreztogit clone –recursive ~/.zprezto Create symlinks setopt EXTENDED_GLOB; for rcfile in /home/<username>/.zprezto/runcoms/^; do ln -s "$rcfile" "/home/<username>/.${rcfile:t}"; donesetopt EXTENDED_GLOB; for rcfile in /home/<username>/.zprezto/runcoms/^; do ln -s "$rcfile" "/home/<username>/.${rcfile:t}"; done or ln -s /home/<username>/.zprezto/runcoms/zlogin /home/<username>/.zlogin ; ln -s /home/<username>/.zprezto/runcoms/zlogout /home/<username>/.zlogout …

Linux, Security

Get a list of Open Ports in Linux

netstat – Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Get a list of open tcp/udp ports sudo netstat -plntusudo netstat -plntu -p = display PID/Program name for sockets -l = display listening server sockets -n = don’t resolve names -t = tcp ports -u = udp ports

Kali, XFCE

Can’t browse samba networks using Thunar

If you can’t access samba shares from Kali Linux using the xfce environment and the Thunar file manager, install the following packages: apt-get install gvfs*apt-get install gvfs* Logout and login back and try to access a samba shared folder using Thunar: smb://x.c.v.b/dirname/smb://x.c.v.b/dirname/ Gvfs GVfs is a userspace virtual filesystem designed to work with the I/O …