Super ps – How to get a lot of information from the process status ps linux/unix command?

How to get a lot of information from the process status ps linux/unix command?

ps -eo pid,pcpu,cputime,cp,pmem,size,vsize,resident,rss,cmd
Advertisements

Creating a custom Linux Distro image

This post is about creating a custom Linux distribution ISO. I already created four different distributions: Kali Linux with i3wm, Kali Linux with Openbox, and Arch Linux with i3wm, and Manjaro with Openbox. Both Kali Linux iso contains installer and live options. Arch ISO is just livecd ISO which allows, of course, to install Arch in “Arch way “.

  • Documentation and example configs for My Custom Kali Linux can be found in my repo: https://gitlab.com/jacekkowalczyk82/my-debian
  • Creation of Arch Linux iso is more complicated and I was not happy about this process so I will not publish any manual about it.
  • Creation of Manjaro Linux distribution ISO was quite simple and I will document it later.

Update 2018-09-05:

Kali Linux team published my story about customization of Kali Linux.

https://www.kali.org/tutorials/my-custom-kali-linux-distribution/

Instant one line setup FTP server

One line setup FTP server by The Swiss File Knife

  • I just found it … I needed to run some ftp server and do not waist time for setting all complicated configs for any popular FTP server
  • I wanted to have something similar to python -m SimpleHTTPServer 9191
  • I found The Swiss File Knife which provides ftp server
./sfk-linux.exe ftpserv -user=foo -pw=bar ./FTP_ROOT_DIRECTORY/
note : cannot bind on port 21, using alternative port 2121.
SFK Instant FTP 105. For help, type "sfk ftpserv -help".
waiting on port 2121, IP 10.10.10.10 or 11.11.11.11.
only read allowed. 60 sec timeout.

  • SFK is available for Windows, Linux, Mac

Markdown

This is a test of highlight level 1 with markdown

More about markdown you can find here

Level 2

List
* item 1
* item2

Tables

head 1 Head 2
1×1 1×2
2×2 2×2

 

The code for this is:

 

# This is a test of highlight level 1 with markdown 

More about markdown you can find [here](https://en.support.wordpress.com/markdown/)

## Level 2

List 
* item 1 
* item2

# Tables 

|head 1| Head 2|
|------|-------|
| 1x1 | 1x2 |
|2x2 |2x2 |

SSH login without password

a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password: 

or other example:
kowalczy@localhost:~$ cat ~/.ssh/id_rsa.pub | ssh svc_hes_user@psw-jenkins 'cat >> ~/.ssh/authorized_keys'
svc_hes_user@psw-jenkins's password:
kowalczy@localhost:~$ ssh svc_hes_user@psw-jenkins
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)


more info at: http://www.linuxproblem.org/art_9.html