Tags » Linux(ubuntu)

How do I change the hostname without a restart?

Without restart:

Update new hostname
sudo vim /etc/hostname

also update sudo vim /etc/hosts accordingly

sudo sysctl kernel.hostname=mynewlocalhost

When done check your current hostname with hostname -f


Sử dụng wpa_cli để kết nối wifi

Dùng quyền superuser :

sudo -s

Chạy wpa_cli


Bước vào interaction mode

Scan các wifi có xung quanh


Chạy xong lệnh này wpa_cli sẽ scan các mạng wifi xung quanh nhưng không hiển thị kết quả scan. 97 more words


Docker: Remove all images and containers


You use Docker, but working with it created lots of images and containers. You want to remove all of them to save disk space. 55 more words


Please help crowdfund my sister's degree

Please share and help crowdfund my sister’s LLB degree.
Click on link if you would want to contribute.
Select Menu top left, Register as funder and fund with any amount from $10/R100

I will appreciate it, wholeheartedly.


Create a global git commit hook

Recently found out about these git hooks and they work flawlessly but my only worry was that I had to copy all my hooks over every repo such that I could use them, which was a pain sometimes. 179 more words


Why am I getting 'Errno(105): No buffer space available' when subscribing to multicast addresses?

I have been experiencing multicast subscription when subscribing to more that 20 IP’s via smcroute and python socket module. After vigorous googling I finally found a fix. 317 more words


npm start fails ( Error: listen EADDRINUSE :::3000 )

I deployed my MEAN project on ubuntu. Very often I got the message showing that the port 3000 was in use.

I use the following command to find the pid occupying the port… 32 more words