Thứ Bảy, 29 tháng 9, 2018

ubuntu.common #7 shutdown timer


116
down voteaccepted

Scheduling a shutdown

To shutdown run the command:
sudo shutdown -P +60
That will wait 60 mins before starting the shutdown sequence.
You could do:
sudo shutdown -P 1:00
to shutdown at 1 AM and
sudo shutdown -P now
to shutdown now.
A message is broadcast to all terminals to warn about the shutdown.

Cancel a pending shutdown

After, starting a shutdown, if the time argument is not "+0" or "now", you can use:
sudo shutdown -c 
to cancel the scheduled shutdown.

python #1 pyautogui auto nhan qua han gio Dauhiep

#phan thuong han gio : 776,273 =>717,512
#10 15 20
import time
import pyautogui
def nhanthuong(second):
time.sleep(second)
pyautogui.click(button='left' , x = 776, y = 273)
time.sleep(2)
pyautogui.click(button='left' , x = 717, y = 512)
time.sleep(2)
pyautogui.click(button='left' , x = 717, y = 512)

nhanthuong(5)



Ubuntu.common #5 installing [tar.gz]or [tar.bz2]

filename.tar.gz   
tar xzvf file.tar.gz
finename.tar.bz2
tar xjvf file.tar.bz2

Thứ Hai, 24 tháng 9, 2018

Ubuntu.common #4 recording system audio [audacity][audio-recorder]

alternative 1: audacity
1, sudo apt-get pavucontrol
2, sudo apt-get audacity

alternative 2: audio-recorder 
1,   sudo add-apt-repository ppa:audio-recorder/ppa
2,   sudo apt-get update && sudo apt-get install audio-recorder

Chủ Nhật, 23 tháng 9, 2018

#3 Ubuntu.common Install Appimage

1, go to that appimage folder and open in Terminal
2,

Making it executable

chmod a+x exampleName.AppImage

3, Executing it
./exampleName.AppImage

Thứ Ba, 11 tháng 9, 2018

Ubuntu.common #2 download youtube video



install with root user
apt-get install youtube-dl
command:
youtube-dl  https://www.youtube.com/watch?v=bUQGVkBJY6s
download folder:
it should be  in home directory


Thứ Hai, 3 tháng 9, 2018

Ubuntu.common #1 [recording your voice]

1, open terminal Ctrl + Alt + T
2,run the command:

arecord filename.wav
3, Crtl + C           to stop recording
4,the file should be in your home directory